/* ═══════════════════════════════════════════════════════════════════════════
   GLOBAL TOOL ROADMAP MANAGER (GTRM) — style.css
   Version: 1.0.0 | Premium Quality | Production Ready
   Structure:
     01. CSS Custom Properties (Design System)
     02. CSS Reset & Base
     03. Typography System
     04. Layout & App Shell
     05. Loading Screen
     06. Toast Notifications
     07. Modal System
     08. Header & Navigation
     09. Analytics Bar
     10. Toolbar & Filters
     11. Board View
     12. Stage Columns & Cards
     13. Timeline View
     14. List View (Table)
     15. Charts View
     16. Detail Drawer
     17. Shortcuts Panel
     18. Onboarding Modal
     19. Settings Modal
     20. Export & Import Modals
     21. Buttons System
     22. Form System
     23. Utility Classes
     24. Animations & Keyframes
     25. Responsive Breakpoints
     26. Print Styles
     27. Reduced Motion
═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   01. CSS CUSTOM PROPERTIES — DESIGN SYSTEM
═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* ── Brand Colors ────────────────────────────────── */
  --color-primary:        #6C63FF;
  --color-primary-hover:  #5A52E0;
  --color-primary-light:  rgba(108, 99, 255, 0.15);
  --color-primary-glow:   rgba(108, 99, 255, 0.35);

  --color-secondary:      #22D3EE;
  --color-secondary-hover:#06B6D4;
  --color-secondary-light:rgba(34, 211, 238, 0.15);

  --color-accent:         #F472B6;
  --color-accent-hover:   #EC4899;
  --color-accent-light:   rgba(244, 114, 182, 0.15);

  /* ── Status Colors ───────────────────────────────── */
  --color-success:        #22C55E;
  --color-success-hover:  #16A34A;
  --color-success-light:  rgba(34, 197, 94, 0.15);

  --color-error:          #EF4444;
  --color-error-hover:    #DC2626;
  --color-error-light:    rgba(239, 68, 68, 0.15);

  --color-warning:        #F59E0B;
  --color-warning-hover:  #D97706;
  --color-warning-light:  rgba(245, 158, 11, 0.15);

  --color-info:           #3B82F6;
  --color-info-hover:     #2563EB;
  --color-info-light:     rgba(59, 130, 246, 0.15);

  /* ── Stage Colors ────────────────────────────────── */
  --stage-0-color:        #A78BFA; /* Vision - Purple    */
  --stage-0-bg:           rgba(167, 139, 250, 0.12);
  --stage-1-color:        #34D399; /* Research - Teal    */
  --stage-1-bg:           rgba(52, 211, 153, 0.12);
  --stage-2-color:        #60A5FA; /* Architecture - Blue*/
  --stage-2-bg:           rgba(96, 165, 250, 0.12);
  --stage-3-color:        #F472B6; /* Development - Pink */
  --stage-3-bg:           rgba(244, 114, 182, 0.12);
  --stage-4-color:        #FBBF24; /* Deployment - Yellow*/
  --stage-4-bg:           rgba(251, 191, 36, 0.12);
  --stage-5-color:        #22D3EE; /* Scaling - Cyan     */
  --stage-5-bg:           rgba(34, 211, 238, 0.12);
  --stage-6-color:        #F59E0B; /* Hero - Gold        */
  --stage-6-bg:           rgba(245, 158, 11, 0.12);

  /* ── Priority Colors ─────────────────────────────── */
  --priority-critical:    #EF4444;
  --priority-high:        #F97316;
  --priority-medium:      #EAB308;
  --priority-low:         #22C55E;

  /* ── Neutral Palette ─────────────────────────────── */
  --neutral-50:           #F8FAFC;
  --neutral-100:          #F1F5F9;
  --neutral-200:          #E2E8F0;
  --neutral-300:          #CBD5E1;
  --neutral-400:          #94A3B8;
  --neutral-500:          #64748B;
  --neutral-600:          #475569;
  --neutral-700:          #334155;
  --neutral-800:          #1E293B;
  --neutral-900:          #0F172A;
  --neutral-950:          #020617;

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

  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-md:   1.125rem;   /* 18px */
  --text-lg:   1.25rem;    /* 20px */
  --text-xl:   1.5rem;     /* 24px */
  --text-2xl:  2rem;       /* 32px */
  --text-3xl:  3rem;       /* 48px */

  --fw-light:    300;
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;
  --fw-black:    900;

  --lh-tight:   1.2;
  --lh-snug:    1.4;
  --lh-normal:  1.6;
  --lh-relaxed: 1.75;

  /* ── Spacing (8px grid) ──────────────────────────── */
  --space-1:  0.25rem;   /* 4px  */
  --space-2:  0.5rem;    /* 8px  */
  --space-3:  0.75rem;   /* 12px */
  --space-4:  1rem;      /* 16px */
  --space-5:  1.25rem;   /* 20px */
  --space-6:  1.5rem;    /* 24px */
  --space-8:  2rem;      /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */

  /* ── Border Radius ───────────────────────────────── */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   14px;
  --radius-xl:   20px;
  --radius-2xl:  28px;
  --radius-full: 9999px;

  /* ── Shadows ─────────────────────────────────────── */
  --shadow-xs:  0 1px 2px rgba(0,0,0,0.25);
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.35);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.4);
  --shadow-xl:  0 16px 48px rgba(0,0,0,0.45);
  --shadow-primary: 0 4px 20px rgba(108, 99, 255, 0.4);
  --shadow-success: 0 4px 20px rgba(34, 197, 94, 0.35);
  --shadow-error:   0 4px 20px rgba(239, 68, 68, 0.35);

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

  /* ── Z-Index Scale ───────────────────────────────── */
  --z-base:      1;
  --z-dropdown:  100;
  --z-sticky:    200;
  --z-drawer:    300;
  --z-modal:     400;
  --z-toast:     500;
  --z-loading:   900;

  /* ── Header ──────────────────────────────────────── */
  --header-height:        68px;
  --header-height-mobile: 60px;

  /* ── Board ───────────────────────────────────────── */
  --stage-col-width:      340px;
  --stage-col-min-width:  280px;

  /* ── Dark Theme Base (Default) ───────────────────── */
  --bg-base:       #080C14;
  --bg-surface:    #0E1420;
  --bg-elevated:   #141B2D;
  --bg-card:       #1A2236;
  --bg-card-hover: #1F2A42;
  --bg-overlay:    rgba(8, 12, 20, 0.85);
  --bg-glass:      rgba(20, 27, 45, 0.75);
  --bg-input:      #111827;

  --text-primary:   #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted:     #64748B;
  --text-disabled:  #334155;
  --text-inverse:   #0F172A;
  --text-on-primary:#FFFFFF;

  --border-default: rgba(255,255,255,0.08);
  --border-focus:   var(--color-primary);
  --border-input:   rgba(255,255,255,0.12);
  --border-card:    rgba(255,255,255,0.06);
  --border-hover:   rgba(255,255,255,0.18);

  --scrollbar-thumb: rgba(108, 99, 255, 0.4);
  --scrollbar-track: rgba(255,255,255,0.05);
}

/* ── Light Theme Overrides ────────────────────────── */
[data-theme="light"] {
  --bg-base:       #F0F4FF;
  --bg-surface:    #FFFFFF;
  --bg-elevated:   #F8FAFF;
  --bg-card:       #FFFFFF;
  --bg-card-hover: #F0F4FF;
  --bg-overlay:    rgba(240, 244, 255, 0.92);
  --bg-glass:      rgba(255,255,255,0.82);
  --bg-input:      #FFFFFF;

  --text-primary:   #0F172A;
  --text-secondary: #475569;
  --text-muted:     #94A3B8;
  --text-disabled:  #CBD5E1;
  --text-inverse:   #F1F5F9;
  --text-on-primary:#FFFFFF;

  --border-default: rgba(0,0,0,0.08);
  --border-focus:   var(--color-primary);
  --border-input:   rgba(0,0,0,0.14);
  --border-card:    rgba(0,0,0,0.07);
  --border-hover:   rgba(0,0,0,0.16);

  --shadow-xs:  0 1px 2px rgba(0,0,0,0.08);
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.1);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.12);
  --shadow-xl:  0 16px 48px rgba(0,0,0,0.15);

  --scrollbar-thumb: rgba(108, 99, 255, 0.35);
  --scrollbar-track: rgba(0,0,0,0.06);
}

/* ── Compact Mode ─────────────────────────────────── */
[data-compact="true"] .item-card {
  padding: var(--space-3) !important;
}
[data-compact="true"] .stage-body {
  gap: var(--space-2) !important;
}

/* ── No Animations Mode ───────────────────────────── */
[data-animations="false"] *,
[data-animations="false"] *::before,
[data-animations="false"] *::after {
  animation-duration: 0.001ms !important;
  transition-duration: 0.001ms !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   02. CSS RESET & BASE
═══════════════════════════════════════════════════════════════════════════ */

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

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

body {
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--text-primary);
  background-color: var(--bg-base);
  min-height: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-slow),
              color var(--transition-slow);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: var(--radius-full);
  transition: background var(--transition-base);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Selection */
::selection {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

/* Focus outline */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--color-primary-hover); }

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

button {
  cursor: pointer;
  font-family: var(--font-ui);
  border: none;
  background: none;
}

input, textarea, select {
  font-family: var(--font-ui);
}

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   03. TYPOGRAPHY SYSTEM
═══════════════════════════════════════════════════════════════════════════ */

.text-xs      { font-size: var(--text-xs); }
.text-sm      { font-size: var(--text-sm); }
.text-base    { font-size: var(--text-base); }
.text-md      { font-size: var(--text-md); }
.text-lg      { font-size: var(--text-lg); }
.text-xl      { font-size: var(--text-xl); }
.text-2xl     { font-size: var(--text-2xl); }
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted   { color: var(--text-muted); }
.text-center  { text-align: center; }
.font-mono    { font-family: var(--font-mono); }
.font-bold    { font-weight: var(--fw-bold); }
.font-semibold { font-weight: var(--fw-semibold); }
.font-medium  { font-weight: var(--fw-medium); }

/* ═══════════════════════════════════════════════════════════════════════════
   04. LAYOUT & APP SHELL
═══════════════════════════════════════════════════════════════════════════ */

.skip-link {
  position: fixed;
  top: -100px;
  left: var(--space-4);
  z-index: var(--z-loading);
  background: var(--color-primary);
  color: var(--text-on-primary);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-weight: var(--fw-semibold);
  font-size: var(--text-sm);
  transition: top var(--transition-fast);
}
.skip-link:focus { top: var(--space-4); }

.app-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: var(--header-height);
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════════════════
   05. LOADING SCREEN
═══════════════════════════════════════════════════════════════════════════ */

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: var(--z-loading);
  background: var(--bg-base);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

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

.loading-icon {
  font-size: 3rem;
  animation: loadingFloat 2s ease-in-out infinite;
}

.loading-brand {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--fw-black);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.loading-bar-wrap {
  width: 260px;
  height: 4px;
  background: var(--border-default);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.loading-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-accent));
  background-size: 200% 100%;
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
  animation: loadingBarShimmer 1.5s linear infinite;
}

.loading-text {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: var(--fw-medium);
  letter-spacing: 0.05em;
  animation: loadingPulse 1.5s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════════════════════
   06. TOAST NOTIFICATIONS
═══════════════════════════════════════════════════════════════════════════ */

.toast-container {
  position: fixed;
  top: calc(var(--header-height) + var(--space-4));
  right: var(--space-4);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: 360px;
  max-width: calc(100vw - var(--space-8));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  pointer-events: all;
  animation: toastSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  position: relative;
  overflow: hidden;
}

.toast.toast-removing {
  animation: toastSlideOut 0.3s ease forwards;
}

.toast::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.toast.toast-success::before { background: var(--color-success); }
.toast.toast-error::before   { background: var(--color-error); }
.toast.toast-warning::before { background: var(--color-warning); }
.toast.toast-info::before    { background: var(--color-info); }

.toast-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  flex-shrink: 0;
}

.toast-success .toast-icon-wrap {
  background: var(--color-success-light);
  color: var(--color-success);
}
.toast-error .toast-icon-wrap {
  background: var(--color-error-light);
  color: var(--color-error);
}
.toast-warning .toast-icon-wrap {
  background: var(--color-warning-light);
  color: var(--color-warning);
}
.toast-info .toast-icon-wrap {
  background: var(--color-info-light);
  color: var(--color-info);
}

.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  line-height: var(--lh-snug);
  margin-bottom: 2px;
}

.toast-message {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: var(--lh-normal);
}

.toast-close {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: var(--text-xs);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.toast-close:hover {
  background: var(--border-default);
  color: var(--text-primary);
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  animation: toastProgress linear forwards;
}
.toast-success .toast-progress { background: var(--color-success); }
.toast-error   .toast-progress { background: var(--color-error); }
.toast-warning .toast-progress { background: var(--color-warning); }
.toast-info    .toast-progress { background: var(--color-info); }

/* ═══════════════════════════════════════════════════════════════════════════
   07. MODAL SYSTEM
═══════════════════════════════════════════════════════════════════════════ */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  animation: modalOverlayIn 0.25s ease forwards;
}

.modal-overlay.closing {
  animation: modalOverlayOut 0.25s ease forwards;
}

.modal-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - var(--space-8));
  animation: modalBoxIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.modal-overlay.closing .modal-box {
  animation: modalBoxOut 0.25s ease forwards;
}

.modal-sm  { max-width: 440px; }
.modal-md  { max-width: 600px; }
.modal-lg  { max-width: 760px; }
.modal-onboarding { max-width: 500px; }

.modal-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border-default);
  flex-shrink: 0;
  background: var(--bg-card);
}

.modal-header.danger-header {
  background: rgba(239, 68, 68, 0.08);
  border-bottom-color: rgba(239, 68, 68, 0.2);
}

.modal-header-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-md);
  flex-shrink: 0;
}

.danger-header .modal-header-icon {
  background: var(--color-error-light);
  color: var(--color-error);
}

.modal-title {
  flex: 1;
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  line-height: var(--lh-tight);
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.modal-close-btn:hover {
  background: var(--border-default);
  color: var(--text-primary);
  transform: rotate(90deg);
}

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

.modal-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
  flex-shrink: 0;
  background: var(--bg-card);
}

.confirm-message {
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: var(--lh-relaxed);
}

/* ═══════════════════════════════════════════════════════════════════════════
   08. HEADER & NAVIGATION
═══════════════════════════════════════════════════════════════════════════ */

.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-default);
  transition: background var(--transition-slow),
              border-color var(--transition-slow),
              box-shadow var(--transition-base);
}

.app-header.scrolled {
  box-shadow: var(--shadow-md);
  background: var(--bg-elevated);
}

.header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 0 var(--space-6);
  max-width: 1920px;
  margin: 0 auto;
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  flex-shrink: 0;
  transition: transform var(--transition-bounce);
}
.header-logo:hover { transform: scale(1.03); }

.logo-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.logo-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--fw-black);
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}

.logo-accent {
  color: var(--color-primary);
}

.logo-badge {
  font-size: 0.65rem;
  font-weight: var(--fw-bold);
  background: var(--color-primary-light);
  color: var(--color-primary);
  padding: 2px 6px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(108, 99, 255, 0.25);
  letter-spacing: 0.05em;
  align-self: flex-start;
  margin-top: 2px;
}

/* Header Center */
.header-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.header-roadmap-title {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  line-height: var(--lh-tight);
  cursor: pointer;
  transition: color var(--transition-fast);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}
.header-roadmap-title:hover { color: var(--color-primary); }

.header-roadmap-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

/* Search */
.header-search-wrap {
  display: flex;
  align-items: center;
  position: relative;
}

.header-search-box {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-md);
  overflow: hidden;
  width: 0;
  opacity: 0;
  pointer-events: none;
  transition: width var(--transition-base),
              opacity var(--transition-base);
  z-index: 10;
}

.header-search-box.open {
  width: 280px;
  opacity: 1;
  pointer-events: all;
}

.search-input {
  flex: 1;
  padding: var(--space-2) var(--space-4);
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: var(--text-sm);
  outline: none;
}
.search-input::placeholder { color: var(--text-muted); }

.search-clear-btn {
  padding: var(--space-2) var(--space-3);
  color: var(--text-muted);
  font-size: var(--text-xs);
  transition: color var(--transition-fast);
}
.search-clear-btn:hover { color: var(--color-error); }

/* Icon Buttons */
.icon-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
  position: relative;
  flex-shrink: 0;
}
.icon-btn:hover {
  background: var(--border-default);
  color: var(--text-primary);
  transform: translateY(-1px);
}
.icon-btn:active { transform: translateY(0) scale(0.95); }
.icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.theme-toggle-btn:hover {
  background: var(--color-warning-light);
  color: var(--color-warning);
}

.danger-icon-btn:hover {
  background: var(--color-error-light);
  color: var(--color-error);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: var(--space-2);
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  transform-origin: center;
}

.mobile-menu-btn.open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn.open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-menu-btn.open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border-default);
  padding: var(--space-4) var(--space-6);
  background: var(--bg-glass);
  gap: var(--space-4);
  flex-direction: column;
}
.mobile-menu.open { display: flex; }

.mobile-search { width: 100%; }
.search-input-mobile { padding-left: 2.5rem !important; }

.input-icon {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: var(--text-sm);
  pointer-events: none;
}

.mobile-menu-actions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--space-2);
}

.mobile-menu-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  transition: all var(--transition-fast);
}
.mobile-menu-item:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-color: rgba(108, 99, 255, 0.3);
}

.mobile-theme-btn {
  grid-column: 1 / -1;
}

/* ═══════════════════════════════════════════════════════════════════════════
   09. ANALYTICS BAR
═══════════════════════════════════════════════════════════════════════════ */

.analytics-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-default);
  padding: var(--space-4) var(--space-6);
  position: relative;
  overflow: hidden;
}

.analytics-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(108, 99, 255, 0.03) 0%,
    transparent 60%);
  pointer-events: none;
}

.analytics-inner {
  display: flex;
  align-items: stretch;
  gap: var(--space-4);
  max-width: 1920px;
  margin: 0 auto;
  overflow-x: auto;
  padding-bottom: 2px;
}

.analytics-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-5);
  flex-shrink: 0;
  transition: all var(--transition-base);
  min-width: 140px;
}

.analytics-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.analytics-card-wide {
  flex: 1;
  min-width: 220px;
  max-width: 340px;
}

.analytics-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-md);
  flex-shrink: 0;
}

.analytics-blue   { background: rgba(59,130,246,0.15);  color: #60A5FA; }
.analytics-green  { background: rgba(34,197,94,0.15);   color: #4ADE80; }
.analytics-yellow { background: rgba(245,158,11,0.15);  color: #FCD34D; }
.analytics-red    { background: rgba(239,68,68,0.15);   color: #F87171; }
.analytics-purple { background: rgba(168,85,247,0.15);  color: #C084FC; }
.analytics-teal   { background: rgba(34,211,238,0.15);  color: #67E8F9; }

.analytics-info   { flex: 1; min-width: 0; }
.analytics-info-wide { width: 100%; }

.analytics-value {
  display: block;
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
  transition: transform var(--transition-bounce);
}

.analytics-value.updating {
  animation: countPulse 0.4s ease;
}

.analytics-label {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: var(--fw-medium);
  margin-top: 2px;
  white-space: nowrap;
}

.analytics-progress-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

.analytics-progress-bar-wrap {
  width: 100%;
  height: 6px;
  background: var(--border-default);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.analytics-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-full);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════════════════════════════════════
   10. TOOLBAR & FILTERS
═══════════════════════════════════════════════════════════════════════════ */

.toolbar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-default);
  padding: var(--space-3) var(--space-6);
  position: sticky;
  top: var(--header-height);
  z-index: var(--z-dropdown);
}

.toolbar-inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  max-width: 1920px;
  margin: 0 auto;
  flex-wrap: wrap;
}

/* View Tabs */
.view-tabs {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 2px;
  flex-shrink: 0;
}

.view-tab {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: calc(var(--radius-md) - 2px);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--text-muted);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.view-tab:hover {
  color: var(--text-primary);
  background: var(--border-default);
}

.view-tab.active {
  background: var(--color-primary);
  color: var(--text-on-primary);
  box-shadow: var(--shadow-primary);
}

.view-tab i {
  font-size: var(--text-xs);
}

/* Toolbar Filters */
.toolbar-filters {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: 1;
  flex-wrap: wrap;
}

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

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

.shortcuts-hint-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
  margin-left: auto;
  flex-shrink: 0;
}
.shortcuts-hint-btn:hover {
  background: var(--border-default);
  color: var(--text-primary);
}

/* Search Results Banner */
.search-results-banner {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-6);
  background: var(--color-info-light);
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
  font-size: var(--text-sm);
  color: var(--color-info);
}

.btn-link {
  background: none;
  border: none;
  color: var(--color-info);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  text-decoration: underline;
  cursor: pointer;
  transition: color var(--transition-fast);
  padding: 0;
  margin-left: auto;
}
.btn-link:hover { color: var(--color-info-hover); }

/* ═══════════════════════════════════════════════════════════════════════════
   11. BOARD VIEW — SCROLL CONTAINER
═══════════════════════════════════════════════════════════════════════════ */

.view-container {
  flex: 1;
  overflow: auto;
}
.view-container[hidden] { display: none !important; }
.view-container.active { display: flex; flex-direction: column; }

.board-scroll-container {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  padding: var(--space-6);
  padding-bottom: var(--space-4);
}

.board-grid {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  min-height: calc(100vh - var(--header-height) - 180px);
  width: max-content;
  min-width: 100%;
}

/* ═══════════════════════════════════════════════════════════════════════════
   12. STAGE COLUMNS & ITEM CARDS
═══════════════════════════════════════════════════════════════════════════ */

.stage-column {
  width: var(--stage-col-width);
  min-width: var(--stage-col-min-width);
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color var(--transition-fast),
              box-shadow var(--transition-fast);
  max-height: calc(100vh - var(--header-height) - 180px);
}

.stage-column:hover {
  border-color: var(--border-hover);
}

/* Stage Headers */
.stage-header {
  padding: var(--space-5);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.stage-header::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.6;
  pointer-events: none;
}

.stage-vision      { background: var(--stage-0-bg); border-bottom: 2px solid var(--stage-0-color); }
.stage-research    { background: var(--stage-1-bg); border-bottom: 2px solid var(--stage-1-color); }
.stage-architecture{ background: var(--stage-2-bg); border-bottom: 2px solid var(--stage-2-color); }
.stage-development { background: var(--stage-3-bg); border-bottom: 2px solid var(--stage-3-color); }
.stage-deployment  { background: var(--stage-4-bg); border-bottom: 2px solid var(--stage-4-color); }
.stage-scaling     { background: var(--stage-5-bg); border-bottom: 2px solid var(--stage-5-color); }
.stage-hero        { background: var(--stage-6-bg); border-bottom: 2px solid var(--stage-6-color); position: relative; overflow: hidden; }

/* Hero Crown */
.hero-crown {
  position: absolute;
  top: -8px;
  right: 14px;
  font-size: 1.75rem;
  animation: heroCrownBounce 3s ease-in-out infinite;
  filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.5));
}

/* Hero Stage sparkle effect */
.stage-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%,
    rgba(245, 158, 11, 0.12) 0%,
    transparent 70%);
  pointer-events: none;
}

.stage-header-top {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.stage-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  backdrop-filter: blur(4px);
}

.stage-emoji {
  font-size: 1.375rem;
  line-height: 1;
}

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

.stage-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.stage-title {
  font-size: var(--text-base);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  line-height: var(--lh-tight);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stage-number {
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  background: rgba(255,255,255,0.1);
  color: var(--text-secondary);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.08);
}

.stage-number-hero {
  background: rgba(245, 158, 11, 0.2);
  color: var(--stage-6-color);
  border-color: rgba(245, 158, 11, 0.3);
}

.stage-subtitle {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 3px;
  line-height: var(--lh-snug);
}

.stage-header-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.stage-progress-mini {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.stage-progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Stage-specific fill colors */
#stage-0 .stage-progress-fill { background: var(--stage-0-color); }
#stage-1 .stage-progress-fill { background: var(--stage-1-color); }
#stage-2 .stage-progress-fill { background: var(--stage-2-color); }
#stage-3 .stage-progress-fill { background: var(--stage-3-color); }
#stage-4 .stage-progress-fill { background: var(--stage-4-color); }
#stage-5 .stage-progress-fill { background: var(--stage-5-color); }
#stage-6 .stage-progress-fill { background: var(--stage-6-color); }

.stage-item-count {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Sub-nodes */
.stage-sub-nodes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.sub-node {
  font-size: 0.65rem;
  font-weight: var(--fw-semibold);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.07);
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition: all var(--transition-fast);
}

.sub-node:hover {
  background: rgba(255,255,255,0.12);
  color: var(--text-secondary);
}

.sub-node-hero {
  background: rgba(245, 158, 11, 0.1);
  color: var(--stage-6-color);
  border-color: rgba(245, 158, 11, 0.2);
}

/* Stage Body (Items List) */
.stage-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-height: 80px;
}

.stage-body.drag-over {
  background: var(--color-primary-light);
  border: 2px dashed var(--color-primary);
  border-radius: var(--radius-md);
}

/* Empty States */
.stage-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-8) var(--space-4);
  gap: var(--space-2);
  animation: fadeIn 0.3s ease;
}

.empty-icon {
  font-size: 2.5rem;
  opacity: 0.4;
  filter: grayscale(0.5);
}

.empty-title {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-muted);
}

.empty-sub {
  font-size: var(--text-xs);
  color: var(--text-disabled);
  line-height: var(--lh-normal);
}

/* Stage Footer */
.stage-footer {
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--border-default);
  flex-shrink: 0;
}

.add-item-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-default);
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  transition: all var(--transition-fast);
  background: transparent;
}

.add-item-btn:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-1px);
}

.add-item-btn-hero:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: var(--stage-6-color);
  color: var(--stage-6-color);
}

/* ────────────────────────────────────
   ITEM CARDS
──────────────────────────────────── */

.item-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  animation: cardEnter 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  role: listitem;
}

.item-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  transition: width var(--transition-fast);
}

/* Priority left borders */
.item-card[data-priority="critical"]::before { background: var(--priority-critical); }
.item-card[data-priority="high"]::before     { background: var(--priority-high); }
.item-card[data-priority="medium"]::before   { background: var(--priority-medium); }
.item-card[data-priority="low"]::before      { background: var(--priority-low); }

.item-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.item-card:hover::before {
  width: 5px;
}

.item-card.dragging {
  opacity: 0.5;
  transform: rotate(2deg) scale(0.98);
  box-shadow: var(--shadow-lg);
  cursor: grabbing;
}

/* Card Header Row */
.card-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.card-title {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  line-height: var(--lh-snug);
  flex: 1;
  word-break: break-word;
}

.card-done .card-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

.card-actions-row {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-shrink: 0;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.item-card:hover .card-actions-row { opacity: 1; }

.card-action-btn {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.65rem;
  transition: all var(--transition-fast);
}
.card-action-btn:hover {
  background: var(--border-default);
  color: var(--text-primary);
}
.card-action-btn.delete-btn:hover {
  background: var(--color-error-light);
  color: var(--color-error);
}

/* Card Description */
.card-desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: var(--lh-normal);
  margin-bottom: var(--space-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Meta Row */
.card-meta-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: var(--fw-bold);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  letter-spacing: 0.03em;
}

/* Priority badges */
.badge-priority-critical { background: rgba(239,68,68,0.15);   color: var(--priority-critical); border: 1px solid rgba(239,68,68,0.25); }
.badge-priority-high     { background: rgba(249,115,22,0.15);  color: var(--priority-high);     border: 1px solid rgba(249,115,22,0.25); }
.badge-priority-medium   { background: rgba(234,179,8,0.15);   color: var(--priority-medium);   border: 1px solid rgba(234,179,8,0.25); }
.badge-priority-low      { background: rgba(34,197,94,0.15);   color: var(--priority-low);      border: 1px solid rgba(34,197,94,0.25); }

/* Status badges */
.badge-status-todo       { background: rgba(100,116,139,0.15); color: #94A3B8; border: 1px solid rgba(100,116,139,0.25); }
.badge-status-inprogress { background: rgba(59,130,246,0.15);  color: #60A5FA; border: 1px solid rgba(59,130,246,0.25); }
.badge-status-review     { background: rgba(168,85,247,0.15);  color: #C084FC; border: 1px solid rgba(168,85,247,0.25); }
.badge-status-done       { background: rgba(34,197,94,0.15);   color: #4ADE80; border: 1px solid rgba(34,197,94,0.25); }
.badge-status-blocked    { background: rgba(239,68,68,0.15);   color: #F87171; border: 1px solid rgba(239,68,68,0.25); }

/* Card Progress Bar */
.card-progress-wrap {
  margin-bottom: var(--space-3);
}

.card-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-bottom: var(--space-1);
}

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

.card-progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-progress-fill.progress-low  { background: var(--color-error); }
.card-progress-fill.progress-mid  { background: var(--color-warning); }
.card-progress-fill.progress-good { background: var(--color-info); }
.card-progress-fill.progress-done { background: var(--color-success); }

/* Card Footer Row */
.card-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.card-assignee {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.card-avatar {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: var(--fw-bold);
  flex-shrink: 0;
}

.card-due-date {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.card-due-date.overdue {
  color: var(--color-error);
}
.card-due-date.due-soon {
  color: var(--color-warning);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: var(--space-2);
}

.card-tag {
  font-size: 0.6rem;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  background: var(--color-secondary-light);
  color: var(--color-secondary);
  border: 1px solid rgba(34, 211, 238, 0.2);
  font-weight: var(--fw-medium);
}

/* ── Hero Stage Card (Elevated Style) ──────────── */
.stage-hero-col .item-card {
  background: linear-gradient(135deg, var(--bg-elevated), rgba(245, 158, 11, 0.05));
  border-color: rgba(245, 158, 11, 0.15);
}
.stage-hero-col .item-card:hover {
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15);
}

/* ═══════════════════════════════════════════════════════════════════════════
   13. TIMELINE VIEW
═══════════════════════════════════════════════════════════════════════════ */

.timeline-container {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-6);
}

.timeline-header-row {
  margin-bottom: var(--space-8);
  text-align: center;
}

.timeline-main-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--fw-black);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.timeline-sub {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.timeline-stages {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 960px;
  margin: 0 auto;
}

.timeline-stage-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
  animation: fadeInUp 0.4s ease both;
}
.timeline-stage-item:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}

.timeline-stage-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  transition: background var(--transition-fast);
}
.timeline-stage-header:hover { background: var(--bg-card-hover); }

.timeline-stage-emoji {
  font-size: 1.75rem;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.timeline-stage-info { flex: 1; min-width: 0; }

.timeline-stage-name {
  font-size: var(--text-md);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  line-height: var(--lh-tight);
}

.timeline-stage-sub {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 3px;
}

.timeline-progress-section {
  flex: 1;
  max-width: 280px;
}

.timeline-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: 6px;
}

.timeline-progress-bar-wrap {
  height: 8px;
  background: var(--border-default);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.timeline-progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-stage-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.timeline-stat-count {
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
}

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

.timeline-chevron {
  color: var(--text-muted);
  font-size: var(--text-sm);
  transition: transform var(--transition-base);
  flex-shrink: 0;
}
.timeline-stage-item.expanded .timeline-chevron {
  transform: rotate(180deg);
}

/* Timeline Stage Body */
.timeline-stage-body {
  display: none;
  border-top: 1px solid var(--border-default);
  padding: var(--space-4) var(--space-6);
  gap: var(--space-3);
  flex-direction: column;
}
.timeline-stage-item.expanded .timeline-stage-body {
  display: flex;
  animation: fadeIn 0.25s ease;
}

.timeline-item-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-elevated);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}
.timeline-item-row:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  cursor: pointer;
}

.timeline-item-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.timeline-item-title {
  flex: 1;
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-item-progress {
  width: 80px;
  text-align: right;
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: var(--fw-semibold);
  flex-shrink: 0;
}

.timeline-empty {
  text-align: center;
  padding: var(--space-6);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* ═══════════════════════════════════════════════════════════════════════════
   14. LIST VIEW (TABLE)
═══════════════════════════════════════════════════════════════════════════ */

.list-container {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-6);
}

.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
  gap: var(--space-3);
}

.list-main-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--fw-black);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.list-total-badge {
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  background: var(--color-primary-light);
  color: var(--color-primary);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  border: 1px solid rgba(108, 99, 255, 0.25);
}

.list-toolbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Table */
.list-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.list-table {
  width: 100%;
  border-collapse: collapse;
}

.list-table th {
  background: var(--bg-elevated);
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border-default);
  white-space: nowrap;
}

.th-sortable {
  cursor: pointer;
  transition: color var(--transition-fast);
  user-select: none;
}
.th-sortable:hover { color: var(--text-primary); }
.th-sortable[aria-sort="ascending"] { color: var(--color-primary); }
.th-sortable[aria-sort="descending"] { color: var(--color-primary); }

.sort-icon {
  margin-left: 4px;
  font-size: 0.65rem;
  opacity: 0.5;
}

.list-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-card);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  vertical-align: middle;
}

.list-table tbody tr {
  transition: background var(--transition-fast);
  cursor: pointer;
}

.list-table tbody tr:hover td {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.list-table tbody tr:last-child td {
  border-bottom: none;
}

.list-table tbody tr:nth-child(even) td {
  background: rgba(255,255,255,0.02);
}

.list-table tbody tr:nth-child(even):hover td {
  background: var(--bg-card-hover);
}

.td-title {
  font-weight: var(--fw-semibold);
  color: var(--text-primary) !important;
  max-width: 220px;
}

.td-title-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  max-width: 220px;
}

.td-progress-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 100px;
}

.td-progress-bar {
  flex: 1;
  height: 5px;
  background: var(--border-default);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.td-progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

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

/* List Empty State */
.list-empty-state {
  padding: var(--space-16);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.empty-state-illustration {
  font-size: 4rem;
  opacity: 0.3;
}

.list-empty-state h3 {
  color: var(--text-muted);
  font-size: var(--text-lg);
}

.list-empty-state p {
  color: var(--text-disabled);
  font-size: var(--text-sm);
}

/* ═══════════════════════════════════════════════════════════════════════════
   15. CHARTS VIEW
═══════════════════════════════════════════════════════════════════════════ */

.charts-container {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-6);
}

.charts-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.charts-main-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--fw-black);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.charts-sub {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  max-width: 1200px;
  margin: 0 auto;
}

.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
}
.chart-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.chart-card-header {
  padding: var(--space-5) var(--space-5) var(--space-3);
  border-bottom: 1px solid var(--border-default);
}

.chart-card-title {
  font-size: var(--text-base);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: 4px;
}

.chart-card-title i {
  color: var(--color-primary);
}

.chart-card-sub {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.chart-card-body {
  padding: var(--space-5);
  position: relative;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-doughnut-body {
  height: 280px;
}

.chart-card-body canvas {
  max-width: 100%;
  max-height: 100%;
}

/* Chart empty state */
.chart-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
  padding: var(--space-8);
}

/* ═══════════════════════════════════════════════════════════════════════════
   16. DETAIL DRAWER (Side Panel)
═══════════════════════════════════════════════════════════════════════════ */

.detail-drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  pointer-events: none;
}

.detail-drawer.open {
  pointer-events: all;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.detail-drawer.open .drawer-backdrop {
  opacity: 1;
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 95vw;
  background: var(--bg-elevated);
  border-left: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-slow) cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.detail-drawer.open .drawer-panel {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border-default);
  background: var(--bg-card);
  flex-shrink: 0;
}

.drawer-title {
  flex: 1;
  font-size: var(--text-md);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer-header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

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

/* Drawer Detail Sections */
.drawer-section {
  margin-bottom: var(--space-6);
}

.drawer-section-label {
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.drawer-section-value {
  font-size: var(--text-sm);
  color: var(--text-primary);
  line-height: var(--lh-relaxed);
  word-break: break-word;
}

.drawer-progress-section {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-6);
}

.drawer-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
}

.drawer-progress-title {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
}

.drawer-progress-value {
  font-size: var(--text-xl);
  font-weight: var(--fw-black);
  font-family: var(--font-display);
  color: var(--color-primary);
}

.drawer-progress-bar {
  height: 10px;
  background: var(--border-default);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.drawer-progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════════════════════════════════════
   17. SHORTCUTS PANEL
═══════════════════════════════════════════════════════════════════════════ */

.shortcuts-panel {
  position: fixed;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + var(--space-4)));
  z-index: var(--z-drawer);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 520px;
  max-width: calc(100vw - var(--space-8));
  transition: transform var(--transition-bounce);
}

.shortcuts-panel.open {
  transform: translateX(-50%) translateY(0);
}

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

.shortcuts-title {
  font-size: var(--text-md);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.shortcuts-close-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: var(--text-xs);
  transition: all var(--transition-fast);
}
.shortcuts-close-btn:hover {
  background: var(--border-default);
  color: var(--text-primary);
}

.shortcuts-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
  padding: var(--space-5);
}

.shortcut-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}
.shortcut-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-bottom-width: 2px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  min-width: 26px;
  text-align: center;
}

.shortcut-desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-left: auto;
  text-align: right;
  flex: 1;
  min-width: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   18. ONBOARDING MODAL
═══════════════════════════════════════════════════════════════════════════ */

.onboarding-overlay {
  background: rgba(0,0,0,0.85);
}

.modal-onboarding {
  text-align: center;
  padding: 0;
  overflow: hidden;
}

.onboarding-slides {
  position: relative;
  overflow: hidden;
}

.onboarding-slide {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: var(--space-12) var(--space-8) var(--space-6);
  gap: var(--space-4);
}

.onboarding-slide.active {
  display: flex;
  animation: slideIn 0.4s ease;
}

.onboarding-hero {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
}

.onboarding-emoji {
  font-size: 4rem;
  position: relative;
  z-index: 1;
  animation: onboardingFloat 3s ease-in-out infinite;
}

.onboarding-glow {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  background: var(--color-primary-glow);
  filter: blur(30px);
  animation: glowPulse 2s ease-in-out infinite;
}
.glow-green  { background: rgba(34, 197, 94, 0.3); }
.glow-yellow { background: rgba(245, 158, 11, 0.3); }
.glow-blue   { background: rgba(59, 130, 246, 0.3); }

.onboarding-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--fw-black);
  color: var(--text-primary);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
}

.onboarding-text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
  max-width: 360px;
}

.onboarding-nav {
  padding: var(--space-5) var(--space-8) var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  border-top: 1px solid var(--border-default);
}

.onboarding-dots {
  display: flex;
  gap: var(--space-2);
}

.onboarding-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--border-default);
  transition: all var(--transition-base);
  border: 1px solid var(--border-card);
}

.onboarding-dot.active {
  width: 28px;
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.onboarding-btns {
  display: flex;
  gap: var(--space-3);
  width: 100%;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════════════════
   19. SETTINGS MODAL
═══════════════════════════════════════════════════════════════════════════ */

.settings-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.settings-section {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.settings-section-title {
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-default);
}

.settings-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-card);
}
.settings-toggle-row:last-child { border-bottom: none; }

.settings-toggle-info { flex: 1; min-width: 0; }

.settings-toggle-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
}

.settings-toggle-desc {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

/* Toggle Switch */
.toggle-switch {
  width: 48px;
  height: 26px;
  background: var(--neutral-700);
  border-radius: var(--radius-full);
  position: relative;
  transition: background var(--transition-base);
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.08);
}

.toggle-switch.active,
.toggle-switch[aria-checked="true"] {
  background: var(--color-primary);
  border-color: rgba(108, 99, 255, 0.3);
}

.toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: var(--radius-full);
  transition: transform var(--transition-base);
  box-shadow: var(--shadow-xs);
}

.toggle-switch.active .toggle-knob,
.toggle-switch[aria-checked="true"] .toggle-knob {
  transform: translateX(22px);
}

/* Danger Section */
.danger-section {
  border-color: rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.04);
}

.danger-title { color: var(--color-error) !important; }

.danger-actions {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}

.danger-warning {
  font-size: var(--text-xs);
  color: var(--color-error);
  opacity: 0.8;
  line-height: var(--lh-normal);
}

/* ═══════════════════════════════════════════════════════════════════════════
   20. EXPORT & IMPORT MODALS
═══════════════════════════════════════════════════════════════════════════ */

/* Export */
.export-subtitle {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.export-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.export-option-btn {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  width: 100%;
  text-align: left;
  transition: all var(--transition-base);
}

.export-option-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--color-primary);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.export-option-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  flex-shrink: 0;
}

.pdf-icon  { background: rgba(239,68,68,0.15);  color: var(--color-error); }
.json-icon { background: rgba(245,158,11,0.15); color: var(--color-warning); }
.csv-icon  { background: rgba(34,197,94,0.15);  color: var(--color-success); }
.md-icon   { background: rgba(59,130,246,0.15); color: var(--color-info); }

.export-option-info {
  flex: 1;
  min-width: 0;
}

.export-option-title {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
}

.export-option-desc {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

/* Import */
.import-drop-zone {
  border: 2px dashed var(--border-input);
  border-radius: var(--radius-lg);
  padding: var(--space-10) var(--space-6);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  margin-bottom: var(--space-4);
}

.import-drop-zone:hover,
.import-drop-zone.drag-hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.import-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.import-drop-icon {
  font-size: 2.5rem;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
  transition: color var(--transition-fast);
}
.import-drop-zone:hover .import-drop-icon { color: var(--color-primary); }

.import-drop-title {
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.import-drop-sub {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.import-file-preview {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-4);
}

.import-file-info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
}

.import-file-info i {
  color: var(--color-warning);
  font-size: var(--text-md);
}

#importFileName {
  flex: 1;
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#importFileSize {
  font-size: var(--text-xs);
  color: var(--text-muted);
  flex-shrink: 0;
}

.import-file-remove {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: var(--text-xs);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.import-file-remove:hover {
  background: var(--color-error-light);
  color: var(--color-error);
}

.import-warning {
  font-size: var(--text-xs);
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  line-height: var(--lh-normal);
}

/* ═══════════════════════════════════════════════════════════════════════════
   21. BUTTONS SYSTEM
═══════════════════════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  font-family: var(--font-ui);
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  user-select: none;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

/* Ripple effect */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  border-radius: inherit;
  transition: opacity var(--transition-fast);
}
.btn:active::after { opacity: 1; }

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

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

/* Primary */
.btn-primary {
  background: var(--color-primary);
  color: white;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(108, 99, 255, 0.3);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-primary);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

/* Secondary */
.btn-secondary {
  background: var(--color-secondary-light);
  color: var(--color-secondary);
  border-color: rgba(34, 211, 238, 0.25);
}
.btn-secondary:hover {
  background: rgba(34, 211, 238, 0.22);
  transform: translateY(-1px);
  box-shadow: 0 2px 12px rgba(34, 211, 238, 0.25);
}

/* Danger */
.btn-danger {
  background: var(--color-error);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-error);
}
.btn-danger:hover {
  background: var(--color-error-hover);
  transform: translateY(-1px);
}

/* Outline Danger */
.btn-outline-danger {
  background: transparent;
  color: var(--color-error);
  border-color: rgba(239, 68, 68, 0.4);
}
.btn-outline-danger:hover {
  background: var(--color-error-light);
  transform: translateY(-1px);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-default);
}
.btn-ghost:hover {
  background: var(--border-default);
  color: var(--text-primary);
}

/* Success */
.btn-success {
  background: var(--color-success);
  color: white;
  border-color: transparent;
}
.btn-success:hover {
  background: var(--color-success-hover);
  transform: translateY(-1px);
}

/* Small */
.btn-sm {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  border-radius: calc(var(--radius-md) - 2px);
}

/* With loading spinner */
.btn.loading {
  pointer-events: none;
}
.btn.loading::before {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: var(--radius-full);
  animation: spin 0.6s linear infinite;
  flex-shrink: 0;
}

/* btn-label visibility on mobile */
@media (max-width: 768px) {
  .btn-label { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   22. FORM SYSTEM
═══════════════════════════════════════════════════════════════════════════ */

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.form-group:last-child { margin-bottom: 0; }

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  line-height: 1;
}

.required-label::after {
  content: '*';
  color: var(--color-error);
  font-weight: var(--fw-bold);
  margin-left: 2px;
}

.label-optional {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: var(--fw-regular);
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
  outline: none;
  line-height: var(--lh-normal);
}

.form-input::placeholder {
  color: var(--text-disabled);
}

.form-input:hover {
  border-color: var(--border-hover);
}

.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
  background: var(--bg-card);
}

/* Error state */
.form-input.input-error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px var(--color-error-light);
  animation: inputShake 0.4s ease;
}

/* Success state */
.form-input.input-success {
  border-color: var(--color-success);
  box-shadow: 0 0 0 3px var(--color-success-light);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

/* Select */
.select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: var(--space-10) !important;
  cursor: pointer;
}

.form-select option {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.select-arrow {
  position: absolute;
  right: var(--space-3);
  color: var(--text-muted);
  font-size: 0.65rem;
  pointer-events: none;
  transition: transform var(--transition-fast);
}

.form-select:focus + .select-arrow {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.select-sm .form-input {
  padding: var(--space-2) var(--space-8) var(--space-2) var(--space-3);
  font-size: var(--text-xs);
}

/* Range Input */
.form-range {
  width: 100%;
  height: 6px;
  background: var(--border-default);
  border-radius: var(--radius-full);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  padding: 0;
}

.form-range::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.3);
  transition: all var(--transition-fast);
  border: 2px solid white;
}

.form-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 0 5px rgba(108, 99, 255, 0.25);
}

.form-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  cursor: pointer;
  border: 2px solid white;
}

.progress-display {
  font-weight: var(--fw-black);
  color: var(--color-primary);
  font-size: var(--text-md);
  margin-left: auto;
  font-family: var(--font-display);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-top: var(--space-1);
  font-weight: var(--fw-medium);
}

/* Char Count */
.char-count {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: right;
  font-weight: var(--fw-medium);
}

.char-count.char-warning { color: var(--color-warning); }
.char-count.char-danger  { color: var(--color-error); }

/* Clear Button inside input */
.input-clear-btn {
  position: absolute;
  right: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: var(--text-sm);
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}

.input-wrap:focus-within .input-clear-btn,
.input-wrap:hover .input-clear-btn {
  opacity: 1;
}

.input-clear-btn:hover { color: var(--color-error); }

/* Error & Helper Messages */
.form-error {
  font-size: var(--text-xs);
  color: var(--color-error);
  font-weight: var(--fw-medium);
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 16px;
  animation: fadeIn 0.2s ease;
}

.form-error:empty { display: none; }

/* Form group has-error */
.form-group.has-error .form-label { color: var(--color-error); }

/* ═══════════════════════════════════════════════════════════════════════════
   23. FOOTER
═══════════════════════════════════════════════════════════════════════════ */

.app-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-default);
  padding: var(--space-3) var(--space-6);
  flex-shrink: 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1920px;
  margin: 0 auto;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-brand {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.footer-version {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  background: var(--border-default);
  color: var(--text-muted);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  margin-left: var(--space-2);
}

.footer-center {
  display: flex;
  align-items: center;
}

.footer-autosave {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-success);
  font-weight: var(--fw-medium);
}

.footer-autosave.saving {
  color: var(--color-warning);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.footer-stats {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.footer-shortcut-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-muted);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.footer-shortcut-btn:hover {
  color: var(--text-primary);
  background: var(--border-default);
}

/* ═══════════════════════════════════════════════════════════════════════════
   24. UTILITY CLASSES
═══════════════════════════════════════════════════════════════════════════ */

.hidden           { display: none !important; }
.invisible        { visibility: hidden !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.flex             { display: flex; }
.flex-col         { flex-direction: column; }
.items-center     { align-items: center; }
.justify-between  { justify-content: space-between; }
.justify-center   { justify-content: center; }
.gap-2            { gap: var(--space-2); }
.gap-3            { gap: var(--space-3); }
.gap-4            { gap: var(--space-4); }
.flex-1           { flex: 1; }
.w-full           { width: 100%; }
.min-w-0          { min-width: 0; }
.overflow-hidden  { overflow: hidden; }
.rounded-full     { border-radius: var(--radius-full); }
.mt-4             { margin-top: var(--space-4); }
.mb-4             { margin-bottom: var(--space-4); }
.p-4              { padding: var(--space-4); }
.opacity-0        { opacity: 0; }
.pointer-events-none { pointer-events: none; }

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

/* ═══════════════════════════════════════════════════════════════════════════
   25. ANIMATIONS & KEYFRAMES
═══════════════════════════════════════════════════════════════════════════ */

@keyframes loadingFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

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

@keyframes loadingPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

@keyframes toastSlideIn {
  from { transform: translateX(calc(100% + var(--space-4))); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

@keyframes toastSlideOut {
  from { transform: translateX(0); opacity: 1; }
  to   { transform: translateX(calc(100% + var(--space-4))); opacity: 0; }
}

@keyframes toastProgress {
  from { width: 100%; }
  to   { width: 0%; }
}

@keyframes modalOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes modalOverlayOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

@keyframes modalBoxIn {
  from { transform: scale(0.9) translateY(20px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
@keyframes modalBoxOut {
  from { transform: scale(1) translateY(0); opacity: 1; }
  to   { transform: scale(0.92) translateY(10px); opacity: 0; }
}

@keyframes cardEnter {
  from { transform: translateY(12px) scale(0.97); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

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

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

@keyframes countPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.15); color: var(--color-primary); }
  100% { transform: scale(1); }
}

@keyframes inputShake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}

@keyframes skeletonShimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

@keyframes heroCrownBounce {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50%       { transform: translateY(-8px) rotate(5deg); }
}

@keyframes onboardingFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%       { transform: translateY(-12px) rotate(2deg); }
}

@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%       { transform: scale(1.2); opacity: 1; }
}

@keyframes bounceIn {
  0%   { transform: scale(0.3); opacity: 0; }
  50%  { transform: scale(1.05); }
  70%  { transform: scale(0.9); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes successPop {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

/* AOS custom overrides */
[data-aos] {
  pointer-events: none;
}
[data-aos].aos-animate {
  pointer-events: auto;
}

/* ═══════════════════════════════════════════════════════════════════════════
   26. RESPONSIVE BREAKPOINTS
═══════════════════════════════════════════════════════════════════════════ */

/* ── 1440px: Large Desktop ──────────────────────── */
@media (min-width: 1440px) {
  :root {
    --stage-col-width: 360px;
  }
}

/* ── 1280px: Desktop ─────────────────────────────── */
@media (max-width: 1280px) {
  .header-center { display: none; }
  .charts-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── 1024px: Laptop ──────────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --stage-col-width: 300px;
    --stage-col-min-width: 260px;
  }

  .analytics-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .analytics-card-wide {
    grid-column: 1 / -1;
    max-width: 100%;
  }

  .shortcuts-list {
    grid-template-columns: 1fr;
  }
}

/* ── 768px: Tablet ───────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --header-height: var(--header-height-mobile);
    --stage-col-width: 280px;
    --stage-col-min-width: 240px;
  }

  .header-inner {
    padding: 0 var(--space-4);
    gap: var(--space-3);
  }

  .logo-text { display: none; }
  .logo-badge { display: none; }

  .header-actions .exportBtn,
  .header-actions .importBtn {
    display: none;
  }

  .mobile-menu-btn { display: flex; }

  .header-actions > .btn { display: none; }
  .header-search-wrap { display: none; }

  .analytics-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .analytics-card-wide {
    grid-column: 1 / -1;
  }

  .toolbar-inner {
    flex-wrap: wrap;
    gap: var(--space-2);
  }

  .view-tabs {
    order: -1;
    width: 100%;
    justify-content: center;
  }

  .view-tab span { font-size: var(--text-xs); }

  .toolbar-filters {
    width: 100%;
    justify-content: flex-start;
  }

  .board-scroll-container {
    padding: var(--space-4);
  }

  .charts-grid {
    grid-template-columns: 1fr;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .modal-sm,
  .modal-md { max-width: 95vw; }

  .modal-body { padding: var(--space-4); }
  .modal-footer { padding: var(--space-3) var(--space-4); }

  .drawer-panel { width: 100%; }

  .shortcuts-panel {
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(100%);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    width: 100%;
    max-width: 100%;
  }

  .shortcuts-panel.open {
    transform: translateY(0);
  }

  .timeline-stage-header {
    flex-wrap: wrap;
    gap: var(--space-3);
  }

  .timeline-progress-section {
    max-width: 100%;
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }

  .footer-right { width: 100%; justify-content: space-between; }

  .list-table-wrap { overflow-x: auto; }
  .list-table { min-width: 700px; }
}

/* ── 480px: Large Mobile ─────────────────────────── */
@media (max-width: 480px) {
  :root {
    --stage-col-width: 260px;
    --stage-col-min-width: 220px;
  }

  .analytics-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
  }

  .analytics-card {
    padding: var(--space-3);
    min-width: unset;
  }

  .analytics-value {
    font-size: var(--text-lg);
  }

  .view-tab i { display: none; }

  .modal-box {
    max-height: 95vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }

  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .modal-onboarding {
    border-radius: var(--radius-xl);
  }

  .onboarding-overlay {
    align-items: center;
    padding: var(--space-4);
  }

  .hero-crown { display: none; }

  .stage-sub-nodes { display: none; }

  .export-option-btn {
    padding: var(--space-3);
  }

  .export-option-icon {
    width: 40px;
    height: 40px;
    font-size: var(--text-md);
  }
}

/* ── 375px: Standard Mobile ──────────────────────── */
@media (max-width: 375px) {
  .analytics-inner {
    grid-template-columns: 1fr;
  }

  .analytics-card-wide {
    grid-column: unset;
  }

  .view-tab { padding: var(--space-2) var(--space-3); }

  .stage-header { padding: var(--space-4); }

  .stage-body { padding: var(--space-3); }

  .item-card { padding: var(--space-3); }

  .board-scroll-container { padding: var(--space-3); }

  .toolbar-filters {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── 320px: Small Mobile ─────────────────────────── */
@media (max-width: 320px) {
  :root {
    --stage-col-width: 100%;
    font-size: 14px;
  }

  .board-grid {
    width: 100%;
    flex-direction: column;
  }

  .board-scroll-container {
    overflow-x: hidden;
  }

  .stage-column {
    width: 100%;
    min-width: unset;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   27. PRINT STYLES
═══════════════════════════════════════════════════════════════════════════ */

@media print {
  .app-header,
  .toolbar,
  .analytics-bar,
  .app-footer,
  .add-item-btn,
  .card-actions-row,
  .loading-screen,
  .toast-container,
  .modal-overlay,
  .detail-drawer,
  .shortcuts-panel,
  .mobile-menu-btn {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-size: 12px;
  }

  .app-main {
    padding-top: 0;
  }

  .board-scroll-container {
    overflow: visible;
    padding: 0;
  }

  .board-grid {
    flex-wrap: wrap;
    gap: 16px;
  }

  .stage-column {
    break-inside: avoid;
    page-break-inside: avoid;
    width: calc(50% - 8px);
    max-height: none;
    border: 1px solid #ddd;
  }

  .item-card {
    border: 1px solid #eee;
    break-inside: avoid;
    page-break-inside: avoid;
    box-shadow: none;
    transform: none !important;
  }

  .stage-body {
    overflow: visible;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   28. REDUCED MOTION (Accessibility)
═══════════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .loading-icon { animation: none !important; }
  .hero-crown   { animation: none !important; }
  .onboarding-emoji { animation: none !important; }
  .onboarding-glow  { animation: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   END OF STYLE.CSS
   Total: ~2500 lines | Premium Quality | Production Ready
═══════════════════════════════════════════════════════════════════════════ */
