/* ═══════════════════════════════════════════
   CSS VARIABLES & RESET
   ═══════════════════════════════════════════ */
:root {
  --void: #09090B;
  --void-light: #111113;
  --void-lighter: #18181B;
  --void-card: #131316;
  --void-border: #27272A;
  --void-hover: #1C1C1F;
  --cyan: #E4E4E7;
  --cyan-dim: #A1A1AA;
  --cyan-glow: rgba(228, 228, 231, 0.1);
  --cyan-glow-strong: rgba(228, 228, 231, 0.2);
  --cyan-bg: rgba(228, 228, 231, 0.06);
  --white: #FAFAFA;
  --white-dim: #A1A1AA;
  --white-muted: #71717A;
  --red: #EF4444;
  --orange: #F59E0B;
  --green: #22C55E;
  --purple: #A78BFA;
  --blue: #60A5FA;
  --pink: #F472B6;
  --sidebar-w: 260px;
  --topbar-h: 64px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Outfit', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; }
body {
  --font: 'Outfit', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  font-family: var(--font);
  background: var(--void);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: #52525B; color: var(--white); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--void-border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--white-muted); }

a { color: var(--white-dim); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--white); }

button { font-family: var(--font); cursor: pointer; border: none; outline: none; }
input, textarea, select { font-family: var(--font); outline: none; }

img { max-width: 100%; }

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px var(--cyan-glow), 0 0 40px rgba(255,255,255,0.03); }
  50% { box-shadow: 0 0 30px var(--cyan-glow-strong), 0 0 60px rgba(255,255,255,0.06); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes borderGlow {
  0%, 100% { border-color: var(--void-border); }
  50% { border-color: rgba(255,255,255,0.15); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.animate-in { animation: fadeIn 0.6s ease forwards; }
.animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.3s; opacity: 0; }
.animate-delay-4 { animation-delay: 0.4s; opacity: 0; }
.animate-delay-5 { animation-delay: 0.5s; opacity: 0; }

/* ═══════════════════════════════════════════
   COMMON COMPONENTS
   ═══════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14px; letter-spacing: 0.3px;
  transition: all var(--transition); position: relative; overflow: hidden;
}
.btn-cyan {
  background: var(--white); color: var(--void);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.btn-cyan:hover {
  background: #E4E4E7; transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.btn-cyan:active { transform: translateY(0); }
.btn-ghost {
  background: transparent; color: var(--white-dim); border: 1px solid var(--void-border);
}
.btn-ghost:hover { border-color: #52525B; color: var(--white); background: var(--void-hover); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 40px; font-size: 16px; border-radius: var(--radius); }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.badge-cyan { background: var(--cyan-bg); color: var(--cyan); }
.badge-red { background: rgba(255, 92, 106, 0.1); color: var(--red); }
.badge-orange { background: rgba(255, 179, 71, 0.1); color: var(--orange); }
.badge-green { background: rgba(74, 222, 128, 0.1); color: var(--green); }
.badge-purple { background: rgba(167, 139, 250, 0.1); color: var(--purple); }

.input-field {
  width: 100%; padding: 14px 16px; background: var(--void);
  border: 1px solid var(--void-border); border-radius: var(--radius-sm);
  color: var(--white); font-size: 15px; transition: all var(--transition);
}
.input-field::placeholder { color: var(--white-muted); }
.input-field:focus { border-color: #52525B; box-shadow: 0 0 0 3px rgba(82,82,91,0.2); }

.input-group { margin-bottom: 20px; }
.input-label {
  display: block; margin-bottom: 8px; font-size: 13px;
  font-weight: 500; color: var(--white-dim); letter-spacing: 0.3px;
}

.card {
  background: var(--void-card); border: 1px solid var(--void-border);
  border-radius: var(--radius); padding: 24px; transition: all var(--transition);
}
.card:hover { border-color: rgba(255,255,255,0.1); }

.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 14px; flex-shrink: 0; overflow: hidden;
}

.tooltip { position: relative; }
.tooltip::after {
  content: attr(data-tip); position: absolute; bottom: 100%; left: 50%;
  transform: translateX(-50%) translateY(-4px); padding: 6px 12px;
  background: var(--void-lighter); border: 1px solid var(--void-border);
  border-radius: var(--radius-xs); font-size: 12px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: all var(--transition);
}
.tooltip:hover::after { opacity: 1; transform: translateX(-50%) translateY(-8px); }

/* ═══════════════════════════════════════════
   PAGE VIEWS (SPA)
   ═══════════════════════════════════════════ */
.page { display: none; min-height: 100vh; }
.page.active { display: block; }
.page-dashboard.active { display: block; }

/* ═══════════════════════════════════════════
   LANDING PAGE
   ═══════════════════════════════════════════ */
.landing-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 72px;
  background: rgba(11, 15, 20, 0.85); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(30, 39, 53, 0.5);
}
.landing-nav .logo { display: flex; align-items: center; gap: 12px; }
.landing-nav .logo img { height: 40px; width: 40px; object-fit: contain; border-radius: 8px; mix-blend-mode: lighten; }
.landing-nav .logo span { font-size: 20px; font-weight: 700; letter-spacing: -0.5px; }
.landing-nav .logo .t-accent { color: var(--white); }
.landing-nav-links { display: flex; align-items: center; gap: 32px; }
.landing-nav-links a { color: var(--white-dim); font-size: 14px; font-weight: 500; }
.landing-nav-links a:hover { color: var(--white); }

/* Hero */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 80px 24px 80px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.015) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(255,255,255,0.01) 0%, transparent 50%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px; border-radius: 100px; font-size: 13px; font-weight: 500;
  background: rgba(255,255,255,0.05); color: var(--white-dim); border: 1px solid var(--void-border);
  margin-bottom: 32px;
}
.hero-badge svg { width: 14px; height: 14px; }
.hero h1 {
  font-size: clamp(48px, 7vw, 80px); font-weight: 800; line-height: 1.05;
  letter-spacing: -2px; margin-bottom: 24px;
}
.hero h1 .gradient-text {
  background: linear-gradient(135deg, #FAFAFA, #A1A1AA, #FAFAFA);
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}
.hero p {
  font-size: 20px; color: var(--white-dim); max-width: 560px; margin: 0 auto 40px;
  line-height: 1.7; font-weight: 300;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Grid Background */
.grid-bg {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  opacity: 0.3;
}
.grid-bg::before {
  content: ''; position: absolute; inset: -50%;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(500px) rotateX(60deg);
  transform-origin: center 30%;
}

/* Features Section */
.features {
  padding: 120px 48px; position: relative;
}
.features-header {
  text-align: center; margin-bottom: 80px;
}
.features-header h2 {
  font-size: 42px; font-weight: 700; letter-spacing: -1px; margin-bottom: 16px;
}
.features-header p { color: var(--white-dim); font-size: 18px; max-width: 500px; margin: 0 auto; }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px; max-width: 1200px; margin: 0 auto;
}
.feature-card {
  background: var(--void-light); border: 1px solid var(--void-border);
  border-radius: var(--radius); padding: 36px;
  transition: all 0.4s ease; position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  opacity: 0; transition: opacity 0.4s;
}
.feature-card:hover { border-color: #3F3F46; transform: translateY(-4px); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; color: var(--white-dim);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.feature-card p { color: var(--white-dim); font-size: 14px; line-height: 1.7; }

/* Stats Section */
.stats {
  padding: 80px 48px; border-top: 1px solid var(--void-border);
  border-bottom: 1px solid var(--void-border);
}
.stats-grid {
  display: flex; justify-content: center; gap: 80px; flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-number {
  font-size: 48px; font-weight: 800; color: var(--white);
  letter-spacing: -2px; line-height: 1;
}
.stat-label { color: var(--white-muted); font-size: 14px; margin-top: 8px; font-weight: 500; }

/* CTA Section */
.cta-section {
  padding: 120px 48px; text-align: center; position: relative;
}
.cta-section::before {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.02) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section h2 { font-size: 42px; font-weight: 700; letter-spacing: -1px; margin-bottom: 16px; }
.cta-section p { color: var(--white-dim); font-size: 18px; margin-bottom: 40px; }

/* Footer */
.landing-footer {
  padding: 40px 48px; border-top: 1px solid var(--void-border);
  display: flex; justify-content: space-between; align-items: center;
}
.landing-footer p { color: var(--white-muted); font-size: 13px; }
.landing-footer-links { display: flex; gap: 24px; }
.landing-footer-links a { color: var(--white-muted); font-size: 13px; }

/* ═══════════════════════════════════════════
   AUTH PAGE
   ═══════════════════════════════════════════ */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px; position: relative;
}
.auth-page::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.025) 0%, transparent 60%);
  pointer-events: none;
}
.auth-container {
  width: 100%; max-width: 440px; position: relative; z-index: 2;
  animation: scaleIn 0.4s ease;
}
.auth-logo {
  display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 40px;
}
.auth-logo img { height: 48px; width: 48px; object-fit: contain; border-radius: 10px; mix-blend-mode: lighten; }
.auth-logo span { font-size: 24px; font-weight: 700; }
.auth-box {
  background: var(--void-light); border: 1px solid var(--void-border);
  border-radius: 16px; padding: 40px; backdrop-filter: blur(20px);
}
.auth-tabs {
  display: flex; gap: 4px; margin-bottom: 32px;
  background: var(--void); border-radius: var(--radius-sm); padding: 4px;
}
.auth-tab {
  flex: 1; padding: 12px; text-align: center; border-radius: var(--radius-xs);
  font-size: 14px; font-weight: 600; color: var(--white-muted);
  background: transparent; transition: all var(--transition);
}
.auth-tab.active { background: var(--void-lighter); color: var(--white); }
.auth-tab:hover:not(.active) { color: var(--white-dim); }
.auth-form { display: none; }
.auth-form.active { display: block; animation: fadeIn 0.3s ease; }
.auth-submit { width: 100%; padding: 14px; font-size: 15px; }
.auth-divider {
  display: flex; align-items: center; gap: 16px; margin: 24px 0;
  color: var(--white-muted); font-size: 13px;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--void-border);
}
.auth-back {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  margin-top: 24px; color: var(--white-muted); font-size: 14px;
  background: none; width: 100%;
}
.auth-back:hover { color: var(--white); }

/* ═══════════════════════════════════════════
   DASHBOARD LAYOUT
   ═══════════════════════════════════════════ */
.page-dashboard {
  min-height: 100vh; background: var(--void);
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-w); height: 100vh; position: fixed; top: 0; left: 0;
  background: var(--void-light); border-right: 1px solid var(--void-border);
  display: flex; flex-direction: column; z-index: 50;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: visible;
}
.sidebar.collapsed { width: 68px; }

/* ── Header with logo + collapse arrow ── */
.sidebar-header {
  display: flex; align-items: center; height: var(--topbar-h);
  min-height: var(--topbar-h);
  border-bottom: 1px solid var(--void-border);
  padding: 0 14px; gap: 10px;
  position: relative; overflow: visible;
}
.sidebar-header-logo {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  flex: 1; min-width: 0; overflow: hidden;
}
.sidebar-header img {
  height: 40px; width: 40px; object-fit: contain; border-radius: 10px; flex-shrink: 0;
  mix-blend-mode: lighten;
}
.sidebar-header .logo-text {
  font-size: 18px; font-weight: 700; white-space: nowrap;
  transition: opacity 0.2s ease 0.1s, max-width 0.3s; overflow: hidden;
  max-width: 160px;
}
.sidebar.collapsed .sidebar-header .logo-text { opacity: 0; max-width: 0; transition: opacity 0.1s, max-width 0.3s; }
.sidebar-header .t-accent { color: var(--white); }

/* Collapsed header: center the logo, keep it visible */
.sidebar.collapsed .sidebar-header { padding: 0 12px; justify-content: center; gap: 0; }
.sidebar.collapsed .sidebar-header-logo { flex: 0 0 auto; justify-content: center; overflow: visible; }

.sidebar-collapse-arrow {
  width: 28px; height: 28px; border-radius: 6px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: none; border: 1px solid transparent; color: var(--white-muted);
  cursor: pointer; transition: all var(--transition);
  position: relative; z-index: 70;
}
.sidebar-collapse-arrow:hover { color: var(--white); background: var(--void-hover); border-color: var(--void-border); }
.sidebar-collapse-arrow svg { width: 16px; height: 16px; transition: transform 0.3s cubic-bezier(0.4,0,0.2,1); }
.sidebar.collapsed .sidebar-collapse-arrow svg { transform: rotate(180deg); }

/* Collapsed: arrow floats on the edge of the sidebar */
.sidebar.collapsed .sidebar-collapse-arrow {
  position: absolute; right: -14px; top: 18px;
  width: 28px; height: 28px;
  background: var(--void-light); border: 1px solid var(--void-border);
  border-radius: 50%; z-index: 70;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.sidebar.collapsed .sidebar-collapse-arrow:hover { background: var(--void-hover); border-color: #52525B; color: var(--white); }

/* ── Nav container ── */
.sidebar-nav { flex: 1; padding: 10px 10px; overflow-y: auto; overflow-x: hidden; }
.sidebar.collapsed .sidebar-nav { padding: 12px 0; display: flex; flex-direction: column; align-items: center; overflow-x: hidden; }

/* ── Sections ── */
.sidebar-section { margin-bottom: 0; width: 100%; }
.sidebar-section:last-child { margin-bottom: 0; }
.sidebar-section-label {
  padding: 0 14px; margin-bottom: 8px; font-size: 10px; font-weight: 700;
  color: var(--white-muted); text-transform: uppercase; letter-spacing: 1.5px;
  white-space: nowrap; overflow: hidden;
  height: 16px; display: flex; align-items: center;
  transition: opacity 0.15s, height 0.25s, margin 0.25s;
}
.sidebar.collapsed .sidebar-section-label { opacity: 0; height: 0; margin: 0; padding: 0; }
.sidebar.collapsed .sidebar-section { margin-bottom: 0; }

/* Thin separator in collapsed */
.sidebar-sep {
  display: block; height: 1px; background: var(--void-border); border: none;
  margin: 16px 14px;
}

/* ── Nav links ── */
.sidebar-link {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 14px; margin: 2px 0;
  border-radius: var(--radius-sm); color: var(--white-dim); font-size: 14px;
  font-weight: 500; transition: all var(--transition); position: relative;
  background: none; width: 100%; text-align: left; white-space: nowrap;
  overflow: visible;
}
.sidebar-link svg { width: 20px; height: 20px; flex-shrink: 0; }
.sidebar-link .link-label {
  white-space: nowrap; overflow: hidden;
  transition: opacity 0.15s, max-width 0.3s; max-width: 160px;
}
.sidebar-link .count {
  margin-left: auto; background: var(--void); padding: 2px 8px;
  border-radius: 10px; font-size: 11px; font-weight: 600; color: var(--white-muted);
  flex-shrink: 0; white-space: nowrap;
  transition: opacity 0.15s, max-width 0.3s, padding 0.2s;
  max-width: 50px; overflow: hidden;
}
.sidebar-link:hover { color: var(--white); background: var(--void-hover); }
.sidebar-link.active { color: var(--white); background: var(--cyan-bg); }
.sidebar-link.active::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 20px; background: var(--white); border-radius: 0 4px 4px 0;
}

/* Collapsed link styles */
.sidebar.collapsed .sidebar-link {
  width: 44px; height: 44px; padding: 0; margin: 2px auto;
  justify-content: center; align-items: center; gap: 0;
  border-radius: 10px;
}
.sidebar.collapsed .sidebar-link .link-label { opacity: 0; max-width: 0; position: absolute; }
.sidebar.collapsed .sidebar-link .count { opacity: 0; max-width: 0; padding: 0; position: absolute; }
.sidebar.collapsed .sidebar-link.active::before { left: -2px; height: 16px; }

/* ── Tooltips (collapsed only) ── */
.sidebar-tooltip {
  position: absolute; left: calc(100% + 16px); top: 50%; transform: translateY(-50%);
  padding: 6px 14px; background: var(--void-lighter); border: 1px solid var(--void-border);
  border-radius: var(--radius-xs); font-size: 13px; font-weight: 500;
  white-space: nowrap; color: var(--white); pointer-events: none;
  opacity: 0; transition: opacity 0.15s; z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.sidebar-tooltip::before {
  content: ''; position: absolute; left: -5px; top: 50%; transform: translateY(-50%) rotate(45deg);
  width: 8px; height: 8px; background: var(--void-lighter);
  border-left: 1px solid var(--void-border); border-bottom: 1px solid var(--void-border);
}
.sidebar.collapsed .sidebar-link:hover .sidebar-tooltip { opacity: 1; }

/* ── Project Selector (workspace switcher) ── */
.project-selector-wrap {
  padding: 0 10px; overflow: visible; position: relative;
}
.sidebar.collapsed .project-selector-wrap { padding: 0 8px; }

.project-selector {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 12px; border-radius: var(--radius-sm);
  background: var(--void); border: 1px solid var(--void-border);
  cursor: pointer; transition: all var(--transition);
  width: 100%; text-align: left; position: relative;
  overflow: visible;
}
.project-selector:hover { border-color: rgba(255,255,255,0.12); background: var(--void-hover); }
.project-selector.open { border-color: #52525B; box-shadow: 0 0 0 3px rgba(82,82,91,0.15); }

.project-selector-icon {
  width: 28px; height: 28px; border-radius: 7px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: white; overflow: hidden;
}
.project-selector-info {
  flex: 1; min-width: 0; overflow: hidden;
  display: flex; flex-direction: column;
  transition: opacity 0.15s, max-width 0.3s; max-width: 160px;
}
.project-selector-label {
  font-size: 10px; font-weight: 600; color: var(--white-muted);
  text-transform: uppercase; letter-spacing: 0.8px; line-height: 1;
  margin-bottom: 3px;
}
.project-selector-name {
  font-size: 13px; font-weight: 600; color: var(--white);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.project-selector-arrow {
  flex-shrink: 0; color: var(--white-muted);
  transition: transform 0.25s ease, opacity 0.15s;
}
.project-selector-arrow svg { width: 16px; height: 16px; }
.project-selector.open .project-selector-arrow svg { transform: rotate(180deg); }

/* Collapsed: just show icon */
.sidebar.collapsed .project-selector {
  padding: 6px; justify-content: center; border: none; background: transparent;
}
.sidebar.collapsed .project-selector:hover { background: var(--void-hover); }
.sidebar.collapsed .project-selector.open { background: var(--void-hover); box-shadow: none; }
.sidebar.collapsed .project-selector-info { opacity: 0; max-width: 0; position: absolute; pointer-events: none; }
.sidebar.collapsed .project-selector-arrow { opacity: 0; max-width: 0; position: absolute; }
.sidebar.collapsed .project-selector-icon { width: 38px; height: 38px; border-radius: 10px; font-size: 14px; }

/* Tooltip for collapsed */
.project-selector .selector-tooltip {
  position: absolute; left: calc(100% + 20px); top: 50%; transform: translateY(-50%);
  padding: 6px 14px; background: var(--void-lighter); border: 1px solid var(--void-border);
  border-radius: var(--radius-xs); font-size: 13px; font-weight: 500;
  white-space: nowrap; color: var(--white); pointer-events: none;
  opacity: 0; transition: opacity 0.15s; z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.project-selector .selector-tooltip::before {
  content: ''; position: absolute; left: -5px; top: 50%; transform: translateY(-50%) rotate(45deg);
  width: 8px; height: 8px; background: var(--void-lighter);
  border-left: 1px solid var(--void-border); border-bottom: 1px solid var(--void-border);
}
.sidebar.collapsed .project-selector:hover .selector-tooltip { opacity: 1; }

/* ── Project Dropdown Panel ── */
.project-dropdown {
  position: absolute; top: calc(100% + 8px); left: 10px; right: 10px;
  background: var(--void-light); border: 1px solid var(--void-border);
  border-radius: var(--radius); padding: 0;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  display: none; z-index: 300;
  animation: fadeInDown 0.2s ease;
  overflow: hidden;
}
.project-dropdown.show { display: block; }
.sidebar.collapsed .project-dropdown {
  left: 68px; right: auto; top: 0; width: 260px;
  position: fixed;
}

.project-dropdown-header {
  padding: 14px 16px 10px; font-size: 10px; font-weight: 700;
  color: var(--white-muted); text-transform: uppercase; letter-spacing: 1.2px;
}
.project-dropdown-list {
  padding: 0 8px 8px; display: flex; flex-direction: column; gap: 2px;
  max-height: 240px; overflow-y: auto;
}
.project-dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--radius-xs);
  background: none; border: none; color: var(--white-dim);
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: all var(--transition); width: 100%; text-align: left;
}
.project-dropdown-item:hover { background: var(--void-hover); color: var(--white); }
.project-dropdown-item.active { background: var(--cyan-bg); color: var(--white); }
.project-dropdown-item .pd-icon {
  width: 28px; height: 28px; border-radius: 6px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: white; overflow: hidden;
}
.project-dropdown-item .pd-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-dropdown-item.active .pd-check { color: var(--white); }
.pd-check { width: 16px; height: 16px; flex-shrink: 0; opacity: 0; }
.project-dropdown-item.active .pd-check { opacity: 1; }
.project-dropdown-item.pd-overview { color: var(--white-dim); }
.project-dropdown-item.pd-overview .pd-icon { background: linear-gradient(135deg,#3b82f6,#8b5cf6); }
.project-dropdown-item.pd-overview .pd-icon svg { width: 14px; height: 14px; }

.project-dropdown-divider {
  height: 1px; background: var(--void-border); margin: 4px 16px;
}
.project-dropdown-actions {
  padding: 4px 8px 8px;
}
.project-dropdown-action {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--radius-xs);
  background: none; border: none; color: var(--white-muted);
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: all var(--transition); width: 100%; text-align: left;
}
.project-dropdown-action:hover { background: var(--void-hover); color: var(--white); }
.project-dropdown-action svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Section dividers in sidebar for project selector area */
.sidebar-divider {
  height: 1px; background: var(--void-border); margin: 10px -10px;
  flex-shrink: 0;
}
.sidebar.collapsed .sidebar-divider { margin: 8px 0; }

/* ── Footer (user) ── */
.sidebar-footer {
  padding: 8px 10px; border-top: 1px solid var(--void-border); overflow: hidden;
  display: flex; flex-direction: column; gap: 2px;
}
.sidebar-footer-link {
  display: flex; align-items: center; gap: 12px; padding: 9px 14px;
  border-radius: var(--radius-sm); transition: all var(--transition);
  background: none; width: 100%; text-align: left; color: var(--white-muted);
  font-size: 13px; font-weight: 500; white-space: nowrap;
  overflow: visible; position: relative; cursor: pointer;
}
.sidebar-footer-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-footer-link .footer-link-label {
  white-space: nowrap; overflow: hidden;
  transition: opacity 0.15s, max-width 0.3s; max-width: 160px;
}
.sidebar-footer-link:hover { color: var(--white); background: var(--void-hover); }

.sidebar.collapsed .sidebar-footer { padding: 8px 0; }
.sidebar.collapsed .sidebar-footer-link {
  width: 44px; height: 44px; padding: 0; margin: 2px auto;
  justify-content: center; border-radius: var(--radius-sm);
}
.sidebar.collapsed .sidebar-footer-link .footer-link-label {
  opacity: 0; max-width: 0; position: absolute;
}
.sidebar.collapsed .sidebar-footer-link .sidebar-tooltip {
  position: absolute; left: calc(100% + 16px); top: 50%; transform: translateY(-50%);
  padding: 6px 14px; background: var(--void-lighter); border: 1px solid var(--void-border);
  border-radius: var(--radius-xs); font-size: 13px; font-weight: 500;
  white-space: nowrap; color: var(--white); pointer-events: none;
  opacity: 0; transition: opacity 0.15s; z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.sidebar.collapsed .sidebar-footer-link:hover .sidebar-tooltip { opacity: 1; }

/* ── Main Content Area ── */
.main-content {
  margin-left: var(--sidebar-w); min-height: 100vh;
  display: flex; flex-direction: column;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 0; overflow-x: hidden;
}
.sidebar.collapsed ~ .main-content { margin-left: 68px; }

/* Top Bar */
.topbar {
  height: var(--topbar-h); padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--void-border); background: var(--void);
  position: sticky; top: 0; z-index: 40; gap: 16px;
}
.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-title { font-size: 20px; font-weight: 700; letter-spacing: -0.5px; }
.topbar-breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--white-muted); font-size: 13px; }
.topbar-breadcrumb svg { width: 14px; height: 14px; }

.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-search {
  display: flex; align-items: center; gap: 8px; padding: 8px 16px;
  background: var(--void-light); border: 1px solid var(--void-border);
  border-radius: var(--radius-sm); color: var(--white-muted); font-size: 13px;
  min-width: 220px; transition: all var(--transition);
}
.topbar-search:hover { border-color: rgba(255,255,255,0.1); }
.topbar-search svg { width: 16px; height: 16px; flex-shrink: 0; }
.topbar-search input {
  background: none; border: none; color: var(--white); font-size: 13px; width: 100%;
}
.topbar-search input::placeholder { color: var(--white-muted); }
.topbar-search kbd {
  font-family: var(--mono); font-size: 11px; padding: 2px 6px;
  background: var(--void); border-radius: 4px; border: 1px solid var(--void-border);
  color: var(--white-muted);
}

.topbar-icon-btn {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: transparent; color: var(--white-dim);
  transition: all var(--transition); position: relative;
}
.topbar-icon-btn:hover { background: var(--void-light); color: var(--white); }
.topbar-icon-btn svg { width: 20px; height: 20px; }
.topbar-icon-btn .notif-dot {
  position: absolute; top: 8px; right: 8px; width: 8px; height: 8px;
  background: var(--red); border-radius: 50%; border: 2px solid var(--void);
}

.profile-btn {
  display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px;
  background: transparent; border-radius: var(--radius-sm);
  color: var(--white); transition: all var(--transition); position: relative;
}
.profile-btn:hover { background: var(--void-light); }
.profile-btn .avatar { width: 32px; height: 32px; font-size: 13px; background: linear-gradient(135deg, var(--cyan), var(--cyan-dim)); color: var(--void); }
.profile-btn span { font-size: 14px; font-weight: 500; }
.profile-btn svg { width: 16px; height: 16px; color: var(--white-muted); }

/* Profile Dropdown */
.profile-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 220px; background: var(--void-light); border: 1px solid var(--void-border);
  border-radius: var(--radius); padding: 8px; box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  display: none; z-index: 100; animation: fadeInDown 0.2s ease;
}
.profile-dropdown.show { display: block; }
.dropdown-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: var(--radius-xs); color: var(--white-dim); font-size: 14px;
  font-weight: 500; transition: all var(--transition); background: none; width: 100%; text-align: left;
}
.dropdown-item svg { width: 18px; height: 18px; }
.dropdown-item:hover { background: var(--void-hover); color: var(--white); }
.dropdown-item.danger { color: var(--red); }
.dropdown-item.danger:hover { background: rgba(255, 92, 106, 0.1); }
.dropdown-divider { height: 1px; background: var(--void-border); margin: 8px 0; }

/* Notification Dropdown */
.notif-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 320px; background: var(--void-light); border: 1px solid var(--void-border);
  border-radius: var(--radius); box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  display: none; z-index: 100; animation: fadeInDown 0.2s ease;
}
.notif-dropdown.show { display: block; }
.notif-dropdown-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--void-border);
}
.notif-dropdown-list {
  max-height: 320px; overflow-y: auto;
}
.notif-item {
  padding: 12px 16px; border-bottom: 1px solid var(--void-border);
  transition: background var(--transition);
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--void-hover); }

/* ═══════════════════════════════════════════
   DASHBOARD VIEW — MODULAR WIDGETS
   ═══════════════════════════════════════════ */
.dashboard-content { padding: 32px; flex: 1; min-width: 0; }

/* Widget grid */
.dash-widget-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; align-items: start;
}
.dash-widget-grid .dw-full { grid-column: 1 / -1; }
@media (max-width: 1100px) { .dash-widget-grid { grid-template-columns: 1fr; }
  .dash-widget-grid .dw-full { grid-column: auto; } }

/* Widget card */
.dash-widget {
  background: var(--void-light); border: 1px solid var(--void-border);
  border-radius: var(--radius); overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s, opacity 0.2s;
  position: relative;
}
.dash-widget:hover { border-color: rgba(255,255,255,0.08); }
.dash-widget.dw-dragging {
  opacity: 0.5; box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  z-index: 50; pointer-events: none;
}
.dash-widget.dw-ghost {
  background: rgba(255,255,255,0.02); border: 2px dashed rgba(255,255,255,0.1);
  min-height: 80px; border-radius: var(--radius);
}

/* Widget header */
.dw-header {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px; border-bottom: 1px solid var(--void-border);
  user-select: none;
}
.dw-drag-handle {
  cursor: grab; color: var(--white-muted); display: flex; align-items: center;
  padding: 2px; border-radius: 4px; transition: color 0.15s;
}
.dw-drag-handle:hover { color: var(--white); }
.dw-drag-handle:active { cursor: grabbing; }
.dw-drag-handle svg { width: 14px; height: 14px; }
.dw-title { font-size: 13px; font-weight: 600; flex: 1; color: var(--white); }
.dw-actions { display: flex; gap: 4px; }
.dw-action-btn {
  width: 26px; height: 26px; border-radius: 6px; display: flex;
  align-items: center; justify-content: center; cursor: pointer;
  background: none; border: 1px solid transparent; color: var(--white-muted);
  transition: all 0.15s; opacity: 0;
}
.dash-widget:hover .dw-action-btn { opacity: 1; }
.dw-action-btn:hover { background: var(--void-hover); color: var(--white); border-color: var(--void-border); }
.dw-action-btn.dw-remove:hover { color: var(--red); border-color: rgba(239,68,68,0.3); background: rgba(239,68,68,0.08); }
.dw-action-btn svg { width: 13px; height: 13px; }

/* Widget body */
.dw-body { padding: 16px; }
.dw-body-flush { padding: 0; }

/* Add Widget button area */
.dw-add-area {
  grid-column: 1 / -1; display: flex; justify-content: center; padding: 8px 0;
}
.dw-add-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 8px;
  background: var(--void-light); border: 1.5px dashed var(--void-border);
  color: var(--white-muted); font-size: 13px; font-weight: 500; cursor: pointer;
  transition: all 0.2s;
}
.dw-add-btn:hover { border-color: rgba(255,255,255,0.2); color: var(--white); background: var(--void-hover); }
.dw-add-btn svg { width: 16px; height: 16px; }

/* Widget Picker Modal */
.dw-picker-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 500;
  display: none; align-items: center; justify-content: center; backdrop-filter: blur(4px);
}
.dw-picker-overlay.show { display: flex; }
.dw-picker {
  background: var(--void-light); border: 1px solid var(--void-border);
  border-radius: 12px; width: 480px; max-width: 92vw; max-height: 80vh;
  overflow: hidden; display: flex; flex-direction: column; animation: fadeIn 0.2s ease;
}
.dw-picker-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--void-border);
}
.dw-picker-header h3 { font-size: 15px; font-weight: 600; }
.dw-picker-close {
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  border-radius: 6px; background: none; border: none; color: var(--white-muted); cursor: pointer;
}
.dw-picker-close:hover { background: var(--void-hover); color: var(--white); }
.dw-picker-close svg { width: 16px; height: 16px; }
.dw-picker-body { padding: 12px; overflow-y: auto; }
.dw-picker-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dw-picker-item {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  border-radius: 8px; background: var(--void); border: 1px solid var(--void-border);
  cursor: pointer; transition: all 0.15s;
}
.dw-picker-item:hover { border-color: rgba(255,255,255,0.15); background: var(--void-hover); }
.dw-picker-item.disabled { opacity: 0.4; cursor: not-allowed; }
.dw-picker-icon {
  width: 36px; height: 36px; border-radius: 8px; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.dw-picker-icon svg { width: 18px; height: 18px; }
.dw-picker-label { font-size: 13px; font-weight: 600; color: var(--white); }
.dw-picker-desc { font-size: 11px; color: var(--white-muted); margin-top: 2px; }

/* Stats Row (inside widget) */
.stats-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.stat-card {
  background: var(--void); border: 1px solid var(--void-border);
  border-radius: var(--radius); padding: 20px; transition: all var(--transition);
}
.stat-card:hover { border-color: rgba(255,255,255,0.08); }
.stat-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.stat-card-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.stat-card-icon svg { width: 20px; height: 20px; }
.stat-card-change { font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.stat-card-change.up { color: var(--green); }
.stat-card-change.down { color: var(--red); }
.stat-card-value { font-size: 32px; font-weight: 800; letter-spacing: -1px; line-height: 1; margin-bottom: 4px; }
.stat-card-label { font-size: 13px; color: var(--white-muted); font-weight: 500; }

/* Dashboard Grid (legacy) */
.dash-grid {
  display: grid; grid-template-columns: 1fr 380px;
  gap: 24px;
}
@media (max-width: 1200px) { .dash-grid { grid-template-columns: 1fr; } }

/* Task Board / Kanban */
.kanban-section { margin-bottom: 32px; }
.kanban-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px;
}
.kanban-header h3 { font-size: 16px; font-weight: 600; }
.kanban-board {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 900px) { .kanban-board { grid-template-columns: 1fr; } }

.kanban-col { min-width: 0; }
.kanban-col-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  margin-bottom: 0;
}
.kanban-col-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.kanban-col-title .dot { width: 8px; height: 8px; border-radius: 50%; }
.kanban-col-count {
  font-size: 12px; color: var(--white-muted); background: var(--void);
  padding: 2px 8px; border-radius: 10px;
}
.kanban-col-body {
  background: var(--void-light); border: 1px solid var(--void-border);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: 12px; display: flex; flex-direction: column; gap: 10px;
  min-height: 200px;
}

/* Task Card */
.task-card {
  background: var(--void-card); border: 1px solid var(--void-border);
  border-radius: var(--radius-sm); padding: 16px;
  cursor: pointer; transition: all var(--transition);
}
.task-card:hover {
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}
.task-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.task-card-tag {
  font-size: 11px; font-weight: 600; padding: 3px 8px;
  border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px;
}
.task-card-priority { font-size: 11px; color: var(--white-muted); display: flex; align-items: center; gap: 4px; }
.task-card-priority svg { width: 14px; height: 14px; }
.task-card h4 { font-size: 14px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.task-card p { font-size: 12px; color: var(--white-muted); line-height: 1.5; margin-bottom: 12px; }
.task-card-footer { display: flex; align-items: center; justify-content: space-between; }
.task-card-avatars { display: flex; }
.task-card-avatars .avatar {
  width: 28px; height: 28px; font-size: 11px; margin-left: -6px;
  border: 2px solid var(--void-card);
}
.task-card-avatars .avatar:first-child { margin-left: 0; }
.task-card-meta { display: flex; align-items: center; gap: 12px; }
.task-card-meta span {
  display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--white-muted);
}
.task-card-meta svg { width: 14px; height: 14px; }

/* Activity Feed */
.activity-panel {
  background: var(--void-light); border: 1px solid var(--void-border);
  border-radius: var(--radius); overflow: hidden;
}
.activity-header {
  padding: 20px 24px; border-bottom: 1px solid var(--void-border);
  display: flex; align-items: center; justify-content: space-between;
}
.activity-header h3 { font-size: 16px; font-weight: 600; }
.activity-list { padding: 16px 24px; display: flex; flex-direction: column; gap: 20px; max-height: 500px; overflow-y: auto; }
.activity-item { display: flex; gap: 12px; }
.activity-item .avatar { width: 32px; height: 32px; font-size: 12px; flex-shrink: 0; }
.activity-item-content { flex: 1; }
.activity-item-text { font-size: 13px; color: var(--white-dim); line-height: 1.5; }
.activity-item-text strong { color: var(--white); font-weight: 600; }
.activity-item-time { font-size: 11px; color: var(--white-muted); margin-top: 2px; }

/* Team Members Panel */
.team-panel { margin-top: 24px; }
.team-panel .activity-header h3 { font-size: 16px; }
.team-list { padding: 16px 24px; display: flex; flex-direction: column; gap: 12px; }
.team-member {
  display: flex; align-items: center; gap: 12px; padding: 10px;
  border-radius: var(--radius-sm); transition: all var(--transition);
}
.team-member:hover { background: var(--void-hover); }
.team-member .avatar { width: 36px; height: 36px; font-size: 14px; }
.team-member-info { flex: 1; }
.team-member-name { font-size: 14px; font-weight: 600; }
.team-member-role { font-size: 12px; color: var(--white-muted); }
.team-member-status { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.team-member-status .dot { width: 6px; height: 6px; border-radius: 50%; }
.team-member-status .dot.online { background: var(--green); }
.team-member-status .dot.away { background: var(--orange); }
.team-member-status .dot.offline { background: var(--white-muted); }

/* ═══════════════════════════════════════════
   TASK DETAIL PANEL (right slide)
   ═══════════════════════════════════════════ */
.task-panel-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 200; display: none; opacity: 0; transition: opacity 0.3s;
}
.task-panel-overlay.show { display: block; opacity: 1; }
.task-panel {
  position: fixed; top: 0; right: -520px; width: 520px; height: 100vh;
  background: var(--void-light); border-left: 1px solid var(--void-border);
  z-index: 201; transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column; overflow: hidden;
}
.task-panel.open { right: 0; }
.task-panel-header {
  padding: 20px 24px; border-bottom: 1px solid var(--void-border);
  display: flex; align-items: center; justify-content: space-between;
}
.task-panel-close {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: transparent; color: var(--white-dim); transition: all var(--transition);
}
.task-panel-close:hover { background: var(--void-hover); color: var(--white); }
.task-panel-close svg { width: 20px; height: 20px; }
.task-panel-body { flex: 1; overflow-y: auto; padding: 24px; }
.task-panel-title {
  font-size: 22px; font-weight: 700; margin-bottom: 16px; letter-spacing: -0.3px;
}
.task-panel-meta { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.task-meta-row { display: flex; align-items: center; gap: 12px; }
.task-meta-label { width: 100px; font-size: 13px; color: var(--white-muted); font-weight: 500; }
.task-meta-value { font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.task-panel-desc { margin-bottom: 24px; }
.task-panel-desc h4 { font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--white-dim); }
.task-panel-desc p { font-size: 14px; color: var(--white-dim); line-height: 1.7; }

.task-checklist { margin-bottom: 24px; }
.task-checklist h4 { font-size: 14px; font-weight: 600; margin-bottom: 12px; color: var(--white-dim); }
.checklist-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
}
.checklist-item input[type="checkbox"] {
  width: 18px; height: 18px; accent-color: var(--cyan);
  cursor: pointer; flex-shrink: 0;
}
.checklist-item label { font-size: 14px; color: var(--white-dim); cursor: pointer; }
.checklist-item input:checked + label { text-decoration: line-through; color: var(--white-muted); }

.task-comments { margin-top: 24px; }
.task-comments h4 { font-size: 14px; font-weight: 600; margin-bottom: 16px; color: var(--white-dim); }
.comment-item { display: flex; gap: 10px; margin-bottom: 16px; }
.comment-item .avatar { width: 30px; height: 30px; font-size: 11px; flex-shrink: 0; }
.comment-bubble {
  background: var(--void); border-radius: var(--radius-sm);
  padding: 12px 16px; flex: 1;
}
.comment-bubble-header { display: flex; justify-content: space-between; margin-bottom: 4px; }
.comment-bubble-name { font-size: 13px; font-weight: 600; }
.comment-bubble-time { font-size: 11px; color: var(--white-muted); }
.comment-bubble p { font-size: 13px; color: var(--white-dim); line-height: 1.5; }

.comment-input-area {
  display: flex; gap: 10px; margin-top: 16px;
}
.comment-input-area textarea {
  flex: 1; padding: 12px; background: var(--void);
  border: 1px solid var(--void-border); border-radius: var(--radius-sm);
  color: var(--white); font-size: 13px; resize: none; min-height: 60px;
}
.comment-input-area textarea:focus { border-color: #52525B; }

/* ═══════════════════════════════════════════
   TEAMS VIEW
   ═══════════════════════════════════════════ */
.view-content { display: none; animation: fadeIn 0.4s ease; width: 100%; padding: 32px; box-sizing: border-box; }
.view-content.active { display: block; }

.teams-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.teams-grid.hidden, .teams-header.hidden, .team-detail-view.hidden { display: none !important; }
.team-card {
  background: var(--void-light); border: 1px solid var(--void-border);
  border-radius: var(--radius); padding: 28px; transition: all 0.25s ease;
  cursor: pointer; position: relative;
}
.team-card:hover {
  border-color: rgba(255,255,255,0.2); background: var(--void-lighter);
  transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.team-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.team-card h3 { font-size: 18px; font-weight: 700; }
.team-card-members { display: flex; align-items: center; margin-bottom: 16px; }
.team-card-members .avatar {
  width: 32px; height: 32px; font-size: 12px; margin-left: -8px;
  border: 2px solid var(--void-light);
}
.team-card-members .avatar:first-child { margin-left: 0; }
.team-card-members .more {
  margin-left: 8px; font-size: 12px; color: var(--white-muted);
}
.team-card-stats { display: flex; gap: 20px; }
.team-card-stat { font-size: 12px; color: var(--white-muted); }
.team-card-stat strong { color: var(--white); font-weight: 600; }

/* ═══════════════════════════════════════════
   PROJECTS VIEW
   ═══════════════════════════════════════════ */
.project-card {
  background: var(--void-light); border: 1px solid var(--void-border);
  border-radius: var(--radius); padding: 24px; transition: all var(--transition);
}
.project-card:hover { border-color: rgba(255,255,255,0.1); }
.project-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.project-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.project-card p { font-size: 13px; color: var(--white-muted); margin-bottom: 16px; line-height: 1.5; }
.progress-bar { height: 6px; background: var(--void); border-radius: 10px; overflow: hidden; margin-bottom: 12px; }
.progress-bar-fill { height: 100%; border-radius: 10px; transition: width 0.6s ease; }
.project-card-footer { display: flex; justify-content: space-between; align-items: center; }
.project-card-footer span { font-size: 12px; color: var(--white-muted); }

/* ═══════════════════════════════════════════
   TASKS LIST VIEW
   ═══════════════════════════════════════════ */
.task-list-row {
  display: grid; grid-template-columns: 2.5fr 1fr 1fr 1fr 1fr;
  gap: 16px; padding: 16px 20px; align-items: center;
}
#team-detail-view .task-list-row {
  grid-template-columns: 2fr 1fr 1fr 0.5fr 1fr 0.5fr;
}
.task-list-row.header {
  font-size: 12px; color: var(--white-muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px; padding: 12px 20px;
}
.task-list-row.item {
  background: var(--void-light); border: 1px solid var(--void-border);
  border-radius: var(--radius-sm); cursor: pointer; transition: all var(--transition);
}
.task-list-row.item:hover { border-color: rgba(255,255,255,0.1); }

/* ═══════════════════════════════════════════
   CALENDAR VIEW
   ═══════════════════════════════════════════ */
.calendar-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px;
  background: var(--void-border); border-radius: var(--radius); overflow: hidden;
}
.calendar-header-cell {
  background: var(--void-light); padding: 12px; text-align: center;
  font-size: 12px; font-weight: 600; color: var(--white-muted);
  text-transform: uppercase; letter-spacing: 1px;
}
.calendar-cell {
  background: var(--void-light); padding: 12px; min-height: 120px;
  transition: all var(--transition); cursor: pointer;
}
.calendar-cell:hover { background: var(--void-lighter); }
.calendar-cell.today { background: var(--void-lighter); }
.calendar-cell.today .calendar-date { color: var(--white); font-weight: 700; }
.calendar-cell.other-month .calendar-date { color: var(--white-muted); opacity: 0.3; }
.calendar-date { font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.calendar-event {
  font-size: 11px; padding: 3px 6px; border-radius: 4px; margin-bottom: 3px;
  font-weight: 500; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ═══════════════════════════════════════════
   SETTINGS VIEW
   ═══════════════════════════════════════════ */
.settings-layout {
  display: none; grid-template-columns: 200px 1fr; gap: 40px;
  padding: 32px; box-sizing: border-box;
}
.settings-layout.active { display: grid; }
@media (max-width: 800px) { .settings-layout { grid-template-columns: 1fr; } }

.settings-nav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 96px; align-self: start; }
.settings-nav-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 500;
  color: var(--white-dim); transition: all var(--transition);
  background: none; text-align: left; width: 100%;
}
.settings-nav-item:hover { background: var(--void-hover); color: var(--white); }
.settings-nav-item.active { background: var(--cyan-bg); color: var(--white); }
.settings-nav-item svg { width: 18px; height: 18px; }

.settings-content { min-width: 0; display: flex; justify-content: center; padding-right: 16%; }
.settings-tab-pane { display: none; animation: fadeIn 0.3s ease; max-width: 720px; width: 100%; }
.settings-tab-pane.active { display: block; }
.settings-section { margin-bottom: 0; }
.settings-section h3 {
  font-size: 18px; font-weight: 700; margin-bottom: 8px;
}
.settings-section p { color: var(--white-muted); font-size: 13px; margin-bottom: 24px; }

.settings-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; border-bottom: 1px solid var(--void-border);
}
.settings-row:last-child { border-bottom: none; }
.settings-row-info h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.settings-row-info p { font-size: 13px; color: var(--white-muted); margin: 0; }

/* Toggle Switch */
.toggle {
  width: 48px; height: 28px; border-radius: 14px;
  background: var(--void-border); position: relative;
  cursor: pointer; transition: all var(--transition); border: none;
}
.toggle.on { background: #52525B; }
.toggle::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px; border-radius: 50%; background: white;
  transition: all var(--transition);
}
.toggle.on::after { left: 23px; background: var(--white); }

.settings-avatar-upload {
  display: flex; align-items: center; gap: 20px;
}
.settings-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dim));
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; color: var(--void);
  overflow: hidden; flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   BUG / FEEDBACK MODALS
   ═══════════════════════════════════════════ */
.bug-sev-btn, .fb-cat-btn {
  padding: 6px 14px; border-radius: 6px; font-size: 13px; font-weight: 500;
  background: var(--void); border: 1px solid var(--void-border); color: var(--white-muted);
  cursor: pointer; transition: all var(--transition);
}
.bug-sev-btn:hover, .fb-cat-btn:hover { border-color: #52525B; color: var(--white); }
.bug-sev-btn.active, .fb-cat-btn.active {
  background: rgba(255,255,255,0.06); border-color: #52525B; color: var(--white);
}
.bug-sev-btn[data-sev="critical"].active { background: rgba(239,68,68,0.1); border-color: var(--red); color: var(--red); }
.bug-sev-btn[data-sev="high"].active { background: rgba(245,158,11,0.1); border-color: var(--orange); color: var(--orange); }

.file-drop-zone {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border: 1px dashed var(--void-border); border-radius: var(--radius-sm);
  cursor: pointer; transition: all var(--transition);
}
.file-drop-zone:hover { border-color: #52525B; }
.file-drop-zone.has-file { border-style: solid; border-color: #52525B; background: var(--void); }

.feedback-stars { display: flex; gap: 4px; }
.feedback-star {
  font-size: 28px; background: none; color: var(--void-border);
  cursor: pointer; transition: color 0.15s; line-height: 1; padding: 2px 4px;
}
.feedback-star.active { color: #F59E0B; }
.feedback-star:hover { color: #FBBF24; }

/* ═══════════════════════════════════════════
   TEAM BOARD
   ═══════════════════════════════════════════ */
.board-view {
  overflow: hidden; flex: 1; min-height: 0;
  position: relative;
}
.board-view.active {
  display: flex; flex-direction: column;
  height: calc(100vh - var(--topbar-h)); overflow: auto;
}
#boardContainer {
  position: relative;
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  flex: 1; min-height: 0;
  transition: min-height 0.3s ease, min-width 0.3s ease;
}
#boardContainer.is-dragging { transition: none; }

.board-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 80px 20px; gap: 20px; position: absolute; inset: 0;
}
.board-empty-icon {
  width: 64px; height: 64px; border: 2px dashed var(--void-border); border-radius: 16px;
  display: flex; align-items: center; justify-content: center; color: var(--white-muted);
}
.board-empty p { color: var(--white-muted); font-size: 14px; }
.board-add-btn-big {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px;
  background: var(--white); color: var(--void); border: none; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; cursor: pointer; transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(255,255,255,0.1);
}
.board-add-btn-big:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(255,255,255,0.15); }
.board-add-btn-big svg { width: 20px; height: 20px; }

.board-fab {
  position: fixed; bottom: 28px; right: 28px; width: 52px; height: 52px;
  background: var(--white); color: var(--void); border: none; border-radius: 50%;
  font-size: 26px; cursor: pointer; box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transition: all var(--transition); z-index: 90;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.board-fab:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(0,0,0,0.5); }

/* Board Block */
.board-block {
  background: var(--void-light); border: 1px solid var(--void-border);
  border-radius: var(--radius); position: absolute; min-width: 300px;
  transition: box-shadow 0.2s, border-color 0.2s;
  animation: boardBlockIn 0.3s ease;
  display: flex; flex-direction: column; overflow: hidden;
}
@keyframes boardBlockIn { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }

.board-block.dragging {
  opacity: 0.85; box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 2px rgba(255,255,255,0.2);
  z-index: 100; cursor: grabbing; transition: none; pointer-events: none;
}
.board-block.resizing { user-select: none; transition: none; }
body.board-dragging { cursor: grabbing !important; user-select: none !important; }
body.board-dragging * { cursor: grabbing !important; }

.board-block-header {
  padding: 14px 16px; border-bottom: 1px solid var(--void-border);
  display: flex; align-items: center; gap: 10px;
}
.board-block-drag {
  cursor: grab; color: var(--white-muted); padding: 4px; display: flex; flex-shrink: 0;
  transition: color var(--transition);
}
.board-block-drag:active { cursor: grabbing; }
.board-block-drag:hover { color: var(--white-dim); }
.board-block-drag svg { width: 16px; height: 16px; }
.board-block-info { flex: 1; min-width: 0; }
.board-block-title { font-size: 14px; font-weight: 600; }
.board-block-meta { font-size: 11px; color: var(--white-muted); margin-top: 2px; }
.board-block-actions { display: flex; gap: 4px; flex-shrink: 0; }
.board-block-btn {
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  border-radius: 6px; background: none; color: var(--white-muted); cursor: pointer;
  transition: all var(--transition);
}
.board-block-btn:hover { background: var(--void-hover); color: var(--white); }
.board-block-btn.danger:hover { background: rgba(239,68,68,0.1); color: var(--red); }
.board-block-btn svg { width: 16px; height: 16px; }

/* Resize handle - bottom-right corner */
.board-resize-handle {
  position: absolute; bottom: -4px; right: -4px; width: 20px; height: 20px;
  cursor: nwse-resize; z-index: 10;
}
.board-resize-handle::after {
  content: ''; position: absolute; bottom: 4px; right: 4px;
  width: 8px; height: 8px; border-right: 2px solid transparent; border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}
.board-resize-handle:hover::after { border-color: rgba(255,255,255,0.4); }
body.board-resizing { cursor: nwse-resize !important; user-select: none !important; }
body.board-resizing * { cursor: nwse-resize !important; }

/* Snap guides */
.board-snap-guide { position: absolute; background: rgba(255,255,255,0.35); z-index: 200; pointer-events: none; opacity: 0.6; }
.board-snap-guide-v { width: 1px; top: 0; bottom: 0; }
.board-snap-guide-h { height: 1px; left: 0; right: 0; }

/* Note block */
.board-note-body { padding: 12px 16px; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.board-note-textarea {
  width: 100%; min-height: 120px; flex: 1; background: var(--void); border: 1px solid var(--void-border);
  border-radius: var(--radius-sm); color: var(--white); font-size: 14px; line-height: 1.6;
  padding: 12px 14px; resize: vertical; outline: none; transition: border-color var(--transition);
}
.board-note-textarea:focus { border-color: rgba(255,255,255,0.2); }
.board-note-textarea::placeholder { color: var(--white-muted); }

/* Image block */
.board-image-body { padding: 12px 16px; flex: 1; min-height: 0; overflow: auto; }
.board-image-drop {
  border: 2px dashed var(--void-border); border-radius: var(--radius-sm); padding: 32px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  cursor: pointer; transition: all var(--transition); color: var(--white-muted); font-size: 13px;
}
.board-image-drop:hover { border-color: rgba(255,255,255,0.15); }
.board-image-drop svg { width: 24px; height: 24px; }
.board-image-preview { width: 100%; border-radius: var(--radius-sm); overflow: hidden; }
.board-image-preview img { width: 100%; display: block; border-radius: var(--radius-sm); }

/* To-Do block */
.board-todo-body { padding: 8px 16px 12px; flex: 1; min-height: 0; overflow-y: auto; }
.board-todo-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  border-bottom: 1px solid var(--void-border);
}
.board-todo-item:last-child { border-bottom: none; }
.board-todo-check {
  width: 18px; height: 18px; border-radius: 4px; border: 2px solid var(--void-border);
  background: none; cursor: pointer; flex-shrink: 0; display: flex;
  align-items: center; justify-content: center; transition: all var(--transition); color: transparent;
}
.board-todo-check.done { background: var(--green); border-color: var(--green); color: var(--void); }
.board-todo-check svg { width: 12px; height: 12px; }
.board-todo-text { flex: 1; font-size: 13px; color: var(--white-dim); min-width: 0; }
.board-todo-text.done { text-decoration: line-through; color: var(--white-muted); }
.board-todo-del {
  width: 22px; height: 22px; border-radius: 4px; background: none;
  color: var(--white-muted); cursor: pointer; display: flex; align-items: center;
  justify-content: center; transition: all var(--transition); flex-shrink: 0; opacity: 0;
}
.board-todo-item:hover .board-todo-del { opacity: 1; }
.board-todo-del:hover { color: var(--red); background: rgba(239,68,68,0.1); }
.board-todo-del svg { width: 14px; height: 14px; }
.board-todo-add {
  display: flex; align-items: center; gap: 8px; padding: 8px 0; margin-top: 4px;
  background: none; color: var(--white-muted); font-size: 13px; cursor: pointer;
  transition: color var(--transition); width: 100%; text-align: left;
}
.board-todo-add:hover { color: var(--white); }
.board-todo-add svg { width: 14px; height: 14px; }

/* Block picker */
.board-picker-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px); z-index: 1100; justify-content: center; align-items: center; padding: 20px;
}
.board-picker-overlay.show { display: flex; }
.board-picker {
  background: var(--void-light); border: 1px solid var(--void-border);
  border-radius: var(--radius); width: 100%; max-width: 400px; box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  animation: fadeIn 0.2s ease;
}
.board-picker-header {
  padding: 20px 24px; border-bottom: 1px solid var(--void-border);
  display: flex; align-items: center; justify-content: space-between;
}
.board-picker-header h3 { font-size: 16px; font-weight: 700; }
.board-picker-close {
  width: 32px; height: 32px; border-radius: 6px; background: none;
  color: var(--white-muted); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.board-picker-close:hover { color: var(--white); background: var(--void-hover); }
.board-picker-close svg { width: 18px; height: 18px; }
.board-picker-grid { padding: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.board-type-btn {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px 12px; background: var(--void); border: 1px solid var(--void-border);
  border-radius: var(--radius-sm); color: var(--white-muted); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all var(--transition); text-align: center;
}
.board-type-btn:hover {
  border-color: rgba(255,255,255,0.2); color: var(--white);
  background: var(--void-hover); transform: translateY(-2px);
}
.board-type-icon { width: 28px; height: 28px; color: var(--white); }
.board-type-icon svg { width: 28px; height: 28px; }

/* ═══════════════════════════════════════════
   BLUEPRINT MIND MAP
   ═══════════════════════════════════════════ */
.blueprint-view {
  position: relative; overflow: hidden;
}
.blueprint-view.active {
  display: flex !important; flex-direction: column;
  height: calc(100vh - var(--topbar-h));
}
.blueprint-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-bottom: 1px solid var(--void-border);
  background: var(--void); z-index: 10; flex-shrink: 0; gap: 8px;
}
.blueprint-toolbar-left, .blueprint-toolbar-right { display: flex; align-items: center; gap: 6px; }
.bp-tool-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  background: var(--void-light); border: 1px solid var(--void-border); border-radius: 6px;
  color: var(--white-dim); font-size: 12px; font-weight: 500; cursor: pointer;
  transition: all 0.15s;
}
.bp-tool-btn:hover { border-color: rgba(255,255,255,0.2); color: var(--white); background: var(--void-hover); }
.bp-tool-btn svg { width: 14px; height: 14px; }
.bp-tool-btn.bp-danger:hover { border-color: var(--red); color: var(--red); background: rgba(239,68,68,0.08); }
.bp-zoom-display {
  padding: 4px 10px; font-size: 11px; font-weight: 600; color: var(--white-muted);
  background: var(--void-light); border: 1px solid var(--void-border); border-radius: 6px;
  font-variant-numeric: tabular-nums; min-width: 48px; text-align: center;
}

.blueprint-canvas {
  flex: 1; overflow: hidden; position: relative; cursor: grab;
  background-color: var(--void);
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
.blueprint-canvas.panning { cursor: grabbing; }
.blueprint-canvas.node-dragging { cursor: grabbing; }

.blueprint-lines {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; overflow: visible;
}
.blueprint-lines path {
  fill: none; stroke: rgba(255,255,255,0.12); stroke-width: 2;
  transition: stroke 0.2s;
}
.blueprint-lines path.bp-line-hover { stroke: rgba(255,255,255,0.3); stroke-width: 2.5; }

.blueprint-nodes {
  position: absolute; top: 0; left: 0; width: 0; height: 0;
}

/* ── Node ── */
.bp-node {
  position: absolute; min-width: 140px; max-width: 260px;
  border-radius: 10px; cursor: pointer; user-select: none;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.1s;
  transform-origin: center center;
}
.bp-node:hover { z-index: 5; }
.bp-node.dragging { z-index: 50; cursor: grabbing; transition: none; }

.bp-node-inner {
  padding: 12px 16px; display: flex; align-items: center; gap: 10px;
  position: relative;
}

/* Root node */
.bp-node.bp-root {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border: 2px solid rgba(255,255,255,0.15);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05);
  min-width: 180px;
}
.bp-node.bp-root:hover { border-color: rgba(255,255,255,0.25); box-shadow: 0 8px 32px rgba(0,0,0,0.5); }
.bp-node.bp-root .bp-node-label { font-size: 15px; font-weight: 700; }
.bp-node.bp-root .bp-node-icon { width: 32px; height: 32px; font-size: 16px; }

/* Branch node */
.bp-node.bp-branch {
  background: var(--void-light);
  border: 1.5px solid var(--void-border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.bp-node.bp-branch:hover { border-color: rgba(255,255,255,0.2); box-shadow: 0 4px 20px rgba(0,0,0,0.4); }

/* Node internals */
.bp-node-icon {
  width: 28px; height: 28px; border-radius: 8px; display: flex;
  align-items: center; justify-content: center; font-size: 14px;
  flex-shrink: 0; font-weight: 700;
}
.bp-node-label {
  font-size: 13px; font-weight: 600; color: var(--white);
  line-height: 1.3; word-break: break-word; flex: 1; min-width: 0;
}
.bp-node-label[contenteditable="true"] {
  outline: none; background: rgba(255,255,255,0.05); border-radius: 4px;
  padding: 2px 6px; margin: -2px -6px; cursor: text;
}
.bp-node-desc {
  font-size: 11px; color: var(--white-muted); line-height: 1.4;
  padding: 0 16px 10px; margin-top: -4px;
}

/* Node actions */
.bp-node-actions {
  position: absolute; top: -8px; right: -8px; display: flex; gap: 2px;
  opacity: 0; transition: opacity 0.15s; z-index: 10;
}
.bp-node:hover .bp-node-actions { opacity: 1; }
.bp-node-act {
  width: 22px; height: 22px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; cursor: pointer;
  transition: all 0.15s; border: 1px solid var(--void-border);
}
.bp-node-act svg { width: 11px; height: 11px; }
.bp-node-act.bp-act-add { background: var(--green); color: #fff; border-color: var(--green); }
.bp-node-act.bp-act-add:hover { transform: scale(1.15); }
.bp-node-act.bp-act-del { background: var(--void-light); color: var(--white-muted); }
.bp-node-act.bp-act-del:hover { background: var(--red); color: #fff; border-color: var(--red); transform: scale(1.15); }
.bp-node-act.bp-act-color { background: var(--void-light); color: var(--white-muted); }
.bp-node-act.bp-act-color:hover { background: var(--void-hover); color: var(--white); transform: scale(1.15); }

/* Add-child connector dot */
.bp-add-child {
  position: absolute; width: 20px; height: 20px; border-radius: 50%;
  background: var(--void-light); border: 2px dashed rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s; opacity: 0; color: var(--white-muted);
  right: -28px; top: 50%; transform: translateY(-50%);
}
.bp-node:hover .bp-add-child { opacity: 1; }
.bp-add-child:hover { background: var(--green); border-color: var(--green); color: #fff; opacity: 1; transform: translateY(-50%) scale(1.15); }
.bp-add-child svg { width: 10px; height: 10px; }

/* Node color tints */
.bp-color-blue .bp-node-icon { background: rgba(59,130,246,0.15); color: #60a5fa; }
.bp-color-purple .bp-node-icon { background: rgba(139,92,246,0.15); color: #a78bfa; }
.bp-color-green .bp-node-icon { background: rgba(34,197,94,0.15); color: #4ade80; }
.bp-color-orange .bp-node-icon { background: rgba(249,115,22,0.15); color: #fb923c; }
.bp-color-red .bp-node-icon { background: rgba(239,68,68,0.15); color: #f87171; }
.bp-color-cyan .bp-node-icon { background: rgba(6,182,212,0.15); color: #22d3ee; }
.bp-color-pink .bp-node-icon { background: rgba(236,72,153,0.15); color: #f472b6; }
.bp-color-white .bp-node-icon { background: rgba(255,255,255,0.1); color: #e5e5e5; }

/* Color picker popup */
.bp-color-picker {
  position: absolute; z-index: 60; background: var(--void-light);
  border: 1px solid var(--void-border); border-radius: 8px; padding: 8px;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5); animation: fadeIn 0.15s ease;
}
.bp-color-swatch {
  width: 24px; height: 24px; border-radius: 6px; cursor: pointer;
  border: 2px solid transparent; transition: all 0.15s;
}
.bp-color-swatch:hover { transform: scale(1.2); }
.bp-color-swatch.active { border-color: #fff; }

/* ═══════════════════════════════════════════
   MOBILE RESPONSIVE
   ═══════════════════════════════════════════ */
.mobile-menu-btn {
  display: none; width: 40px; height: 40px; border-radius: var(--radius-sm);
  align-items: center; justify-content: center; background: transparent;
  color: var(--white); z-index: 60;
}
.mobile-menu-btn svg { width: 24px; height: 24px; }

@media (max-width: 768px) {
  .landing-nav { padding: 0 20px; }
  .landing-nav-links a:not(.btn) { display: none; }
  .features { padding: 80px 20px; }
  .stats { padding: 60px 20px; }
  .stats-grid { gap: 40px; }
  .cta-section { padding: 80px 20px; }
  .landing-footer { padding: 30px 20px; flex-direction: column; gap: 16px; }

  .sidebar { transform: translateX(-100%); width: var(--sidebar-w) !important; }
  .sidebar.open { transform: translateX(0); }
  .sidebar.collapsed { width: var(--sidebar-w) !important; }
  .sidebar.collapsed .sidebar-collapse-arrow { position: static; background: none; border: 1px solid transparent; box-shadow: none; }
  .main-content { margin-left: 0 !important; }
  .mobile-menu-btn { display: flex; }
  .topbar { padding: 0 16px; }
  .topbar-search { display: none; }
  .dashboard-content { padding: 20px; }
  .view-content { padding: 20px; }
  .kanban-board { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .task-list-row { grid-template-columns: 1fr; gap: 8px; }
  .task-list-row.header { display: none; }
  .task-panel { width: 100%; right: -100%; }
}

/* ═══════════════════════════════════════════
   NOTIFICATION TOAST
   ═══════════════════════════════════════════ */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 1000;
  background: var(--void-lighter); border: 1px solid var(--void-border);
  border-radius: var(--radius); padding: 16px 24px; min-width: 300px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  display: flex; align-items: center; gap: 12px;
  transform: translateY(100px); opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-icon { flex-shrink: 0; color: var(--white); }
.toast-icon svg { width: 20px; height: 20px; }
.toast-text { font-size: 14px; font-weight: 500; }

/* Add new task modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 300; display: none; align-items: center; justify-content: center;
  padding: 24px; backdrop-filter: blur(4px);
}
.modal-overlay.show { display: flex; }
.modal {
  background: var(--void-light); border: 1px solid var(--void-border);
  border-radius: 16px; width: 100%; max-width: 520px; padding: 32px;
  animation: scaleIn 0.3s ease; max-height: 90vh; overflow-y: auto;
}
.modal h2 { font-size: 22px; font-weight: 700; margin-bottom: 24px; }
.modal.modal-crop { padding: 0; overflow: hidden; }
.modal.modal-crop .modal-header { padding: 16px 24px; margin-bottom: 0; }
.modal.modal-crop .modal-actions { padding: 16px 24px; margin-top: 0; }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.modal-body {
  display: flex; flex-direction: column; gap: 16px;
}
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }

/* Theme swatches */
.theme-swatch {
  width: 32px; height: 32px; border-radius: 8px; border: 2px solid transparent;
  cursor: pointer; transition: all var(--transition); position: relative;
}
.theme-swatch:hover { transform: scale(1.1); box-shadow: 0 0 12px rgba(255,255,255,0.1); }
.theme-swatch.active { border-color: var(--white); box-shadow: 0 0 0 2px var(--cyan-glow); }
.theme-swatch.active::after {
  content: '✓'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: white;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Image Crop Modal */
.crop-workspace {
  width: 100%; height: 280px; position: relative; overflow: hidden;
  background: #0a0a0a; cursor: grab;
}
.crop-workspace:active { cursor: grabbing; }
.crop-area {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.crop-area img {
  position: absolute; user-select: none; -webkit-user-drag: none;
  transform-origin: center center;
}
.crop-overlay {
  position: absolute; inset: 0; pointer-events: none;
}
.crop-hole {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 180px; height: 180px; border-radius: 18px;
  box-shadow: 0 0 0 9999px rgba(0,0,0,0.65);
  border: 2px solid rgba(255,255,255,0.35);
  pointer-events: none;
}
.crop-hole.crop-circle { border-radius: 50%; }
.crop-controls {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 24px; background: var(--void-card);
}
.crop-zoom-btn {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--void); border: 1px solid var(--void-border);
  color: var(--white-dim); cursor: pointer; transition: all var(--transition);
}
.crop-zoom-btn:hover { color: var(--white); border-color: #52525B; }
.crop-zoom-btn svg { width: 18px; height: 18px; }
#crop-zoom-slider {
  flex: 1; -webkit-appearance: none; appearance: none;
  height: 4px; border-radius: 2px;
  background: var(--void-border); outline: none;
}
#crop-zoom-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--white); cursor: pointer;
  box-shadow: 0 0 4px rgba(0,0,0,0.3);
}
#crop-zoom-slider::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%; border: none;
  background: var(--white); cursor: pointer;
}

/* Logo image inside icon containers */
.icon-has-logo { overflow: hidden; }
.icon-has-logo img {
  width: 100%; height: 100%; object-fit: cover; border-radius: inherit;
}