/* ==========================================================================
   FlashCalculators — Custom Styles
   Design: Light mode default, vibrant minimalist, neon accents
   ========================================================================== */

/* ==========================================================================
   1. CSS Custom Properties
   ========================================================================== */
:root {
  /* Neon accent colors */
  --neon-cyan: #06b6d4;
  --neon-violet: #8b5cf6;
  --neon-emerald: #10b981;
  --neon-amber: #f59e0b;

  /* Semantic colors */
  --color-success: #10b981;
  --color-error: #ef4444;
  --color-info: #3b82f6;
  --color-warning: #f59e0b;

  /* Base palette (light mode) */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-input: #f8fafc;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border-color: #e2e8f0;
  --border-focus: var(--neon-cyan);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.06);

  /* Glow shadows */
  --glow-cyan: 0 0 20px rgba(6, 182, 212, 0.4);
  --glow-violet: 0 0 20px rgba(139, 92, 246, 0.4);
  --glow-emerald: 0 0 20px rgba(16, 185, 129, 0.4);
  --glow-amber: 0 0 20px rgba(245, 158, 11, 0.4);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  /* Spacing scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Border radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-index scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;
}

/* ==========================================================================
   2. Base & Reset
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-base), color var(--transition-base);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--neon-cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: color-mix(in srgb, var(--neon-cyan) 80%, black);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* ==========================================================================
   3. Responsive Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.25rem); }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

small {
  font-size: 0.875rem;
  color: var(--text-muted);
}

code,
pre {
  font-family: var(--font-mono);
}

code {
  font-size: 0.875em;
  padding: 0.15em 0.4em;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  color: var(--neon-violet);
}

pre {
  padding: var(--space-md);
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

pre code {
  padding: 0;
  background: none;
}

/* ==========================================================================
   4. Spacing Utilities
   ========================================================================== */
.m-0 { margin: 0; }
.m-xs { margin: var(--space-xs); }
.m-sm { margin: var(--space-sm); }
.m-md { margin: var(--space-md); }
.m-lg { margin: var(--space-lg); }
.m-xl { margin: var(--space-xl); }
.m-2xl { margin: var(--space-2xl); }

.mt-0 { margin-top: 0; }
.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-0 { margin-bottom: 0; }
.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.p-0 { padding: 0; }
.p-xs { padding: var(--space-xs); }
.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }
.p-2xl { padding: var(--space-2xl); }

.px-sm { padding-left: var(--space-sm); padding-right: var(--space-sm); }
.px-md { padding-left: var(--space-md); padding-right: var(--space-md); }
.px-lg { padding-left: var(--space-lg); padding-right: var(--space-lg); }

.py-sm { padding-top: var(--space-sm); padding-bottom: var(--space-sm); }
.py-md { padding-top: var(--space-md); padding-bottom: var(--space-md); }
.py-lg { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }

.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* Flex utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.flex-1 { flex: 1; }
.shrink-0 { flex-shrink: 0; }

/* Text utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-muted { color: var(--text-muted); }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==========================================================================
   5. Neon Glow Utility Classes
   ========================================================================== */
.neon-cyan {
  color: var(--neon-cyan);
  text-shadow: 0 0 7px rgba(6, 182, 212, 0.5), 0 0 20px rgba(6, 182, 212, 0.3);
}

.neon-violet {
  color: var(--neon-violet);
  text-shadow: 0 0 7px rgba(139, 92, 246, 0.5), 0 0 20px rgba(139, 92, 246, 0.3);
}

.neon-emerald {
  color: var(--neon-emerald);
  text-shadow: 0 0 7px rgba(16, 185, 129, 0.5), 0 0 20px rgba(16, 185, 129, 0.3);
}

.neon-amber {
  color: var(--neon-amber);
  text-shadow: 0 0 7px rgba(245, 158, 11, 0.5), 0 0 20px rgba(245, 158, 11, 0.3);
}

.neon-box-cyan {
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.3), inset 0 0 15px rgba(6, 182, 212, 0.05);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.neon-box-violet {
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.3), inset 0 0 15px rgba(139, 92, 246, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.neon-box-emerald {
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3), inset 0 0 15px rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.neon-box-amber {
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.3), inset 0 0 15px rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* ==========================================================================
   6. Sticky Header with Backdrop-Blur
   ========================================================================== */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-base),
              border-color var(--transition-base),
              box-shadow var(--transition-base);
}

.sticky-header.scrolled {
  box-shadow: var(--shadow-md);
}

.dark .sticky-header {
  background: rgba(15, 23, 42, 0.85);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.dark .sticky-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   7. Tool Cards Grid
   ========================================================================== */
.tool-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  padding: var(--space-md);
}

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

@media (min-width: 1024px) {
  .tool-grid {
    grid-template-columns: repeat(3, 1fr);
    padding: var(--space-lg);
  }
}

@media (min-width: 1280px) {
  .tool-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tool-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: transform var(--transition-base),
              box-shadow var(--transition-base),
              border-color var(--transition-base);
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

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

.tool-card:hover::before {
  opacity: 1;
}

.tool-card--cyan:hover {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(6, 182, 212, 0.15);
}

.tool-card--violet:hover {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(139, 92, 246, 0.15);
}

.tool-card--emerald:hover {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(16, 185, 129, 0.15);
}

.tool-card--amber:hover {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(245, 158, 11, 0.15);
}

.tool-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  font-size: 1.5rem;
  transition: transform var(--transition-spring);
}

.tool-card:hover .tool-card__icon {
  transform: scale(1.1);
}

.tool-card__icon--cyan { background: rgba(6, 182, 212, 0.1); color: var(--neon-cyan); }
.tool-card__icon--violet { background: rgba(139, 92, 246, 0.1); color: var(--neon-violet); }
.tool-card__icon--emerald { background: rgba(16, 185, 129, 0.1); color: var(--neon-emerald); }
.tool-card__icon--amber { background: rgba(245, 158, 11, 0.1); color: var(--neon-amber); }

.tool-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.tool-card__description {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   8. Progress Circle (Pomodoro Timer)
   ========================================================================== */
.progress-circle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.progress-circle__svg {
  transform: rotate(-90deg);
  width: 200px;
  height: 200px;
}

.progress-circle__track {
  fill: none;
  stroke: var(--bg-tertiary);
  stroke-width: 8;
}

.progress-circle__fill {
  fill: none;
  stroke: var(--neon-cyan);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 440;
  stroke-dashoffset: 440;
  transition: stroke-dashoffset 1s linear, stroke var(--transition-base);
  filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.4));
}

.progress-circle--active .progress-circle__fill {
  filter: drop-shadow(0 0 12px rgba(6, 182, 212, 0.7));
}

.progress-circle--violet .progress-circle__fill {
  stroke: var(--neon-violet);
  filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.4));
}

.progress-circle--violet.progress-circle--active .progress-circle__fill {
  filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.7));
}

.progress-circle--emerald .progress-circle__fill {
  stroke: var(--neon-emerald);
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.4));
}

.progress-circle--emerald.progress-circle--active .progress-circle__fill {
  filter: drop-shadow(0 0 12px rgba(16, 185, 129, 0.7));
}

.progress-circle--amber .progress-circle__fill {
  stroke: var(--neon-amber);
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.4));
}

.progress-circle--amber.progress-circle--active .progress-circle__fill {
  filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.7));
}

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

.progress-circle__time {
  font-size: 2.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  line-height: 1;
}

.progress-circle__label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* Sizes */
.progress-circle--sm .progress-circle__svg {
  width: 120px;
  height: 120px;
}

.progress-circle--sm .progress-circle__time {
  font-size: 1.5rem;
}

.progress-circle--lg .progress-circle__svg {
  width: 280px;
  height: 280px;
}

.progress-circle--lg .progress-circle__time {
  font-size: 3.5rem;
}

/* ==========================================================================
   9. Heatmap Calendar (Habit Tracker)
   ========================================================================== */
.heatmap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-x: auto;
  padding: var(--space-sm);
}

.heatmap__row {
  display: flex;
  gap: 2px;
}

.heatmap__cell {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--bg-tertiary);
  transition: background-color var(--transition-fast),
              transform var(--transition-fast);
  cursor: default;
}

.heatmap__cell:hover {
  transform: scale(1.3);
  z-index: 1;
}

/* Intensity levels */
.heatmap__cell--level-0 {
  background: var(--bg-tertiary);
}

.heatmap__cell--level-1 {
  background: rgba(16, 185, 129, 0.2);
}

.heatmap__cell--level-2 {
  background: rgba(16, 185, 129, 0.4);
}

.heatmap__cell--level-3 {
  background: rgba(16, 185, 129, 0.65);
}

.heatmap__cell--level-4 {
  background: var(--neon-emerald);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.3);
}

/* Violet variant */
.heatmap--violet .heatmap__cell--level-1 { background: rgba(139, 92, 246, 0.2); }
.heatmap--violet .heatmap__cell--level-2 { background: rgba(139, 92, 246, 0.4); }
.heatmap--violet .heatmap__cell--level-3 { background: rgba(139, 92, 246, 0.65); }
.heatmap--violet .heatmap__cell--level-4 {
  background: var(--neon-violet);
  box-shadow: 0 0 6px rgba(139, 92, 246, 0.3);
}

/* Cyan variant */
.heatmap--cyan .heatmap__cell--level-1 { background: rgba(6, 182, 212, 0.2); }
.heatmap--cyan .heatmap__cell--level-2 { background: rgba(6, 182, 212, 0.4); }
.heatmap--cyan .heatmap__cell--level-3 { background: rgba(6, 182, 212, 0.65); }
.heatmap--cyan .heatmap__cell--level-4 {
  background: var(--neon-cyan);
  box-shadow: 0 0 6px rgba(6, 182, 212, 0.3);
}

/* Tooltip on hover */
.heatmap__cell[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 8px;
  background: var(--text-primary);
  color: var(--bg-primary);
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  pointer-events: none;
}

.heatmap__cell {
  position: relative;
}

/* ==========================================================================
   10. Strength Meter (Password Generator)
   ========================================================================== */
.strength-meter {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.strength-meter__bar-container {
  width: 100%;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.strength-meter__bar {
  height: 100%;
  width: 0%;
  border-radius: var(--radius-full);
  transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              background-color 0.3s ease;
}

/* Strength levels */
.strength-meter--weak .strength-meter__bar {
  width: 25%;
  background: var(--color-error);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

.strength-meter--fair .strength-meter__bar {
  width: 50%;
  background: var(--neon-amber);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.strength-meter--good .strength-meter__bar {
  width: 75%;
  background: #eab308;
  box-shadow: 0 0 8px rgba(234, 179, 8, 0.4);
}

.strength-meter--strong .strength-meter__bar {
  width: 100%;
  background: var(--color-success);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.strength-meter__label {
  font-size: 0.8125rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.strength-meter--weak .strength-meter__label { color: var(--color-error); }
.strength-meter--fair .strength-meter__label { color: var(--neon-amber); }
.strength-meter--good .strength-meter__label { color: #eab308; }
.strength-meter--strong .strength-meter__label { color: var(--color-success); }

/* Multi-segment variant */
.strength-meter--segments .strength-meter__bar-container {
  display: flex;
  gap: 4px;
  height: 4px;
}

.strength-meter--segments .strength-meter__segment {
  flex: 1;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  transition: background-color var(--transition-base);
}

.strength-meter--segments.strength-meter--weak .strength-meter__segment:nth-child(1) {
  background: var(--color-error);
}
.strength-meter--segments.strength-meter--fair .strength-meter__segment:nth-child(-n+2) {
  background: var(--neon-amber);
}
.strength-meter--segments.strength-meter--good .strength-meter__segment:nth-child(-n+3) {
  background: #eab308;
}
.strength-meter--segments.strength-meter--strong .strength-meter__segment {
  background: var(--color-success);
}

/* ==========================================================================
   11. Toast Notifications
   ========================================================================== */
.toast-container {
  position: fixed;
  top: var(--space-lg);
  right: var(--space-lg);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  pointer-events: none;
  max-width: 400px;
  width: calc(100% - var(--space-xl));
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: toast-slide-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  position: relative;
  overflow: hidden;
}

.toast--dismissing {
  animation: toast-slide-out 0.3s ease forwards;
}

.toast__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  margin-top: 1px;
}

.toast__content {
  flex: 1;
  min-width: 0;
}

.toast__title {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.toast__message {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.toast__close {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: color var(--transition-fast), background var(--transition-fast);
}

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

/* Progress bar for auto-dismiss */
.toast__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  animation: toast-progress linear forwards;
}

/* Success variant */
.toast--success {
  border-left: 3px solid var(--color-success);
}
.toast--success .toast__icon {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
}
.toast--success .toast__progress {
  background: var(--color-success);
}

/* Error variant */
.toast--error {
  border-left: 3px solid var(--color-error);
}
.toast--error .toast__icon {
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-error);
}
.toast--error .toast__progress {
  background: var(--color-error);
}

/* Info variant */
.toast--info {
  border-left: 3px solid var(--color-info);
}
.toast--info .toast__icon {
  background: rgba(59, 130, 246, 0.1);
  color: var(--color-info);
}
.toast--info .toast__progress {
  background: var(--color-info);
}

/* Warning variant */
.toast--warning {
  border-left: 3px solid var(--color-warning);
}
.toast--warning .toast__icon {
  background: rgba(245, 158, 11, 0.1);
  color: var(--color-warning);
}
.toast--warning .toast__progress {
  background: var(--color-warning);
}

@keyframes toast-slide-in {
  from {
    opacity: 0;
    transform: translateX(100%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes toast-slide-out {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(100%) scale(0.95);
  }
}

@keyframes toast-progress {
  from { width: 100%; }
  to { width: 0%; }
}

/* ==========================================================================
   12. Scroll Animations
   ========================================================================== */
.animate-fade-in,
.animate-slide-up,
.animate-scale-in {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-in.animate-visible {
  opacity: 1;
}

.animate-slide-up {
  transform: translateY(30px);
}

.animate-slide-up.animate-visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-scale-in {
  transform: scale(0.9);
}

.animate-scale-in.animate-visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered children */
.animate-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-stagger.animate-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.animate-stagger.animate-visible > *:nth-child(1) { transition-delay: 0ms; }
.animate-stagger.animate-visible > *:nth-child(2) { transition-delay: 80ms; }
.animate-stagger.animate-visible > *:nth-child(3) { transition-delay: 160ms; }
.animate-stagger.animate-visible > *:nth-child(4) { transition-delay: 240ms; }
.animate-stagger.animate-visible > *:nth-child(5) { transition-delay: 320ms; }
.animate-stagger.animate-visible > *:nth-child(6) { transition-delay: 400ms; }
.animate-stagger.animate-visible > *:nth-child(7) { transition-delay: 480ms; }
.animate-stagger.animate-visible > *:nth-child(8) { transition-delay: 560ms; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .animate-fade-in,
  .animate-slide-up,
  .animate-scale-in,
  .animate-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   13. Custom Scrollbar
   ========================================================================== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
  border: 2px solid transparent;
  background-clip: content-box;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}

/* ==========================================================================
   14. Input Focus Styles (Neon Ring)
   ========================================================================== */
.input,
textarea,
select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition-fast),
              box-shadow var(--transition-fast),
              background-color var(--transition-fast);
}

.input:focus,
textarea:focus,
select:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15),
              0 0 12px rgba(6, 182, 212, 0.1);
  background: var(--bg-primary);
}

.input--violet:focus,
textarea.input--violet:focus {
  border-color: var(--neon-violet);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15),
              0 0 12px rgba(139, 92, 246, 0.1);
}

.input--emerald:focus,
textarea.input--emerald:focus {
  border-color: var(--neon-emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15),
              0 0 12px rgba(16, 185, 129, 0.1);
}

.input--amber:focus,
textarea.input--amber:focus {
  border-color: var(--neon-amber);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15),
              0 0 12px rgba(245, 158, 11, 0.1);
}

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

.input:disabled,
textarea:disabled,
select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Error state */
.input--error,
.input--error:focus {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* ==========================================================================
   15. Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  white-space: nowrap;
  user-select: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--neon-cyan);
  color: white;
  box-shadow: 0 1px 3px rgba(6, 182, 212, 0.3);
}

.btn--primary:hover {
  background: color-mix(in srgb, var(--neon-cyan) 90%, black);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.35);
}

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

.btn--secondary:hover {
  background: var(--border-color);
}

.btn--ghost {
  color: var(--text-secondary);
}

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

.btn--danger {
  background: var(--color-error);
  color: white;
  box-shadow: 0 1px 3px rgba(239, 68, 68, 0.3);
}

.btn--danger:hover {
  background: color-mix(in srgb, var(--color-error) 90%, black);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.btn--success {
  background: var(--neon-emerald);
  color: white;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.3);
}

.btn--success:hover {
  background: color-mix(in srgb, var(--neon-emerald) 90%, black);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.btn--sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

.btn--lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn--icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-md);
}

.btn--icon.btn--sm {
  width: 32px;
  height: 32px;
}

/* ==========================================================================
   16. Cards & Containers
   ========================================================================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  transition: border-color var(--transition-base),
              box-shadow var(--transition-base);
}

.card--hover:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--neon-cyan);
}

.card--elevated {
  box-shadow: var(--shadow-md);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.badge--cyan {
  background: rgba(6, 182, 212, 0.1);
  color: var(--neon-cyan);
}

.badge--violet {
  background: rgba(139, 92, 246, 0.1);
  color: var(--neon-violet);
}

.badge--emerald {
  background: rgba(16, 185, 129, 0.1);
  color: var(--neon-emerald);
}

.badge--amber {
  background: rgba(245, 158, 11, 0.1);
  color: var(--neon-amber);
}

.badge--error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-error);
}

.divider {
  width: 100%;
  height: 1px;
  background: var(--border-color);
  margin: var(--space-lg) 0;
}

/* ==========================================================================
   17. Full-Screen Mode (Pomodoro)
   ========================================================================== */
.fullscreen-mode {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  animation: fullscreen-enter 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fullscreen-mode__close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-size: 1.25rem;
  transition: all var(--transition-fast);
}

.fullscreen-mode__close:hover {
  background: var(--border-color);
  color: var(--text-primary);
  transform: scale(1.1);
}

.fullscreen-mode .progress-circle__svg {
  width: min(80vw, 80vh);
  height: min(80vw, 80vh);
}

.fullscreen-mode .progress-circle__time {
  font-size: clamp(3rem, 10vw, 6rem);
}

.fullscreen-mode .progress-circle__label {
  font-size: 1.25rem;
}

@keyframes fullscreen-enter {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fullscreen-exit {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}

.fullscreen-mode--exiting {
  animation: fullscreen-exit 0.3s ease forwards;
}

/* ==========================================================================
   18. Dark Mode Overrides
   ========================================================================== */
.dark {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --bg-card: #1e293b;
  --bg-input: #0f172a;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: rgba(255, 255, 255, 0.08);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
}

.dark body {
  background-color: var(--bg-primary);
}

/* Dark cards */
.dark .card,
.dark .tool-card {
  background: var(--bg-card);
  border-color: rgba(255, 255, 255, 0.06);
}

.dark .tool-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

/* Dark inputs */
.dark .input,
.dark textarea,
.dark select {
  background: var(--bg-primary);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.dark .input:focus,
.dark textarea:focus,
.dark select:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2),
              0 0 20px rgba(6, 182, 212, 0.15);
}

/* Neon glow in dark mode — more prominent */
.dark .neon-cyan {
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.7), 0 0 30px rgba(6, 182, 212, 0.4);
}

.dark .neon-violet {
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.7), 0 0 30px rgba(139, 92, 246, 0.4);
}

.dark .neon-emerald {
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.7), 0 0 30px rgba(16, 185, 129, 0.4);
}

.dark .neon-amber {
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.7), 0 0 30px rgba(245, 158, 11, 0.4);
}

.dark .neon-box-cyan {
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.4), inset 0 0 25px rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.4);
}

.dark .neon-box-violet {
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.4), inset 0 0 25px rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.4);
}

.dark .neon-box-emerald {
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.4), inset 0 0 25px rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.4);
}

.dark .neon-box-amber {
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.4), inset 0 0 25px rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 129, 0.4);
}

/* Dark tool card hover glow */
.dark .tool-card--cyan:hover {
  box-shadow: var(--shadow-lg), 0 0 40px rgba(6, 182, 212, 0.2);
}

.dark .tool-card--violet:hover {
  box-shadow: var(--shadow-lg), 0 0 40px rgba(139, 92, 246, 0.2);
}

.dark .tool-card--emerald:hover {
  box-shadow: var(--shadow-lg), 0 0 40px rgba(16, 185, 129, 0.2);
}

.dark .tool-card--amber:hover {
  box-shadow: var(--shadow-lg), 0 0 40px rgba(245, 158, 11, 0.2);
}

/* Dark progress circle glow */
.dark .progress-circle__track {
  stroke: rgba(255, 255, 255, 0.06);
}

.dark .progress-circle__fill {
  filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.5));
}

.dark .progress-circle--active .progress-circle__fill {
  filter: drop-shadow(0 0 18px rgba(6, 182, 212, 0.8));
}

/* Dark toast */
.dark .toast {
  background: var(--bg-card);
  border-color: rgba(255, 255, 255, 0.08);
}

/* Dark buttons */
.dark .btn--secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.dark .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dark .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Dark heatmap cells base */
.dark .heatmap__cell--level-0 {
  background: rgba(255, 255, 255, 0.04);
}

/* Dark scrollbar */
.dark ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.dark * {
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

/* Dark full-screen */
.dark .fullscreen-mode {
  background: var(--bg-primary);
}

.dark .fullscreen-mode__close {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.dark .fullscreen-mode__close:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* System preference auto dark */
@media (prefers-color-scheme: dark) {
  :root:not(.light) {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-card: #1e293b;
    --bg-input: #0f172a;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: rgba(255, 255, 255, 0.08);
  }
}

/* ==========================================================================
   19. Print Styles (Daily Planner PDF Export)
   ========================================================================== */
@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  .no-print,
  .toast-container,
  .sticky-header,
  .fullscreen-mode__close,
  .btn,
  nav,
  .sidebar {
    display: none !important;
  }

  .print-only {
    display: block !important;
  }

  /* Page setup */
  @page {
    margin: 1.5cm;
    size: A4;
  }

  /* Daily planner specific */
  .planner-page {
    page-break-after: always;
  }

  .planner-page:last-child {
    page-break-after: avoid;
  }

  .planner-section {
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 15px;
    page-break-inside: avoid;
  }

  .planner-section__title {
    font-size: 14pt;
    font-weight: 700;
    border-bottom: 2px solid #000;
    padding-bottom: 4px;
    margin-bottom: 8px;
  }

  .task-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    border-bottom: 1px dotted #ccc;
  }

  .task-checkbox {
    width: 14px;
    height: 14px;
    border: 1.5px solid #000;
    border-radius: 2px;
    flex-shrink: 0;
  }

  .task-text {
    font-size: 11pt;
  }

  .time-block {
    display: flex;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
  }

  .time-block__time {
    width: 60px;
    font-weight: 600;
    font-size: 10pt;
    flex-shrink: 0;
  }

  .time-block__content {
    flex: 1;
    font-size: 10pt;
  }

  /* Tables */
  table {
    border-collapse: collapse;
    width: 100%;
  }

  th, td {
    border: 1px solid #ccc;
    padding: 6px 8px;
    text-align: left;
    font-size: 10pt;
  }

  th {
    background: #eee !important;
    font-weight: 700;
  }

  /* Links */
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #666 !important;
  }

  a[href^="#"]::after,
  a[href^="javascript"]::after {
    content: "";
  }

  /* Images */
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
}

.print-only {
  display: none;
}

/* ==========================================================================
   20. Miscellaneous & Utility Classes
   ========================================================================== */
/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--space-md);
}

@media (min-width: 640px) {
  .container {
    padding-inline: var(--space-lg);
  }
}

@media (min-width: 1024px) {
  .container {
    padding-inline: var(--space-xl);
  }
}

/* Prose / Markdown content */
.prose {
  max-width: 72ch;
  line-height: 1.75;
}

.prose > * + * {
  margin-top: 1em;
}

.prose h1, .prose h2, .prose h3 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.prose ul, .prose ol {
  padding-left: 1.5em;
}

.prose li {
  margin-bottom: 0.25em;
}

.prose blockquote {
  border-left: 3px solid var(--neon-cyan);
  padding-left: 1em;
  color: var(--text-secondary);
  font-style: italic;
}

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

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

/* Tooltip */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 4px 10px;
  background: var(--text-primary);
  color: var(--bg-primary);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  z-index: var(--z-dropdown);
}

[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Kbd / keyboard shortcut */
kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5em;
  padding: 0.1em 0.4em;
  font-family: var(--font-mono);
  font-size: 0.8em;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 0 var(--border-color);
  color: var(--text-secondary);
}

/* Separator with text */
.separator {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.separator::before,
.separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

/* Tab navigation */
.tabs {
  display: flex;
  gap: 2px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  padding: 3px;
}

.tab {
  flex: 1;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-align: center;
}

.tab:hover {
  color: var(--text-primary);
}

.tab--active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

/* Modal overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  animation: fade-in 0.2s ease;
}

.dark .modal-overlay {
  background: rgba(0, 0, 0, 0.7);
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: modal-enter 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

/* Dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown__menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 180px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xs);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-dropdown);
  animation: dropdown-enter 0.15s ease;
}

@keyframes dropdown-enter {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

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

/* Progress bar */
.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--neon-cyan);
  transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.progress-bar--sm { height: 4px; }
.progress-bar--lg { height: 12px; }

/* Avatar */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-secondary);
  overflow: hidden;
  flex-shrink: 0;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar--sm { width: 32px; height: 32px; font-size: 0.75rem; }
.avatar--lg { width: 56px; height: 56px; font-size: 1.125rem; }
.avatar--xl { width: 80px; height: 80px; font-size: 1.5rem; }

/* Spinner / loading */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-top-color: var(--neon-cyan);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.spinner--sm { width: 14px; height: 14px; border-width: 1.5px; }
.spinner--lg { width: 32px; height: 32px; border-width: 3px; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Pulse dot */
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-emerald);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
