/* ═══════════════════════════════════════════════════════
   ActivityTracker — Platinum Design System v2
   Inspired by Linear.app + Vercel Dashboard
   ═══════════════════════════════════════════════════════ */

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

/* ─── CSS Custom Properties ─── */
:root {
  /* Core brand */
  --brand:       #5B5BD6;
  --brand-dark:  #4A4AC4;
  --brand-light: #EEEEFF;

  /* Semantic colors */
  --success:        #059669;
  --success-bg:     #ECFDF5;
  --success-border: #A7F3D0;
  --warning:        #D97706;
  --warning-bg:     #FFFBEB;
  --warning-border: #FDE68A;
  --danger:         #DC2626;
  --danger-bg:      #FEF2F2;
  --danger-border:  #FECACA;
  --info:           #2563EB;
  --info-bg:        #EFF6FF;

  /* Surfaces */
  --bg-page:     #F8FAFC;
  --bg-card:     #FFFFFF;
  --bg-raised:   #F1F5F9;
  --bg-sidebar:  #111827;
  --bg-topbar:   rgba(255,255,255,0.90);
  --bg-input:    #FFFFFF;

  /* Text */
  --text-1:      #111827;
  --text-2:      #374151;
  --text-3:      #6B7280;
  --text-4:      #9CA3AF;
  --text-inv:    #FFFFFF;
  --text-brand:  #5B5BD6;

  /* Borders */
  --border:      #E5E7EB;
  --border-2:    #D1D5DB;
  --border-focus:#5B5BD6;

  /* Sidebar text */
  --sb-text:     rgba(255,255,255,0.80);
  --sb-muted:    rgba(255,255,255,0.40);
  --sb-hover:    rgba(255,255,255,0.07);
  --sb-active:   rgba(91,91,214,0.20);
  --sb-border:   rgba(255,255,255,0.08);

  /* Shadows */
  --shadow-xs:  0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:     0 4px 16px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md:  0 8px 24px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.05);
  --shadow-lg:  0 16px 48px rgba(0,0,0,0.14), 0 8px 16px rgba(0,0,0,0.06);
  --shadow-brand: 0 4px 14px rgba(91,91,214,0.30);

  /* Layout */
  --sidebar-w:  252px;
  --topbar-h:   56px;
  --radius-xs:  4px;
  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  14px;

  /* Motion */
  --ease:       cubic-bezier(0.16,1,0.3,1);
  --t-fast:     120ms;
  --t:          200ms;
  --t-slow:     300ms;
}

/* ─── Dark Theme ─── */
[data-theme="dark"] {
  --bg-page:     #0F172A;
  --bg-card:     #1E293B;
  --bg-raised:   #0F172A;
  --bg-topbar:   rgba(15,23,42,0.90);
  --bg-input:    #1E293B;
  --bg-sidebar:  #090E1A;

  --text-1:      #F1F5F9;
  --text-2:      #CBD5E1;
  --text-3:      #94A3B8;
  --text-4:      #64748B;

  --border:      #1E293B;
  --border-2:    #334155;

  --brand-light: #1E1E4B;
  --success-bg:  #022C22;
  --success-border: #065F46;
  --warning-bg:  #1C1500;
  --warning-border: #78350F;
  --danger-bg:   #1C0A0A;
  --danger-border: #7F1D1D;
  --info-bg:     #0C1A3A;

  --shadow-xs:  0 1px 2px rgba(0,0,0,0.4);
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.5);
  --shadow:     0 4px 16px rgba(0,0,0,0.4);
  --shadow-md:  0 8px 24px rgba(0,0,0,0.5);
  --shadow-lg:  0 16px 48px rgba(0,0,0,0.6);
}

/* ─── Reset ─── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-page);
  color: var(--text-1);
  line-height: 1.6;
  min-height: 100vh;
  transition: background var(--t), color var(--t);
}
a { color: var(--text-brand); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-color: transparent; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ─── Layout ─── */
.main-wrapper {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left var(--t) var(--ease);
}

.main-content {
  flex: 1;
  padding: 32px 36px;
  max-width: 1300px;
  width: 100%;
}

/* ─── Sidebar ─── */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--bg-sidebar);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform var(--t) var(--ease);
  overflow: hidden;
}

.sidebar-header {
  padding: 20px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--sb-border);
  min-height: var(--topbar-h);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
}

.logo-mark {
  width: 30px; height: 30px;
  background: var(--brand);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.logo-mark svg { color: #fff; }

.logo-wordmark {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

.org-logo-img {
  width: 30px; height: 30px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.sidebar-close {
  display: none;
  background: none; border: none;
  color: var(--sb-muted); cursor: pointer;
  padding: 4px; border-radius: var(--radius-xs);
  transition: color var(--t-fast);
  line-height: 1;
}
.sidebar-close:hover { color: #fff; }

/* Sidebar nav */
.sidebar-nav {
  flex: 1;
  padding: 10px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-nav::-webkit-scrollbar { width: 0; }

.nav-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--sb-muted);
  padding: 14px 8px 5px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--sb-text);
  font-size: 0.838rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  text-decoration: none !important;
  position: relative;
}

.nav-item:hover {
  background: rgba(255,255,255,0.09);
  color: #fff;
  transform: translateX(2px);
}

/* Pill-style active — inspired by mySales dashboard */
.nav-item.active {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 12px rgba(91,91,214,0.45);
  transform: none;
}
.nav-item.active::before { display: none; } /* Remove old left-border tick */

.nav-item-icon {
  width: 16px; height: 16px;
  flex-shrink: 0;
  opacity: 0.70;
  transition: opacity var(--t-fast);
}
.nav-item.active .nav-item-icon { opacity: 1; }
.nav-item:hover .nav-item-icon  { opacity: 0.9; }

.nav-badge {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(255,255,255,0.20);
  color: #fff;
  border-radius: 10px;
  padding: 2px 7px;
  min-width: 20px;
  text-align: center;
}
.nav-item.active .nav-badge { background: rgba(255,255,255,0.25); }

/* Sidebar footer */
.sidebar-footer {
  padding: 12px 8px;
  border-top: 1px solid var(--sb-border);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  transition: background var(--t-fast);
  cursor: pointer;
  text-decoration: none !important;
  color: var(--sb-text);
}
.sidebar-user:hover { background: var(--sb-hover); color: var(--sb-text); }

.user-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.user-initials {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--brand);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

.sidebar-user-info {
  flex: 1;
  min-width: 0;
}
.sidebar-user-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user-role {
  font-size: 0.69rem;
  color: var(--sb-muted);
}

.sidebar-footer-actions {
  display: flex;
  gap: 2px;
  padding: 4px 8px 0;
}

.footer-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.73rem;
  color: var(--sb-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: all var(--t-fast);
  text-decoration: none !important;
}
.footer-btn:hover { background: var(--sb-hover); color: var(--sb-text); }
.footer-btn.danger:hover { background: rgba(220,38,38,0.15); color: #f87171; }

/* Overlay */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 99;
}

/* ─── Topbar ─── */
.topbar {
  position: sticky; top: 0;
  height: var(--topbar-h);
  background: var(--bg-topbar);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 36px;
  gap: 16px;
  z-index: 50;
}

.hamburger {
  display: none;
  align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: none; border: none;
  cursor: pointer;
  color: var(--text-3);
  border-radius: var(--radius-sm);
  transition: all var(--t-fast);
}
.hamburger:hover { background: var(--bg-raised); color: var(--text-1); }

.topbar-breadcrumb {
  flex: 1;
  font-size: 0.838rem;
  font-weight: 600;
  color: var(--text-1);
  display: flex;
  align-items: center;
  gap: 6px;
}
.topbar-breadcrumb .sep {
  color: var(--text-4);
  font-weight: 400;
}
.topbar-breadcrumb .current {
  color: var(--text-3);
  font-weight: 400;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-3);
  transition: all var(--t-fast);
  padding: 0;
}
.icon-btn:hover { border-color: var(--border-2); color: var(--text-1); box-shadow: var(--shadow-xs); }

/* ─── Toast Notifications ─── */
.toast-stack {
  position: fixed;
  top: 68px; right: 20px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 360px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  pointer-events: all;
  animation: toastIn var(--t-slow) var(--ease);
  font-size: 0.838rem;
  line-height: 1.4;
}

.toast-icon { flex-shrink: 0; margin-top: 1px; }
.toast-body { flex: 1; }
.toast-close {
  background: none; border: none; cursor: pointer;
  color: var(--text-4); padding: 0; line-height: 1;
  transition: color var(--t-fast);
  flex-shrink: 0;
}
.toast-close:hover { color: var(--text-1); }

.toast-success { border-left: 3px solid var(--success); }
.toast-error   { border-left: 3px solid var(--danger); }
.toast-warning { border-left: 3px solid var(--warning); }
.toast-info    { border-left: 3px solid var(--info); }

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

/* ─── Page Layout Helpers ─── */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.page-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-1);
  line-height: 1.2;
}

.page-subtitle {
  font-size: 0.838rem;
  color: var(--text-3);
  margin-top: 3px;
}

/* ─── Cards ─── */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: -0.01em;
}

.card-subtitle {
  font-size: 0.775rem;
  color: var(--text-3);
  margin-top: 1px;
}

.card-body { padding: 20px; }

/* ─── Stat Cards ─── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--t);
}
.stat-card:hover { box-shadow: var(--shadow-sm); }

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-1);
  line-height: 1;
}

.stat-change {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  margin-top: 6px;
  color: var(--text-3);
}

.stat-icon-wrap {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.stat-icon-brand   { background: var(--brand-light); color: var(--brand); }
.stat-icon-success { background: var(--success-bg);  color: var(--success); }
.stat-icon-warning { background: var(--warning-bg);  color: var(--warning); }
.stat-icon-danger  { background: var(--danger-bg);   color: var(--danger); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.838rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--t-fast);
  text-decoration: none !important;
  white-space: nowrap;
  line-height: 1.4;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  box-shadow: 0 6px 20px rgba(91,91,214,0.40);
  color: #fff;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-1);
  border-color: var(--border-2);
}
.btn-secondary:hover {
  background: var(--bg-raised);
  border-color: var(--border-2);
  color: var(--text-1);
}

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: var(--danger-border);
}
.btn-danger:hover {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

.btn-ghost {
  background: transparent;
  color: var(--text-3);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--bg-raised); color: var(--text-1); border-color: var(--border); }

.btn-sm { padding: 5px 11px; font-size: 0.8rem; }
.btn-lg { padding: 10px 20px; font-size: 0.9rem; }
.btn-icon { padding: 7px; gap: 0; }
.btn-icon.btn-sm { padding: 5px; }

/* ─── Form Elements ─── */
.form-field { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 5px;
  letter-spacing: -0.01em;
}

.form-input,
.form-select,
textarea.form-input {
  width: 100%;
  padding: 8px 11px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text-1);
  font-size: 0.875rem;
  font-family: inherit;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
  line-height: 1.5;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
textarea.form-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(91,91,214,0.10);
}

.form-input::placeholder { color: var(--text-4); }
.form-hint { font-size: 0.775rem; color: var(--text-3); margin-top: 4px; }
.form-error { font-size: 0.775rem; color: var(--danger); margin-top: 4px; }

/* ─── Badges ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  white-space: nowrap;
}

.badge-open       { background: var(--info-bg);     color: var(--info);     border-color: #BFDBFE; }
.badge-in_progress{ background: var(--warning-bg);  color: var(--warning);  border-color: var(--warning-border); }
.badge-pending_approval {
  background: rgba(245,158,11,0.12); color: #D97706;
  border-color: rgba(245,158,11,0.35);
}
.badge-completed  { background: var(--success-bg);  color: var(--success);  border-color: var(--success-border); }
.badge-overdue    { background: var(--danger-bg);   color: var(--danger);   border-color: var(--danger-border); }

.badge-urgent { background: var(--danger-bg);   color: var(--danger);   border-color: var(--danger-border); }
.badge-high   { background: var(--warning-bg);  color: var(--warning);  border-color: var(--warning-border); }
.badge-normal { background: var(--brand-light); color: var(--brand);    border-color: #C4B5FD; }
.badge-low    { background: var(--success-bg);  color: var(--success);  border-color: var(--success-border); }

.badge-dot::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

[data-theme="dark"] .badge-open       { border-color: #1E40AF; }
[data-theme="dark"] .badge-normal     { border-color: #3730A3; }
[data-theme="dark"] .badge-in_progress{ border-color: #92400E; }
[data-theme="dark"] .badge-completed  { border-color: var(--success-border); }
[data-theme="dark"] .badge-urgent     { border-color: #7F1D1D; }
[data-theme="dark"] .badge-pending_approval { background: rgba(245,158,11,0.15); color: #FCD34D; border-color: rgba(245,158,11,0.25); }

/* ─── Data Table ─── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.838rem;
}
.data-table thead tr {
  border-bottom: 1px solid var(--border);
}
.data-table thead th {
  padding: 10px 16px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-4);
  white-space: nowrap;
}
.data-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--t-fast);
}
.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover { background: var(--bg-raised); }
.data-table tbody td {
  padding: 12px 16px;
  color: var(--text-2);
  vertical-align: middle;
}

/* ─── Empty State ─── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}
.empty-state-icon {
  width: 48px; height: 48px;
  color: var(--text-4);
  margin-bottom: 16px;
}
.empty-state-icon svg { width: 100%; height: 100%; }
.empty-state h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 6px;
}
.empty-state p {
  font-size: 0.82rem;
  color: var(--text-4);
  margin-bottom: 20px;
}

/* ─── Chat Bubble Activity Timeline ─── */
.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 4px 0;
}

/* Each bubble row */
.bubble-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  max-width: 88%;
}
.bubble-row.bubble-right {
  flex-direction: row-reverse;
  margin-left: auto;
}
.bubble-row.bubble-left  { margin-right: auto; }

/* Avatar circle */
.bubble-avatar-wrap { flex-shrink: 0; }
.bubble-avatar-img {
  width: 38px; height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
  display: block;
}
.bubble-avatar-initials {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}
[data-theme="dark"] .bubble-avatar-img,
[data-theme="dark"] .bubble-avatar-initials { border-color: rgba(255,255,255,0.2); }

/* The bubble card */
.bubble-card {
  flex: 1;
  border-radius: 16px;
  padding: 14px 16px;
  position: relative;
  min-width: 0;
}

/* Mine — right aligned */
.bubble-right .bubble-card {
  background: linear-gradient(135deg, var(--brand) 0%, #4F46E5 100%);
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 20px rgba(91,91,214,0.28);
}
.bubble-right .bubble-card .bubble-meta { color: rgba(255,255,255,0.65); }
.bubble-right .bubble-card .bubble-author { color: rgba(255,255,255,0.85); }
.bubble-right .bubble-card .bubble-text { color: #fff; }
.bubble-right .bubble-card .badge { filter: brightness(0.85); }

/* Other — left aligned */
.bubble-left .bubble-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-1);
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.bubble-left .bubble-card .bubble-meta { color: var(--text-4); }
.bubble-left .bubble-card .bubble-author { color: var(--text-2); }
.bubble-left .bubble-card .bubble-text { color: var(--text-2); }

/* Card header: name + timestamp */
.bubble-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.bubble-author {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.bubble-meta {
  font-size: 0.7rem;
  white-space: nowrap;
}
.bubble-text {
  font-size: 0.875rem;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}
.bubble-badges {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.bubble-attachments { margin-top: 10px; }

/* System / status change events */
.bubble-system {
  text-align: center;
  padding: 8px 16px;
  margin: 4px auto;
}
.bubble-system-inner {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  color: var(--text-4);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 14px;
}

/* ─── Task Cards ─── */
.task-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.task-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: box-shadow var(--t), border-color var(--t), transform var(--t-fast);
  text-decoration: none !important;
  display: block;
  border-left: 3px solid var(--brand);
  position: relative;
}
.task-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--border-2);
  transform: translateY(-1px);
}

.task-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.task-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.task-card-desc {
  font-size: 0.8rem;
  color: var(--text-3);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}

.task-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.task-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.task-due-label {
  font-size: 0.75rem;
  color: var(--text-4);
  display: flex;
  align-items: center;
  gap: 4px;
}
.task-due-label.overdue { color: var(--danger); font-weight: 600; }

.assignee-stack {
  display: flex;
  align-items: center;
}
.assignee-chip {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--brand);
  border: 2px solid var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  margin-right: -5px;
}

/* ─── Table ─── */
.data-table { width: 100%; border-collapse: collapse; }

.data-table th {
  padding: 9px 14px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table td {
  padding: 12px 14px;
  font-size: 0.838rem;
  color: var(--text-1);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.data-table tbody tr { transition: background var(--t-fast); }
.data-table tbody tr:hover td { background: var(--bg-raised); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr[data-href] { cursor: pointer; }

/* ─── Filter Bar ─── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.search-wrap .search-icon {
  position: absolute;
  left: 10px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-4);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 7px 11px 7px 34px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-1);
  font-size: 0.838rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.search-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(91,91,214,0.10);
}
.search-input::placeholder { color: var(--text-4); }

.filter-select {
  padding: 7px 11px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-1);
  font-size: 0.838rem;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  transition: border-color var(--t-fast);
  -webkit-appearance: none;
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}
.filter-select:focus { border-color: var(--border-focus); }

.view-toggle-group {
  display: flex;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-card);
}
.view-toggle-btn {
  padding: 6px 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-3);
  font-size: 0.8rem;
  transition: all var(--t-fast);
  display: flex; align-items: center; justify-content: center;
}
.view-toggle-btn.active { background: var(--brand); color: #fff; }
.view-toggle-btn:hover:not(.active) { background: var(--bg-raised); color: var(--text-1); }

/* ─── Activity Timeline ─── */
.timeline { display: flex; flex-direction: column; }

.timeline-item {
  display: flex;
  gap: 14px;
  position: relative;
  padding-bottom: 20px;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: 16px; top: 34px; bottom: 0;
  width: 1px;
  background: var(--border);
}
.timeline-item:last-child::before { display: none; }

.timeline-node {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-3);
  z-index: 1;
}
.timeline-node.completed-node {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success);
}

.timeline-body {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
}

.timeline-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}
.timeline-author { font-size: 0.838rem; font-weight: 600; color: var(--text-1); }
.timeline-time   { font-size: 0.75rem; color: var(--text-4); }
.timeline-text   { font-size: 0.838rem; color: var(--text-2); line-height: 1.6; white-space: pre-wrap; }

/* ─── Color Dots ─── */
.color-palette-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.color-dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--t-fast);
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.color-dot:hover { transform: scale(1.15); }
.color-dot.selected {
  outline-color: var(--text-2);
  transform: scale(1.1);
}

/* ─── Voice Recorder ─── */
.recorder-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  background: var(--bg-raised);
}
.record-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t-fast);
  flex-shrink: 0;
}
.record-btn:hover { transform: scale(1.08); }
.record-btn.recording { animation: pulse-record 1s ease infinite; }
@keyframes pulse-record {
  0%,100% { box-shadow: 0 0 0 0 rgba(220,38,38,0.4); }
  50%      { box-shadow: 0 0 0 7px rgba(220,38,38,0); }
}
.record-timer { font-size: 0.8rem; font-weight: 700; color: var(--danger); font-variant-numeric: tabular-nums; min-width: 36px; }
.record-status { font-size: 0.78rem; color: var(--text-3); }

/* ─── Attachments ─── */
.attachment-row { display: flex; flex-wrap: wrap; gap: 6px; }
.attachment-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--text-2);
  text-decoration: none !important;
  transition: all var(--t-fast);
}
.attachment-pill:hover { border-color: var(--border-focus); color: var(--brand); }

/* ─── Empty State ─── */
.empty-state {
  text-align: center;
  padding: 64px 32px;
  color: var(--text-4);
}
.empty-state-icon {
  width: 48px; height: 48px;
  margin: 0 auto 16px;
  opacity: 0.35;
}
.empty-state h3 { font-size: 1rem; font-weight: 600; color: var(--text-3); margin-bottom: 4px; }
.empty-state p { font-size: 0.838rem; color: var(--text-4); }

/* ─── Sections ─── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-title {
  font-size: 0.838rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.01em;
}

/* ─── Divider ─── */
.divider { height: 1px; background: var(--border); margin: 20px 0; }

/* ─── Tabs ─── */
.tab-list {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.tab-trigger {
  padding: 8px 16px;
  font-size: 0.838rem;
  font-weight: 500;
  color: var(--text-3);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: all var(--t-fast);
  font-family: inherit;
}
.tab-trigger.active { color: var(--brand); border-bottom-color: var(--brand); }
.tab-trigger:hover:not(.active) { color: var(--text-1); }

/* ─── Info List ─── */
.info-list { display: flex; flex-direction: column; gap: 14px; }
.info-row { display: flex; flex-direction: column; gap: 2px; }
.info-label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-4); }
.info-value { font-size: 0.838rem; font-weight: 500; color: var(--text-1); }

/* ─── Login ─── */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-left {
  background: var(--bg-sidebar);
  display: flex;
  flex-direction: column;
  padding: 60px;
  position: relative;
  overflow: hidden;
}

.auth-left::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(91,91,214,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.auth-left::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -60px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.auth-left-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.auth-left-logo {
  width: 36px; height: 36px;
  background: var(--brand);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.auth-left-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.auth-left-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.auth-left-headline {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1.2;
  margin-bottom: 14px;
}

.auth-left-sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  max-width: 320px;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 32px;
}
.auth-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.838rem;
  color: rgba(255,255,255,0.7);
}
.auth-feature-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

.auth-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  background: var(--bg-page);
}

.auth-form-wrap {
  width: 100%;
  max-width: 380px;
}

.auth-form-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-1);
  margin-bottom: 4px;
}
.auth-form-sub {
  font-size: 0.838rem;
  color: var(--text-3);
  margin-bottom: 28px;
}

.auth-error {
  padding: 10px 12px;
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  border-radius: var(--radius-sm);
  color: var(--danger);
  font-size: 0.8rem;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .auth-right { padding: 40px 24px; }
}

/* ─── Chart containers ─── */
.chart-wrap {
  position: relative;
  width: 100%;
}

/* ─── Dashboard grid ─── */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
  margin-top: 20px;
}

.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.chart-card-tall { min-height: 240px; }

/* ─── Responsive ─── */
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .charts-grid { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .sidebar-overlay.open { display: block; }
  .sidebar-close { display: flex; }
  .main-wrapper { margin-left: 0; }
  .topbar { padding: 0 16px; }
  .hamburger { display: flex; }
  .main-content { padding: 24px 16px; }
  .task-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .page-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .auth-right { padding: 32px 16px; }
}

/* ─── Utilities ─── */
.text-sm  { font-size: 0.8rem; }
.text-xs  { font-size: 0.72rem; }
.text-muted { color: var(--text-3); }
.fw-600   { font-weight: 600; }
.fw-700   { font-weight: 700; }
.truncate { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.flex     { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 6px; } .gap-2 { gap: 12px; } .gap-3 { gap: 18px; }
.mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 20px; } .mt-4 { margin-top: 28px; }
.mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 20px; }
.w-full { width: 100%; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

@media (max-width: 600px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-4); }

/* ─── AgenTech Site Footer ─────────────────────────── */
.site-footer {
  text-align: center;
  padding: 14px 24px;
  font-size: 0.72rem;
  color: var(--text-4);
  border-top: 1px solid var(--border);
  margin-top: auto;
  letter-spacing: 0.01em;
}
.site-footer a { color: var(--brand); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ─── Landing Page ──────────────────────────────────── */
.landing-page {
  background: #05060F;
  color: #E2E8F0;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Landing Navbar */
.lp-nav {
  position: sticky; top: 0;
  background: rgba(5,6,15,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 0 5%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 200;
}
.lp-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  letter-spacing: -0.02em;
}
.lp-logo-bg {
  width: 32px; height: 32px;
  background: var(--brand);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(91,91,214,0.50);
}
.lp-nav-right { display: flex; align-items: center; gap: 12px; }
.lp-nav-link {
  font-size: 0.838rem; font-weight: 500;
  color: rgba(255,255,255,0.70);
  text-decoration: none;
  transition: color 0.15s;
}
.lp-nav-link:hover { color: #fff; }
.lp-btn-login {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 7px 18px;
  font-size: 0.838rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
}
.lp-btn-login:hover { background: rgba(255,255,255,0.14); color: #fff; }
.lp-btn-cta {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 0.838rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(91,91,214,0.45);
  transition: all 0.15s;
}
.lp-btn-cta:hover { background: var(--brand-dark); color: #fff; box-shadow: 0 6px 20px rgba(91,91,214,0.55); }

/* Hero */
.lp-hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 5% 80px;
  position: relative;
  overflow: hidden;
}
.lp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 500px at 50% 10%, rgba(91,91,214,0.22) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 80% 60%, rgba(168,85,247,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.lp-hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(91,91,214,0.15);
  border: 1px solid rgba(91,91,214,0.35);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #A5B4FC;
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}
.lp-hero-badge-dot {
  width: 7px; height: 7px;
  background: #5B5BD6;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.5;} }
.lp-hero-title {
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.10;
  color: #fff;
  margin-bottom: 24px;
}
.lp-hero-title .accent {
  background: linear-gradient(135deg, #818CF8 0%, #A78BFA 50%, #EC4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lp-hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.55);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.lp-hero-actions {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  flex-wrap: wrap;
}
.lp-btn-hero-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand);
  color: #fff;
  border-radius: 10px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(91,91,214,0.50);
  transition: all 0.2s;
  letter-spacing: -0.01em;
}
.lp-btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(91,91,214,0.60); color: #fff; }
.lp-btn-hero-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  background: rgba(255,255,255,0.04);
}
.lp-btn-hero-secondary:hover { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.25); }
.lp-hero-trust {
  margin-top: 56px;
  color: rgba(255,255,255,0.30);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lp-hero-stats {
  display: flex; gap: 48px; justify-content: center;
  margin-top: 16px; flex-wrap: wrap;
}
.lp-stat { text-align: center; }
.lp-stat-num {
  font-size: 1.75rem; font-weight: 800;
  color: #fff; letter-spacing: -0.04em;
}
.lp-stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.40); margin-top: 2px; }

/* Sections */
.lp-section {
  padding: 100px 5%;
  max-width: 1200px;
  margin: 0 auto;
}
.lp-section-full {
  padding: 100px 5%;
}
.lp-section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  text-align: center;
  margin-bottom: 16px;
}
.lp-section-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.45);
  text-align: center;
  max-width: 520px;
  margin: 0 auto 60px;
  line-height: 1.7;
}

/* Feature Cards */
.lp-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.lp-feature-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.lp-feature-card:hover {
  border-color: rgba(91,91,214,0.45);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(91,91,214,0.15);
}
.lp-feature-icon {
  width: 44px; height: 44px;
  background: rgba(91,91,214,0.15);
  border: 1px solid rgba(91,91,214,0.30);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #818CF8;
  margin-bottom: 18px;
}
.lp-feature-title {
  font-size: 1rem; font-weight: 700;
  color: #fff; margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.lp-feature-desc { font-size: 0.875rem; color: rgba(255,255,255,0.45); line-height: 1.7; }

/* Testimonials */
.lp-testimonials-strip {
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 80px 5%;
}
.lp-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.lp-testimonial {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 28px;
}
.lp-testimonial-stars { color: #FBBF24; font-size: 0.9rem; margin-bottom: 14px; }
.lp-testimonial-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  margin-bottom: 20px;
  font-style: italic;
}
.lp-testimonial-author { display: flex; align-items: center; gap: 12px; }
.lp-author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.9rem; color: #fff;
}
.lp-author-name { font-size: 0.875rem; font-weight: 700; color: #fff; }
.lp-author-role { font-size: 0.775rem; color: rgba(255,255,255,0.35); }

/* Benefits */
.lp-benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.lp-benefit-list { display: flex; flex-direction: column; gap: 24px; }
.lp-benefit {
  display: flex; gap: 14px; align-items: flex-start;
}
.lp-benefit-check {
  width: 26px; height: 26px; flex-shrink: 0;
  background: rgba(5,150,105,0.15);
  border: 1px solid rgba(5,150,105,0.35);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #34D399;
  margin-top: 2px;
}
.lp-benefit-title { font-size: 0.9rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.lp-benefit-desc { font-size: 0.838rem; color: rgba(255,255,255,0.45); line-height: 1.6; }

/* Dashboard preview block */
.lp-app-preview {
  background: linear-gradient(135deg, rgba(91,91,214,0.15) 0%, rgba(168,85,247,0.08) 100%);
  border: 1px solid rgba(91,91,214,0.25);
  border-radius: 20px;
  padding: 24px;
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.20);
  font-size: 0.875rem;
  position: relative;
  overflow: hidden;
}
.lp-app-preview::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(91,91,214,0.08) 0%, transparent 100%);
}

/* CTA strip */
.lp-cta-strip {
  background: linear-gradient(135deg, #3730A3 0%, #5B5BD6 60%, #7C3AED 100%);
  padding: 100px 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.lp-cta-strip::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 600px 400px at 50% 50%, rgba(255,255,255,0.06) 0%, transparent 70%);
}
.lp-cta-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800; letter-spacing: -0.04em; color: #fff;
  margin-bottom: 16px; position: relative;
}
.lp-cta-sub {
  font-size: 1rem; color: rgba(255,255,255,0.65);
  margin-bottom: 40px; position: relative;
}
.lp-cta-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; position: relative; }
.lp-btn-cta-white {
  background: #fff; color: #3730A3;
  border-radius: 10px; padding: 14px 32px;
  font-size: 1rem; font-weight: 800;
  text-decoration: none; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.20);
}
.lp-btn-cta-white:hover { transform: translateY(-2px); color: #3730A3; box-shadow: 0 10px 32px rgba(0,0,0,0.30); }
.lp-btn-cta-outline {
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.30);
  border-radius: 10px; padding: 14px 28px;
  font-size: 1rem; font-weight: 600;
  text-decoration: none; transition: all 0.2s;
  background: rgba(255,255,255,0.06);
}
.lp-btn-cta-outline:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* Landing footer */
.lp-footer {
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 32px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.lp-footer-brand { font-size: 0.875rem; font-weight: 700; color: rgba(255,255,255,0.55); }
.lp-footer-copy { font-size: 0.775rem; color: rgba(255,255,255,0.25); }
.lp-footer-agentech { font-size: 0.775rem; color: rgba(255,255,255,0.30); }
.lp-footer-agentech strong { color: var(--brand); }

@media(max-width:768px) {
  .lp-benefits-grid { grid-template-columns: 1fr; gap: 32px; }
  .lp-hero { padding: 80px 5% 60px; }
  .lp-hero-stats { gap: 28px; }
  .lp-footer { justify-content: center; text-align: center; }
}
