/* ==========================================================================
   Techno Particles CRM - Ultra-Premium SaaS Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Brand Palettes */
  --crm-purple: #6259e8;
  --crm-purple-dark: #4b42d1;
  --crm-purple-glow: rgba(98, 89, 232, 0.35);
  --crm-violet: #8b5cf6;
  --crm-blue: #3b82f6;
  --crm-cyan: #06b6d4;
  --crm-emerald: #10b981;
  --crm-amber: #f59e0b;
  --crm-rose: #f43f5e;

  /* Theme Backgrounds */
  --bg-main: #07090e;
  --bg-surface: #0e131f;
  --bg-surface-elevated: #141b2c;
  --bg-card: rgba(18, 24, 40, 0.7);
  --bg-card-hover: rgba(24, 32, 54, 0.85);

  /* Borders & Glassmorphism */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(98, 89, 232, 0.5);
  --border-glow: rgba(99, 102, 241, 0.3);
  --glass-blur: blur(20px);

  /* Typography Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #0f172a;

  /* Gradients */
  --grad-hero: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
  --grad-banner: linear-gradient(135deg, #5b54e0 0%, #766bf2 50%, #6850c9 100%);
  --grad-cyan: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --grad-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  --glow-primary: radial-gradient(circle at 50% 0%, rgba(98, 89, 232, 0.22) 0%, transparent 70%);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 32px -4px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 56px -8px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 40px rgba(98, 89, 232, 0.25);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  position: relative;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(98, 89, 232, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 85% 20%, rgba(6, 182, 212, 0.1), transparent),
    radial-gradient(ellipse 50% 50% at 15% 55%, rgba(139, 92, 246, 0.08), transparent),
    var(--bg-main);
  background-attachment: fixed;
}

@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }
}

/* Subtle Grid Background */
.bg-grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-size: 48px 48px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent 85%);
  z-index: 0;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Typography */
h1, h2, h3, h4, .brand-font {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 10%, #c7d2fe 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-accent {
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Badges & Pills */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  backdrop-filter: blur(8px);
}

.badge-pill.cyan {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.3);
  color: #67e8f9;
}

.badge-pill.amber {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fcd34d;
}

.badge-pill.emerald {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.badge-pill.purple {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.3);
  color: #d8b4fe;
}

.badge-pill.rose {
  background: rgba(244, 63, 94, 0.1);
  border-color: rgba(244, 63, 94, 0.3);
  color: #fda4af;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--crm-cyan);
  box-shadow: 0 0 10px var(--crm-cyan);
  animation: pulseAnimation 2s infinite;
}

@keyframes pulseAnimation {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 16px var(--crm-cyan); }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* Header & Nav */
.header-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 9, 14, 0.75);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
  transition: all var(--transition-normal);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.brand-logo-icon svg {
  width: 24px;
  height: 24px;
  fill: white;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-item a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-item a:hover {
  color: var(--text-primary);
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: white;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* Hero Section */
.crm-page > .crm-main {
  /* The shared site header is absolute, so reserve its visual height. */
  padding-top: 92px;
}

.hero-section {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 920px;
  margin: 0 auto;
}

.hero-headline {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 24px 0 20px;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 760px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

/* Hero Live Preview Card */
.hero-preview-wrapper {
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  padding: 8px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(6, 182, 212, 0.2), rgba(255, 255, 255, 0.05));
  box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.8), 0 0 60px rgba(99, 102, 241, 0.2);
}

.hero-preview-window {
  background: #f4f6fb;
  border-radius: calc(var(--radius-xl) - 4px);
  overflow: hidden;
  color: #1e293b;
  position: relative;
}

/* CRM Top App Bar (Replicated from user's CRM) */
.crm-app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.crm-app-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.crm-burger-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 5px;
  border-radius: 6px;
  transition: background var(--transition-fast);
}

.crm-burger-icon:hover,
.crm-burger-icon:focus-visible {
  background: #e8edf7;
  outline: none;
}

.crm-burger-icon span {
  width: 20px;
  height: 2px;
  background: #475569;
  border-radius: 2px;
}

.crm-brand-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.crm-cube-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.crm-brand-identity h4 {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #1e293b;
}

.crm-power-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #fee2e2;
  background: #fef2f2;
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.crm-power-btn:hover {
  background: #ef4444;
  color: white;
}

/* CRM App Drawer */
.crm-drawer-backdrop {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgba(15, 23, 42, 0.56);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.crm-app-drawer {
  position: absolute;
  z-index: 21;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(300px, 86%);
  background: #fbfaff;
  color: #293042;
  border-radius: 0 22px 22px 0;
  box-shadow: 18px 0 42px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  transform: translateX(-104%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.hero-preview-window.drawer-open .crm-drawer-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.hero-preview-window.drawer-open .crm-app-drawer {
  transform: translateX(0);
}

.crm-drawer-profile {
  min-height: 168px;
  padding: 20px 20px 16px;
  background: linear-gradient(135deg, #627be1 0%, #687fe7 100%);
  color: #fff;
  position: relative;
}

.crm-drawer-avatar {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #fff;
  padding: 8px;
  margin-bottom: 10px;
}

.crm-drawer-avatar svg {
  width: 100%;
  height: 100%;
}

.crm-drawer-profile strong,
.crm-drawer-profile span {
  display: block;
}

.crm-drawer-profile strong {
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.crm-drawer-profile span {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  margin-top: 3px;
}

.crm-drawer-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.crm-drawer-menu {
  flex: 1;
  overflow-y: auto;
  padding: 12px 10px 18px;
}

.crm-drawer-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 0;
  border-radius: 10px;
  padding: 11px 12px;
  background: transparent;
  color: #3f4350;
  font: inherit;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.crm-drawer-item:hover,
.crm-drawer-item:focus-visible,
.crm-drawer-item.active {
  background: #edf0ff;
  color: #4e63cc;
  outline: none;
}

.crm-drawer-item:hover {
  transform: translateX(3px);
}

.crm-drawer-item > span {
  width: 22px;
  color: #606271;
  font-size: 1.08rem;
  text-align: center;
}

.crm-drawer-item.active > span,
.crm-drawer-item:hover > span {
  color: #5068d8;
}

/* CRM Clock In Banner (Signature Purple Banner from user's screenshot) */
.crm-banner-mockup {
  margin: 20px 24px;
  background: var(--grad-banner);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  box-shadow: 0 12px 30px rgba(98, 89, 232, 0.35);
  position: relative;
  overflow: hidden;
}

.crm-banner-mockup::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.crm-user-greeting h5 {
  font-size: 0.95rem;
  font-weight: 400;
  opacity: 0.85;
  margin-bottom: 4px;
}

.crm-user-greeting h3 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.crm-date-badge {
  font-size: 0.88rem;
  opacity: 0.8;
  margin-top: 4px;
}

.crm-clock-right {
  display: flex;
  align-items: center;
  gap: 24px;
  z-index: 2;
}

.crm-live-clock-display {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: right;
  line-height: 1.1;
}

.crm-live-clock-display span.clock-day {
  font-family: 'Plus Jakarta Sans', sans-serif;
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  opacity: 0.8;
  margin-top: 2px;
}

.crm-clockout-action {
  background: white;
  color: #ef4444;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-fast);
}

.crm-clockout-action:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.crm-clockout-action.clocked-out {
  background: #10b981;
  color: white;
}

/* CRM Grid Layout inside Mockup */
.crm-dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  padding: 0 24px 24px;
}

.crm-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  border: 1px solid #edf2f7;
}

.crm-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.crm-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.crm-card-icon.blue { background: #3b82f6; }
.crm-card-icon.purple { background: #6366f1; }
.crm-card-icon.amber { background: #f59e0b; }
.crm-card-icon.emerald { background: #10b981; }

.crm-card-title h4 {
  font-size: 1.05rem;
  color: #1e293b;
  font-weight: 700;
}

.crm-card-title p {
  font-size: 0.78rem;
  color: #64748b;
}

/* Spline Pulse Chart (Canvas/SVG simulation) */
.pulse-spline-container {
  width: 100%;
  height: 180px;
  position: relative;
}

.spline-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Donut Chart Simulation */
.crm-donut-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
}

.donut-circle-container {
  position: relative;
  width: 130px;
  height: 130px;
  margin-bottom: 16px;
}

.donut-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.donut-inner-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.donut-pct {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1e293b;
  display: block;
}

.donut-label {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
}

.status-legend-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.status-legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #475569;
}

.status-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}

.status-indicator-dot.completed { background: #10b981; }
.status-indicator-dot.progress { background: #3b82f6; }
.status-indicator-dot.pending { background: #ef4444; }

.status-count {
  font-weight: 700;
  color: #1e293b;
}

.deep-dive-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: #3b82f6;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Stats Metrics Bar */
.stats-bar-section {
  padding: 40px 0 80px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  backdrop-filter: var(--glass-blur);
  transition: all var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-glow);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.stat-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Features Detailed Showcase Section */
.features-section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 64px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  margin: 16px 0 18px;
}

.section-desc {
  font-size: 1.12rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Alternating Feature Showcase Rows */
.feature-showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 110px;
}

.feature-showcase-row.reverse {
  direction: rtl;
}

.feature-showcase-row.reverse > * {
  direction: ltr;
}

.feature-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feature-title {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
}

.feature-subtitle {
  font-size: 1.1rem;
  color: #a5b4fc;
  font-weight: 500;
}

.feature-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.feature-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 10px 0;
}

.feature-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 0.75rem;
}

.feature-stat-pills {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.feature-stat-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 18px;
}

.feature-stat-pill span.metric-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  letter-spacing: 0.04em;
}

.feature-stat-pill span.metric-data {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Feature Visual Card */
.feature-visual-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  backdrop-filter: var(--glass-blur);
  transition: all var(--transition-normal);
  position: relative;
}

.feature-visual-card:hover {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.feature-visual-header {
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #334155;
}

.window-dot.red { background: #ef4444; }
.window-dot.yellow { background: #f59e0b; }
.window-dot.green { background: #10b981; }

.visual-title-tag {
  font-size: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
}

.feature-visual-body {
  padding: 24px;
}

.feature-img-responsive {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Interactive Demo Showcase */
.interactive-demo-section {
  padding: 90px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(14, 19, 31, 0.7) 50%, transparent 100%);
  position: relative;
}

.demo-tabs-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.demo-tab-btn {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-tab-btn:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.demo-tab-btn.active {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.demo-view-container {
  max-width: 1000px;
  margin: 0 auto;
  background: #f8fafc;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
  color: #1e293b;
}

.demo-view-pane {
  display: none;
  padding: 32px;
  animation: fadeInPane 0.35s ease-out;
}

.demo-view-pane.active {
  display: block;
}

/* Task Workspace */
.task-workspace-pane {
  background: #f8fafc;
}

.task-page-heading,
.task-toolbar,
.task-list-heading,
.task-pulse-heading,
.task-pulse-title-wrap,
.task-modal-header,
.task-modal-header > div {
  display: flex;
  align-items: center;
}

.task-page-heading {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.task-page-heading h3 {
  font-size: 1.7rem;
  color: #123b5c;
  margin-top: 4px;
}

.task-breadcrumb,
.task-page-caption {
  color: #93a0b2;
  font-size: 0.78rem;
  font-weight: 700;
}

.task-breadcrumb b {
  color: #c0c9d5;
  padding: 0 5px;
}

.task-toolbar {
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.task-search-box {
  flex: 1 1 280px;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #edf0f5;
  border-radius: 25px;
  padding: 0 17px;
  box-shadow: 0 5px 18px rgba(31, 41, 55, 0.06);
}

.task-search-box > span {
  font-size: 1.7rem;
  color: #a4afbd;
  line-height: 1;
  transform: rotate(-20deg);
}

.task-search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #29364d;
  font: inherit;
  font-size: 0.84rem;
}

.task-filter-select,
.task-add-btn {
  height: 48px;
  border-radius: 25px;
  border: 1px solid #edf0f5;
  background: #fff;
  color: #59667a;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 750;
  padding: 0 16px;
  cursor: pointer;
  box-shadow: 0 5px 18px rgba(31, 41, 55, 0.06);
}

.task-filter-select {
  min-width: 128px;
}

.task-add-btn {
  color: #fff;
  border: 0;
  padding: 0 20px;
  background: linear-gradient(110deg, #6414d8, #257cf2);
  box-shadow: 0 8px 20px rgba(74, 69, 220, 0.26);
}

.task-add-btn span {
  font-size: 1.15rem;
  vertical-align: -1px;
}

.task-pulse-card {
  background: linear-gradient(120deg, #061728 0%, #122b49 100%);
  border-radius: 20px;
  padding: 22px 22px 18px;
  color: #f7fbff;
  box-shadow: 0 18px 36px rgba(11, 32, 55, 0.2);
  overflow: hidden;
}

.task-pulse-heading {
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.task-pulse-title-wrap {
  gap: 12px;
}

.task-pulse-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #8ef4dd;
  background: rgba(255, 255, 255, 0.11);
  font-size: 1.8rem;
}

.task-pulse-title-wrap h4 {
  font-size: 1.35rem;
}

.task-pulse-title-wrap p {
  color: #aab7c8;
  font-size: 0.78rem;
  margin-top: 3px;
}

.task-pulse-stats {
  display: flex;
  gap: 10px;
}

.task-pulse-stats > div {
  min-width: 86px;
  padding: 10px 12px;
  border: 1px solid rgba(125, 228, 219, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.task-pulse-stats > div:nth-child(2) { border-color: rgba(111, 164, 255, 0.3); }
.task-pulse-stats > div:nth-child(3) { border-color: rgba(248, 174, 73, 0.35); }

.task-pulse-stats span,
.task-pulse-stats strong {
  display: block;
}

.task-pulse-stats span {
  color: #a7b6c7;
  font-size: 0.7rem;
}

.task-pulse-stats strong {
  font-size: 1.25rem;
  margin-top: 3px;
}

.task-chart-wrap {
  margin-top: 22px;
  padding: 16px 14px 4px;
  border: 1px solid rgba(164, 194, 221, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.task-pulse-chart {
  display: block;
  width: 100%;
  min-height: 190px;
}

.task-pulse-chart line {
  stroke: rgba(191, 215, 238, 0.12);
  stroke-width: 1;
}

.task-pulse-area { fill: url(#taskPulseArea); }
.task-pulse-line { fill: none; stroke: #66c6ff; stroke-width: 4; stroke-linecap: round; }
.task-pulse-points circle { fill: #78f0d7; stroke: #c1fff3; stroke-width: 2; }
.task-pulse-labels text { fill: #a5b6ca; font-size: 13px; text-anchor: middle; }
.task-pulse-values text { fill: #f0f7ff; font-size: 13px; font-weight: 800; text-anchor: middle; }

.task-status-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.task-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 20px;
  color: #d8e2ee;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 700;
}

.task-status-chip i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.task-status-chip b { color: #fff; }
.task-status-chip.progress i { background: #54bbff; }
.task-status-chip.completed i { background: #7be38b; }
.task-status-chip.pending i { background: #ffae7d; }

.task-list-heading {
  justify-content: space-between;
  gap: 16px;
  margin: 20px 0 10px;
}

.task-list-heading h4 {
  color: #154b6d;
  font-size: 0.98rem;
}

.task-list-heading h4 span { color: #154b6d; }
.task-list-heading > span { color: #96a1b1; font-size: 0.75rem; font-weight: 700; }

.task-table-shell {
  background: #fff;
  border: 1px solid #e9edf4;
  border-radius: 15px;
  overflow: hidden;
}

.task-table-scroll { overflow-x: auto; }

.task-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  font-size: 0.76rem;
}

.task-table th,
.task-table td {
  padding: 13px 11px;
  text-align: left;
  border-bottom: 1px solid #edf0f5;
  white-space: nowrap;
}

.task-table th {
  color: #67758a;
  background: linear-gradient(90deg, #eef0ff, #f8eafa);
  font-weight: 800;
}

.task-table td {
  color: #4b5567;
  font-weight: 650;
}

.task-row { cursor: pointer; transition: background var(--transition-fast); }
.task-row:hover { background: #f7f8ff; }
.task-row:last-child td { border-bottom: 0; }
.task-row td:first-child { color: #6e7888; font-weight: 800; }

.task-code-pill {
  display: inline-block;
  min-width: 84px;
  padding: 7px 12px;
  text-align: center;
  border-radius: 15px;
  background: linear-gradient(100deg, #cbd4f2, #edc1e9);
  color: #354a98;
  font-weight: 800;
}

.task-title-cell {
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-status-select {
  min-width: 126px;
  border: 1px solid #e1e4e9;
  border-radius: 20px;
  background: #fff;
  padding: 8px 10px;
  color: #4c525d;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 750;
  cursor: pointer;
}

.task-delete-btn {
  border: 0;
  background: transparent;
  color: #ff4949;
  font-size: 1.1rem;
  cursor: pointer;
}

.task-empty-state {
  display: none;
  padding: 30px;
  color: #8c97a8;
  text-align: center;
  font-size: 0.85rem;
}

.task-empty-state.visible { display: block; }

/* Task create and detail modals */
.task-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(5px);
}

.task-modal-backdrop.active { display: flex; }

.task-modal-card {
  width: min(680px, 100%);
  max-height: min(760px, 92vh);
  overflow-y: auto;
  border: 1px solid #edf0f6;
  border-radius: 24px;
  background: #fbfcff;
  box-shadow: 0 28px 80px rgba(10, 24, 48, 0.32);
}

.task-modal-header {
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  color: #fff;
  background: linear-gradient(110deg, #5b7ceb, #8544b7);
}

.task-modal-header > div:first-child { gap: 13px; }
.task-modal-header h3 { font-size: 1.35rem; }
.task-modal-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: rgba(255,255,255,0.2); font-size: 1.1rem; }
.task-modal-close { width: 34px; height: 34px; border: 0; border-radius: 10px; background: rgba(255,255,255,0.2); color: #fff; font-size: 1.5rem; cursor: pointer; }
.task-details-code { display: inline-block; margin-top: 5px; padding: 4px 9px; border-radius: 10px; background: rgba(255,255,255,0.2); color: #fff; font-size: 0.7rem; font-weight: 800; }
.task-modal-tools { display: flex; gap: 7px; }
.task-modal-tools button { width: 32px; height: 32px; border: 0; border-radius: 9px; background: rgba(255,255,255,0.2); color: #fff; cursor: pointer; }

.task-form-grid,
.task-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 24px 24px 0;
}

.task-modal-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #e7ebf1;
  border-radius: 13px;
  background: #fff;
  color: #3b475a;
  padding: 12px 14px;
  font: inherit;
  font-size: 0.82rem;
  outline: 0;
}

.task-modal-input:focus { border-color: #7084eb; box-shadow: 0 0 0 3px rgba(112, 132, 235, 0.12); }
.task-modal-input.full { grid-column: 1 / -1; }
textarea.task-modal-input { min-height: 120px; resize: vertical; }
.task-modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 20px 24px 24px; }
.task-cancel-btn,
.task-create-btn { border-radius: 22px; padding: 11px 20px; font: inherit; font-size: 0.8rem; font-weight: 800; cursor: pointer; }
.task-cancel-btn { border: 1px solid #dfe4ec; background: #fff; color: #5b6575; }
.task-create-btn { border: 0; background: linear-gradient(110deg, #5d7eed, #8346bd); color: #fff; box-shadow: 0 8px 18px rgba(91, 103, 220, 0.25); }

.task-details-card { width: min(620px, 100%); }
.task-detail-title-box { display: flex; gap: 13px; margin: 22px 24px 0; padding: 18px; border: 1px solid #e9edf4; border-radius: 16px; background: #fff; }
.task-detail-title-box > span { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 13px; background: #edf0ff; color: #637bea; font-size: 1.25rem; font-weight: 800; }
.task-detail-title-box small,
.task-detail-grid small,
.task-timeline small { display: block; color: #8691a1; font-size: 0.7rem; font-weight: 750; margin-bottom: 5px; }
.task-detail-title-box strong { display: block; color: #293346; font-size: 0.9rem; line-height: 1.4; }
.task-detail-grid > div { min-height: 72px; padding: 15px; border: 1px solid #e9edf4; border-radius: 15px; background: #fff; }
.task-detail-grid strong,
.task-timeline strong { display: block; color: #2f3b4f; font-size: 0.9rem; }
.task-detail-section-title { margin: 22px 24px 0; color: #53647b; font-size: 1rem; }
.task-timeline { display: grid; gap: 10px; padding: 12px 24px 0; }
.task-timeline > div { display: grid; grid-template-columns: 42px 1fr; align-items: center; column-gap: 12px; padding: 14px; border: 1px solid #e9edf4; border-radius: 15px; background: #fff; }
.task-timeline .timeline-icon { grid-row: span 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #e7fff0; color: #20d96e; }
.task-timeline .timeline-icon.due { background: #fff0e9; color: #ff6d41; }
.task-timeline .timeline-icon.done { background: #e2faf7; color: #16a39b; }

/* Chat Workspace */
.chat-workspace-pane {
  padding: 0;
  background: #f4f7fb;
}

.chat-page-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 12px 22px;
  background: #fff;
  border-bottom: 1px solid #e9edf4;
}

.chat-back-icon {
  color: #253145;
  font-size: 2.2rem;
  line-height: 1;
}

.chat-brand-mark,
.chat-header-person,
.chat-list-item,
.chat-list-heading,
.chat-mode-switcher,
.chat-composer,
.chat-attachment-bubble {
  display: flex;
  align-items: center;
}

.chat-brand-mark { gap: 10px; }
.chat-brand-mark > span { color: #2d6ca0; font-size: 2.45rem; line-height: 1; }
.chat-brand-mark h3 { color: #1d293d; font-size: 1.7rem; }

.chat-layout {
  min-height: 690px;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  background: #f4f7fb;
}

.chat-sidebar {
  min-width: 0;
  padding: 18px 12px 18px;
  border-right: 1px solid #e2e8f1;
  background: #f4f7fb;
}

.chat-mode-switcher {
  background: #e9eef6;
  border-radius: 14px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 20px;
}

.chat-mode-btn {
  flex: 1;
  height: 46px;
  border: 0;
  border-radius: 11px;
  color: #667287;
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.chat-mode-btn.active {
  color: #6047dd;
  background: #fff;
  box-shadow: 0 5px 14px rgba(51, 65, 85, 0.12);
}

.chat-mode-btn i {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-left: 4px;
  border-radius: 50%;
  background: #45b969;
}

.chat-list-heading {
  justify-content: space-between;
  padding: 0 2px 10px;
}

.chat-list-heading h4 { color: #1e2b3e; font-size: 1rem; }
.chat-list-heading button { border: 0; color: #66748a; background: transparent; font-size: 1.65rem; cursor: pointer; transform: rotate(-20deg); }

.chat-list-search {
  width: 100%;
  height: 38px;
  display: none;
  margin-bottom: 10px;
  border: 1px solid #dfe6f0;
  border-radius: 11px;
  padding: 0 12px;
  outline: 0;
  font: inherit;
  font-size: 0.8rem;
}

.chat-list-search.visible { display: block; }
.chat-list-scroll { display: grid; gap: 9px; max-height: 570px; overflow-y: auto; padding-right: 3px; }

.chat-list-item {
  width: 100%;
  gap: 10px;
  min-width: 0;
  border: 1px solid #e5eaf2;
  border-radius: 15px;
  padding: 11px 10px;
  background: #fff;
  color: #273349;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(34, 54, 82, 0.035);
  transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.chat-list-item:hover,
.chat-list-item.active { border-color: #bfaeff; background: #f3efff; transform: translateY(-1px); }
.chat-list-item[hidden] { display: none; }

.chat-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: #684ed3;
  font-weight: 800;
  position: relative;
}

.chat-avatar.small { width: 30px; height: 30px; font-size: 0.75rem; align-self: flex-end; }
.chat-avatar::after { content: ''; position: absolute; right: -1px; bottom: 1px; width: 9px; height: 9px; border: 2px solid #fff; border-radius: 50%; background: #39c568; }
.chat-avatar.initials-purple { background: #6845c6; }
.chat-avatar.group-avatar { background: linear-gradient(135deg, #6e54d8, #8c5bdc); font-size: 1.2rem; }
.chat-avatar.group-avatar::after { display: none; }
.chat-avatar.photo-yash { background: linear-gradient(135deg, #88a7bd, #e2b590); }
.chat-avatar.photo-prerit { background: linear-gradient(135deg, #142e53, #c18e57); }
.chat-avatar.photo-nishtha { background: linear-gradient(135deg, #202d4c, #d69f7e); }
.chat-avatar.photo-jitendra { background: linear-gradient(135deg, #287d97, #e7ba55); }
.chat-avatar.photo-bhumika { background: linear-gradient(135deg, #1e3c39, #93ae86); }

.chat-list-copy { min-width: 0; flex: 1; }
.chat-list-copy strong,
.chat-list-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-list-copy strong { color: #253146; font-size: 0.84rem; }
.chat-list-copy small { color: #7e899a; font-size: 0.73rem; margin-top: 3px; }
.chat-list-item time { align-self: flex-start; color: #7d8797; font-size: 0.68rem; white-space: nowrap; }
.chat-list-item time b { display: block; margin-top: 8px; padding: 4px 7px; border-radius: 12px; background: #ec4eac; color: #fff; text-align: center; }

.chat-conversation {
  min-width: 0;
  min-height: 690px;
  display: flex;
  flex-direction: column;
  position: relative;
  background: #fff;
}

.chat-conversation-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid #e3eaf1;
  background: #eefaff;
}

.chat-header-person { gap: 10px; }
.chat-header-person strong,
.chat-header-person small { display: block; }
.chat-header-person strong { color: #17263a; font-size: 0.98rem; }
.chat-header-person small { color: #2eaf65; font-size: 0.72rem; font-weight: 700; margin-top: 3px; }
.chat-more-btn { border: 0; color: #6d7889; background: transparent; font-size: 1.55rem; cursor: pointer; }

.chat-pinned-message {
  display: flex;
  gap: 12px;
  margin: 13px 14px 0;
  padding: 13px 15px;
  border: 1px solid #d6caff;
  border-radius: 13px;
  background: #f0ebff;
  color: #4f5067;
}

.chat-pinned-message > span { color: #6549d5; font-size: 1.2rem; }
.chat-pinned-message strong,
.chat-pinned-message p,
.chat-pinned-message small { display: block; }
.chat-pinned-message strong { color: #3f4053; font-size: 0.78rem; }
.chat-pinned-message p { color: #777a91; font-size: 0.75rem; margin-top: 3px; }
.chat-pinned-message small { color: #9895a9; font-size: 0.68rem; margin-top: 2px; }

.chat-message-list {
  flex: 1;
  min-height: 330px;
  max-height: 475px;
  overflow-y: auto;
  padding: 18px 18px 22px;
  position: relative;
}

.chat-date-separator { width: max-content; margin: 8px auto 18px; padding: 6px 13px; border: 1px solid #e3e8ef; border-radius: 18px; color: #7d8899; background: #fff; font-size: 0.7rem; font-weight: 800; box-shadow: 0 3px 10px rgba(45, 64, 88, 0.07); }
.chat-message-row { display: flex; align-items: flex-end; gap: 8px; position: relative; margin: 13px 0; }
.chat-message-row.incoming { justify-content: flex-start; }
.chat-message-row.outgoing { justify-content: flex-end; }
.chat-message-content { max-width: min(72%, 440px); }
.chat-message-sender { color: #778296; font-size: 0.68rem; font-weight: 800; margin: 0 0 4px 3px; }
.chat-bubble { padding: 11px 14px; border-radius: 14px 14px 14px 4px; background: #f1f4fa; color: #435069; font-size: 0.8rem; line-height: 1.5; word-break: break-word; }
.outgoing .chat-bubble { border-radius: 14px 14px 4px 14px; background: linear-gradient(135deg, #5d3bd4, #6244d8); color: #fff; box-shadow: 0 7px 16px rgba(84, 59, 207, 0.2); }
.code-bubble { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; }
.chat-message-time { color: #98a2b3; font-size: 0.65rem; margin-top: 4px; text-align: right; }
.outgoing .chat-message-time { color: #8992a6; }

.chat-attachment-bubble { gap: 10px; min-width: 220px; padding: 10px 11px; border: 1px solid rgba(255,255,255,0.28); border-radius: 12px; background: linear-gradient(135deg, #5d3bd4, #6244d8); color: #fff; }
.chat-attachment-bubble > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,0.18); font-size: 1.1rem; }
.chat-attachment-bubble strong,
.chat-attachment-bubble small { display: block; }
.chat-attachment-bubble strong { font-size: 0.76rem; }
.chat-attachment-bubble small { color: #d8d2ff; font-size: 0.65rem; margin-top: 2px; }
.chat-attachment-bubble button { margin-left: auto; border: 0; color: #fff; background: transparent; cursor: pointer; font-size: 1.1rem; }

.chat-message-menu-btn { order: 2; align-self: center; border: 0; color: #8d96a4; background: transparent; font-size: 1.1rem; cursor: pointer; opacity: 0; }
.chat-message-row:hover .chat-message-menu-btn,
.chat-message-menu-btn:focus { opacity: 1; }
.chat-message-menu { display: none; position: absolute; right: 18px; bottom: -40px; z-index: 5; min-width: 90px; padding: 5px; border: 1px solid #e4e9f1; border-radius: 10px; background: #fff; box-shadow: 0 12px 28px rgba(31, 41, 55, 0.16); }
.chat-message-row.incoming .chat-message-menu { left: 45px; right: auto; }
.chat-message-menu.open { display: grid; }
.chat-message-menu button { border: 0; border-radius: 7px; padding: 7px 9px; color: #58667c; background: transparent; font: inherit; font-size: 0.72rem; text-align: left; cursor: pointer; }
.chat-message-menu button:hover { background: #f2efff; color: #5a45d2; }

.chat-drop-overlay { display: none; position: absolute; inset: 72px 0 82px; z-index: 2; place-items: center; border: 2px dashed #735ce5; background: rgba(239, 236, 255, 0.84); color: #5a44ce; font-weight: 800; }
.chat-conversation.dragging .chat-drop-overlay { display: grid; }

.chat-composer { gap: 10px; padding: 13px 16px; border-top: 1px solid #e4eaf2; background: #fff; }
.chat-attach-btn { border: 0; color: #6849d7; background: transparent; font-size: 1.65rem; cursor: pointer; transform: rotate(-40deg); }
.chat-composer textarea { flex: 1; min-height: 48px; max-height: 120px; resize: none; border: 2px solid #c5b9ff; border-radius: 22px; padding: 12px 15px; outline: 0; color: #39455a; font: inherit; font-size: 0.8rem; }
.chat-composer textarea:focus { box-shadow: 0 0 0 3px rgba(102, 76, 216, 0.12); }
.chat-send-btn { width: 42px; height: 42px; border: 0; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #5e3bd5, #6544da); box-shadow: 0 7px 16px rgba(84, 59, 207, 0.25); cursor: pointer; font-size: 1.2rem; }

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

/* Project Workspace */
.project-workspace-pane { padding: 0; background: #f4f7fb; }
.project-hero-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 22px; padding: 28px 30px; color: #fff; background: linear-gradient(115deg, #637be7, #5140e8); border-radius: 20px; box-shadow: 0 18px 36px rgba(80, 86, 226, .18); }
.project-eyebrow { display: block; margin-bottom: 7px; color: rgba(255,255,255,.72); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.project-hero-card h3 { font-size: 1.8rem; }
.project-hero-card p { margin-top: 6px; color: rgba(255,255,255,.78); font-size: .78rem; }
.project-add-btn { border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: 12px 17px; color: #fff; background: rgba(255,255,255,.16); font: inherit; font-size: .78rem; font-weight: 800; cursor: pointer; transition: transform var(--transition-fast), background var(--transition-fast); }
.project-add-btn:hover { transform: translateY(-2px); background: rgba(255,255,255,.25); }
.project-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.project-summary-card { display: flex; align-items: center; gap: 12px; min-height: 94px; padding: 16px; border: 1px solid #e1e8f1; border-radius: 17px; background: #fff; box-shadow: 0 7px 18px rgba(51, 72, 102, .05); }
.project-summary-card strong, .project-summary-card small { display: block; }
.project-summary-card strong { color: #1d293d; font-size: 1.35rem; }
.project-summary-card small { margin-top: 3px; color: #8190a6; font-size: .7rem; font-weight: 700; }
.project-summary-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 12px; font-size: 1.15rem; font-weight: 900; }
.project-summary-icon.blue { color: #3972e8; background: #e9efff; }
.project-summary-icon.teal { color: #159a91; background: #e4f7f5; }
.project-summary-icon.green { color: #1fa258; background: #e6f7ed; }
.project-summary-icon.red { color: #ed3d3d; background: #ffebeb; }
.project-filter-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 14px; border: 1px solid #e1e8f1; border-radius: 17px; background: #fff; }
.project-search-box { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 180px; height: 42px; padding: 0 13px; border: 1px solid #e3e9f2; border-radius: 12px; color: #77859a; background: #f8faff; }
.project-search-box span { font-size: 1.35rem; line-height: 1; }
.project-search-box input, .project-filter-bar select { border: 0; outline: 0; color: #526177; background: transparent; font: inherit; font-size: .76rem; }
.project-search-box input { width: 100%; }
.project-filter-bar select { height: 42px; min-width: 135px; padding: 0 11px; border: 1px solid #e3e9f2; border-radius: 12px; background: #f8faff; cursor: pointer; }
.project-list-shell { overflow: hidden; border: 1px solid #e1e8f1; border-radius: 18px; background: #fff; }
.project-list-heading, .project-section-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.project-list-heading { padding: 18px 18px 13px; }
.project-list-heading h4 { color: #25344a; font-size: 1rem; }
.project-list-heading > span, .project-section-title > span { color: #8090a7; font-size: .7rem; }
.project-table-scroll { overflow-x: auto; }
.project-table { width: 100%; min-width: 780px; border-collapse: collapse; color: #536177; font-size: .74rem; }
.project-table th { padding: 12px 14px; color: #718098; background: #f5f8fc; font-size: .68rem; text-align: left; white-space: nowrap; }
.project-table td { padding: 13px 14px; border-top: 1px solid #edf1f6; white-space: nowrap; }
.project-table tbody tr { cursor: pointer; transition: background var(--transition-fast); }
.project-table tbody tr:hover { background: #f8f7ff; }
.project-table tbody tr[hidden] { display: none; }
.project-table td:nth-child(2) { min-width: 180px; }
.project-table td:nth-child(2) strong, .project-table td:nth-child(2) small { display: block; }
.project-table td:nth-child(2) strong { display: inline-block; color: #29374c; font-size: .8rem; }
.project-table td:nth-child(2) small { margin-left: 36px; margin-top: 2px; color: #8997a9; font-size: .64rem; }
.project-mark { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 8px; border-radius: 10px; color: #5b78e8; background: #eaf0ff; font-size: .68rem; font-weight: 900; letter-spacing: -3px; vertical-align: middle; }
.member-stack { display: flex; align-items: center; padding-left: 3px; }
.member-avatar { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-left: -4px; border: 2px solid #fff; border-radius: 50%; color: #fff; background: #677ee2; font-size: .65rem; font-style: normal; font-weight: 800; }
.member-stack b { margin-left: 5px; color: #45536a; font-size: .7rem; }
.member-avatar.nishtha { background: linear-gradient(135deg, #263953, #e0a37d); }
.member-avatar.yash { background: linear-gradient(135deg, #6e9db5, #d59e7b); }
.member-avatar.sakshi { background: linear-gradient(135deg, #894f65, #e0b66d); }
.member-avatar.jitendra { background: linear-gradient(135deg, #13788b, #e9bb4f); }
.member-avatar.prerit { background: linear-gradient(135deg, #162e50, #c88d52); }
.member-avatar.kritarth { background: linear-gradient(135deg, #5d44c9, #9274e8); }
.member-avatar.bhumika { background: linear-gradient(135deg, #1f403e, #9ab17d); }
.project-status { display: inline-block; min-width: 104px; padding: 8px 11px; border-radius: 18px; font-size: .68rem; font-weight: 800; text-align: center; }
.project-status.in-progress { color: #3974e9; background: #e9efff; }
.project-status.completed { color: #1aab54; background: #e6f7ed; }
.project-status.on-hold { color: #e69a16; background: #fff4df; }
.project-empty-state { display: none; padding: 38px 20px; color: #8492a7; font-size: .8rem; text-align: center; }
.project-empty-state.visible { display: block; }
.project-modal-backdrop { position: fixed; inset: 0; z-index: 10002; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(16, 24, 40, .62); backdrop-filter: blur(5px); }
.project-modal-backdrop.active { display: flex; }
.project-detail-card, .project-add-card { width: min(920px, 100%); max-height: 92vh; overflow-y: auto; border: 1px solid #e6ebf3; border-radius: 24px; background: #f9fbff; box-shadow: 0 28px 80px rgba(10, 24, 48, .3); }
.project-detail-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 23px 25px; color: #fff; background: linear-gradient(110deg, #617ce9, #8248b4); }
.project-detail-header > div { flex: 1; }
.project-detail-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 8px; border-radius: 11px; color: #617ce9; background: #fff; font-size: .8rem; font-weight: 900; letter-spacing: -3px; }
.project-detail-header h3 { font-size: 1.35rem; }
.project-detail-header p { margin-top: 5px; color: rgba(255,255,255,.76); font-size: .74rem; }
.project-detail-header .project-status { color: #fff; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.16); }
.project-modal-close { width: 33px; height: 33px; border: 0; border-radius: 10px; color: #fff; background: rgba(255,255,255,.2); font-size: 1.45rem; cursor: pointer; }
.project-detail-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 18px 24px 0; }
.project-detail-stats > div { padding: 13px; border: 1px solid #e6ebf3; border-radius: 14px; background: #fff; }
.project-detail-stats strong, .project-detail-stats small { display: block; }
.project-detail-stats strong { color: #26354a; font-size: 1.25rem; }
.project-detail-stats small { margin-top: 4px; color: #8693a5; font-size: .66rem; }
.project-detail-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 18px 24px 0; }
.project-ring-card { padding: 16px; border: 1px solid #e6ebf3; border-radius: 16px; background: #fff; text-align: center; }
.project-ring-card h4 { color: #344258; font-size: .82rem; }
.project-ring { display: grid; place-items: center; width: 100px; height: 100px; margin: 12px auto 9px; border-radius: 50%; background: conic-gradient(#3d78ee var(--ring-progress, 0deg), #e5ebf4 0deg); position: relative; }
.project-ring::after { content: ''; position: absolute; inset: 10px; border-radius: 50%; background: #fff; }
.project-ring span { z-index: 1; color: #29364a; font-size: 1.1rem; font-weight: 800; }
.project-ring.timeline { --ring-progress: 360deg; }
.project-ring.timeline { background: conic-gradient(#3d78ee var(--ring-progress), #e5ebf4 0deg); }
.project-ring.active-work { background: conic-gradient(#7b4ce2 var(--ring-progress, 0deg), #e5ebf4 0deg); }
.project-ring-card small { color: #8190a7; font-size: .68rem; }
.project-work-trend, .project-detail-section { margin: 18px 24px 0; padding: 17px; border: 1px solid #e6ebf3; border-radius: 16px; background: #fff; }
.project-section-title h4 { color: #344258; font-size: .9rem; }
.project-trend-bars { display: flex; align-items: end; gap: 7px; height: 120px; margin-top: 16px; padding: 10px 8px 0; border-bottom: 1px solid #e5eaf1; background: repeating-linear-gradient(to bottom, transparent 0 29px, #edf1f6 30px); }
.project-trend-bars i { flex: 1; min-width: 10px; height: var(--project-bar); border-radius: 7px 7px 0 0; background: linear-gradient(180deg, #75e5d4, #4b8dec); }
.project-member-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 13px; }
.project-member-card { display: flex; align-items: center; gap: 9px; padding: 11px; border: 1px solid #e7ecf3; border-radius: 13px; background: #f8faff; }
.project-member-card > div { min-width: 0; flex: 1; }
.project-member-card strong, .project-member-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-member-card strong { color: #344258; font-size: .7rem; }
.project-member-card small { margin-top: 3px; color: #8693a5; font-size: .62rem; }
.project-member-card > span { color: #8492a7; font-size: .65rem; font-weight: 800; }
.project-task-preview { display: grid; gap: 8px; margin-top: 13px; }
.project-task-preview > div { display: grid; grid-template-columns: 62px 1fr; column-gap: 10px; padding: 10px 11px; border: 1px solid #e7ecf3; border-radius: 12px; background: #f8faff; }
.project-task-preview span { grid-row: span 2; align-self: center; color: #6250d7; font-size: .65rem; font-weight: 900; }
.project-task-preview strong { color: #344258; font-size: .72rem; }
.project-task-preview small { margin-top: 2px; color: #8793a5; font-size: .62rem; }
.project-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 24px; }
.project-form-input { width: 100%; min-height: 45px; padding: 11px 13px; border: 1px solid #e1e7f0; border-radius: 12px; outline: 0; color: #435169; background: #fff; font: inherit; font-size: .76rem; }
.project-form-input:focus { border-color: #6d7de8; box-shadow: 0 0 0 3px rgba(109,125,232,.12); }
.project-form-input.full { grid-column: 1 / -1; }
.project-form-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 0 24px 24px; }
.project-cancel-btn, .project-submit-btn { border-radius: 20px; padding: 11px 17px; font: inherit; font-size: .76rem; font-weight: 800; cursor: pointer; }
.project-cancel-btn { border: 1px solid #dfe5ee; color: #5e6c80; background: #fff; }
.project-submit-btn { border: 0; color: #fff; background: linear-gradient(110deg, #5d7eed, #8346bd); box-shadow: 0 8px 18px rgba(91, 103, 220, .24); }

/* Leaderboard Specific Styles */
.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-avatar-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e0e7ff;
  color: #4338ca;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-info-name {
  width: 150px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.velocity-bar-track {
  flex-grow: 1;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.velocity-bar-fill {
  height: 100%;
  background: #0284c7;
  border-radius: 4px;
  transition: width 1s ease-in-out;
}

.task-count-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: #334155;
  width: 70px;
  text-align: right;
}

/* Calendar Specific Styles */
.calendar-widget-box {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid #edf2f7;
}

.calendar-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.cal-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cal-month-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  text-align: center;
}

.cal-day-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  padding-bottom: 8px;
}

.cal-day-cell {
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1px solid #f1f5f9;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  position: relative;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cal-day-cell:hover {
  background: #e2e8f0;
}

.cal-day-cell.selected {
  background: #6366f1;
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.event-count-bubble {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #e0e7ff;
  color: #4338ca;
  font-size: 0.65rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cal-day-cell.selected .event-count-bubble {
  background: white;
  color: #6366f1;
}

.cal-event-details-card {
  margin-top: 20px;
  padding: 16px;
  background: #f8fafc;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
}

/* Monthly Attendance Overview */
.attendance-sync-note {
  margin-top: 20px;
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  border: 1px solid #edf2f7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.attendance-sync-note h5 {
  font-size: 1rem;
  color: #1e293b;
  font-weight: 700;
}

.attendance-sync-note p {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 2px;
}

.attendance-sync-note > span {
  font-size: 0.82rem;
  font-weight: 700;
  color: #10b981;
  background: #ecfdf5;
  padding: 6px 14px;
  border-radius: 20px;
}

.attendance-dashboard {
  margin-top: 24px;
  background: #f5f7fc;
  border: 1px solid #e7ebf3;
  border-radius: 22px;
  padding: 20px;
  color: #172033;
}

.attendance-dashboard-header,
.attendance-title-wrap,
.attendance-panel-heading {
  display: flex;
  align-items: center;
}

.attendance-dashboard-header {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.attendance-title-wrap {
  gap: 14px;
}

.attendance-title-wrap h3 {
  font-size: 1.65rem;
  letter-spacing: -0.04em;
}

.attendance-title-wrap p {
  color: #69748a;
  font-size: 0.86rem;
  font-weight: 600;
  margin-top: 3px;
}

.attendance-title-wrap p span {
  color: #a0aabd;
  padding: 0 4px;
}

.attendance-back-btn,
.attendance-month-btn {
  border: 1px solid #e1e6ef;
  background: #fff;
  color: #5068e9;
  cursor: pointer;
  box-shadow: 0 5px 16px rgba(31, 41, 55, 0.05);
}

.attendance-back-btn {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  font-size: 2rem;
  line-height: 1;
}

.attendance-month-btn {
  min-width: 218px;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #1d2638;
  font-size: 0.96rem;
  font-weight: 700;
}

.attendance-month-btn span {
  color: #6680ed;
  font-size: 1.35rem;
  line-height: 0.7;
}

.attendance-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.attendance-summary-card {
  background: #fff;
  border: 1px solid #e7ebf3;
  border-radius: 15px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.attendance-summary-card strong,
.attendance-summary-card span {
  display: block;
}

.attendance-summary-card strong {
  font-size: 1.18rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.attendance-summary-card span {
  color: #7a8497;
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 2px;
}

.attendance-summary-icon {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  font-weight: 800;
  flex-shrink: 0;
}

.attendance-summary-icon.rate { background: #e9efff; color: #4b72e9; }
.attendance-summary-icon.present { background: #e2f7e9; color: #16a057; }
.attendance-summary-icon.absent { background: #fee8e8; color: #e32e36; }
.attendance-summary-icon.late { background: #fff4df; color: #f39b0a; }
.attendance-summary-icon.hours { background: #f0e5ff; color: #8544e9; }

.attendance-content-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(520px, 1.15fr);
  gap: 16px;
  align-items: start;
}

.attendance-analytics-column {
  display: grid;
  gap: 16px;
}

.attendance-panel {
  background: #fff;
  border: 1px solid #e7ebf3;
  border-radius: 16px;
  padding: 18px;
  min-width: 0;
}

.attendance-panel-heading {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.attendance-panel-heading h4 {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.attendance-panel-heading > span {
  color: #788297;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.attendance-legend-inline {
  display: flex;
  gap: 8px;
  color: #69748a;
  font-size: 0.72rem;
  font-weight: 700;
}

.attendance-legend-inline span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.present { background: #16a057; }
.status-dot.absent { background: #e32e36; }
.status-dot.leave { background: #5b63e9; }
.status-dot.holiday { background: #8544e9; }

.attendance-donut-wrap {
  min-height: 220px;
  display: grid;
  place-items: center;
}

.attendance-donut {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: conic-gradient(#f59e0b 0 26%, #16a057 26% 52%, #e32e36 52% 82%, #5b63e9 82% 87%, #8544e9 87% 100%);
  display: grid;
  place-items: center;
  position: relative;
}

.attendance-donut::after {
  content: '';
  position: absolute;
  inset: 25px;
  border-radius: 50%;
  background: #fff;
}

.attendance-donut > div {
  position: relative;
  z-index: 1;
  text-align: center;
}

.attendance-donut strong,
.attendance-donut span {
  display: block;
}

.attendance-donut strong {
  font-size: 2rem;
  line-height: 1;
}

.attendance-donut span {
  color: #7a8497;
  font-size: 0.88rem;
  font-weight: 700;
  margin-top: 5px;
}

.attendance-bars {
  height: 160px;
  display: flex;
  align-items: end;
  gap: 5px;
  padding: 8px 2px 0;
  border-bottom: 1px solid #e8edf4;
}

.attendance-bars i {
  height: var(--bar-height, 6%);
  flex: 1;
  min-width: 5px;
  border-radius: 6px 6px 2px 2px;
  background: #35ae68;
  display: block;
}

.attendance-bars i.late-bar { background: #f9ad29; }
.attendance-bars i.empty-bar { background: #ccd6e2; height: 6%; }

.daily-records-panel {
  overflow: hidden;
}

.attendance-day-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(48px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.attendance-day-cell {
  min-height: 54px;
  border-radius: 13px;
  border: 1px solid transparent;
  background: #f6f8fb;
  color: #49566e;
  cursor: pointer;
  font-weight: 800;
  font-size: 0.82rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.attendance-day-cell:hover,
.attendance-day-cell.selected {
  transform: translateY(-2px);
  box-shadow: 0 7px 15px rgba(49, 66, 100, 0.12);
}

.attendance-day-cell span { font-size: 0.9rem; line-height: 1; }
.attendance-day-cell.is-present { background: #e7f7ed; border-color: #9adbb5; color: #16a057; }
.attendance-day-cell.is-late { background: #fff6e6; border-color: #ffd58e; color: #f39b0a; }
.attendance-day-cell.is-leave { background: #f1e7ff; border-color: #d8b7ff; color: #8544e9; }
.attendance-day-cell.is-holiday { background: #e9ebff; border-color: #bfc5ff; color: #5b63e9; }

.attendance-table-wrap {
  overflow-x: auto;
  border: 1px solid #e4e9f1;
  border-radius: 14px;
}

.attendance-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.attendance-table th,
.attendance-table td {
  padding: 11px 12px;
  text-align: left;
  border-bottom: 1px solid #edf1f6;
  white-space: nowrap;
}

.attendance-table th {
  background: #f8fafc;
  color: #778399;
  font-weight: 800;
}

.attendance-table td {
  color: #4b5870;
  font-weight: 650;
}

.attendance-table tbody tr:last-child td { border-bottom: 0; }
.attendance-table tbody tr.is-selected { background: #f0f4ff; }
.record-status { font-weight: 800; }
.record-status.present { color: #16a057; }
.record-status.late { color: #f39b0a; }
.record-status.leave { color: #5b63e9; }
.record-status.holiday { color: #8544e9; }

/* Notice Board Styles */
.notice-board-container {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid #edf2f7;
}

.notice-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 12px;
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 600;
}

.notice-empty-view {
  padding: 60px 20px;
  text-align: center;
  color: #94a3b8;
}

.notice-empty-icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
  opacity: 0.6;
}

/* Advantages Grid */
.advantages-section {
  padding: 80px 0;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.advantage-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  backdrop-filter: var(--glass-blur);
  transition: all var(--transition-normal);
}

.advantage-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-focus);
}

.advantage-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: inline-block;
}

.advantage-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.advantage-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* CTA Conversion Banner */
.cta-section {
  padding: 80px 0 100px;
}

.cta-box {
  background: linear-gradient(135deg, #181c2f 0%, #111728 100%);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 50px rgba(99, 102, 241, 0.15);
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.35), transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 18px;
}

.cta-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 36px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #05070a;
  padding: 60px 0 40px;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 360px;
}

.footer-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-top: 14px;
}

.footer-links-group {
  display: flex;
  gap: 60px;
}

.footer-col h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  text-decoration: none;
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Lightbox Modal */
.image-lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.image-lightbox-modal.active {
  display: flex;
}

.lightbox-content-box {
  max-width: 1100px;
  width: 100%;
  position: relative;
}

.lightbox-close-btn {
  position: absolute;
  top: -44px;
  right: 0;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .feature-showcase-row {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 70px;
  }
  .feature-showcase-row.reverse {
    direction: ltr;
  }
  .crm-dashboard-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .attendance-content-grid {
    grid-template-columns: 1fr;
  }
  .attendance-summary-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .task-toolbar .task-search-box {
    flex-basis: 100%;
  }
  .chat-layout {
    grid-template-columns: 280px minmax(0, 1fr);
  }
  .project-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-detail-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .crm-page > .crm-main {
    padding-top: 76px;
  }

  .crm-banner-mockup {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .crm-clock-right {
    width: 100%;
    justify-content: space-between;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .attendance-dashboard {
    padding: 12px;
    border-radius: 16px;
  }
  .attendance-dashboard-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .attendance-month-btn {
    width: 100%;
  }
  .attendance-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .attendance-summary-card {
    padding: 11px;
  }
  .attendance-summary-icon {
    width: 34px;
    height: 34px;
  }
  .attendance-day-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .task-page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .project-hero-card { align-items: flex-start; flex-direction: column; margin: 0 0 22px; padding: 22px; }
  .project-hero-card .project-add-btn { width: 100%; }
  .project-summary-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .project-summary-card { min-height: 78px; padding: 11px; }
  .project-summary-icon { width: 32px; height: 32px; }
  .project-filter-bar { align-items: stretch; flex-direction: column; }
  .project-search-box, .project-filter-bar select { width: 100%; }
  .project-detail-stats, .project-detail-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline: 14px; }
  .project-work-trend, .project-detail-section { margin-inline: 14px; }
  .project-member-cards { grid-template-columns: 1fr; }
  .project-form-grid { grid-template-columns: 1fr; padding: 18px; }
  .project-form-input.full { grid-column: auto; }
  .project-form-actions { padding-inline: 18px; }
  .task-page-caption {
    display: none;
  }
  .task-toolbar > select,
  .task-toolbar > .task-add-btn {
    flex: 1 1 calc(50% - 5px);
  }
  .task-pulse-stats {
    width: 100%;
  }
  .task-pulse-stats > div {
    flex: 1;
  }
  .task-form-grid,
  .task-detail-grid {
    grid-template-columns: 1fr;
  }
  .task-modal-input.full {
    grid-column: auto;
  }
  .chat-layout {
    grid-template-columns: 1fr;
  }
  .chat-sidebar {
    border-right: 0;
    border-bottom: 1px solid #e2e8f1;
  }
  .chat-list-scroll {
    max-height: 280px;
  }
  .chat-conversation {
    min-height: 620px;
  }
  .chat-message-list {
    max-height: 430px;
  }
  .orb-blob {
    display: none;
  }
  .feature-visual-card,
  .stat-card,
  .advantage-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .footer-links-group {
    flex-direction: column;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ==========================================================================
   ✨ PREMIUM ANIMATIONS & CURSOR SYSTEM
   ========================================================================== */

/* --------------------------------------------------------------------------
   Custom Cursor
   -------------------------------------------------------------------------- */
@media (pointer: fine) {
  *, *::before, *::after { cursor: none !important; }
}

#cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 2px solid rgba(99,102,241,0.8);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease, width 0.25s ease, height 0.25s ease,
              border-color 0.25s ease, background 0.25s ease, opacity 0.25s ease;
  will-change: transform;
  mix-blend-mode: exclusion;
}

#cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: #818cf8;
  border-radius: 50%;
  pointer-events: none;
  z-index: 100000;
  transform: translate(-50%, -50%);
  transition: transform 0.04s ease;
  will-change: transform;
  box-shadow: 0 0 12px rgba(129,140,248,0.8);
}

#cursor-trail {
  position: fixed;
  top: 0; left: 0;
  width: 20px; height: 20px;
  background: rgba(99,102,241,0.15);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  will-change: transform;
  filter: blur(4px);
  transition: transform 0.18s ease;
}

body.cursor-hover #cursor-ring {
  width: 60px; height: 60px;
  background: rgba(99,102,241,0.1);
  border-color: rgba(99,102,241,1);
}

body.cursor-click #cursor-ring {
  width: 22px; height: 22px;
  border-color: #06b6d4;
}

body.cursor-click #cursor-dot {
  background: #06b6d4;
  box-shadow: 0 0 20px rgba(6,182,212,1);
}

/* --------------------------------------------------------------------------
   Scroll Progress Bar
   -------------------------------------------------------------------------- */
#scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #06b6d4);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 9999;
  will-change: transform;
  box-shadow: 0 0 12px rgba(99,102,241,0.8);
}

/* --------------------------------------------------------------------------
   Animated Noise / Particle Canvas (behind content)
   -------------------------------------------------------------------------- */
#particle-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  contain: strict;
}

/* --------------------------------------------------------------------------
   Scroll Reveal Animations
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.reveal-visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.reveal-visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.reveal-visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.40s; }

/* --------------------------------------------------------------------------
   Floating / Levitation Animation
   -------------------------------------------------------------------------- */
@keyframes floatY {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-14px); }
}
.float-anim {
  animation: floatY 4.5s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   Hero Section Entrance
   -------------------------------------------------------------------------- */
.hero-content .badge-pill {
  animation: fadeInDown 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-headline {
  animation: fadeInUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}
.hero-desc {
  animation: fadeInUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both;
}
.hero-actions {
  animation: fadeInUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.34s both;
}
.hero-preview-wrapper {
  animation: fadeInScale 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.9) translateY(40px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* --------------------------------------------------------------------------
   Gradient Text Shimmer
   -------------------------------------------------------------------------- */
.gradient-accent {
  background-size: 200% auto;
  animation: shimmerText 3s linear infinite;
}
@keyframes shimmerText {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* --------------------------------------------------------------------------
   Glowing Orb Blobs in Background
   -------------------------------------------------------------------------- */
.orb-blob {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
  will-change: transform;
  animation: orbDrift 12s ease-in-out infinite alternate;
}
.orb-blob-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(99,102,241,0.18), transparent 70%);
  top: -100px; left: -100px;
  animation-delay: 0s;
}
.orb-blob-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(6,182,212,0.14), transparent 70%);
  top: 40%; right: -80px;
  animation-delay: -4s;
}
.orb-blob-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(139,92,246,0.12), transparent 70%);
  bottom: 10%; left: 10%;
  animation-delay: -7s;
}
@keyframes orbDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.1); }
}

/* --------------------------------------------------------------------------
   Feature Cards Hover - Magnetic Tilt
   -------------------------------------------------------------------------- */
.feature-visual-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease;
  will-change: transform;
}

/* --------------------------------------------------------------------------
   Stat Card Glow on Hover
   -------------------------------------------------------------------------- */
.stat-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
  will-change: transform;
}
.stat-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 20px 60px rgba(99,102,241,0.3), 0 0 0 1px rgba(99,102,241,0.4);
}

/* --------------------------------------------------------------------------
   Advantage Card Glow
   -------------------------------------------------------------------------- */
.advantage-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
}
.advantage-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 48px rgba(99,102,241,0.25), 0 0 0 1px rgba(99,102,241,0.3);
}

/* --------------------------------------------------------------------------
   Button Pulse Effect
   -------------------------------------------------------------------------- */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at center, rgba(255,255,255,0.25), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn-primary:hover::after { opacity: 1; }

.btn-primary::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, #6366f1, #06b6d4, #6366f1);
  background-size: 300% 300%;
  animation: borderSpin 3s linear infinite;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn-primary:hover::before { opacity: 1; }

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

/* --------------------------------------------------------------------------
   Typing / Typewriter for Hero Headline Word
   -------------------------------------------------------------------------- */
.typewriter-word {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Number Counter Increment Animation
   -------------------------------------------------------------------------- */
@keyframes countUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.stat-value.counting {
  animation: countUp 0.5s ease-out forwards;
}

/* --------------------------------------------------------------------------
   CRM Banner Shimmer Sweep
   -------------------------------------------------------------------------- */
.crm-banner-mockup::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.08) 50%, transparent 60%);
  animation: bannerShimmer 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 3;
}
@keyframes bannerShimmer {
  0%   { left: -100%; }
  60%  { left: 150%; }
  100% { left: 150%; }
}

/* --------------------------------------------------------------------------
   Leaderboard Bar Fill Animation
   -------------------------------------------------------------------------- */
.velocity-bar-fill {
  width: 0 !important;
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.velocity-bar-fill.bar-animated {
  width: var(--target-width) !important;
}

/* --------------------------------------------------------------------------
   Smooth Nav Active Link Underline
   -------------------------------------------------------------------------- */
.nav-item a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #06b6d4);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-item a:hover::after,
.nav-item a.active-nav::after {
  transform: scaleX(1);
}

/* --------------------------------------------------------------------------
   Scroll-triggered glowing border on feature cards
   -------------------------------------------------------------------------- */
.feature-visual-card.card-glowing {
  border-color: rgba(99,102,241,0.6);
  box-shadow: 0 0 30px rgba(99,102,241,0.2), 0 24px 56px -8px rgba(0,0,0,0.65);
}

/* --------------------------------------------------------------------------
   Page-wide smooth scrolling (reinforced)
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
}

/* --------------------------------------------------------------------------
   Tab Switcher Slide Animation
   -------------------------------------------------------------------------- */
.demo-view-pane {
  animation: none;
}
.demo-view-pane.active {
  animation: paneSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes paneSlideIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* --------------------------------------------------------------------------
   Pulse Glow on Live Clock
   -------------------------------------------------------------------------- */
.live-clock-time {
  animation: clockGlow 2s ease-in-out infinite alternate;
}
@keyframes clockGlow {
  from { text-shadow: 0 0 8px rgba(255,255,255,0.2); }
  to   { text-shadow: 0 0 24px rgba(255,255,255,0.8), 0 0 48px rgba(129,140,248,0.4); }
}

/* --------------------------------------------------------------------------
   Section Divider Beam
   -------------------------------------------------------------------------- */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.5), rgba(6,182,212,0.4), transparent);
  margin: 0;
  position: relative;
}
.section-divider::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 5px;
  border-radius: 4px;
  background: linear-gradient(90deg, #6366f1, #06b6d4);
  box-shadow: 0 0 20px rgba(99,102,241,0.8);
}

/* --------------------------------------------------------------------------
   Hero Preview Wrapper Float & Depth
   -------------------------------------------------------------------------- */
.hero-preview-wrapper {
  animation: heroFloat 6s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0px) rotateX(0deg); }
  50%       { transform: translateY(-8px) rotateX(1deg); }
}

/* --------------------------------------------------------------------------
   Magnetic Button Ripple
   -------------------------------------------------------------------------- */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: rippleExpand 0.6s linear;
  pointer-events: none;
}
@keyframes rippleExpand {
  to { transform: scale(4); opacity: 0; }
}

/* --------------------------------------------------------------------------
   Additional CRM Workspaces
   -------------------------------------------------------------------------- */
.report-workspace-pane, .simple-workspace-pane { padding: 24px; background: #f4f7fb; color: #24324a; }
.report-hero-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 25px 28px; border-radius: 20px; color: #fff; background: linear-gradient(115deg, #4d45e8, #8338ed); box-shadow: 0 16px 34px rgba(80, 86, 226, .2); }
.report-eyebrow { display: block; margin-bottom: 5px; color: rgba(255,255,255,.72); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.report-hero-card h3 { font-size: 1.55rem; }
.report-hero-card p { margin-top: 6px; font-size: .82rem; font-weight: 700; }
.report-hero-card small { display: block; margin-top: 5px; color: rgba(255,255,255,.76); font-size: .7rem; }
.report-hero-card select { min-width: 170px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 12px; outline: 0; color: #fff; background: rgba(255,255,255,.14); font: inherit; font-size: .75rem; }
.report-hero-card option { color: #24324a; }
.report-summary-grid, .workspace-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-top: 16px; }
.report-summary-card { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 14px; border: 1px solid #e2e8f1; border-radius: 16px; background: #fff; box-shadow: 0 7px 18px rgba(51,72,102,.05); }
.report-summary-card strong, .report-summary-card small { display: block; }
.report-summary-card strong { color: #1d293d; font-size: 1.35rem; }
.report-summary-card small { margin-top: 3px; color: #8190a6; font-size: .68rem; font-weight: 700; }
.report-summary-icon, .report-list-icon { display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; font-weight: 900; }
.report-summary-icon { width: 36px; height: 36px; font-size: 1rem; }
.report-summary-icon.blue { color: #5a4de7; background: #ecebff; }
.report-summary-icon.green { color: #18a957; background: #e2f7eb; }
.report-summary-icon.orange { color: #ff7616; background: #fff0e4; }
.report-summary-icon.red { color: #f24848; background: #ffe8e8; }
.report-snapshot-card { display: flex; align-items: center; gap: 34px; min-height: 180px; margin-top: 16px; padding: 22px 28px; border: 1px solid #e2e8f1; border-radius: 18px; background: #fff; }
.report-donut { display: grid; place-items: center; width: 128px; height: 128px; flex: 0 0 auto; border-radius: 50%; background: conic-gradient(#18a957 0 66%, #ff7616 66% 100%); }
.report-donut::after { content: ''; position: absolute; width: 94px; height: 94px; border-radius: 50%; background: #fff; }
.report-donut { position: relative; }
.report-donut > div { z-index: 1; text-align: center; }
.report-donut strong, .report-donut small { display: block; }
.report-donut strong { color: #192438; font-size: 1.6rem; }
.report-donut small { margin-top: 2px; color: #71819b; font-size: .68rem; }
.report-snapshot-copy { flex: 1; }
.report-snapshot-copy h4 { color: #182235; font-size: 1.1rem; }
.report-snapshot-copy > strong { display: block; margin: 4px 0 12px; color: #71819b; font-size: .75rem; }
.report-snapshot-copy p { display: flex; align-items: center; gap: 8px; margin-top: 7px; color: #53647e; font-size: .72rem; }
.report-snapshot-copy p b { margin-left: auto; color: #1d2a3e; }
.report-snapshot-copy i { width: 9px; height: 9px; border-radius: 50%; background: #18a957; }
.report-snapshot-copy i.late { background: #ff7616; }.report-snapshot-copy i.due { background: #e83535; }.report-snapshot-copy i.upcoming { background: #5a4de7; }
.report-list-card { margin-top: 16px; padding: 18px 22px; border: 1px solid #e2e8f1; border-radius: 18px; background: #fff; }
.report-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.report-list-heading > div { display: flex; align-items: center; gap: 12px; }
.report-list-heading h4 { color: #182235; font-size: .98rem; }.report-list-heading small { display: block; margin-top: 3px; color: #71819b; font-size: .7rem; }.report-list-heading > b { padding: 9px 12px; border-radius: 50%; color: #ff7616; background: #fff0e4; }
.report-list-icon { width: 34px; height: 34px; font-size: 1rem; }.report-list-icon.orange { color: #ff7616; background: #fff0e4; }.report-list-icon.red { color: #f24848; background: #ffe8e8; }
.report-task-row { display: flex; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px solid #edf1f6; }.report-task-row:last-child { border-bottom: 0; }.report-task-row > i { width: 8px; height: 8px; border-radius: 50%; background: #ff7616; }.report-task-row div { flex: 1; }.report-task-row strong, .report-task-row small { display: block; }.report-task-row strong { color: #29384e; font-size: .78rem; }.report-task-row small { margin-top: 3px; color: #71819b; font-size: .68rem; }.report-task-row > span { color: #ff8c44; font-size: 1.5rem; }.report-empty-card > p { margin-top: 16px; color: #71819b; font-size: .75rem; }
.simple-workspace-header, .simple-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px; background: #fff; border-bottom: 1px solid #e3e9f2; }.simple-workspace-header span { color: #71819b; font-size: .7rem; font-weight: 800; text-transform: uppercase; }.simple-workspace-header h3, .simple-page-heading h3 { margin-top: 4px; color: #1e2d45; font-size: 1.45rem; }.simple-page-heading { display: block; }.simple-page-heading p { margin-top: 6px; color: #8693a5; font-size: .78rem; }
.workspace-action-btn { border: 0; border-radius: 12px; padding: 11px 16px; color: #fff; background: linear-gradient(110deg, #5d7eed, #8346bd); font: inherit; font-size: .75rem; font-weight: 800; cursor: pointer; }.workspace-summary-grid { margin: 18px 0; }.workspace-summary-grid > div { padding: 18px; border: 1px solid #e2e8f1; border-radius: 16px; background: #fff; }.workspace-summary-grid strong, .workspace-summary-grid small { display: block; }.workspace-summary-grid strong { font-size: 1.35rem; }.workspace-summary-grid small { margin-top: 5px; color: #8190a6; font-size: .7rem; }.workspace-filter-row { display: flex; gap: 10px; padding: 14px; border: 1px solid #e2e8f1; border-radius: 16px; background: #fff; }.workspace-filter-row input, .workspace-filter-row select { min-height: 40px; padding: 9px 12px; border: 1px solid #e1e7f0; border-radius: 10px; color: #536177; background: #f8faff; font: inherit; font-size: .72rem; }.workspace-filter-row input { flex: 1; }.workspace-empty-state { display: grid; place-items: center; min-height: 230px; margin-top: 18px; padding: 30px; text-align: center; border: 1px solid #e2e8f1; border-radius: 18px; background: #fff; }.workspace-empty-state.large { min-height: 400px; margin-top: 0; border: 0; background: transparent; }.workspace-empty-state span { color: #b8c0ca; font-size: 2.4rem; }.workspace-empty-state h4 { margin-top: 10px; color: #64748b; }.workspace-empty-state p { margin-top: 5px; color: #94a3b8; font-size: .75rem; }
.leave-topbar { padding: 18px 24px 0; border-bottom: 1px solid #e2e8f1; background: #fff; }.leave-topbar strong { display: block; font-size: 1.25rem; }.leave-tab { margin: 18px 20px 0 0; padding: 0 0 12px; border: 0; border-bottom: 2px solid transparent; color: #7c8798; background: transparent; font: inherit; font-size: .75rem; cursor: pointer; }.leave-tab.active { border-color: #6658ef; color: #6658ef; }.leave-glance { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 12px; margin: 18px 0; padding: 18px; border: 1px solid #e2e8f1; border-radius: 16px; background: #fff; }.leave-glance > div { padding: 8px; }.leave-glance strong, .leave-glance small, .leave-glance b { display: block; }.leave-glance small { margin-top: 5px; color: #8190a6; font-size: .7rem; }.leave-glance b { font-size: 1.1rem; }.leave-content { display: grid; grid-template-columns: .9fr 1.5fr; gap: 18px; }.leave-content h4, .leave-request-card h4 { margin-bottom: 12px; color: #344258; }.leave-balance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.leave-balance-grid > div { padding: 18px; border-radius: 15px; background: #fff; }.leave-balance-grid strong, .leave-balance-grid b { display: block; }.leave-balance-grid strong { color: #8190a6; font-size: .7rem; }.leave-balance-grid b { margin-top: 12px; font-size: 1.1rem; }.leave-balance-grid small { color: #8190a6; font-size: .68rem; }.leave-request-card { padding: 20px; border: 1px solid #e2e8f1; border-radius: 16px; background: #fff; }.leave-request-card label { display: block; color: #8190a6; font-size: .68rem; }.leave-request-card select, .leave-request-card input, .leave-request-card textarea { width: 100%; margin-top: 5px; padding: 11px; border: 1px solid #e3e9f2; border-radius: 10px; color: #536177; background: #f8faff; font: inherit; font-size: .75rem; }.leave-date-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }.leave-request-card textarea { min-height: 70px; margin: 10px 0; resize: vertical; }
.holiday-hero { padding: 20px 24px; border-radius: 16px; color: #fff; background: linear-gradient(110deg, #5c5cf0, #8b45ed); }.holiday-hero strong, .holiday-hero small { display: block; }.holiday-hero small { margin-top: 4px; color: rgba(255,255,255,.75); font-size: .68rem; }.holiday-filters { display: flex; gap: 8px; margin: 16px 0; }.holiday-filters button { padding: 8px 12px; border: 1px solid #e2e8f1; border-radius: 10px; color: #71819b; background: #fff; font: inherit; font-size: .7rem; cursor: pointer; }.holiday-filters button.active { color: #fff; border-color: #655bea; background: #655bea; }.holiday-list h4 { margin: 18px 0 8px; color: #536177; font-size: .76rem; }.holiday-list > div { display: flex; align-items: center; gap: 14px; margin-top: 8px; padding: 12px; border: 1px solid #e2e8f1; border-radius: 14px; background: #fff; }.holiday-list > div > b { min-width: 40px; padding: 7px; border-radius: 9px; color: #fff; background: #7373ed; font-size: .8rem; text-align: center; }.holiday-list > div > b small { font-size: .5rem; }.holiday-list > div span, .holiday-list > div span small { display: block; }.holiday-list > div span { color: #344258; font-size: .76rem; font-weight: 700; }.holiday-list > div span small { margin-top: 5px; color: #1eaf68; font-size: .62rem; font-weight: 600; }
.profile-banner { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-radius: 16px; color: #fff; background: linear-gradient(110deg, #617ce9, #8248b4); }.profile-avatar { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #a7b3c8, #66758c); font-size: 1rem; font-weight: 800; }.profile-banner h3, .profile-banner small, .profile-banner em { display: block; }.profile-banner small { margin-top: 4px; color: rgba(255,255,255,.72); font-size: .68rem; }.profile-banner em { width: max-content; margin-top: 4px; padding: 3px 8px; border-radius: 8px; color: #fff; background: rgba(255,255,255,.16); font-size: .6rem; font-style: normal; }.profile-section { margin-top: 16px; }.profile-section h4 { padding: 7px 10px; border-left: 3px solid #735ce7; color: #344258; background: #fbf7ff; font-size: .75rem; }.profile-section > div { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid #edf1f6; background: #fff; }.profile-section > div span { flex: 1; color: #8190a6; font-size: .68rem; }.profile-section > div b { color: #344258; font-size: .72rem; font-weight: 600; }.profile-section > div button { border: 0; color: #7157e8; background: transparent; cursor: pointer; }
@media (max-width: 760px) { .report-hero-card, .simple-workspace-header { align-items: flex-start; flex-direction: column; }.report-hero-card select, .workspace-action-btn { width: 100%; }.report-summary-grid, .workspace-summary-grid { grid-template-columns: 1fr 1fr; }.report-snapshot-card { align-items: flex-start; flex-direction: column; }.workspace-filter-row { flex-direction: column; }.leave-glance, .leave-content { grid-template-columns: 1fr; }.leave-date-grid { grid-template-columns: 1fr; } }
.bug-table-wrap { margin-top: 18px; overflow-x: auto; border-radius: 18px; background: #fff; box-shadow: 0 7px 18px rgba(51,72,102,.05); }
.bug-table { width: 100%; min-width: 980px; border-collapse: collapse; color: #536177; font-size: .72rem; }
.bug-table th { padding: 14px; color: #fff; background: linear-gradient(110deg, #6814c7, #2877ed); text-align: left; white-space: nowrap; }
.bug-table td { padding: 14px; border-bottom: 1px solid #edf1f6; vertical-align: middle; }
.bug-table td strong { color: #29374c; }.bug-table td button { margin-right: 10px; border: 0; color: #596274; background: transparent; font-size: .95rem; cursor: pointer; }.bug-table td button.delete { color: #f24848; }
.bug-pill { display: inline-block; padding: 7px 10px; border-radius: 10px; font-size: .66rem; font-weight: 800; }.bug-pill.high { color: #e99331; background: #fff0df; }.bug-pill.pending { color: #854ced; background: #eee7ff; }.bug-pill.open { color: #7950e5; background: #eee7ff; }
.appreciation-card { display: grid; grid-template-columns: 1fr 360px auto; align-items: center; gap: 20px; margin-top: 16px; padding: 24px; border: 1px solid #e2e8f1; border-radius: 18px; background: #fff; }.appreciation-card h4 { color: #1e2d45; font-size: 1rem; }.appreciation-card p { margin-top: 14px; color: #71819b; font-size: .78rem; line-height: 1.6; }.certificate-preview { display: grid; place-items: center; min-height: 200px; padding: 20px; border: 8px solid #0d345b; border-radius: 14px; color: #264667; background: radial-gradient(circle at 15% 20%, #f6f7ed 0 4%, transparent 5%), linear-gradient(135deg, #fff 0 76%, #ecf5f8 76%); text-align: center; box-shadow: inset 0 0 0 2px #d0a33d; }.certificate-preview b { font-size: .8rem; }.certificate-preview span { margin-top: 5px; color: #335b88; font-family: Georgia, serif; font-size: 1.35rem; font-style: italic; }.certificate-preview small { margin-top: 2px; color: #bd9435; font-size: .55rem; font-weight: 800; letter-spacing: .12em; }.certificate-preview em, .certificate-preview i, .certificate-preview label { display: block; margin-top: 10px; color: #71819b; font-size: .55rem; font-style: normal; }.certificate-preview strong { margin-top: 5px; color: #274c77; font-family: Georgia, serif; font-size: 1rem; font-style: italic; }.download-action { border: 0; color: #6d3cd1; background: transparent; font-size: 1.45rem; cursor: pointer; }
.payslip-row { display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 20px; border: 1px solid #e2e8f1; border-radius: 16px; background: #fff; }.payslip-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #6d3cd1; background: #eee7ff; font-size: 1.3rem; }.payslip-row > div { flex: 1; }.payslip-row strong, .payslip-row small { display: block; }.payslip-row strong { color: #536177; font-size: .82rem; }.payslip-row small { margin-top: 7px; color: #8190a6; font-size: .7rem; }
@media (max-width: 760px) { .appreciation-card { grid-template-columns: 1fr; }.certificate-preview { width: 100%; }.download-action { justify-self: end; } }
