/* ================================================================
   Launchpad by ReBillion — Design System
   Clean & Bright Theme (Notion/Stripe/Intercom inspired)
   ================================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── CSS Variables ── */
:root {
  /* Brand Colors */
  --primary: #4B876C;
  --primary-hover: #3d7159;
  --primary-light: #e8f5ee;
  --primary-50: #f0faf4;
  --accent: #D05F0D;
  --accent-hover: #b8520b;
  --accent-light: #fff3eb;

  /* Neutral Palette */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Semantic Colors */
  --success: #059669;
  --success-light: #ecfdf5;
  --success-border: #a7f3d0;
  --warning: #d97706;
  --warning-light: #fffbeb;
  --warning-border: #fde68a;
  --error: #dc2626;
  --error-light: #fef2f2;
  --error-border: #fecaca;
  --info: #2563eb;
  --info-light: #eff6ff;
  --info-border: #bfdbfe;

  /* Phase Colors */
  --phase-1: #4B876C;
  --phase-1-light: #e8f5ee;
  --phase-2: #0891b2;
  --phase-2-light: #ecfeff;
  --phase-3: #7c3aed;
  --phase-3-light: #f5f3ff;

  /* Backgrounds */
  --bg-page: #f8fafb;
  --bg-card: #ffffff;
  --bg-sidebar: #ffffff;
  --bg-hover: #f3f4f6;
  --bg-active: var(--primary-light);

  /* Borders */
  --border-light: #e5e7eb;
  --border-default: #d1d5db;
  --border-focus: var(--primary);

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', monospace;

  /* Font Sizes */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.8125rem;  /* 13px */
  --text-base: 0.875rem; /* 14px */
  --text-md: 1rem;       /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */
  --text-5xl: 3rem;      /* 48px */

  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

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

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

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  /* Layout */
  --sidebar-w: 260px;
  --sidebar-collapsed: 72px;
  --navbar-h: 64px;
  --container-max: 1200px;
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-family);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--bg-page);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-semibold);
  line-height: 1.3;
  color: var(--gray-900);
}

h1 { font-size: var(--text-4xl); font-weight: var(--font-bold); letter-spacing: -0.02em; }
h2 { font-size: var(--text-2xl); letter-spacing: -0.01em; }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
h5 { font-size: var(--text-md); }
h6 { font-size: var(--text-base); }

p { color: var(--gray-600); line-height: 1.7; }

.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-md { font-size: var(--text-md); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }

.text-muted { color: var(--gray-500); }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-error { color: var(--error); }

.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-family);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  line-height: 1.5;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  user-select: none;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: 0 2px 8px rgba(75, 135, 108, 0.3);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-accent:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 2px 8px rgba(208, 95, 13, 0.3);
}

.btn-outline {
  background: var(--white);
  color: var(--gray-700);
  border-color: var(--border-default);
}
.btn-outline:hover:not(:disabled) {
  background: var(--gray-50);
  border-color: var(--gray-400);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-600);
  border-color: transparent;
}
.btn-ghost:hover:not(:disabled) {
  background: var(--bg-hover);
  color: var(--gray-900);
}

.btn-lg {
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-md);
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
}

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

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: box-shadow var(--transition-base);
}
.card:hover {
  box-shadow: var(--shadow-sm);
}

.card-flat {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.card-elevated {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
}

/* ── Forms ── */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--gray-700);
  margin-bottom: var(--space-2);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-family);
  font-size: var(--text-base);
  color: var(--gray-900);
  background: var(--white);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(75, 135, 108, 0.12);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-400);
}

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

.form-hint {
  font-size: var(--text-xs);
  color: var(--gray-500);
  margin-top: var(--space-1);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--error);
  margin-top: var(--space-1);
}

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  border-radius: var(--radius-full);
  line-height: 1.5;
}

.badge-success {
  background: var(--success-light);
  color: var(--success);
}
.badge-warning {
  background: var(--warning-light);
  color: var(--warning);
}
.badge-error {
  background: var(--error-light);
  color: var(--error);
}
.badge-info {
  background: var(--info-light);
  color: var(--info);
}
.badge-primary {
  background: var(--primary-light);
  color: var(--primary);
}
.badge-neutral {
  background: var(--gray-100);
  color: var(--gray-600);
}

/* ── Status Chips ── */
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  border-radius: var(--radius-full);
}
.status-chip::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-completed { background: var(--success-light); color: var(--success); }
.status-completed::before { background: var(--success); }
.status-in-progress { background: var(--info-light); color: var(--info); }
.status-in-progress::before { background: var(--info); }
.status-blocked { background: var(--error-light); color: var(--error); }
.status-blocked::before { background: var(--error); }
.status-pending { background: var(--gray-100); color: var(--gray-500); }
.status-pending::before { background: var(--gray-400); }
.status-action-needed { background: var(--warning-light); color: var(--warning); }
.status-action-needed::before { background: var(--warning); }

/* ── Progress ── */
.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}

.progress-ring {
  transform: rotate(-90deg);
}
.progress-ring-bg {
  fill: none;
  stroke: var(--gray-200);
}
.progress-ring-fill {
  fill: none;
  stroke: var(--primary);
  stroke-linecap: round;
  transition: stroke-dashoffset var(--transition-slow);
}

/* ── Layout Utilities ── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

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

.w-full { width: 100%; }
.h-full { height: 100%; }

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

/* ── Sidebar (Portal & App) ── */
.lp-sidebar {
  width: var(--sidebar-w);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform var(--transition-base);
}

.lp-sidebar-logo {
  padding: var(--space-5) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border-bottom: 1px solid var(--border-light);
}
.lp-sidebar-logo-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: var(--font-bold);
  font-size: var(--text-md);
  flex-shrink: 0;
}
.lp-sidebar-logo-text {
  font-size: var(--text-md);
  font-weight: var(--font-semibold);
  color: var(--gray-900);
  line-height: 1.2;
}
.lp-sidebar-logo-text span {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--font-normal);
  color: var(--gray-500);
}

.lp-sidebar-nav {
  flex: 1;
  padding: var(--space-3);
  overflow-y: auto;
}

.lp-sidebar-section {
  margin-bottom: var(--space-4);
}
.lp-sidebar-section-label {
  font-size: 11px;
  font-weight: var(--font-semibold);
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-2) var(--space-3);
}

.lp-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  color: var(--gray-600);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}
.lp-nav-item:hover {
  background: var(--bg-hover);
  color: var(--gray-900);
}
.lp-nav-item.active {
  background: var(--primary-light);
  color: var(--primary);
}
.lp-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: var(--primary);
  border-radius: 0 2px 2px 0;
}
.lp-nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.7;
}
.lp-nav-item.active svg {
  opacity: 1;
}
.lp-nav-badge {
  margin-left: auto;
  background: var(--accent);
  color: var(--white);
  font-size: 10px;
  font-weight: var(--font-semibold);
  padding: 1px 6px;
  border-radius: var(--radius-full);
  min-width: 18px;
  text-align: center;
}

.lp-sidebar-user {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.lp-sidebar-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  flex-shrink: 0;
}
.lp-sidebar-user-info {
  flex: 1;
  min-width: 0;
}
.lp-sidebar-user-name {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lp-sidebar-user-role {
  font-size: var(--text-xs);
  color: var(--gray-500);
}

/* ── Main Content Area ── */
.lp-main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  padding: var(--space-8);
}

.lp-page-header {
  margin-bottom: var(--space-8);
}
.lp-page-title {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--gray-900);
  letter-spacing: -0.02em;
}
.lp-page-subtitle {
  font-size: var(--text-base);
  color: var(--gray-500);
  margin-top: var(--space-1);
}

/* ── Welcome Banner ── */
.lp-welcome {
  background: linear-gradient(135deg, var(--primary) 0%, #3a7960 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}
.lp-welcome-content {
  flex: 1;
}
.lp-welcome h2 {
  color: white;
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-2);
}
.lp-welcome p {
  color: rgba(255,255,255,0.85);
  font-size: var(--text-base);
  margin-bottom: var(--space-4);
}
.lp-welcome-stats {
  display: flex;
  gap: var(--space-6);
}
.lp-welcome-stat {
  text-align: center;
}
.lp-welcome-stat-value {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
}
.lp-welcome-stat-label {
  font-size: var(--text-xs);
  opacity: 0.8;
  margin-top: 2px;
}
.lp-welcome-progress {
  flex-shrink: 0;
}

/* ── Phase Timeline ── */
.lp-phase-timeline {
  display: flex;
  gap: var(--space-1);
  margin-bottom: var(--space-8);
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
}
.lp-phase-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--gray-500);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.lp-phase-item:hover {
  background: var(--gray-50);
}
.lp-phase-item.active {
  background: var(--primary-light);
  color: var(--primary);
}
.lp-phase-item.completed {
  color: var(--success);
}
.lp-phase-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-300);
  flex-shrink: 0;
}
.lp-phase-item.active .lp-phase-dot {
  background: var(--primary);
}
.lp-phase-item.completed .lp-phase-dot {
  background: var(--success);
}

/* ── Step List ── */
.lp-step-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.lp-step-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  transition: all var(--transition-fast);
}
.lp-step-card:hover {
  border-color: var(--border-default);
  box-shadow: var(--shadow-xs);
}
.lp-step-card.has-action {
  border-left: 3px solid var(--accent);
}

.lp-step-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: var(--text-sm);
}
.lp-step-icon.completed {
  background: var(--success-light);
  color: var(--success);
}
.lp-step-icon.in-progress {
  background: var(--info-light);
  color: var(--info);
}
.lp-step-icon.blocked {
  background: var(--error-light);
  color: var(--error);
}
.lp-step-icon.pending {
  background: var(--gray-100);
  color: var(--gray-400);
}

.lp-step-content {
  flex: 1;
  min-width: 0;
}
.lp-step-name {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--gray-900);
}
.lp-step-desc {
  font-size: var(--text-xs);
  color: var(--gray-500);
  margin-top: 2px;
}

/* ── Action Item Banner ── */
.lp-action-banner {
  background: var(--accent-light);
  border: 1px solid rgba(208, 95, 13, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-top: var(--space-3);
}
.lp-action-banner-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--accent);
  margin-bottom: var(--space-3);
}
.lp-action-banner textarea {
  width: 100%;
  padding: var(--space-3);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: var(--text-sm);
  resize: vertical;
  min-height: 80px;
  margin-bottom: var(--space-3);
}

/* ── Notification Feed ── */
.lp-notification-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}
.lp-notification-item:hover {
  background: var(--gray-50);
}
.lp-notification-item.unread {
  background: var(--info-light);
}
.lp-notification-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--info);
  flex-shrink: 0;
  margin-top: 6px;
}

/* ── Document Grid ── */
.lp-doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-4);
}
.lp-doc-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
  transition: all var(--transition-fast);
  cursor: pointer;
}
.lp-doc-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.lp-doc-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-3);
  background: var(--gray-100);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
}

/* ── Empty States ── */
.lp-empty-state {
  text-align: center;
  padding: var(--space-12) var(--space-6);
}
.lp-empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  background: var(--gray-100);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
}
.lp-empty-title {
  font-size: var(--text-md);
  font-weight: var(--font-semibold);
  color: var(--gray-700);
  margin-bottom: var(--space-2);
}
.lp-empty-desc {
  font-size: var(--text-sm);
  color: var(--gray-500);
  max-width: 320px;
  margin: 0 auto;
}

/* ── Toast Notifications ── */
.lp-toast {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  background: var(--gray-900);
  color: var(--white);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  animation: toast-in 0.3s ease;
}
.lp-toast.success { background: var(--success); }
.lp-toast.error { background: var(--error); }
.lp-toast.warning { background: var(--warning); }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Hamburger Menu (Mobile) ── */
.lp-hamburger {
  display: none;
  position: fixed;
  top: var(--space-4);
  left: var(--space-4);
  z-index: 200;
  width: 40px;
  height: 40px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.lp-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 90;
  backdrop-filter: blur(2px);
}

/* ── Landing Page Specific ── */
.lp-landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-h);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 var(--space-8);
}
.lp-landing-nav-inner {
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lp-landing-nav-links {
  display: flex;
  gap: var(--space-8);
  list-style: none;
}
.lp-landing-nav-links a {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--gray-600);
  transition: color var(--transition-fast);
}
.lp-landing-nav-links a:hover {
  color: var(--gray-900);
}

.lp-hero {
  padding: calc(var(--navbar-h) + var(--space-16)) 0 var(--space-16);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.lp-hero h1 {
  font-size: var(--text-5xl);
  font-weight: var(--font-extrabold);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--space-6);
  color: var(--gray-900);
}
.lp-hero p {
  font-size: var(--text-lg);
  color: var(--gray-500);
  max-width: 560px;
  margin: 0 auto var(--space-8);
  line-height: 1.7;
}
.lp-hero-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
}

.lp-social-proof {
  padding: var(--space-10) 0;
  text-align: center;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: var(--gray-50);
}
.lp-social-proof p {
  font-size: var(--text-sm);
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-6);
}
.lp-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-10);
  flex-wrap: wrap;
  opacity: 0.5;
}

.lp-features {
  padding: var(--space-20) 0;
}
.lp-features-header {
  text-align: center;
  margin-bottom: var(--space-12);
}
.lp-features-header h2 {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}
.lp-features-header p {
  font-size: var(--text-md);
  max-width: 480px;
  margin: 0 auto;
}

.lp-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}
.lp-feature-card {
  padding: var(--space-6);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}
.lp-feature-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.lp-feature-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: var(--space-4);
}
.lp-feature-card h3 {
  font-size: var(--text-md);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-2);
}
.lp-feature-card p {
  font-size: var(--text-sm);
  line-height: 1.6;
}

.lp-how-it-works {
  padding: var(--space-20) 0;
  background: var(--gray-50);
}
.lp-steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  max-width: 900px;
  margin: 0 auto;
}
.lp-step-block {
  text-align: center;
  position: relative;
}
.lp-step-number {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-4);
  background: var(--primary);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-bold);
  font-size: var(--text-lg);
}
.lp-step-block h3 {
  font-size: var(--text-md);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-2);
}
.lp-step-block p {
  font-size: var(--text-sm);
}

.lp-cta-section {
  padding: var(--space-20) 0;
  text-align: center;
}
.lp-cta-card {
  max-width: 640px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--primary) 0%, #3a7960 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-12) var(--space-8);
  color: white;
}
.lp-cta-card h2 {
  color: white;
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-4);
}
.lp-cta-card p {
  color: rgba(255,255,255,0.85);
  font-size: var(--text-md);
  margin-bottom: var(--space-8);
}
.lp-cta-form {
  display: flex;
  gap: var(--space-3);
  max-width: 440px;
  margin: 0 auto;
}
.lp-cta-form input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: var(--text-base);
  font-family: var(--font-family);
}
.lp-cta-form input::placeholder {
  color: rgba(255,255,255,0.6);
}
.lp-cta-form input:focus {
  outline: none;
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.15);
}

.lp-footer {
  padding: var(--space-10) 0;
  border-top: 1px solid var(--border-light);
  text-align: center;
}
.lp-footer p {
  font-size: var(--text-sm);
  color: var(--gray-400);
}

/* ── Login Page Specific ── */
.lp-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-page);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
}
.lp-login-bg-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  background: var(--primary);
}
.lp-login-bg-shape:nth-child(1) {
  width: 600px; height: 600px; top: -200px; right: -200px;
}
.lp-login-bg-shape:nth-child(2) {
  width: 400px; height: 400px; bottom: -100px; left: -100px;
}

.lp-login-card {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}
.lp-login-header {
  text-align: center;
  margin-bottom: var(--space-8);
}
.lp-login-header h1 {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
}
.lp-login-header p {
  font-size: var(--text-sm);
}

.lp-login-divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-6) 0;
  color: var(--gray-400);
  font-size: var(--text-xs);
}
.lp-login-divider::before,
.lp-login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

.lp-google-btn {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--white);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--gray-700);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  transition: all var(--transition-fast);
}
.lp-google-btn:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
  box-shadow: var(--shadow-sm);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .lp-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .lp-sidebar {
    transform: translateX(-100%);
  }
  .lp-sidebar.open {
    transform: translateX(0);
  }
  .lp-hamburger {
    display: flex;
  }
  .lp-overlay.active {
    display: block;
  }
  .lp-main {
    margin-left: 0;
    padding: var(--space-5);
    padding-top: calc(var(--space-5) + 56px);
  }

  .lp-welcome {
    flex-direction: column;
    text-align: center;
    padding: var(--space-6);
  }
  .lp-welcome-stats {
    justify-content: center;
  }

  .lp-phase-timeline {
    flex-direction: column;
  }

  .lp-feature-grid { grid-template-columns: 1fr; }
  .lp-steps-row { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }

  .lp-hero h1 { font-size: var(--text-3xl); }
  .lp-hero-actions { flex-direction: column; align-items: center; }

  .lp-cta-form { flex-direction: column; }

  .lp-landing-nav { padding: 0 var(--space-4); }
  .lp-landing-nav-links { display: none; }
}

@media (max-width: 480px) {
  .lp-hero h1 { font-size: var(--text-2xl); }
  .lp-login-card { padding: var(--space-6); }
}
