:root {
  /* ═══════════════════════════════════════════════════════════
     AETHERSKILLS — DESIGN SYSTEM v3.0 "AURORA"
     Premium dark-first UI with electric violet + cyan palette
  ═══════════════════════════════════════════════════════════ */

  /* Brand Colors */
  --primary-50: #f0f0ff;
  --primary-100: #e0e0ff;
  --primary-200: #c4c4ff;
  --primary-300: #a5a5ff;
  --primary-400: #8080ff;
  --primary-500: #6366f1;
  --primary-600: #4f46e5;
  --primary-700: #4338ca;
  --primary-800: #3730a3;
  --primary-900: #312e81;

  /* Accent — Electric Cyan */
  --accent-400: #22d3ee;
  --accent-500: #06b6d4;
  --accent-600: #0891b2;

  /* Fuchsia Accent */
  --fuchsia-400: #e879f9;
  --fuchsia-500: #d946ef;

  /* Semantic */
  --success-500: #10b981;
  --success-400: #34d399;
  --warning-500: #f59e0b;
  --warning-400: #fbbf24;
  --error-500: #f43f5e;
  --error-400: #fb7185;

  /* ── LIGHT THEME ── */
  --bg-primary: #f5f3ff;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-surface: #faf9ff;
  --bg-hover: rgba(99, 102, 241, 0.05);

  --glass-bg: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.65);

  --text-primary: #0f0e1a;
  --text-secondary: #4a4869;
  --text-tertiary: #9896b8;

  --border: rgba(99, 102, 241, 0.13);
  --border-strong: rgba(99, 102, 241, 0.28);
  --border-glow: rgba(99, 102, 241, 0.22);

  /* Radii */
  --radius-full: 9999px;
  --radius-xxl: 28px;
  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(99, 102, 241, 0.07);
  --shadow-md: 0 4px 16px rgba(99, 102, 241, 0.09), 0 1px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 32px rgba(99, 102, 241, 0.13), 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 24px 48px rgba(99, 102, 241, 0.17), 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.2), 0 0 80px rgba(99, 102, 241, 0.08);
  --shadow-card: 0 2px 12px rgba(99, 102, 241, 0.09), 0 1px 3px rgba(0, 0, 0, 0.04);

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --gradient-aurora: linear-gradient(135deg, #4f46e5 0%, #7c3aed 40%, #06b6d4 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(168, 85, 247, 0.04) 100%);
  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.92) 0%, rgba(245, 243, 255, 0.82) 100%);
  --gradient-surface: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 100%);
  --gradient-pure: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Layout */
  --nav-height: 72px;
}

.dark {
  /* ── DARK THEME — "Deep Space Aurora" ── */
  --bg-primary: #07060f;
  --bg-secondary: #0d0b1a;
  --bg-card: rgba(18, 16, 32, 0.82);
  --bg-surface: #110f1e;
  --bg-hover: rgba(99, 102, 241, 0.09);

  --glass-bg: rgba(13, 11, 26, 0.78);
  --glass-border: rgba(255, 255, 255, 0.06);

  --text-primary: #f0eeff;
  --text-secondary: #9896b8;
  --text-tertiary: #5a5878;

  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.15);
  --border-glow: rgba(99, 102, 241, 0.38);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.32);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.42), 0 1px 4px rgba(0, 0, 0, 0.22);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.52), 0 2px 8px rgba(0, 0, 0, 0.32);
  --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.62), 0 4px 16px rgba(0, 0, 0, 0.42);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.28), 0 0 80px rgba(99, 102, 241, 0.12);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.42), 0 1px 3px rgba(0, 0, 0, 0.32);

  --gradient-brand: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #f472b6 100%);
  --gradient-aurora: linear-gradient(135deg, #6366f1 0%, #9333ea 40%, #22d3ee 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(99, 102, 241, 0.13) 0%, rgba(168, 85, 247, 0.07) 100%);
  --gradient-card: linear-gradient(145deg, rgba(18, 16, 32, 0.92) 0%, rgba(13, 11, 26, 0.82) 100%);
  --gradient-pure: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);

  --primary-50: rgba(99, 102, 241, 0.1);
  --primary-100: rgba(99, 102, 241, 0.16);
  --primary-200: rgba(99, 102, 241, 0.22);
  --primary-300: #818cf8;
  --primary-400: #a5b4fc;
  --primary-500: #818cf8;
  --primary-600: #6366f1;
  --primary-700: #4f46e5;
  --accent-500: #22d3ee;
  --success-500: #34d399;
  --warning-500: #fbbf24;
  --error-500: #fb7185;
}

[v-cloak] {
  display: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-500);
}

/* Utility Classes */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
}

.glow-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.premium-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(16px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-500);
  box-shadow: var(--shadow-glow);
}


/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade {
  animation: fadeIn 0.6s ease forwards;
}

/* ═══════════════════════════════════════════════════════════
   NAVBAR — Aurora Design
═══════════════════════════════════════════════════════════ */
.navbar,
.nav-v2 {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid transparent;
  background: transparent;
}

.navbar.scrolled,
.nav-v2.scrolled {
  background: rgba(245, 243, 255, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.dark .navbar.scrolled,
.dark .nav-v2.scrolled {
  background: rgba(7, 6, 15, 0.88);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.6);
}

.nav-container,
.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  flex-shrink: 0;
  text-decoration: none;
  cursor: pointer;
}

.nav-logo span {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--gradient-aurora);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-logo:hover .nav-logo-icon {
  transform: rotate(-8deg) scale(1.08);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

.nav-links a {
  padding: 7px 14px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.88rem;
  transition: all 0.2s ease;
  text-decoration: none;
  position: relative;
}

.nav-links a:hover {
  color: var(--primary-500);
  background: var(--primary-50);
}

.dark .nav-links a:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-400);
}

.nav-links a.active {
  color: var(--primary-600);
  background: var(--primary-100);
  font-weight: 600;
}

.dark .nav-links a.active {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-400);
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-search {
  position: relative;
  width: 220px;
}

.nav-search-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-tertiary);
  font-size: 0.84rem;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.nav-search-btn:hover {
  border-color: var(--primary-500);
  color: var(--text-secondary);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-sm);
}

/* THEME TOGGLE */
#theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--warning-500);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  font-size: 1.1rem;
  backdrop-filter: blur(8px);
}

#theme-toggle:hover {
  background: rgba(251, 191, 36, 0.1);
  border-color: var(--warning-500);
  transform: rotate(20deg) scale(1.1);
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.3);
}

.dark #theme-toggle {
  color: var(--primary-400);
  border-color: var(--border);
}

.dark #theme-toggle:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--primary-500);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.35);
}

.search-shortcut {
  margin-left: auto;
  padding: 2px 7px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS — Aurora Design System
═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--gradient-aurora);
  color: #fff;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.25s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline,
.btn-ghost {
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.btn-outline:hover,
.btn-ghost:hover {
  background: var(--bg-hover);
  border-color: var(--primary-500);
  color: var(--primary-500);
  transform: translateY(-1px);
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1rem;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-icon:hover {
  background: var(--bg-hover);
  border-color: var(--border);
  color: var(--text-primary);
  transform: scale(1.08);
}

.btn-icon-sm {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 0.85rem;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-icon-sm:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.82rem;
  border-radius: var(--radius-md);
}

.btn-xs {
  padding: 4px 10px;
  font-size: 0.76rem;
  border-radius: var(--radius-sm);
}

.btn-danger {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: #fff;
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(244, 63, 94, 0.45);
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.45);
}

/* Modal Action Specialty Buttons */
.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: var(--radius-md);
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
}

.btn-action:hover {
  transform: translateY(-1px);
}

.btn-summarize {
  background: rgba(251, 191, 36, 0.1);
  color: #b45309;
  border-color: rgba(251, 191, 36, 0.25);
}

.dark .btn-summarize {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.08);
}

.btn-summarize:hover {
  background: rgba(251, 191, 36, 0.18);
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

.btn-enhance {
  background: rgba(168, 85, 247, 0.1);
  color: #7c3aed;
  border-color: rgba(168, 85, 247, 0.25);
}

.dark .btn-enhance {
  color: #c084fc;
  background: rgba(168, 85, 247, 0.08);
}

.btn-enhance:hover {
  background: rgba(168, 85, 247, 0.18);
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2);
}

.btn-usecases {
  background: rgba(6, 182, 212, 0.1);
  color: #0e7490;
  border-color: rgba(6, 182, 212, 0.25);
}

.dark .btn-usecases {
  color: #22d3ee;
  background: rgba(6, 182, 212, 0.08);
}

.btn-usecases:hover {
  background: rgba(6, 182, 212, 0.18);
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2);
}

.btn-workflow {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  border-color: rgba(16, 185, 129, 0.25);
}

.dark .btn-workflow {
  color: #34d399;
  background: rgba(16, 185, 129, 0.08);
}

.btn-workflow:hover {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-edit {
  background: rgba(99, 102, 241, 0.1);
  color: #4f46e5;
  border-color: rgba(99, 102, 241, 0.25);
}

.dark .btn-edit {
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.08);
}

.btn-edit:hover {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.btn-history {
  background: rgba(100, 116, 139, 0.1);
  color: #475569;
  border-color: rgba(100, 116, 139, 0.25);
}

.dark .btn-history {
  color: #94a3b8;
  background: rgba(100, 116, 139, 0.08);
}

.btn-history:hover {
  background: rgba(100, 116, 139, 0.18);
  border-color: rgba(100, 116, 139, 0.45);
}

.btn-download {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
  border-color: rgba(59, 130, 246, 0.25);
}

.dark .btn-download {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.08);
}

.btn-download:hover {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.btn-folder {
  background: rgba(245, 158, 11, 0.1);
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.25);
}

.dark .btn-folder {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.08);
}

.btn-folder:hover {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.45);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 160px 24px 100px;
  background: var(--bg);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: radial-gradient(circle at 50% -20%, var(--primary-100) 0%, transparent 60%);
  opacity: 0.6;
  z-index: 0;
}

.dark .hero::before {
  background: radial-gradient(circle at 50% -20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1000px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  color: var(--primary-600);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.dark .hero-badge {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.2);
  color: var(--primary-300);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.hero h1 span {
  display: block;
  background: var(--gradient-pure);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== STATS V2 SECTION (Landing Page) ===== */
.stats-v2 {
  padding: 48px 24px 64px;
  background: var(--bg-primary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.stat-card-v2 {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card-v2::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card-v2:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-card-v2:hover::before {
  opacity: 0.04;
}

.stat-card-v2 .stat-number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 8px;
  display: block;
}

.stat-card-v2 .stat-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
}

/* ===== FEATURES & NEWS SECTION ===== */
.section {
  padding: 120px 24px;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 80px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.feature-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-300);
  box-shadow: var(--shadow-xl);
}

.feature-card.large {
  grid-column: span 8;
}

.feature-card.small {
  grid-column: span 4;
}

.feature-card.medium {
  grid-column: span 6;
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: var(--primary-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 24px;
  color: var(--primary-600);
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: var(--primary-600);
  color: #fff;
  transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

/* ===== CATEGORIES SECTION ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.category-card:hover {
  transform: translateY(-5px);
  background: var(--bg);
  border-color: var(--primary-400);
  box-shadow: var(--shadow-lg);
}

.category-card .cat-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
  transition: transform 0.3s ease;
}

.category-card:hover .cat-icon {
  transform: scale(1.2) rotate(8deg);
}

.category-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ===== ULTRA-MODERN BENTO HUB ===== */
.bento-hub {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(100px, auto);
  gap: 16px;
  max-width: 1440px;
  margin: 0 auto 60px;
  padding: 0 24px;
}

/* ===== LANDING PAGE LAYOUT ===== */
/* ===== TICKER ===== */
/* ===== LANDING PAGE LAYOUT - CINEMATIC ===== */
.landing {
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15), transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.1), transparent 25%),
    radial-gradient(circle at 15% 60%, rgba(6, 182, 212, 0.08), transparent 30%);
  background-attachment: fixed;
  position: relative;
  min-height: 100vh;
  padding-bottom: 60px;
  /* Reduced from 120px */
}

.landing::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.3;
  pointer-events: none;
}

/* ===== COMPACT HERO ===== */
.hero-compact {
  padding: 100px 24px 60px;
  background: var(--bg-primary);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-compact .hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.hero-compact h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.hero-compact h1 span {
  background: var(--gradient-pure);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-compact p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.hero-compact .hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.hero-compact .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  color: var(--primary-600);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.dark .hero-compact .hero-badge {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.2);
  color: var(--primary-300);
}

/* ===== SPARKLINE ===== */
.sparkline-svg {
  width: 80px;
  height: 24px;
  stroke: var(--primary-500);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
}

/* ===== PULSE ANIMATION ===== */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--primary-500);
  border-radius: 50%;
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 2px solid var(--primary-500);
  border-radius: 50%;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.5);
    opacity: 1;
  }

  100% {
    transform: scale(3);
    opacity: 0;
  }
}

/* COMPACT HERO V4 */
.hero-v4 {
  padding: 140px 0 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.hero-v4::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--primary-500) 0%, transparent 70%);
  opacity: 0.05;
  filter: blur(100px);
  pointer-events: none;
}

.hero-content {
  text-align: left;
  padding-left: 60px;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
  color: var(--text-primary);
}

.hero-content h1 span {
  background: var(--gradient-pure);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 20px;
}

/* Luminous Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-600);
  margin-bottom: 32px;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow-sm);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--primary-500);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--primary-500);
  animation: pulse 2s infinite;
}

/* KINETIC VISUAL */
.hero-visual {
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
}

.visual-core {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  position: relative;
  z-index: 2;
  box-shadow: 0 0 100px rgba(99, 102, 241, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.core-ring {
  width: 90%;
  height: 90%;
  border-radius: 50%;
  border: 2px dashed var(--primary-400);
  opacity: 0.3;
  animation: rotate 20s linear infinite;
}

.core-inner {
  position: absolute;
  width: 60%;
  height: 60%;
  border-radius: 50%;
  background: var(--gradient-pure);
  filter: blur(40px);
  opacity: 0.4;
  animation: pulse 4s ease-in-out infinite;
}

.visual-scanner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--primary-500), transparent);
  height: 2px;
  opacity: 0.5;
  z-index: 3;
  animation: scan 4s linear infinite;
}

@keyframes scan {
  0% {
    transform: translateY(0);
    opacity: 0;
  }

  10% {
    opacity: 0.5;
  }

  90% {
    opacity: 0.5;
  }

  100% {
    transform: translateY(480px);
    opacity: 0;
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* BENTO GRID */
.dashboard-grid-3-col {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto 120px;
  padding: 0 60px;
}

.grid-card-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}

@media (max-width: 1200px) {
  .dashboard-grid-3-col {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-v4 {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 100px;
  }

  .hero-content {
    padding-left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .dashboard-grid-3-col {
    grid-template-columns: 1fr;
    padding: 0 24px;
  }
}

/* GLASS CARD AESTHETIC */
.section-card,
.side-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xxl);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.section-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-500);
  box-shadow: var(--shadow-glow);
  background: var(--bg-secondary);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.card-icon {
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  background: var(--primary-50);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-600);
  transition: all 0.3s ease;
}

.section-card:hover .card-icon {
  background: var(--primary-100);
  transform: rotate(-10deg) scale(1.1);
}

.card-title h2 {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  font-family: var(--font-display);
}

/* NEWS FEED (V3 Luminous) */
.news-grid-v3 {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-card-v3 {
  display: flex;
  gap: 20px;
  padding: 16px;
  border-radius: var(--radius-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid transparent;
  background: rgba(var(--primary-500), 0.02);
}

.news-card-v3:hover {
  background: var(--bg-secondary);
  border-color: var(--primary-500);
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
}

.news-image {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-content-v3 {
  flex: 1;
  min-width: 0;
}

.news-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.news-tag {
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-600);
  /* Deep Indigo for Light Mode */
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dark .news-tag {
  background: rgba(165, 180, 252, 0.15);
  color: #a5b4fc;
  /* Light Indigo for Dark Mode */
}

/* Removed orphan brace */

.news-card-v3 h3 {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.news-item-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* RESEARCH INSIGHTS (Vertical Stack) */
.blog-featured-v2 {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  /* Fill space */
}

.blog-featured-image {
  width: 100%;
  height: 160px;
  position: relative;
}

.blog-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-featured-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.featured-badge {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--neon-cyan);
  background: rgba(34, 211, 238, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  display: inline-block;
  align-self: flex-start;
}

.blog-featured-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
  color: #fff;
}

.blog-featured-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* EXTERNAL STREAMS (Social Hub) */
.social-hub {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.social-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.2);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.social-tab {
  flex: 1;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s;
}

.social-tab:hover {
  color: var(--text-primary);
}

.social-tab.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.social-content {
  flex: 1;
  overflow-y: auto;
}

.social-item-mini {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  border-bottom: 1px solid var(--border);
}

.social-item-mini:last-child {
  border-bottom: none;
}

.social-image-mini {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-secondary);
}

.social-image-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-info {
  flex: 1;
}

.mini-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.mini-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 4px;
}

.mini-author {
  font-size: 0.7rem;
  color: var(--text-tertiary);
}

/* TRENDING PULSE CONTAINER */
.trends-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 10px;
}

.trend-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.trend-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trend-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.trend-spark {
  height: 24px;
  width: 80px;
  opacity: 0.7;
}

.trend-perc {
  font-size: 0.82rem;
  font-weight: 800;
  color: #10b981;
}

.trending-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0;
}

.trend-tag {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s;
  cursor: pointer;
}

.trend-tag:hover {
  background: var(--primary-50);
  color: var(--primary-600);
  transform: translateY(-2px);
}



.news-source {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.news-read-more {
  font-size: 0.85rem;
  color: var(--primary-500);
  font-weight: 600;
}

.news-card:hover .news-read-more {
  text-decoration: underline;
}

.dashboard {
  display: none;
  padding-top: calc(var(--nav-height) + 24px);
  min-height: 100vh;
  background: var(--bg-secondary)
}

.dashboard.active {
  display: block
}

.landing.hidden {
  display: none
}

.dash-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px 48px
}

.dash-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px
}

.dash-header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--gradient-brand);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.dash-stats-row {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.stat-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs);
}

.stat-chip strong {
  color: var(--primary-500);
  font-weight: 800;
}

.stat-separator {
  width: 4px;
  height: 4px;
  background: var(--border-strong);
  border-radius: 50%;
  opacity: 0.5;
}

.dash-filters {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 48px;
  padding: 24px 28px;
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-xxl);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-xl);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-filters {
  position: sticky;
  top: calc(var(--nav-height) + 16px);
  z-index: 50;
}

.dash-search-row {
  width: 100%;
}

.dash-search-container {
  position: relative;
  width: 100%;
}

.dash-search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%) scale(1.1);
  color: var(--primary-500);
  pointer-events: none;
  opacity: 0.8;
  font-size: 1.1rem;
}

.search-shortcut {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  padding: 4px 10px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-tertiary);
  pointer-events: none;
  font-family: var(--font-mono);
  box-shadow: var(--shadow-xs);
}

#global-search {
  width: 100%;
  padding: 16px 20px 16px 52px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: -0.01em;
}

#global-search:focus {
  outline: none;
  border-color: var(--primary-500);
  background: var(--bg-primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12), var(--shadow-sm);
  transform: translateY(-1px);
}

.dash-filter-controls {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 320px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-lg);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.filter-btn:hover {
  transform: translateY(-2px);
  border-color: var(--primary-400);
  background: var(--bg-primary);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.filter-btn.active {
  background: var(--primary-500);
  color: white;
  border-color: var(--primary-600);
  box-shadow: 0 8px 16px -4px rgba(99, 102, 241, 0.3);
  transform: scale(1.02);
}

.filter-icon {
  font-size: 1.1rem;
}

.filter-actions-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.view-toggle-group {
  display: flex;
  background: var(--bg-secondary);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--border);
  gap: 2px;
}

.view-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all 0.2s;
}

.view-btn:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.03);
}

.view-btn.active {
  background: var(--bg-primary);
  color: var(--primary-500);
  box-shadow: var(--shadow-xs);
}

/* ═══════════════════════════════════════════════════════════
   SKILL CARDS — Aurora Design
═══════════════════════════════════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.skills-grid.list-view {
  grid-template-columns: 1fr;
}

.skill-card {
  padding: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xxl);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
  position: relative;
}

.skill-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-400);
  box-shadow: 0 30px 60px -12px rgba(99, 102, 241, 0.25), 0 18px 36px -18px rgba(0, 0, 0, 0.1);
}

.skill-card-inner {
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.skill-card-selection {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 20;
}

.skill-select-checkbox {
  width: 24px;
  height: 24px;
  appearance: none;
  background: var(--bg-secondary);
  border: 2px solid var(--border-strong);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.skill-select-checkbox:checked {
  background: var(--primary-500);
  border-color: var(--primary-500);
  transform: scale(1.1);
}

.skill-select-checkbox:checked::after {
  content: '✓';
  color: white;
  font-size: 14px;
  font-weight: 900;
}

.skill-card-header {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.skill-card-icon-container {
  flex-shrink: 0;
}

.skill-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  background: var(--bg-primary);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.skill-card:hover .skill-card-icon {
  transform: scale(1.15) rotate(-8deg);
}

.skill-card-title-area {
  flex: 1;
  min-width: 0;
}

.skill-card-main-title {
  margin-bottom: 6px;
}

.skill-card-main-title h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0;
}

/* ---- Action Bar: bottom of card, appears on hover ---- */
.skill-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 12px;
  margin-top: 10px;
  border-top: 1px solid var(--border);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.skill-card:hover .skill-card-actions {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.btn-card-action {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  color: var(--text-secondary);
  flex-shrink: 0;
  font-size: 1rem;
}

.btn-card-action:hover {
  background: var(--primary-500);
  color: white;
  border-color: var(--primary-600);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
}

.btn-card-action.btn-favorite.active {
  color: #f59e0b;
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
}

/* CSS Tooltip via data-tooltip */
.btn-card-action[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(10, 10, 20, 0.92);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 8px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 200;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: 0.02em;
}

.btn-card-action[data-tooltip]::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  border: 5px solid transparent;
  border-top-color: rgba(10, 10, 20, 0.92);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 200;
}

.btn-card-action[data-tooltip]:hover::after,
.btn-card-action[data-tooltip]:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.skill-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  padding: 4px 10px;
  background: var(--bg-primary);
  border-radius: 6px;
}

.cat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.skill-card .skill-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.skill-card-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.skill-source-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.skill-meta-pill {
  display: flex;
  align-items: center;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2px;
  width: fit-content;
}

/* Use Cases pill — inline inside meta pill, pushed to the right */
.btn-use-cases {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(var(--primary-rgb), 0.09);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  color: var(--primary-500);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
}

.btn-use-cases:hover {
  background: var(--primary-500);
  color: #fff;
  border-color: var(--primary-600);
}


.meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
}

.meta-icon {
  font-size: 0.85rem;
  opacity: 0.7;
}

.meta-divider {
  width: 1px;
  height: 16px;
  background: var(--border-strong);
  opacity: 0.2;
}

.meta-item.quality {
  color: var(--primary-600);
}

.meta-item.views {
  color: var(--text-tertiary);
}

.skill-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.skill-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 14px;
  position: relative;
  z-index: 1;
}

.skill-tag {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--primary-50);
  color: var(--primary-600);
  border: 1px solid var(--primary-100);
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}

.dark .skill-tag {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-400);
  border-color: rgba(99, 102, 241, 0.2);
}

.skill-card:hover .skill-tag {
  background: var(--primary-100);
  border-color: var(--primary-200);
}

.dark .skill-card:hover .skill-tag {
  background: rgba(99, 102, 241, 0.18);
}

/* ═══════════════════════════════════════════════════════════
   SKILL DETAIL MODAL — Aurora Design
═══════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}

.modal-overlay.active {
  display: flex;
  animation: overlayIn 0.25s ease;
}

@keyframes overlayIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xxl);
  width: 96vw;
  max-width: 1440px;
  height: 92vh;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-primary);
  position: relative;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
  flex-shrink: 0;
}

.modal-header h2 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-family: var(--font-display);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  flex: 1;
  min-height: 0;
  background: var(--bg-primary);
  overflow: hidden;
}

.modal-content-main {
  padding: 28px 36px;
  overflow-y: auto;
  max-height: 100%;
}


.modal-sidebar {
  padding: 24px 20px;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}

.modal-footer {
  padding: 16px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: var(--bg-secondary);
  flex-shrink: 0;
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-section h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  font-weight: 700;
}

.meta-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.meta-stat {
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.2s;
}

.meta-stat:hover {
  border-color: var(--primary-500);
}


.meta-stat-value {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.meta-stat-label {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   MODAL TOOLBAR & SUPPORTING COMPONENTS
═══════════════════════════════════════════════════════════ */
.modal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-group {
  display: flex;
  align-items: center;
}

.btn-group .btn-action:first-child {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.btn-group .btn-action:last-child {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  border-left: none;
}

/* Skill Detail Icon */
.skill-detail-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  background: var(--gradient-subtle);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* Modal Header Stats */
.modal-header-stats {
  text-align: right;
  padding: 0 8px;
  border-right: 1px solid var(--border);
  margin-right: 4px;
}

/* Quality Ring */
.quality-ring {
  position: relative;
  width: 80px;
  height: 80px;
  display: inline-block;
  margin-bottom: 8px;
}

.quality-ring svg {
  transform: rotate(-90deg);
}

/* Suggestion Cards */
.suggestion-card {
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.suggestion-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-sm);
}

.sug-type {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sug-high {
  background: rgba(244, 63, 94, 0.1);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.2);
}

.sug-medium {
  background: rgba(251, 191, 36, 0.1);
  color: #b45309;
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.dark .sug-medium {
  color: #fbbf24;
}

.sug-low {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-600);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.dark .sug-low {
  color: var(--primary-400);
}

/* Suggestions Section */
.suggestions-section {
  margin-bottom: 16px;
}

/* ===== MARKDOWN CONTENT ===== */

.md-content h1,
.md-content h2,
.md-content h3 {
  font-weight: 700;
  margin: 24px 0 12px
}

.md-content h1 {
  font-size: 1.6rem
}

.md-content h2 {
  font-size: 1.3rem
}

.md-content h3 {
  font-size: 1.1rem
}

.md-content p {
  margin-bottom: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.dark .md-content p {
  color: var(--text-primary);
}

.md-content ul,
.md-content ol {
  margin: 0 0 16px 24px;
  color: var(--text-primary);
}

.md-content li {
  margin-bottom: 6px
}

.md-content pre {
  background: var(--neutral-900);
  color: #e2e8f0;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 16px 0;
  font-size: .85rem;
  line-height: 1.6
}

.md-content code {
  font-family: var(--font-mono);
  font-size: .85rem
}

.md-content p code {
  background: rgba(99, 102, 241, .1);
  color: var(--accent-500);
  padding: 2px 6px;
  border-radius: 4px
}

.md-content strong {
  color: var(--text-primary);
  font-weight: 600
}

.md-content blockquote {
  border-left: 3px solid var(--primary-500);
  padding: 12px 16px;
  margin: 16px 0;
  background: rgba(99, 102, 241, 0.05);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--text-secondary);
}

/* ===== SUGGESTIONS PANEL ===== */
.suggestions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.suggestions-header h3 {
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.suggestion-card p {
  font-size: 0.83rem;
  color: var(--text-secondary);
  margin: 6px 0 8px;
  line-height: 1.5;
}

.suggestion-actions {
  display: flex;
  gap: 6px;
}

/* ===== QUALITY SCORE ===== */
.quality-ring .score {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
}

/* ===== UPLOAD MODAL ===== */

.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  transition: all .3s;
  cursor: pointer;
  background: var(--bg-secondary)
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--primary-500);
  background: rgba(59, 130, 246, .05)
}

.upload-zone .upload-icon {
  font-size: 3rem;
  margin-bottom: 16px
}

.upload-zone h3 {
  font-weight: 600;
  margin-bottom: 8px
}

.upload-zone p {
  color: var(--text-secondary);
  font-size: .9rem
}

/* ===== EDITOR ===== */
#editor-modal {
  z-index: 300 !important;
}

.full-screen-modal {
  max-width: 95vw !important;
  height: 90vh;
  display: flex !important;
  flex-direction: column;
  padding: 0 !important;
  overflow: hidden;
}

.full-screen-modal .modal-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 340px;
}

.full-screen-modal .modal-content,
.full-screen-modal .modal-sidebar {
  max-height: 100% !important;
  height: 100%;
}

.full-screen-modal .upload-zone {
  height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.full-screen-modal #paste-content {
  height: 300px !important;
}

.editor-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-secondary);
}

.editor-title-input {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  width: 100%;
  max-width: 600px;
  outline: none;
  font-family: var(--font-sans);
}

.editor-title-input::placeholder {
  color: var(--text-tertiary);
}

.editor-title-input:focus {
  background: rgba(var(--primary-500-rgb), 0.05);
  border-radius: 4px;
}

.editor-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
  overflow: hidden;
  background: var(--bg-card);
}

.editor-pane {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.editor-pane:first-child {
  border-right: 1px solid var(--border);
}

.editor-toolbar {
  padding: 10px 16px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  user-select: none;
}

.editor-pane textarea {
  flex: 1;
  padding: 24px;
  border: none;
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.95rem;
  line-height: 1.6;
  resize: none;
  outline: none;
}

.editor-pane .preview {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
  background: var(--bg-card);
}

.editor-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: var(--bg-secondary);
}

/* Scrollbar for editor */
.editor-pane textarea::-webkit-scrollbar,
.editor-pane .preview::-webkit-scrollbar {
  width: 10px;
}

.editor-pane textarea::-webkit-scrollbar-thumb,
.editor-pane .preview::-webkit-scrollbar-thumb {
  background: var(--border);
  border: 3px solid var(--bg-card);
  border-radius: 10px;
}

.editor-pane textarea::-webkit-scrollbar-thumb:hover,
.editor-pane .preview::-webkit-scrollbar-thumb:hover {
  background: var(--neutral-400);
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
}

.toast {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn .3s ease;
  min-width: 280px
}

.toast.success {
  border-left: 3px solid var(--success-500)
}

.toast.error {
  border-left: 3px solid var(--error-500)
}

.toast.info {
  border-left: 3px solid var(--primary-500)
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(40px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

/* ===== ANIMATIONS ===== */
@keyframes float {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-25px)
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@keyframes shimmer {
  0% {
    background-position: -600px 0
  }

  100% {
    background-position: 600px 0
  }
}

/* Skill Mixer & Selection */
.skill-card {
  position: relative;
  /* Context for checkbox positioning */
}

.skill-select-checkbox {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  z-index: 10;
  cursor: pointer;
  accent-color: var(--primary);
  transform: scale(1.1);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.skill-select-checkbox:hover {
  transform: scale(1.2);
}

.skill-mixer-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  /* Hidden by default */
  background: var(--bg-card);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: 100px;
  border: 1px solid var(--primary-500);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(var(--primary-rgb), 0.2);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 1000;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  opacity: 0;
}

.skill-mixer-bar.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.skill-mixer-count {
  font-weight: 700;
  background: var(--primary);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.mixer-actions {
  display: flex;
  gap: 8px;
}

.btn-mixer {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-mixer-primary {
  background: var(--primary);
  color: white;
}

.btn-mixer-primary:hover {
  background: var(--primary-600);
  transform: translateY(-1px);
}

.btn-mixer-secondary {
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
}

.btn-mixer-secondary:hover {
  background: rgba(var(--primary-rgb), 0.15);
}

.btn-mixer-close {
  background: transparent;
  color: var(--text-secondary);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-left: 8px;
}

.btn-mixer-close:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

/* One Click Copy Button (in card actions) */
.btn-copy-prompt {
  background: rgba(var(--success-rgb), 0.1);
  color: var(--success);
  border: 1px solid rgba(var(--success-rgb), 0.2);
}

.btn-copy-prompt:hover {
  background: rgba(var(--success-rgb), 0.2);
  border-color: rgba(var(--success-rgb), 0.4);
}

.animate-in {
  animation: fadeInUp .6s ease forwards;
  opacity: 0
}

.delay-1 {
  animation-delay: .1s
}

.delay-2 {
  animation-delay: .2s
}

.delay-3 {
  animation-delay: .3s
}

.delay-4 {
  animation-delay: .4s
}

.delay-5 {
  animation-delay: .5s
}

.skeleton {
  background: linear-gradient(90deg, var(--neutral-100) 25%, var(--neutral-200) 50%, var(--neutral-100) 75%);
  background-size: 600px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm)
}

/* ===== RESPONSIVE ===== */
@media(max-width:1024px) {
  .modal-body {
    grid-template-columns: 1fr
  }

  .modal-sidebar {
    border-left: none;
    border-top: 1px solid var(--border)
  }
}

@media(max-width:768px) {
  .hero h1 {
    font-size: 2.2rem
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px
  }

  .skills-grid {
    grid-template-columns: 1fr
  }

  .features-grid {
    grid-template-columns: 1fr
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .nav-search {
    display: none
  }

  .dash-header {
    flex-direction: column
  }

  .modal-actions {
    overflow-x: auto;
    flex-wrap: nowrap
  }

  .news-grid {
    grid-template-columns: 1fr !important
  }
}

/* ===== AI NEWS CARDS ===== */
.news-card {
  will-change: transform;
}

.news-card:hover {
  border-color: var(--primary-300) !important;
}

.news-card h3 {
  transition: color 0.2s;
}

.news-card:hover h3 {
  color: var(--primary-600);
}

.dark .news-card:hover h3 {
  color: var(--primary-400);
}

/* ===== GITHUB VIEW =====  */
.github-view {
  display: none;
  padding-top: var(--nav-height);
  min-height: 100vh;
  background: var(--bg);
  position: relative;
}

.github-view.active {
  display: block;
}

/* GitHub Header Background */
.github-header-bg {
  position: relative;
  background: linear-gradient(135deg, #0d1117 0%, #161b22 40%, #1c2333 100%);
  padding: 40px 24px 32px;
  overflow: hidden;
}

.github-header-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 50%, rgba(88, 166, 255, 0.08), transparent),
    radial-gradient(ellipse 500px 350px at 80% 30%, rgba(163, 113, 247, 0.08), transparent);
  pointer-events: none;
}

.github-header-bg .dash-header h1 {
  color: #f0f6fc;
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.github-header-bg .dash-header p {
  color: #8b949e;
}

/* GitHub Stats Bar */
.github-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.github-stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px 20px;
  backdrop-filter: blur(12px);
  transition: all 0.3s;
}

.github-stat-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.github-stat-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.github-stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: #f0f6fc;
  font-variant-numeric: tabular-nums;
}

.github-stat-label {
  font-size: 0.8rem;
  color: #8b949e;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* GitHub Filter Bar */
.github-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--nav-height);
  z-index: 50;
  backdrop-filter: blur(12px);
  flex-wrap: wrap;
}

.github-filter-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  transition: all 0.25s;
  cursor: pointer;
  white-space: nowrap;
}

.github-filter-pill:hover {
  border-color: var(--primary-300);
  color: var(--primary-600);
  background: var(--primary-50);
}

.github-filter-pill.active {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.dark .github-filter-pill:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
  color: var(--primary-400);
}

.dark .github-filter-pill.active {
  background: var(--gradient-primary);
  color: #fff;
}

.github-filter-pill .filter-count {
  background: rgba(0, 0, 0, 0.12);
  padding: 1px 8px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
}

.github-filter-pill.active .filter-count {
  background: rgba(255, 255, 255, 0.25);
}

/* GitHub Card Grid */
.github-grid-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.github-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 24px;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, var(--border) 1px, transparent 0);
  background-size: 40px 40px;
  opacity: 0.15;
  pointer-events: none;
  z-index: -1;
}

/* GitHub Card */
.github-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  will-change: transform;
}

.github-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-500);
}

.github-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  opacity: 0;
  transition: opacity 0.35s;
}

.github-card:hover::before {
  opacity: 1;
}

.github-card[data-category="agents"]::before {
  background: linear-gradient(90deg, #f97316, #ef4444);
}

.github-card[data-category="frameworks"]::before {
  background: var(--gradient-pure);
}

.github-card[data-category="prompts"]::before {
  background: linear-gradient(90deg, #10b981, #06b6d4);
}

.github-card[data-category="tools"]::before {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.github-card[data-category="learning"]::before {
  background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.github-card-inner {
  padding: 24px;
}

/* Card Trending Badge */
.github-trending-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.github-trending-badge.trending {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.github-trending-badge.trending::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  animation: pulse-dot 2s ease-in-out infinite;
}

.github-trending-badge.imported {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.5);
  }
}

/* Card Category Icon */
.github-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  position: relative;
}

.github-card-icon[data-cat="agents"] {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(239, 68, 68, 0.12));
}

.github-card-icon[data-cat="frameworks"] {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(99, 102, 241, 0.12));
}

.github-card-icon[data-cat="prompts"] {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(6, 182, 212, 0.12));
}

.github-card-icon[data-cat="tools"] {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(217, 119, 6, 0.12));
}

.github-card-icon[data-cat="learning"] {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(37, 99, 235, 0.12));
}

/* Card Title & Description */
.github-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: color 0.2s;
  margin-bottom: 4px;
}

.github-card:hover h3 {
  color: var(--primary-600);
}

.dark .github-card:hover h3 {
  color: var(--primary-400);
}

.github-card .repo-path {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  opacity: 0.8;
}

.github-card .repo-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  min-height: 48px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Tags */
.github-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.github-tag {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 500;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.github-card:hover .github-tag {
  background: rgba(99, 102, 241, 0.06);
  border-color: rgba(99, 102, 241, 0.15);
  color: var(--accent-500);
}

/* Card Stats Row */
.github-card-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.github-card-stats span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.github-card-stats .star-count {
  color: #f59e0b;
  font-weight: 700;
}

/* Card Action Buttons */
.github-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.github-import-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.github-import-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.github-import-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.github-import-btn.imported {
  background: var(--success-500);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.github-import-btn.importing {
  background: linear-gradient(90deg, var(--primary-600), var(--fuchsia-500), var(--primary-600));
  background-size: 200% 100%;
  animation: importingShimmer 1.5s ease-in-out infinite;
}

@keyframes importingShimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.github-link-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.25s;
}

.github-link-btn:hover {
  border-color: var(--primary-300);
  color: var(--primary-500);
  background: var(--primary-50);
}

.dark .github-link-btn:hover {
  background: rgba(99, 102, 241, 0.1);
}

/* Empty State */
.github-empty {
  text-align: center;
  padding: 80px 24px;
  grid-column: 1 / -1;
}

.github-empty-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.github-empty h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.github-empty p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
  .github-stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .github-grid {
    grid-template-columns: 1fr;
  }

  .github-filter-bar {
    padding: 12px 16px;
    gap: 8px;
  }

  .github-filter-pill {
    padding: 6px 14px;
    font-size: 0.8rem;
  }
}

/* ===== SCROLLBAR ===== */

::-webkit-scrollbar {
  width: 8px;
  height: 8px
}

::-webkit-scrollbar-track {
  background: transparent
}

::-webkit-scrollbar-thumb {
  background: var(--neutral-300);
  border-radius: 4px
}

::-webkit-scrollbar-thumb:hover {
  background: var(--neutral-400)
}

.dark ::-webkit-scrollbar-thumb {
  background: var(--neutral-700)
}

/* Editor Mobile Responsive */
@media (max-width: 768px) {
  .editor-container {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .editor-pane:first-child {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .full-screen-modal {
    height: 100vh;
    max-width: 100vw !important;
    border-radius: 0;
  }
}

/* AI Intelligence Brief (Summary Card) */
.ai-summary-card {
  background: var(--bg-primary);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  margin-bottom: 28px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 12px 30px -10px rgba(0, 0, 0, 0.15),
    0 4px 10px -2px rgba(0, 0, 0, 0.1);
  border-left: 5px solid #f59e0b;
  transform-origin: top;
}

.summary-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, transparent 100%);
  pointer-events: none;
}

.summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: rgba(245, 158, 11, 0.04);
  border-bottom: 1px solid var(--border);
}

.summary-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #b45309;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ai-sparkle {
  font-size: 1.1rem;
  filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.5));
}

.summary-close-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.summary-close-btn:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fecaca;
  transform: rotate(90deg);
}

.summary-content {
  padding: 24px;
  position: relative;
}

.summary-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.summary-item {
  background: var(--bg-secondary);
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: transform 0.2s;
}

.summary-item:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.3);
}

.summary-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.summary-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.summary-hero-text {
  margin-bottom: 24px;
}

.summary-hero-text h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.intelligence-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #f59e0b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #f59e0b;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(245, 158, 11, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.summary-recommendation {
  background: rgba(245, 158, 11, 0.05);
  border: 1px dashed rgba(245, 158, 11, 0.3);
  padding: 16px 20px;
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}

.summary-recommendation p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-primary);
  margin: 0;
}

.rec-icon {
  font-size: 1.2rem;
}

.summary-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}

.summary-tag {
  font-size: 0.75rem;
  padding: 4px 12px;
  background: rgba(245, 158, 11, 0.1);
  color: #b45309;
  border-radius: 20px;
  font-weight: 700;
  border: 1px solid rgba(245, 158, 11, 0.1);
}

.animate-in {
  animation: slideDownFade 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* AI Enhancement Log Styles */
.ai-enhancement-card {
  background: var(--bg-card);
  border: 1px solid var(--primary-200);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
  position: relative;
}

.enhancement-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--primary-600), #06b6d4);
}

.enhancement-header {
  padding: 16px 24px;
  background: rgba(59, 130, 246, 0.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.enhancement-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--primary-600);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.enhancement-content {
  padding: 24px;
}

.enhancement-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.stat-box {
  background: rgba(59, 130, 246, 0.05);
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.1);
  flex: 1;
  min-width: 140px;
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-600);
}

.enhancement-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.enhancement-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.enhancement-item:hover {
  border-color: var(--primary-300);
  background: var(--bg-card);
  transform: translateX(5px);
  box-shadow: var(--shadow-sm);
}

.check-icon {
  color: var(--success-500);
  font-size: 1.1rem;
}

.enhancement-text {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 600;
}

.enhancement-close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 4px;
  transition: color 0.2s;
}

.enhancement-close-btn:hover {
  color: var(--error-500);
}

/* Download Button & Groups */
.btn-group {
  display: flex;
  align-items: stretch;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-group .btn {
  border-radius: 0;
  margin: 0;
}

.btn-download {
  background: linear-gradient(135deg, var(--primary-600) 0%, #06b6d4 100%);
  color: white;
  border: none !important;
}

.btn-download:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-download:active {
  transform: translateY(0);
}

/* Warning Toast */
.toast.warning {
  border-left-color: var(--warning-500);
  background: rgba(245, 158, 11, 0.95);
  color: white;
}

.toast.warning span {
  color: white;
}

.dark .toast.warning {
  background: rgba(120, 53, 15, 0.95);
  border-left: 4px solid var(--warning-500);
}

.dash-header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.dark .dash-header-actions .btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
}

.dark .dash-header-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ===== SEARCH HIGHLIGHT & EMPTY STATE ===== */
mark {
  background: rgba(255, 235, 59, 0.4);
  color: inherit;
  padding: 0 1px;
  border-radius: 2px;
  font-weight: 600;
}

.dark mark {
  background: rgba(255, 235, 59, 0.25);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
  background: var(--bg-card);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  margin: 20px 0;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.empty-state p {
  color: var(--text-secondary);
  max-width: 400px;
  margin-bottom: 24px;
}

/* ===== CTA V2 ===== */
.cta-v2 {
  padding: 100px 24px;
  background: var(--bg-secondary);
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-v2 h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.cta-v2 p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* ===== FOOTER V2 ===== */
.footer-v2 {
  padding: 80px 24px 40px;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
}

.footer-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand p {
  margin-top: 24px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 320px;
}

.footer-links-group h4 {
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.footer-links-group a {
  display: block;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--success-500);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--success-500);
  border-radius: 50%;
}

/* 2-Column Grid for News/Social */
.dashboard-grid-2-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1400px;
  /* Aligned with main container */
  margin: 0 auto 40px;
  padding: 0 40px;
}

@media (max-width: 1024px) {
  .dashboard-grid-2-col {
    grid-template-columns: 1fr;
    padding: 0 24px;
    gap: 24px;
  }
}

/* Full Width Trends Section */
.trends-full-section {
  max-width: 1400px;
  margin: 0 auto 80px;
  padding: 0 40px;
}

.trends-grid-expanded {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  /* Responsive Grid */
  gap: 24px;
  margin-top: 24px;
}

@media (max-width: 768px) {
  .trends-full-section {
    padding: 0 24px;
  }

  .trends-grid-expanded {
    grid-template-columns: 1fr;
  }
}


/* 2-Column Grid for News/Social */
.dashboard-grid-2-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto 40px;
  padding: 0 40px;
}

@media (max-width: 1024px) {
  .dashboard-grid-2-col {
    grid-template-columns: 1fr;
    padding: 0 24px;
  }
}

/* CATEGORY EXPLORER */
.category-explorer-section {
  animation: fadeIn 0.5s ease-out;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 0 20px rgba(59, 130, 246, 0.1);
  border-color: var(--primary-400);
}

.category-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.category-info {
  flex: 1;
}

.category-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.category-info p {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.category-arrow {
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.2s;
  color: var(--primary-500);
  font-weight: 700;
}

.category-card:hover .category-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* --- Use Case Generator Module --- */

.use-case-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.use-case-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.use-case-modal-content {
  background: var(--bg-card);
  width: 90%;
  max-width: 1200px;
  height: 90vh;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.use-case-modal-overlay.active .use-case-modal-content {
  transform: scale(1);
}

.use-case-header {
  padding: 24px 32px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.use-case-skill-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.use-case-skill-icon {
  font-size: 2.5rem;
  background: var(--bg-input);
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

.use-case-skill-details h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.use-case-skill-details p {
  margin: 4px 0 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.use-case-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.2s;
}

.use-case-close-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.use-case-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-main);
}

.use-case-filter-bar {
  padding: 16px 32px;
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-surface);
  overflow-x: auto;
}

.use-case-filter-select {
  padding: 10px 16px;
  min-height: 44px;
  background: var(--bg-input);
  border: 2px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.95rem;
  cursor: pointer;
  min-width: 180px;
  transition: all 0.2s;
}

.use-case-filter-select:hover {
  border-color: var(--primary);
}

.use-case-filter-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.use-case-content-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
  padding-right: 24px;
  scroll-behavior: smooth;
  max-height: calc(85vh - 220px);
}

.use-case-content-scroll::-webkit-scrollbar {
  width: 8px;
}

.use-case-content-scroll::-webkit-scrollbar-track {
  background: var(--bg-surface);
  border-radius: 4px;
}

.use-case-content-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.use-case-content-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

.use-case-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s;
  position: relative;
}

.use-case-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.use-case-card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 12px;
}

.use-case-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.use-case-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.use-case-badge {
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 500;
  text-transform: capitalize;
}

.badge-beginner {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.badge-intermediate {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.badge-advanced {
  background: rgba(249, 115, 22, 0.1);
  color: #f97316;
}

.badge-expert {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.use-case-section {
  margin-bottom: 16px;
}

.use-case-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
}

.use-case-prompt-box {
  background: var(--bg-code);
  padding: 12px;
  border-radius: 8px;
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
  color: var(--text-code);
  border: 1px solid var(--border-light);
  white-space: pre-wrap;
}

.use-case-output {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.use-case-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.use-case-btn {
  flex: 1;
  padding: 10px 16px;
  min-height: 44px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.use-case-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.use-case-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

.use-case-btn.primary {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

.use-case-btn.primary:hover {
  filter: brightness(1.1);
}

/* Add generate button to skill card */
.skill-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.btn-generate-use-cases {
  flex: 1;
  background: var(--gradient-brand);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px;
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 10;
}

.btn-generate-use-cases:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

/* ===== SKILL SHOWCASE SECTION ===== */
.skill-showcase {
  padding: 80px 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.showcase-header {
  text-align: center;
  margin-bottom: 60px;
}

.showcase-header h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  background: var(--gradient-pure);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.showcase-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.showcase-card {
  padding: 32px;
  border-radius: var(--radius-xl);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.showcase-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
  border-color: var(--primary-500);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.card-icon-lg {
  font-size: 2.5rem;
  background: var(--bg-secondary);
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
}

.status-badge.active {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.2);
  background: rgba(16, 185, 129, 0.05);
}

.status-badge.processing {
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.2);
  background: rgba(59, 130, 246, 0.05);
}

.status-badge.monitoring {
  color: var(--fuchsia-500);
  border-color: rgba(139, 92, 246, 0.2);
  background: rgba(139, 92, 246, 0.05);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
  animation: pulse-dot 2s infinite;
}

.showcase-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.showcase-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

/* Simulated Activity Graph */
.card-graph {
  display: flex;
  gap: 4px;
  align-items: flex-end;
  height: 40px;
  opacity: 0.5;
}

.graph-bar {
  flex: 1;
  background: var(--primary-500);
  border-radius: 2px;
  animation: graph-anim 2s infinite ease-in-out;
}

.graph-bar:nth-child(1) {
  animation-delay: 0.1s;
  height: 40%;
}

.graph-bar:nth-child(2) {
  animation-delay: 0.2s;
  height: 70%;
}

.graph-bar:nth-child(3) {
  animation-delay: 0.3s;
  height: 50%;
}

.graph-bar:nth-child(4) {
  animation-delay: 0.4s;
  height: 90%;
}

.graph-bar:nth-child(5) {
  animation-delay: 0.5s;
  height: 60%;
}

.graph-bar:nth-child(6) {
  animation-delay: 0.6s;
  height: 30%;
}

@keyframes graph-anim {

  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.8);
  }

  50% {
    opacity: 1;
    transform: scaleY(1.2);
  }
}

/* Terminal Preview in Card */
.terminal-preview {
  background: #1e1e1e;
  border-radius: 8px;
  padding: 12px;
  font-family: monospace;
  font-size: 0.75rem;
  color: #4ade80;
  margin-top: auto;
  min-height: 80px;
  overflow: hidden;
  position: relative;
}

.terminal-line {
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  animation: typing 2s steps(30, end) infinite;
}

@keyframes typing {
  from {
    width: 0
  }

  to {
    width: 100%
  }
}


/* ========================================
   MOBILE RESPONSIVE & ACCESSIBILITY
   ======================================== */

/* Mobile responsive for Use Case modal */
@media (max-width: 768px) {
  .use-case-modal-content {
    width: 95%;
    max-height: 95vh;
    border-radius: 12px;
  }

  .use-case-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .use-case-filter-bar {
    flex-direction: column;
    gap: 12px;
  }

  .use-case-filter-select {
    width: 100%;
  }

  .use-case-content-scroll {
    padding: 16px;
    max-height: calc(90vh - 200px);
  }

  .use-case-header {
    padding: 16px;
  }

  .use-case-skill-icon {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .use-case-skill-details h2 {
    font-size: 1.2rem;
  }
}

/* Accessibility - Focus styles */
.btn-generate-use-cases:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {

  .use-case-modal-overlay,
  .use-case-modal-content,
  .use-case-btn,
  .use-case-content-scroll {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* Improve button visibility */
.btn-generate-use-cases {
  min-height: 40px;
  padding: 8px 16px;
  font-weight: 500;
}

.btn-generate-use-cases:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

/* ===== USE CASE MODAL ===== */
.use-case-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.use-case-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.use-case-modal-content {
  width: 90%;
  max-width: 1000px;
  height: 85vh;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transform: scale(0.95) translateY(10px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.use-case-modal-overlay.active .use-case-modal-content {
  transform: scale(1) translateY(0);
}

.use-case-header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-primary);
}

.use-case-skill-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.use-case-skill-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--primary-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-600);
}

.use-case-skill-details h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.use-case-skill-details p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.use-case-close-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.use-case-close-btn:hover {
  background: var(--error-500);
  color: white;
  border-color: var(--error-500);
}

.use-case-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.use-case-filter-bar {
  padding: 16px 32px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 12px;
  background: var(--bg-secondary);
}

.use-case-filter-select {
  padding: 8px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
}

.use-case-content-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
  background: var(--bg-primary);
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  padding-bottom: 40px;
}

.use-case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s ease;
}

.use-case-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-400);
  box-shadow: var(--shadow-lg);
}

.use-case-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.use-case-title {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.1rem;
  line-height: 1.4;
}

.use-case-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.use-case-btn:hover {
  opacity: 1;
}

.use-case-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.use-case-badge {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-beginner {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.badge-intermediate {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.badge-advanced {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.use-case-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.use-case-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
}

.use-case-prompt-box {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  border-left: 3px solid var(--primary-500);
}

.use-case-output {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.use-case-actions {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
}

.use-case-actions .use-case-btn {
  flex: 1;
  padding: 8px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--bg-primary);
  color: var(--text-secondary);
  opacity: 1;
}

.use-case-actions .use-case-btn:hover {
  background: var(--bg-secondary);
  border-color: var(--primary-500);
  color: var(--primary-600);
}

.use-case-actions .use-case-btn.primary {
  background: var(--primary-50);
  color: var(--primary-700);
  border-color: var(--primary-200);
}

.use-case-actions .use-case-btn.primary:hover {
  background: var(--primary-100);
}

/* Ensure Use Case Modal Overlay base styles are present */
.use-case-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.use-case-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ===== WORKFLOW MODAL STYLES ===== */

.workflow-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.workflow-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.workflow-modal-content {
  background: var(--bg-card);
  width: 90%;
  max-width: 1400px;
  height: 90vh;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.workflow-modal-overlay.active .workflow-modal-content {
  transform: scale(1);
}

.workflow-header {
  padding: 24px 32px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.workflow-skill-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.workflow-skill-icon {
  font-size: 2.5rem;
  background: var(--bg-input);
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

.workflow-skill-details h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.workflow-skill-details p {
  margin: 4px 0 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.workflow-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.2s;
}

.workflow-close-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.workflow-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-main);
}

.workflow-tabs {
  padding: 16px 32px;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-surface);
  overflow-x: auto;
  flex-wrap: wrap;
}

.workflow-tab {
  padding: 10px 20px;
  min-height: 44px;
  background: var(--bg-input);
  border: 2px solid transparent;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.workflow-tab:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.workflow-tab.active {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
  font-weight: 600;
}

.workflow-content-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px 32px;
  scroll-behavior: smooth;
  height: 100%;
}

.workflow-content-scroll::-webkit-scrollbar {
  width: 8px;
}

.workflow-content-scroll::-webkit-scrollbar-track {
  background: var(--bg-surface);
  border-radius: 4px;
}

.workflow-content-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.workflow-content-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

.workflow-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 20px !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}

.workflow-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  position: relative;
  height: fit-content;
}

.workflow-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.15);
}

.workflow-card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 20px;
  gap: 16px;
}

.workflow-card-title-wrapper {
  display: flex;
  gap: 12px;
  align-items: start;
  flex: 1;
}

.workflow-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.workflow-title {
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 4px;
}

.workflow-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.workflow-compatibility {
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.workflow-compatibility-high {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.workflow-compatibility-medium {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.workflow-compatibility-low {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.workflow-section {
  margin-bottom: 20px;
}

.workflow-section-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.workflow-steps {
  list-style: none;
  counter-reset: step-counter;
  padding-left: 0;
  margin: 0;
}

.workflow-steps li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 36px;
  margin-bottom: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

.workflow-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  background: var(--accent-primary);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

.workflow-tips {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.workflow-tips li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.9rem;
}

.workflow-tips li::before {
  content: '💡';
  position: absolute;
  left: 0;
  top: 0;
}

.workflow-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.workflow-btn {
  flex: 1;
  padding: 12px 18px;
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s;
}

.workflow-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.workflow-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

.workflow-btn.primary {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

.workflow-btn.primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Responsive adjustments for workflow modal */
@media (max-width: 1024px) {
  .workflow-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  .workflow-modal-content {
    width: 95%;
    height: 95vh;
  }

  .workflow-header {
    padding: 16px 20px;
  }

  .workflow-tabs {
    padding: 12px 20px;
  }

  .workflow-content-scroll {
    padding: 20px;
  }

  .workflow-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .workflow-card {
    padding: 16px;
  }

  .workflow-card-header {
    flex-direction: column;
  }

  .workflow-compatibility {
    align-self: flex-start;
  }
}

/* Workflow button on skill card */
.btn-generate-workflow {
  transition: all 0.2s ease;
}

.btn-generate-workflow:hover {
  background: var(--accent-primary) !important;
  color: white !important;
  border-color: var(--accent-primary) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-generate-workflow:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ===== ENHANCED WORKFLOW MODAL STYLES (Phase 1 Rework) ===== */

/* Workflow grid transitions */
.workflow-grid {
  opacity: 1;
  transition: opacity 0.15s ease-in-out;
}

/* Staggered card animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.workflow-card {
  animation: slideInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Time badge */
.workflow-time-badge {
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  font-size: 0.75rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Difficulty badges */
.workflow-difficulty-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.difficulty-beginner {
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.difficulty-intermediate {
  background: rgba(251, 191, 36, 0.15);
  color: #d97706;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.difficulty-advanced {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Platform badges with colors */
.workflow-platform-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-ide {
  background: rgba(0, 122, 204, 0.15);
  color: #007ACC;
  border: 1px solid rgba(0, 122, 204, 0.3);
}

.badge-claude {
  background: rgba(217, 119, 6, 0.15);
  color: #D97706;
  border: 1px solid rgba(217, 119, 6, 0.3);
}

.badge-chatgpt {
  background: rgba(16, 163, 127, 0.15);
  color: #10A37F;
  border: 1px solid rgba(16, 163, 127, 0.3);
}

.badge-gemini {
  background: rgba(66, 133, 244, 0.15);
  color: #4285F4;
  border: 1px solid rgba(66, 133, 244, 0.3);
}

/* Enhanced workflow card */
.workflow-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 16px;
}

.workflow-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.workflow-code-block {
  background: var(--bg-code);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 16px;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-code);
  overflow-x: auto;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.workflow-code-block::-webkit-scrollbar {
  height: 6px;
}

.workflow-code-block::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.workflow-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.workflow-copy-btn {
  background: var(--accent-primary);
  color: white;
  border: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.workflow-copy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.workflow-copy-btn:active {
  transform: translateY(0);
}

.workflow-copy-btn.copied {
  animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

/* Empty state */
.workflow-empty-state {
  text-align: center;
  padding: 60px 20px;
  grid-column: 1 / -1;
}

/* Enhanced accessibility - focus states */
.workflow-tab:focus-visible,
.workflow-close-btn:focus-visible,
.workflow-copy-btn:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.workflow-tab:focus-visible {
  background: var(--bg-hover);
}

/* Tab accessibility improvements */
.workflow-tab[aria-selected="true"] {
  background: var(--accent-primary);
  color: white;
  font-weight: 600;
}

.workflow-tab[aria-selected="false"]:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

/* Close button hover effect */
.workflow-close-btn {
  transition: all 0.2s;
}

.workflow-close-btn:hover {
  background: var(--bg-hover);
  transform: rotate(90deg);
}

/* Card hover effects */
.workflow-card {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.workflow-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.2);
}

/* Dark mode enhancements */
.dark .workflow-code-block {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
}

.dark .workflow-card-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.dark .workflow-card:hover {
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.6);
}

/* Responsive improvements for workflow cards */
@media (max-width: 768px) {
  .workflow-card-header {
    flex-direction: column;
    gap: 12px;
  }

  .workflow-code-block {
    font-size: 0.75rem;
    padding: 12px;
  }

  .workflow-time-badge,
  .workflow-difficulty-badge,
  .workflow-platform-badge {
    font-size: 0.65rem;
    padding: 3px 8px;
  }

  .workflow-actions {
    flex-direction: column;
  }

  .workflow-copy-btn {
    width: 100%;
  }
}


/* ===== PHASE 2: SMART RECOMMENDATIONS ===== */

/* Recommended card styling */
.workflow-card.recommended {
  border-color: var(--accent-primary);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.15);
  position: relative;
}

.workflow-card.recommended:hover {
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.25);
}

/* Recommended ribbon */
.workflow-recommended-ribbon {
  position: absolute;
  top: -1px;
  right: -1px;
  background: linear-gradient(135deg, var(--accent-primary), #8b5cf6);
  color: white;
  padding: 6px 16px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 0 12px 0 12px;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
  z-index: 1;
}

.workflow-recommended-ribbon span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Enhanced badge flex-wrap for mobile */
@media (max-width: 768px) {
  .workflow-card-header>div:last-child {
    justify-content: flex-start;
  }
}

/* Skill profile indicator (for debugging in console) */
.workflow-modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-primary), #8b5cf6);
  opacity: 0.5;
}

/* Dark mode enhancements for recommended cards */
.dark .workflow-card.recommended {
  border-color: var(--fuchsia-500);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.dark .workflow-card.recommended:hover {
  box-shadow: 0 12px 28px rgba(139, 92, 246, 0.4);
}

/* ========================================
   PHASE 3: PREMIUM UI ENHANCEMENTS
   Glass-morphism, Spring Animations, Premium Polish
   ======================================== */

/* Premium Glass-Morphism Modal */
.workflow-modal-overlay {
  background: rgba(0, 0, 0, 0.85) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.workflow-modal-content {
  background: rgba(var(--bg-card-rgb, 255, 255, 255), 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 10px 40px rgba(99, 102, 241, 0.15) !important;
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
}

.dark .workflow-modal-content {
  background: rgba(17, 24, 39, 0.95) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Spring Animation System */
:root {
  --spring-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --spring-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --spring-gentle: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Enhanced Staggered Card Animations */
@keyframes slideInUpSpring {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95) rotate(-1deg);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

.workflow-card {
  animation: slideInUpSpring 0.6s var(--spring-bounce) both !important;
}

.workflow-card:nth-child(1) {
  animation-delay: 0ms;
}

.workflow-card:nth-child(2) {
  animation-delay: 80ms;
}

.workflow-card:nth-child(3) {
  animation-delay: 160ms;
}

.workflow-card:nth-child(4) {
  animation-delay: 240ms;
}

/* Platform-Specific Color Palettes */
.workflow-tab[data-platform="ide"],
.workflow-card[data-platform="ide"] {
  --platform-color: #007ACC;
  --platform-color-rgb: 0, 122, 204;
  --platform-bg: linear-gradient(135deg, rgba(0, 122, 204, 0.15), rgba(0, 122, 204, 0.05));
  --platform-glow: 0 0 30px rgba(0, 122, 204, 0.3);
}

.workflow-tab[data-platform="claude"],
.workflow-card[data-platform="claude"] {
  --platform-color: #D97706;
  --platform-color-rgb: 217, 119, 6;
  --platform-bg: linear-gradient(135deg, rgba(217, 119, 6, 0.15), rgba(217, 119, 6, 0.05));
  --platform-glow: 0 0 30px rgba(217, 119, 6, 0.3);
}

.workflow-tab[data-platform="chatgpt"],
.workflow-card[data-platform="chatgpt"] {
  --platform-color: #10A37F;
  --platform-color-rgb: 16, 163, 127;
  --platform-bg: linear-gradient(135deg, rgba(16, 163, 127, 0.15), rgba(16, 163, 127, 0.05));
  --platform-glow: 0 0 30px rgba(16, 163, 127, 0.3);
}

.workflow-tab[data-platform="gemini"],
.workflow-card[data-platform="gemini"] {
  --platform-color: #4285F4;
  --platform-color-rgb: 66, 133, 244;
  --platform-bg: linear-gradient(135deg, rgba(66, 133, 244, 0.15), rgba(66, 133, 244, 0.05));
  --platform-glow: 0 0 30px rgba(66, 133, 244, 0.3);
}

/* Enhanced Platform Tabs with Glow Effect */
.workflow-tabs {
  position: relative;
  background: rgba(var(--bg-surface-rgb, 249, 250, 251), 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.workflow-tab {
  position: relative;
  transition: all 0.4s var(--spring-smooth);
}

.workflow-tab::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--platform-bg);
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.4s var(--spring-smooth);
  z-index: 0;
}

.workflow-tab:hover::before {
  opacity: 1;
}

.workflow-tab.active {
  color: var(--platform-color) !important;
  font-weight: 700;
  transform: scale(1.02);
}

.workflow-tab.active::before {
  opacity: 1;
  box-shadow: var(--platform-glow);
}

.workflow-tab.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: var(--platform-color);
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(var(--platform-color-rgb), 0.4);
  animation: slideIn 0.3s var(--spring-bounce);
}

@keyframes slideIn {
  from {
    width: 0%;
    opacity: 0;
  }

  to {
    width: 60%;
    opacity: 1;
  }
}

/* Premium Elevated Cards with Platform Colors */
.workflow-card {
  background: var(--bg-card) !important;
  border: 1.5px solid rgba(var(--platform-color-rgb, 99, 102, 241), 0.2) !important;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset !important;
  transition: all 0.4s var(--spring-smooth) !important;
  position: relative;
  overflow: hidden;
}

.workflow-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--platform-bg);
  opacity: 0.8;
}

.workflow-card:hover {
  transform: translateY(-6px) scale(1.02) !important;
  border-color: rgba(var(--platform-color-rgb, 99, 102, 241), 0.4) !important;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.15),
    var(--platform-glow),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset !important;
}

/* Recommended Card Pulse Animation */
.workflow-card.recommended {
  border-color: rgba(139, 92, 246, 0.5) !important;
  animation: recommendedPulse 3s var(--spring-gentle) infinite;
}

@keyframes recommendedPulse {

  0%,
  100% {
    box-shadow:
      0 4px 16px rgba(0, 0, 0, 0.08),
      0 0 0 1px rgba(139, 92, 246, 0.2);
  }

  50% {
    box-shadow:
      0 8px 24px rgba(139, 92, 246, 0.2),
      0 0 0 2px rgba(139, 92, 246, 0.4);
  }
}

.workflow-recommended-ribbon {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.5);
  animation: ribbonShine 2s ease-in-out infinite;
}

@keyframes ribbonShine {

  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.15);
  }
}

/* Enhanced Badge Styling */
.workflow-badge {
  background: rgba(var(--platform-color-rgb, 99, 102, 241), 0.12) !important;
  color: var(--platform-color) !important;
  border: 1px solid rgba(var(--platform-color-rgb, 99, 102, 241), 0.25);
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  transition: all 0.3s var(--spring-smooth);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.workflow-badge:hover {
  background: rgba(var(--platform-color-rgb, 99, 102, 241), 0.2) !important;
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(var(--platform-color-rgb, 99, 102, 241), 0.3);
}

/* Premium Button Microinteractions */
.workflow-action-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--spring-smooth) !important;
}

.workflow-action-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.workflow-action-btn:active::before {
  width: 300px;
  height: 300px;
}

.workflow-action-btn:hover {
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3) !important;
}

.workflow-action-btn:active {
  transform: translateY(0) scale(0.98) !important;
}

/* Premium Typography Enhancement */
.workflow-header h1 {
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.workflow-card-title {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text-primary);
  transition: color 0.3s var(--spring-smooth);
}

.workflow-card:hover .workflow-card-title {
  color: var(--platform-color);
}

/* Premium Scrollbar */
.workflow-body::-webkit-scrollbar {
  width: 8px;
}

.workflow-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.workflow-body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-400), var(--primary-600));
  border-radius: 10px;
  transition: background 0.3s;
}

.workflow-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--primary-500), var(--primary-700));
}

/* Enhanced Step Numbers with Platform Colors */
.workflow-step-num {
  background: var(--platform-color) !important;
  box-shadow: 0 4px 12px rgba(var(--platform-color-rgb), 0.4);
  transition: all 0.3s var(--spring-bounce);
  font-weight: 700;
}

.workflow-step:hover .workflow-step-num {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 6px 16px rgba(var(--platform-color-rgb), 0.6);
}

/* Code Block Premium Styling */
.workflow-code-example {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--platform-color);
  border-radius: 12px;
  padding: 16px;
  font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  overflow-x: auto;
  position: relative;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.dark .workflow-code-example {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Hover Lift Effect for Interactive Elements */
.workflow-step,
.workflow-tip {
  transition: all 0.3s var(--spring-smooth);
}

.workflow-step:hover,
.workflow-tip:hover {
  transform: translateX(4px);
  background: rgba(var(--platform-color-rgb, 99, 102, 241), 0.03);
  border-radius: 12px;
  padding-left: 8px;
  margin-left: -8px;
}

/* Loading Skeleton Animation (for future async content) */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }

  100% {
    background-position: 1000px 0;
  }
}

.workflow-skeleton {
  background: linear-gradient(90deg,
      rgba(0, 0, 0, 0.03) 25%,
      rgba(0, 0, 0, 0.06) 50%,
      rgba(0, 0, 0, 0.03) 75%);
  background-size: 2000px 100%;
  animation: shimmer 2s infinite;
  border-radius: 8px;
}

/* Modal Header Gradient Overlay */
.workflow-header {
  position: relative;
  background: linear-gradient(135deg,
      rgba(99, 102, 241, 0.03) 0%,
      rgba(139, 92, 246, 0.03) 100%);
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

/* Enhanced Close Button */
.workflow-close-btn {
  transition: all 0.3s var(--spring-bounce) !important;
  background: rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.workflow-close-btn:hover {
  background: rgba(239, 68, 68, 0.1) !important;
  color: #ef4444 !important;
  transform: scale(1.1) rotate(90deg) !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.workflow-close-btn:active {
  transform: scale(0.95) rotate(90deg) !important;
}

/* Responsive Premium Enhancements */
@media (max-width: 768px) {
  .workflow-modal-content {
    border-radius: 24px 24px 0 0;
    margin-top: auto;
  }

  .workflow-card:hover {
    transform: translateY(-3px) scale(1.01) !important;
  }

  .workflow-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Premium Skill Detail Modal */
.full-screen-modal {
  max-width: 1240px;
  width: 95vw;
  height: 90vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-header-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.modal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  gap: 16px;
  flex-wrap: wrap;
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-action {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg-primary);
  color: var(--text-secondary);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.btn-action:hover {
  background: var(--bg-tertiary);
  border-color: var(--primary-300);
  color: var(--primary-600);
  transform: translateY(-1px);
}

.btn-action span {
  font-size: 1rem;
}

.modal-body {
  flex: 1;
  display: grid !important;
  grid-template-columns: 1fr 320px !important;
  overflow: hidden;
}

.modal-content-main {
  padding: 40px;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.modal-sidebar {
  padding: 32px 24px;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.quality-ring {
  position: relative;
  display: inline-block;
  margin-bottom: 8px;
}

.suggestion-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.suggestion-card:hover {
  border-color: var(--primary-200);
  box-shadow: var(--shadow-sm);
}

.sug-type {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
}

.sug-high {
  background: var(--error-100);
  color: var(--error-700);
}

.sug-medium {
  background: var(--warning-100);
  color: var(--warning-700);
}

.sug-low {
  background: var(--success-100);
  color: var(--success-700);
}

/* ===== EDITOR MODAL ===== */
.editor-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.editor-modal .modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  width: 95vw;
  max-width: 1400px;
  height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.editor-modal .modal-header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  flex-shrink: 0;
}

.editor-modal .modal-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
}

.editor-modal .modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.editor-modal .modal-close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.editor-modal .modal {
  width: 95vw;
  max-width: 1400px;
  height: 90vh;
}

.editor-modal .modal-body {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: 1fr !important;
  padding: 32px 40px !important;
  overflow-y: auto !important;
  flex: 1;
  background: var(--bg-primary);
}

.editor-modal label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.editor-modal input,
.editor-modal textarea {
  width: 100% !important;
  max-width: 100% !important;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.2s ease;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.editor-modal input:focus,
.editor-modal textarea:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.editor-modal textarea {
  flex: 1;
  min-height: 500px;
  resize: none;
  line-height: 1.6;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 1.05rem;
  background: var(--bg-surface);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 32px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-footer .btn {
  padding: 10px 24px;
  font-weight: 600;
  border-radius: 8px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.skill-breadcrumbs span {
  transition: color 0.2s;
}

.skill-breadcrumbs span:hover {
  color: var(--primary-500);
}

/* History Modal Specifics */
.history-item:hover {
  background: var(--bg-tertiary) !important;
}

.history-item.active {
  background: var(--bg-tertiary) !important;
  border-left: 4px solid var(--primary-500) !important;
}

.diff-view {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.5;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.diff-line {
  display: flex;
  padding: 0 12px;
}

.diff-line-prefix {
  width: 24px;
  opacity: 0.5;
  user-select: none;
  flex-shrink: 0;
}

.diff-line-content {
  flex: 1;
  white-space: pre-wrap;
  word-break: break-all;
}

.diff-added {
  background: rgba(34, 197, 94, 0.1);
  color: #166534;
}

.diff-removed {
  background: rgba(239, 68, 68, 0.1);
  color: #991b1b;
}

/* ═══════════════════════════════════════════════════════════
   MISSING VARIABLES — Neutral Colors & Gradient Primary
═══════════════════════════════════════════════════════════ */
:root {
  --neutral-100: #f5f5f5;
  --neutral-200: #e5e5e5;
  --neutral-300: #d4d4d4;
  --neutral-400: #a3a3a3;
  --neutral-500: #737373;
  --neutral-600: #525252;
  --neutral-700: #404040;
  --neutral-800: #262626;
  --neutral-900: #171717;
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --neon-cyan: #22d3ee;
  --bg-tertiary: rgba(99, 102, 241, 0.06);
  --primary: #6366f1;
  --primary-rgb: 99, 102, 241;
  --success: #10b981;
  --success-rgb: 16, 185, 129;
}

.dark {
  --neutral-300: #525252;
  --neutral-400: #737373;
  --neutral-700: #404040;
  --bg-tertiary: rgba(99, 102, 241, 0.1);
}

/* ═══════════════════════════════════════════════════════════
   PAGE LAYOUT — Content Wrapper (fixes navbar overlap)
═══════════════════════════════════════════════════════════ */
.dashboard-page,
.github-page,
.about-page,
.openclaw-page,
.collections-page,
.collection-detail-page,
.sources-overview-page,
.landing-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
}

.content-wrapper {
  padding-top: var(--nav-height);
  flex: 1;
  min-height: calc(100vh - var(--nav-height));
  background: var(--bg-primary);
}

/* Dashboard specific content wrapper */
.dashboard-page .content-wrapper {
  background: var(--bg-primary);
  padding-top: calc(var(--nav-height) + 24px);
}

/* All page content wrappers use consistent background */
.github-page .content-wrapper,
.openclaw-page .content-wrapper,
.collections-page .content-wrapper,
.collection-detail-page .content-wrapper,
.sources-overview-page .content-wrapper {
  background: var(--bg-primary);
  padding-top: var(--nav-height);
}

/* ═══════════════════════════════════════════════════════════
   DASHBOARD HEADER ACTIONS & FILTER SPACER
═══════════════════════════════════════════════════════════ */
.dash-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.filter-spacer {
  display: none;
}

/* Sort Select Styling @aurora */
.sort-wrapper {
  position: relative;
  flex-shrink: 0;
}

.sort-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 10px 40px 10px 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.25s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  min-width: 170px;
  box-shadow: var(--shadow-xs);
}

.sort-select:focus {
  outline: none;
  border-color: var(--primary-500);
  background: var(--bg-primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.sort-select:hover {
  border-color: var(--primary-400);
  transform: translateY(-1px);
}

.dark .sort-select {
  background-color: var(--bg-secondary);
}

/* ═══════════════════════════════════════════════════════════
   GITHUB EXPLORER LAYOUT (sidebar + main grid)
═══════════════════════════════════════════════════════════ */
.github-explorer {
  display: grid;
  grid-template-columns: 220px 1fr;
  max-width: 1360px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  gap: 28px;
  align-items: start;
}

@media (max-width: 900px) {
  .github-explorer {
    grid-template-columns: 1fr;
  }
}

.github-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 16px);
}

.github-filter-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.github-filter-section h3 {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: 14px;
}

.github-cat-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 9px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  margin-bottom: 4px;
}

.github-cat-btn:hover {
  background: var(--bg-hover);
  color: var(--primary-500);
  border-color: var(--border);
}

.github-cat-btn.active {
  background: var(--primary-50);
  color: var(--primary-600);
  border-color: var(--primary-200);
  font-weight: 700;
}

.dark .github-cat-btn.active {
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary-400);
  border-color: rgba(99, 102, 241, 0.25);
}

.github-main {
  min-width: 0;
}

/* GitHub Card (used in github.view.ts template) */
.github-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.github-repo-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.dark .github-repo-icon {
  background: rgba(99, 102, 241, 0.1);
}

.github-repo-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-top: 4px;
}

.github-repo-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.github-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.github-link {
  font-size: 0.82rem;
  color: var(--primary-500);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.github-link:hover {
  color: var(--primary-600);
  text-decoration: underline;
}

.dark .github-link {
  color: var(--primary-400);
}

.imported-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--success-500);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

.github-card.imported {
  border-color: rgba(16, 185, 129, 0.2);
}

/* ═══════════════════════════════════════════════════════════
   ABOUT / MISSION PAGE
═══════════════════════════════════════════════════════════ */
.about-page .content-wrapper {
  background: var(--bg-primary);
  padding-top: calc(var(--nav-height) + 48px);
}

.mission-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.mission-section h1 {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  font-family: var(--font-display);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
}

.mission-section p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

/* ═══════════════════════════════════════════════════════════
   SKILL CARD ACTIONS (bottom action row)
═══════════════════════════════════════════════════════════ */
.skill-card-actions {
  display: flex;
  gap: 6px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.skill-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--radius-md);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.skill-action-btn:hover {
  background: var(--primary-50);
  border-color: var(--primary-300);
  color: var(--primary-600);
  transform: translateY(-1px);
}

.dark .skill-action-btn:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
  color: var(--primary-400);
}

.skill-action-btn.favorite-btn.active {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--warning-500);
}

/* ═══════════════════════════════════════════════════════════
   SCROLLBAR FIXES (use defined variables)
═══════════════════════════════════════════════════════════ */
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-500);
}

.dark ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
}

/* ═══════════════════════════════════════════════════════════
   FOOTER SPACING FIX
═══════════════════════════════════════════════════════════ */
footer,
.footer {
  margin-top: auto;
}

/* ═══════════════════════════════════════════════════════════
   DARK MODE DIFF VIEW FIX
═══════════════════════════════════════════════════════════ */
.dark .diff-added {
  background: rgba(34, 197, 94, 0.08);
  color: #4ade80;
}

.dark .diff-removed {
  background: rgba(239, 68, 68, 0.08);
  color: #f87171;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE FIXES
═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .dash-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .dash-header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .dash-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .dash-search-container {
    min-width: unset;
    width: 100%;
  }

  .filter-spacer {
    display: none;
  }

  .dash-actions {
    display: flex;
    gap: 8px;
    justify-content: space-between;
  }

  .sort-select {
    min-width: unset;
    flex: 1;
  }

  .github-explorer {
    padding: 16px 16px 48px;
    gap: 16px;
  }

  .github-sidebar {
    position: static;
  }

  .github-filter-section {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px;
  }

  .github-filter-section h3 {
    width: 100%;
    margin-bottom: 4px;
  }

  .github-cat-btn {
    width: auto;
    flex: 0 0 auto;
    margin-bottom: 0;
    font-size: 0.78rem;
    padding: 6px 12px;
  }
}

/* ═══════════════════════════════════════════════════════════
   LANDING V3 COMPONENTS
   ═══════════════════════════════════════════════════════════ */

.features-grid-v3 {
  padding: 80px 24px;
  background: var(--bg-primary);
  display: flex;
  justify-content: center;
}

.features-container {
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  width: 100%;
}

.feature-card-v3 {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 40px 32px;
  border-radius: var(--radius-xxl);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.feature-card-v3:hover {
  transform: translateY(-8px);
  border-color: var(--primary-400);
  box-shadow: var(--shadow-lg);
}

.feature-icon-v3 {
  font-size: 2.2rem;
  margin-bottom: 24px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-50);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.dark .feature-icon-v3 {
  background: var(--bg-secondary);
}

.feature-card-v3 h4 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-primary);
  font-family: var(--font-display);
}

.feature-card-v3 p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Skill Showcase */
.skill-showcase {
  padding: 100px 24px;
  background: var(--bg-secondary);
  text-align: center;
}

.showcase-header {
  margin-bottom: 60px;
}

.showcase-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.showcase-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.showcase-card {
  padding: 32px;
  text-align: left;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.card-icon-lg {
  font-size: 2rem;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(0, 0, 0, 0.05);
}

.status-badge.ready {
  color: var(--success-500);
  background: rgba(16, 185, 129, 0.1);
}

.status-badge.processing {
  color: var(--warning-500);
  background: rgba(245, 158, 11, 0.1);
}

.status-badge.active {
  color: var(--primary-500);
  background: rgba(99, 102, 241, 0.1);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.terminal-preview {
  margin-top: 20px;
  border-left: 2px solid var(--primary-400);
}

/* ═══════════════════════════════════════════════════════════
   OPENCLAW INTEGRATION STYLES
   Official OpenClaw skills integration UI
   ═══════════════════════════════════════════════════════════ */

/* OpenClaw Page Container */
.openclaw-page {
  min-height: 100vh;
  background: var(--bg-primary);
}

.openclaw-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 32px 24px;
}

/* ═══════════════════════════════════════════════════════════
   UNIFIED PAGE HEADERS — Aurora Brand Style
═══════════════════════════════════════════════════════════ */
.page-header-bg,
.openclaw-header-bg,
.sources-hero {
  background: var(--gradient-aurora);
  padding: 48px 24px;
  color: white;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── Text visibility overrides inside gradient page headers ── */
.page-header-bg .dash-header h1,
.openclaw-header-bg .dash-header h1,
.sources-hero .dash-header h1 {
  color: #ffffff !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: #ffffff !important;
}

.page-header-bg .dash-header p,
.openclaw-header-bg .dash-header p,
.sources-hero .dash-header p {
  color: rgba(255, 255, 255, 0.82) !important;
  opacity: 1 !important;
}

.page-header-bg .hero-badge,
.openclaw-header-bg .hero-badge,
.sources-hero .hero-badge {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
}

.page-header-bg .stat-chip,
.openclaw-header-bg .stat-chip,
.sources-hero .stat-chip {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

.page-header-bg .stat-chip strong,
.openclaw-header-bg .stat-chip strong,
.sources-hero .stat-chip strong {
  color: #ffffff !important;
}

.page-header-bg .header-icon,
.openclaw-header-bg .header-icon,
.sources-hero .header-icon {
  filter: brightness(1.2);
}

.page-header-bg::before,
.openclaw-header-bg::before,
.sources-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.08)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
  pointer-events: none;
}

.openclaw-logo {
  font-size: 2.5rem;
  margin-right: 12px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* OpenClaw Notice Banner — Aurora Style */
.openclaw-notice {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--gradient-subtle);
  border: 2px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.openclaw-notice-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.openclaw-notice-content {
  color: var(--text-primary);
  line-height: 1.6;
}

.openclaw-notice-content strong {
  color: var(--primary-600);
  font-weight: 700;
}

.dark .openclaw-notice-content strong {
  color: var(--primary-400);
}

/* OpenClaw Stats Bar */
.openclaw-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.openclaw-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}

.openclaw-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-400);
}

.openclaw-stat-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.openclaw-stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-aurora);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.openclaw-stat-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* OpenClaw Filters */
.openclaw-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.openclaw-filter-btn {
  padding: 10px 20px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.openclaw-filter-btn:hover {
  background: var(--bg-hover);
  border-color: var(--primary-400);
  transform: translateY(-2px);
}

.openclaw-filter-btn.active {
  background: var(--gradient-aurora);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

/* OpenClaw Skills Grid */
.openclaw-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

/* OpenClaw Skill Card Badge — Aurora Style */
.openclaw-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gradient-aurora);
  color: white;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-sm);
  margin-right: auto;
}

.openclaw-skill-card {
  border: 2px solid var(--border-glow);
  position: relative;
  overflow: hidden;
}

.openclaw-skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-aurora);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.openclaw-skill-card:hover::before {
  opacity: 1;
}

.openclaw-skill-card:hover {
  border-color: var(--primary-400);
  box-shadow: var(--shadow-lg);
}

/* OpenClaw Empty State */
.openclaw-empty {
  padding: 80px 24px;
  text-align: center;
}

/* Sync Progress Modal */
.sync-progress {
  width: 100%;
  height: 8px;
  background: var(--bg-surface);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
}

.sync-progress-bar {
  height: 100%;
  background: var(--gradient-aurora);
  transition: width 0.3s ease;
  border-radius: var(--radius-sm);
}

.sync-progress-text {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.sync-current-skill {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-family: var(--font-mono);
}

.sync-spinner {
  animation: spin 1s linear infinite;
  font-size: 1.2rem;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .openclaw-header-bg {
    padding: 32px 16px;
  }

  .openclaw-stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .openclaw-skills-grid {
    grid-template-columns: 1fr;
  }

  .openclaw-container {
    padding: 24px 16px;
  }
}

/* ═══════════════════════════════════════════════════════════
   NAV DROPDOWN — Sources Menu
═══════════════════════════════════════════════════════════ */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.88rem;
  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}

.nav-dropdown-trigger:hover,
.nav-dropdown-trigger.active {
  color: var(--primary-500);
  background: var(--primary-50);
}

.dark .nav-dropdown-trigger:hover,
.dark .nav-dropdown-trigger.active {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-400);
}

.nav-dropdown-trigger.active {
  color: var(--primary-600);
  background: var(--primary-100);
  font-weight: 600;
}

.dark .nav-dropdown-trigger.active {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-400);
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.dropdown-chevron {
  transition: transform 0.2s ease;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-dropdown-menu.open~.nav-dropdown-trigger .dropdown-chevron,
.nav-dropdown-trigger:has(+ .nav-dropdown-menu.open) .dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(24px);
  padding: 8px;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.nav-dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}

.dark .nav-dropdown-menu {
  background: var(--bg-card);
  border-color: var(--border);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.7), 0 4px 16px rgba(0, 0, 0, 0.5);
}

.dropdown-header {
  padding: 8px 12px 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
}

.dropdown-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.dropdown-item.active {
  background: var(--primary-50);
  color: var(--primary-600);
  font-weight: 600;
}

.dark .dropdown-item.active {
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary-400);
}

.dropdown-item-icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.dropdown-item-content {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.dropdown-item-name {
  flex: 1;
}

.dropdown-item-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   SOURCE PAGES — External Source View
═══════════════════════════════════════════════════════════ */
.source-page {
  min-height: 100vh;
  background: var(--bg-primary);
}

.source-header-bg {
  padding: 100px 32px 48px;
  position: relative;
  overflow: hidden;
}

.source-header-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.35) 100%);
}

.source-header-bg .dash-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.source-header-bg h1 {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
  margin: 0;
}

.source-logo {
  font-size: 2.4rem;
  line-height: 1;
}

.source-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 32px 32px 80px;
}

/* Source Notice Banner */
.source-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 24px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  backdrop-filter: blur(8px);
}

.source-notice-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.source-notice-content strong {
  color: var(--text-primary);
}

/* Source Stats Bar */
.source-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.source-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.source-stat-card:hover {
  border-color: var(--primary-500);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.source-stat-icon {
  font-size: 1.5rem;
}

.source-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-aurora);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.04em;
  line-height: 1;
}

.source-stat-label {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Source Skills Grid */
.source-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

/* Source Empty State */
.source-empty {
  text-align: center;
  padding: 80px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xxl);
  backdrop-filter: blur(8px);
}

/* Sync Spinner */
.sync-spinner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }
}

/* Sync Progress Modal */
.sync-progress {
  width: 100%;
  height: 8px;
  background: var(--bg-primary);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 16px;
}

.sync-progress-bar {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.sync-progress-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.sync-current-skill {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Responsive */
@media (max-width: 1024px) {
  .source-stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .source-header-bg {
    padding: 90px 16px 32px;
  }

  .source-header-bg h1 {
    font-size: 1.6rem;
  }

  .source-stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .source-container {
    padding: 24px 16px 60px;
  }

  .source-skills-grid {
    grid-template-columns: 1fr;
  }

  .nav-dropdown-menu {
    left: 0;
    transform: translateX(0) translateY(-8px);
    width: 260px;
  }

  .nav-dropdown-menu.open {
    transform: translateX(0) translateY(0);
  }
}

/* ═══════════════════════════════════════════════════════════
   DROPDOWN DIVIDER
═══════════════════════════════════════════════════════════ */
.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 8px;
}

.dropdown-item-all {
  background: var(--gradient-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 2px;
}

/* ═══════════════════════════════════════════════════════════
   SOURCES OVERVIEW PAGE
═══════════════════════════════════════════════════════════ */
.sources-overview-page {
  min-height: 100vh;
  background: var(--bg-primary);
}

/* Hero - using unified header style from above, customize padding/layout */
.sources-hero {
  padding: 80px 32px 60px;
  text-align: center;
}

.sources-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.dark .sources-hero-bg {
  background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
}

.sources-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.sources-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  color: var(--primary-600);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}

.dark .sources-hero-badge {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.2);
  color: var(--primary-400);
}

.sources-hero h1 {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--text-primary);
  margin-bottom: 16px;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sources-hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* Overview Stats Bar */
.sources-overview-stats {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xxl);
  padding: 16px 32px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
}

.sources-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
}

.sources-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sources-stat-label {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

.sources-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* Container */
.sources-overview-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}

.sources-section-header {
  margin-bottom: 32px;
}

.sources-section-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.sources-section-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Sources Grid */
.sources-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* Source Card */
.source-overview-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xxl);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.source-overview-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-500);
  box-shadow: var(--shadow-xl);
}

.source-card-header {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.source-card-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.source-card-icon {
  font-size: 3rem;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.source-overview-card:hover .source-card-icon {
  transform: scale(1.15) rotate(-5deg);
}

.source-card-official {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  backdrop-filter: blur(8px);
  z-index: 1;
}

.source-card-body {
  padding: 20px 20px 12px;
}

.source-card-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.source-card-desc {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.source-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.source-meta-chip {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.source-meta-imported {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
  color: var(--success-500);
}

.source-card-footer {
  padding: 12px 20px 20px;
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--border);
}

.source-explore-btn {
  flex: 1;
}

/* Responsive */
@media (max-width: 1024px) {
  .sources-overview-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

@media (max-width: 768px) {
  .sources-hero {
    padding: 100px 16px 48px;
  }

  .sources-hero h1 {
    font-size: 2rem;
  }

  .sources-overview-stats {
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 20px;
  }

  .sources-stat-divider {
    display: none;
  }

  .sources-stat {
    padding: 0 12px;
  }

  .sources-overview-container {
    padding: 32px 16px 60px;
  }

  .sources-overview-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   COMMAND PALETTE
   VS Code-style Ctrl+K search overlay
   ============================================================ */

.palette-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: clamp(60px, 12vh, 120px);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: paletteOverlayIn 0.15s ease;
}

@keyframes paletteOverlayIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.palette-overlay.palette-closing {
  animation: paletteOverlayOut 0.18s ease forwards;
}

@keyframes paletteOverlayOut {
  to {
    opacity: 0;
  }
}

.palette-container {
  width: 100%;
  max-width: 640px;
  margin: 0 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 24px 80px rgba(0, 0, 0, 0.5),
    0 8px 24px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: paletteSlideIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes paletteSlideIn {
  from {
    opacity: 0;
    transform: translateY(-16px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Search Bar */
.palette-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated, var(--bg-card));
}

.palette-search-icon {
  font-size: 1rem;
  opacity: 0.5;
  flex-shrink: 0;
}

.palette-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  font-family: inherit;
  caret-color: var(--accent);
}

.palette-input::placeholder {
  color: var(--text-tertiary, var(--text-secondary));
  font-weight: 400;
}

.palette-clear-btn {
  background: var(--bg-hover, rgba(255, 255, 255, 0.06));
  border: none;
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.75rem;
  padding: 3px 7px;
  transition: all 0.15s;
  flex-shrink: 0;
}

.palette-clear-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.palette-esc-hint {
  font-size: 0.7rem;
  color: var(--text-tertiary, var(--text-secondary));
  background: var(--bg-hover, rgba(255, 255, 255, 0.06));
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 6px;
  flex-shrink: 0;
  font-family: inherit;
}

/* Results List */
.palette-results {
  max-height: 420px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.palette-results::-webkit-scrollbar {
  width: 4px;
}

.palette-results::-webkit-scrollbar-track {
  background: transparent;
}

.palette-results::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

/* Section Headers */
.palette-section-header {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary, var(--text-secondary));
  padding: 10px 16px 4px;
  opacity: 0.7;
}

/* Result Items */
.palette-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  cursor: pointer;
  border-radius: 8px;
  margin: 1px 6px;
  transition: background 0.1s;
  position: relative;
}

.palette-result-item:hover,
.palette-result-item.selected {
  background: rgba(99, 102, 241, 0.1);
}

.palette-result-item.selected::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}

.palette-result-icon {
  font-size: 1.1rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 7px;
}

.palette-result-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.palette-result-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.palette-result-subtitle {
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.palette-result-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.palette-result-badge {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 20px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.palette-shortcut {
  font-size: 0.65rem;
  color: var(--text-tertiary, var(--text-secondary));
  background: var(--bg-hover, rgba(255, 255, 255, 0.06));
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: inherit;
  white-space: nowrap;
}

/* Empty / Hint State */
.palette-empty-hint {
  padding: 32px 20px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

.palette-empty-hint strong {
  color: var(--text-primary);
}

/* Footer */
.palette-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated, rgba(255, 255, 255, 0.02));
}

.palette-footer-hint {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  color: var(--text-tertiary, var(--text-secondary));
}

.palette-footer-hint kbd {
  font-size: 0.65rem;
  background: var(--bg-hover, rgba(255, 255, 255, 0.06));
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: inherit;
  color: var(--text-secondary);
}

.palette-footer-count {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--text-tertiary, var(--text-secondary));
  background: rgba(99, 102, 241, 0.1);
  padding: 2px 8px;
  border-radius: 20px;
}



/* ═══════════════════════════════════════════════════════════
   LANDING PAGE V4 — "Aurora" Premium Styles
   ═══════════════════════════════════════════════════════════ */

.hero-compact {
  padding: 180px 24px 100px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, var(--primary-100) 0%, transparent 50%);
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dark .hero-compact {
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.1) 0%, transparent 60%);
}

.hero-compact h1 {
  font-size: clamp(3.5rem, 10vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  margin-bottom: 24px;
}

.hero-compact h1 span {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-compact p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Features Grid V3 */
.features-grid-v3 {
  padding: 100px 24px;
  background: var(--bg-primary);
}

.features-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.feature-card-v3 {
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius-xxl);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.feature-card-v3:hover {
  transform: translateY(-8px);
  border-color: var(--primary-500);
  box-shadow: var(--shadow-xl);
}

.feature-icon-v3 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}

/* Showcase Grid */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 40px auto 0;
}

/* CTA V2 */
.cta-v2 {
  padding: 120px 24px;
  text-align: center;
  background: var(--gradient-subtle);
  border-radius: var(--radius-xxl);
  margin: 80px 24px;
}

@media (max-width: 768px) {
  .showcase-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE RESPONSIVENESS — "Aurora" Adaptive Layer
   ═══════════════════════════════════════════════════════════ */

/* Mobile Palette Adjustments */
@media (max-width: 640px) {
  .palette-overlay {
    padding-top: 0;
    align-items: flex-end;
  }

  .palette-container {
    margin: 0;
    border-radius: 20px 20px 0 0;
    max-height: 80vh;
  }

  .palette-results {
    max-height: 55vh;
  }
}

@media (max-width: 1024px) {
  .nav-container {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
    /* Hidden by default on tablet/mobile */
  }

  .nav-links.mobile-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    padding: 24px;
    border-bottom: 2px solid var(--primary-500);
    gap: 12px;
    box-shadow: var(--shadow-xl);
    z-index: 2000;
    animation: slideDown 0.3s ease forwards;
  }

  @keyframes slideDown {
    from {
      transform: translateY(-10px);
      opacity: 0;
    }

    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  .nav-links.mobile-active a {
    width: 100%;
    padding: 14px 20px;
    font-size: 1.1rem;
    border-radius: var(--radius-lg);
    background: var(--bg-hover);
  }

  .nav-search {
    width: 160px;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .nav-search {
    display: none;
  }

  .nav-logo span {
    display: none;
  }

  .hero {
    padding: 120px 20px 60px;
  }

  .hero h1 {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 24px;
  }

  .dash-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .dash-header-actions {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 8px;
    display: flex;
    justify-content: flex-start;
    gap: 12px;
  }

  .dash-filter-controls {
    flex-direction: column;
    gap: 16px;
  }

  .filter-group {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 8px;
    white-space: nowrap;
    display: flex;
    gap: 8px;
  }

  .skills-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .content-wrapper {
    padding: 80px 16px 40px;
  }

  .modal {
    width: 95% !important;
    margin: 10px;
    max-height: 90vh;
    border-radius: 20px;
  }

  .modal-header h2 {
    font-size: 1.25rem;
  }

  .modal-body {
    padding: 20px;
  }

  /* Stat chips row */
  .dash-stats-row {
    flex-wrap: wrap;
    gap: 10px;
  }

  .stat-separator {
    display: none;
  }
}

/* Hamburger Menu Icon */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  padding: 10px;
  width: 42px;
  height: 42px;
  z-index: 1001;
  transition: all 0.2s;
}

@media (max-width: 1024px) {
  .nav-mobile-toggle {
    display: flex;
  }
}

.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Floating Search Trigger */
.mobile-search-trigger {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-aurora);
  color: white;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.5);
  z-index: 900;
  cursor: pointer;
  border: none;
  transition: transform 0.2s;
}

.mobile-search-trigger:active {
  transform: scale(0.9);
}

@media (max-width: 768px) {
  .mobile-search-trigger {
    display: flex;
  }
}

/* ═══════════════════════════════════════════════════════════
   ANALYTICS DASHBOARD — Aurora Theme
═══════════════════════════════════════════════════════════ */
.analytics-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
}

.analytics-content {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 110px 24px 80px;
}

@media (max-width: 768px) {
  .analytics-content {
    padding-top: 100px;
  }
}

.analytics-header {
  margin-bottom: 32px;
  animation: fadeIn 0.4s ease;
}

.analytics-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: transform 0.2s;
}

.charts-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

@media (max-width: 1024px) {
  .charts-grid {
    grid-template-columns: 1fr;
  }
}

.chart-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

/* ========================================
   COLLECTIONS
   ======================================== */

/* Collections Grid */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

@media (max-width: 768px) {
  .collections-grid {
    grid-template-columns: 1fr;
  }
}

/* Collection Card — Aurora Style */
.collection-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(8px);
}

.collection-card:hover {
  border-color: var(--primary-400);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.collection-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.collection-content {
  flex: 1;
  min-width: 0;
}

.collection-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px 0;
}

.collection-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0 0 12px 0;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.collection-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.collection-skill-count {
  display: flex;
  align-items: center;
  gap: 4px;
}

.collection-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* Collection Modal */
.icon-picker,
.color-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.icon-option,
.color-option {
  width: 44px;
  height: 44px;
  border: 2px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--card-bg);
  font-size: 1.5rem;
}

.icon-option:hover,
.color-option:hover {
  border-color: var(--primary);
  transform: scale(1.1);
}

.icon-option.selected,
.color-option.selected {
  border-color: var(--primary);
  border-width: 3px;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.color-option {
  font-size: 0;
}

/* Collection Detail Page */
.collection-detail-page {
  min-height: 100vh;
}

.collection-header {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  border-left: 4px solid var(--primary);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 64px 20px;
  color: var(--text-secondary);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.empty-state p {
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

/* Modal Overlay for Collections */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.modal-content {
  background: var(--card-bg);
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

.modal-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.btn-close {
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--text-secondary);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s;
}

.btn-close:hover {
  background: var(--hover-bg);
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.form-input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

textarea.form-input {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

/* ═══════════════════════════════════════════════════════════
   AURORA LAYOUT & PAGE HEADER
   ═════════════════════════════════════════════════ */

.dash-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px 80px;
}

.page-header {
  position: relative;
  overflow: hidden;
  padding: 140px 0 100px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}

.dash-header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.openclaw-header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.12), transparent 40%),
    radial-gradient(circle at bottom left, rgba(6, 182, 212, 0.08), transparent 40%);
  z-index: 0;
}

.page-header-content {
  position: relative;
  z-index: 10;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary-500);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  border: 1px solid rgba(var(--primary-rgb), 0.2);
}

.page-header h1 {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.page-header .subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.6;
}

.header-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.header-stats {
  display: flex;
  gap: 48px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.header-stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.header-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.header-stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Empty State Modern Refinement */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 32px;
  text-align: center;
  background: var(--bg-card);
  border: 2px dashed var(--border);
  border-radius: var(--radius-xxl);
  margin: 40px 0;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 24px;
  opacity: 0.3;
}

.empty-state h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.empty-state p {
  color: var(--text-secondary);
  max-width: 400px;
  margin-bottom: 32px;
  line-height: 1.6;
}

/* Animations Row */
.animate-in {
  animation: slideUpFade 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

/* External Source Badges */
.openclaw-badge,
.anthropic-badge,
.virtual-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-right: 8px;
  letter-spacing: 0.02em;
  gap: 4px;
}

.openclaw-badge {
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary-600);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
}

.anthropic-badge {
  background: rgba(235, 126, 73, 0.1);
  color: #eb7e49;
  border: 1px solid rgba(235, 126, 73, 0.2);
}

.virtual-badge {
  background: rgba(96, 165, 250, 0.1);
  color: #3b82f6;
  border: 1px dashed rgba(96, 165, 250, 0.3);
}

.virtual-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #3b82f6;
  border-radius: 50%;
  box-shadow: 0 0 8px #3b82f6;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}/* ===== SKILL SHOWCASE SECTION ===== */
.skill-showcase {
    padding: 80px 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.showcase-header {
    text-align: center;
    margin-bottom: 60px;
}

.showcase-header h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: var(--gradient-pure);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.showcase-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.showcase-card {
    padding: 32px;
    border-radius: var(--radius-xl);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.showcase-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-500);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.card-icon-lg {
    font-size: 2.5rem;
    background: var(--bg-secondary);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

.status-badge.active {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.05);
}

.status-badge.processing {
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.2);
    background: rgba(59, 130, 246, 0.05);
}

.status-badge.monitoring {
    color: #8b5cf6;
    border-color: rgba(139, 92, 246, 0.2);
    background: rgba(139, 92, 246, 0.05);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
    animation: pulse-dot 2s infinite;
}

.showcase-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.showcase-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

/* Simulated Activity Graph */
.card-graph {
    display: flex;
    gap: 4px;
    align-items: flex-end;
    height: 40px;
    opacity: 0.5;
}

.graph-bar {
    flex: 1;
    background: var(--primary-500);
    border-radius: 2px;
    animation: graph-anim 2s infinite ease-in-out;
}

.graph-bar:nth-child(1) {
    animation-delay: 0.1s;
    height: 40%;
}

.graph-bar:nth-child(2) {
    animation-delay: 0.2s;
    height: 70%;
}

.graph-bar:nth-child(3) {
    animation-delay: 0.3s;
    height: 50%;
}

.graph-bar:nth-child(4) {
    animation-delay: 0.4s;
    height: 90%;
}

.graph-bar:nth-child(5) {
    animation-delay: 0.5s;
    height: 60%;
}

.graph-bar:nth-child(6) {
    animation-delay: 0.6s;
    height: 30%;
}

@keyframes graph-anim {

    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(0.8);
    }

    50% {
        opacity: 1;
        transform: scaleY(1.2);
    }
}

/* Terminal Preview in Card */
.terminal-preview {
    background: #1e1e1e;
    border-radius: 8px;
    padding: 12px;
    font-family: monospace;
    font-size: 0.75rem;
    color: #4ade80;
    margin-top: auto;
    min-height: 80px;
    overflow: hidden;
    position: relative;
}

.terminal-line {
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    animation: typing 2s steps(30, end) infinite;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}/* ===== WORKFLOW MODAL STYLES (Platform Guide) ===== */
/* Standardized Modal Overlay used now */

/* Standardized Modal Content (class .modal) used now */

.workflow-header {
    padding: 24px 32px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

.workflow-skill-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.workflow-skill-icon {
    font-size: 2rem;
    width: 48px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.workflow-skill-details h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.workflow-skill-details p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 4px 0 0 0;
}

.workflow-close-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--bg-surface);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer !important;
    transition: all 0.2s;
    font-size: 1.2rem;
    z-index: 20;
}

.workflow-close-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.workflow-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.workflow-tabs {
    padding: 16px 32px;
    display: flex;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-primary);
    overflow-x: auto;
}

.workflow-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    user-select: none;
}

.workflow-tab-icon {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.workflow-tab-text {
    line-height: 1;
}

.workflow-tab:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.workflow-tab.active {
    background: var(--primary-600) !important;
    color: white !important;
    border-color: var(--primary-600) !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3) !important;
}

.workflow-tab.active .workflow-tab-text,
.workflow-tab.active .workflow-tab-icon {
    color: white !important;
    fill: white !important;
}

.workflow-content-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
    background: var(--bg-secondary);
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.workflow-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.2s ease;
}

.workflow-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.workflow-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.workflow-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.workflow-badge.ide {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.workflow-badge.claude {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
}

.workflow-badge.chatgpt {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.workflow-badge.gemini {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.workflow-card-body {
    padding: 0;
    position: relative;
}

.workflow-code-block {
    margin: 0;
    padding: 20px;
    background: var(--code-bg, #0d1117);
    /* Fallback */
    color: var(--code-text, #e6edf3);
    /* Fallback */
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    overflow-x: auto;
    min-height: 120px;
}

.workflow-copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 12px;
    font-size: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.workflow-copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.workflow-copy-btn.copied {
    background: #22c55e;
    border-color: #22c55e;
}

.workflow-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 64px;
    color: var(--text-tertiary);
}

/* Dark mode overrides if needed */
.dark .workflow-code-block {
    background: #0d1117;
    color: #e6edf3;
}/* ===== USE CASE MODAL STYLES ===== */

.use-case-header {
    padding: 24px 32px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

.use-case-skill-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.use-case-skill-icon {
    font-size: 2rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.use-case-skill-details h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.use-case-skill-details p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 4px 0 0 0;
}

.use-case-close-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--bg-surface);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer !important;
    transition: all 0.2s;
    font-size: 1.2rem;
    z-index: 20;
}

.use-case-close-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.use-case-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-primary);
}

.use-case-filter-bar {
    padding: 16px 32px;
    display: flex;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-surface);
    overflow-x: auto;
}

.use-case-filter-select {
    padding: 8px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
}

.use-case-filter-select:hover {
    border-color: var(--primary-500);
}

.use-case-content-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
    background: var(--bg-secondary);
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.use-case-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.use-case-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-400);
}

.use-case-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.use-case-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
}

.use-case-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.use-case-badge {
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-beginner {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.badge-intermediate {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.badge-advanced {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.use-case-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.use-case-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
}

.use-case-prompt-box {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    font-family: var(--font-mono);
    max-height: 120px;
    overflow-y: auto;
}

.use-case-output {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    font-style: italic;
}

.use-case-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.use-case-btn {
    flex: 1;
    padding: 10px;
    border-radius: var(--radius-lg);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.use-case-btn:hover {
    background: var(--bg-hover);
    border-color: var(--primary-400);
    transform: translateY(-1px);
}

.use-case-btn.primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.use-case-btn.primary:hover {
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

@media (max-width: 768px) {
    .use-case-grid {
        grid-template-columns: 1fr;
    }

    .use-case-header {
        padding: 16px 24px;
    }

    .use-case-content-scroll {
        padding: 16px;
    }
}/* ═══════════════════════════════════════════════════════════
   GLOBAL MODAL OVERLAY COMPONENT
   Ensures all modals (Auth, Workflow, etc.) are centered
   and properly styled with a dimmed background.
═══════════════════════════════════════════════════════════ */

/* The overlay covers the entire screen */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex !important;
    /* Force flex to ensure centering override */
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Start visible if instantiated without animation class, or add 'open' class */
.modal-overlay:not(.hidden) {
    opacity: 1;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Modal content container */
.modal-content {
    background: var(--bg-card, #1e1e2e);
    border: 1px solid var(--border, #313244);
    border-radius: 16px;
    /* var(--radius-xl) */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    /* Default width if not overridden inline */
    width: 90%;
    max-width: 500px;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(20px) scale(0.96);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Close button standard style */
.btn-close {
    background: transparent;
    border: none;
    color: var(--text-tertiary, #a6adc8);
    font-size: 1.5rem;
    line-height: 1;
    padding: 8px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    /* Positioning defaults for absolute placement */
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
}

.btn-close:hover {
    background: var(--bg-hover, rgba(255, 255, 255, 0.1));
    color: var(--text-primary, #cdd6f4);
}

.modal-header {
    padding: 24px 24px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border, #313244);
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #89b4fa 0%, #cba6f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
}

/* Social Login Buttons specific */
.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-surface);
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 12px;
}

.btn-social:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    transform: translateY(-1px);
}/* ===== SETTINGS MODAL STYLES ===== */

/* Modal Content Wrapper */
.settings-modal-content {
    background: var(--bg-card);
    width: 100%;
    max-width: 500px;
    /* Constrain width */
    margin: 0 auto;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    max-height: 90vh;
    /* Prevent it from being too tall */
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-surface);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Body */
.modal-body {
    padding: 24px;
    overflow-y: auto;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-input,
.form-select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-base);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-100);
    background: var(--bg-secondary);
}

.form-input::placeholder {
    color: var(--text-tertiary);
}

.form-hint {
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    line-height: 1.4;
}

/* Toggle Row */
.settings-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    margin-bottom: 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.settings-toggle-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-tertiary);
    /* Darker default */
    border: 1px solid var(--border-strong);
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-tertiary);
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--primary);
    border-color: var(--primary);
}

input:checked+.slider:before {
    transform: translateX(24px);
    background-color: #fff;
}

/* Disabled Section Transition */
#ai-config-section {
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

#ai-config-section.disabled {
    opacity: 0.4;
    pointer-events: none;
    filter: grayscale(0.5);
    user-select: none;
}

/* Footer Actions */
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* Close Icon */
.close-btn-icon {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn-icon:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}