/* ─── Design Tokens ──────────────────────────────────────────────────────── */
:root {
  --bg: #f0f4f8;
  --surface: #ffffff;
  --panel: #ffffff;
  --sidebar-bg: #0f172a;
  --sidebar-text: #cbd5e1;
  --sidebar-active: #25d366;
  --sidebar-hover: rgba(255,255,255,0.07);
  --text: #0f172a;
  --text-light: #475569;
  --muted: #64748b;
  --primary: #25d366;
  --primary-dark: #128c7e;
  --primary-light: rgba(37,211,102,0.12);
  --accent: #f59e0b;
  --accent-light: rgba(245,158,11,0.12);
  --danger: #ef4444;
  --danger-light: rgba(239,68,68,0.10);
  --info: #3b82f6;
  --info-light: rgba(59,130,246,0.10);
  --purple: #8b5cf6;
  --purple-light: rgba(139,92,246,0.10);
  --border: #e2e8f0;
  --border-dark: #cbd5e1;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ─── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

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

/* ─── Layout ─────────────────────────────────────────────────────────────── */
.container { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

/* ─── Sidebar ────────────────────────────────────────────────────────────── */
.sidebar {
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
}
.sidebar-brand {
  padding: 24px 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.sidebar-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
}
.sidebar-logo-text {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}
.sidebar-tagline {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.5px;
}
.wa-status-badge {
  margin: 16px 20px 0;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}
.wa-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.wa-dot.connected { background: var(--primary); box-shadow: 0 0 6px var(--primary); }
.wa-dot.disconnected { background: var(--accent); }
.wa-status-info { flex: 1; min-width: 0; }
.wa-status-label { font-size: 12px; font-weight: 600; color: #fff; line-height: 1.2; }
.wa-status-sub { font-size: 11px; color: rgba(255,255,255,0.4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-nav { padding: 16px 12px; flex: 1; }
.nav-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  padding: 8px 8px 6px;
  margin-top: 8px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--sidebar-text);
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.15s;
  margin-bottom: 2px;
}
.nav-link i { width: 18px; text-align: center; font-size: 14px; opacity: 0.7; flex-shrink: 0; }
.nav-link:hover { background: var(--sidebar-hover); color: #fff; }
.nav-link:hover i { opacity: 1; }
.nav-link.active { background: rgba(37,211,102,0.15); color: var(--primary); font-weight: 600; }
.nav-link.active i { opacity: 1; color: var(--primary); }
.nav-badge {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 99px;
  line-height: 1.4;
}
.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name { font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: 11px; color: rgba(255,255,255,0.35); }
.sidebar-logout { color: rgba(255,255,255,0.35); font-size: 14px; transition: color 0.15s; cursor: pointer; background: none; border: none; }
.sidebar-logout:hover { color: var(--danger); }

/* ─── Main Area ──────────────────────────────────────────────────────────── */
.main-area { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-title { font-size: 17px; font-weight: 700; color: var(--text); }
.topbar-subtitle { font-size: 12px; color: var(--muted); margin-top: 1px; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 15px;
  transition: all 0.15s;
  position: relative;
}
.topbar-btn:hover { background: var(--bg); color: var(--text); }
.notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--danger);
  border: 1.5px solid #fff;
}
.page-content { padding: 28px; flex: 1; }

/* ─── Cards ──────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}
.card-title { font-size: 15px; font-weight: 700; color: var(--text); }
.card-subtitle { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ─── Stat Cards ─────────────────────────────────────────────────────────── */
.stats-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 24px; }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.stat-icon.green { background: var(--primary-light); color: var(--primary-dark); }
.stat-icon.amber { background: var(--accent-light); color: #d97706; }
.stat-icon.blue { background: var(--info-light); color: var(--info); }
.stat-icon.purple { background: var(--purple-light); color: var(--purple); }
.stat-icon.red { background: var(--danger-light); color: var(--danger); }
.stat-body { flex: 1; min-width: 0; }
.stat-label { font-size: 12px; font-weight: 500; color: var(--muted); margin-bottom: 4px; }
.stat-value { font-size: 24px; font-weight: 800; color: var(--text); line-height: 1.1; }
.stat-change { font-size: 11px; margin-top: 4px; }
.stat-change.up { color: var(--primary-dark); }
.stat-change.down { color: var(--danger); }

/* ─── Grid ───────────────────────────────────────────────────────────────── */
.grid-2 { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
.grid-3 { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.grid-auto { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  text-decoration: none;
}
.btn i { font-size: 13px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-sm { padding: 6px 12px; font-size: 12.5px; }
.btn-lg { padding: 13px 28px; font-size: 15px; }
.btn-icon { width: 34px; height: 34px; padding: 0; border-radius: var(--radius-sm); }

/* ─── Badges / Pills ─────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-green { background: var(--primary-light); color: var(--primary-dark); }
.badge-amber { background: var(--accent-light); color: #b45309; }
.badge-blue { background: var(--info-light); color: #1d4ed8; }
.badge-red { background: var(--danger-light); color: #b91c1c; }
.badge-purple { background: var(--purple-light); color: #6d28d9; }
.badge-gray { background: #f1f5f9; color: #475569; }

/* ─── Forms ──────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-label span { color: var(--muted); font-weight: 400; }
.form-control {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 14px;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.form-control::placeholder { color: #94a3b8; }
.form-grid { display: grid; gap: 16px; }
.form-grid-2 { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.form-grid-3 { display: grid; gap: 16px; grid-template-columns: 1fr 1fr 1fr; }
.form-hint { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.form-error { font-size: 11.5px; color: var(--danger); margin-top: 4px; }

/* ─── Tables ─────────────────────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; border-radius: var(--radius-lg); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
thead th {
  background: #f8fafc;
  padding: 12px 16px;
  text-align: left;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td { padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #f8fafc; }
.table-actions { display: flex; gap: 6px; align-items: center; }

/* ─── Alerts ─────────────────────────────────────────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}
.alert i { margin-top: 1px; flex-shrink: 0; }
.alert-danger { background: var(--danger-light); color: #991b1b; border: 1px solid rgba(239,68,68,0.2); }
.alert-success { background: rgba(37,211,102,0.1); color: #065f46; border: 1px solid rgba(37,211,102,0.25); }
.alert-warning { background: var(--accent-light); color: #92400e; border: 1px solid rgba(245,158,11,0.25); }
.alert-info { background: var(--info-light); color: #1e40af; border: 1px solid rgba(59,130,246,0.2); }

/* ─── Modals ─────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.2s;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-lg { max-width: 720px; }
.modal-header {
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title { font-size: 17px; font-weight: 700; }
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.15s;
}
.modal-close:hover { background: var(--bg); color: var(--text); }
.modal-body { padding: 24px 28px; }
.modal-footer {
  padding: 16px 28px 24px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ─── Progress ───────────────────────────────────────────────────────────── */
.progress-bar { height: 6px; background: var(--border); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.progress-fill { height: 100%; border-radius: 99px; background: var(--primary); transition: width 0.4s; }
.progress-fill.amber { background: var(--accent); }
.progress-fill.red { background: var(--danger); }

/* ─── Checklist / Onboarding ─────────────────────────────────────────────── */
.checklist { display: grid; gap: 10px; margin-top: 16px; }
.check-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: #f8fafc;
}
.check-item-left { display: flex; align-items: center; gap: 10px; flex: 1; }
.check-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}
.check-icon.done { background: var(--primary-light); color: var(--primary-dark); }
.check-icon.pending { background: var(--accent-light); color: #d97706; }
.check-icon.blocked { background: #f1f5f9; color: var(--muted); }
.check-icon.ready { background: var(--info-light); color: var(--info); }

/* ─── Tags / Segment chips ───────────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 500;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid var(--border);
}
.tags-row { display: flex; gap: 6px; flex-wrap: wrap; }

/* ─── Campaign type cards ────────────────────────────────────────────────── */
.recipe-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  cursor: pointer;
  transition: all 0.15s;
}
.recipe-card:hover { border-color: var(--primary); background: var(--primary-light); }
.recipe-card.selected { border-color: var(--primary); background: var(--primary-light); }
.recipe-icon { font-size: 28px; margin-bottom: 8px; }
.recipe-name { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.recipe-desc { font-size: 12px; color: var(--muted); }

/* ─── Calendar ───────────────────────────────────────────────────────────── */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: 16px;
}
.cal-header-day {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  padding: 6px 0;
  text-transform: uppercase;
}
.cal-day {
  min-height: 80px;
  border-radius: var(--radius-sm);
  padding: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12px;
}
.cal-day.today { border-color: var(--primary); background: var(--primary-light); }
.cal-day.other-month { opacity: 0.35; }
.cal-day-num { font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.cal-event {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 4px;
  padding: 2px 5px;
  font-size: 10px;
  font-weight: 600;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-event.anniversary { background: var(--accent-light); color: #b45309; }

/* ─── Chart containers ───────────────────────────────────────────────────── */
.chart-container { position: relative; width: 100%; }
.chart-sm { height: 180px; }
.chart-md { height: 260px; }
.chart-lg { height: 320px; }

/* ─── Search / Filter bar ────────────────────────────────────────────────── */
.search-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.search-input-wrap { position: relative; flex: 1; min-width: 220px; }
.search-input-wrap i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; }
.search-input-wrap input { padding-left: 36px; }

/* ─── Tabs ───────────────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tab-btn {
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  border: none;
  background: transparent;
  border-bottom: 2.5px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-btn:hover { color: var(--text); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ─── Metric row ─────────────────────────────────────────────────────────── */
.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.metric-row:last-child { border-bottom: none; }
.metric-label { font-size: 13.5px; color: var(--muted); }
.metric-value { font-size: 15px; font-weight: 700; }

/* ─── Plan cards ─────────────────────────────────────────────────────────── */
.plan-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.plan-card.featured { border-color: var(--primary); }
.plan-badge {
  display: inline-flex;
  padding: 3px 12px;
  border-radius: 99px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 12px;
  align-self: flex-start;
}
.plan-name { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.plan-price { font-size: 32px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.plan-price span { font-size: 14px; font-weight: 400; color: var(--muted); }
.plan-desc { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.plan-features { flex: 1; margin-bottom: 24px; }
.plan-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 13.5px;
  border-bottom: 1px solid var(--border);
}
.plan-feature:last-child { border-bottom: none; }
.plan-feature i { color: var(--primary); font-size: 13px; width: 16px; flex-shrink: 0; }

/* ─── Notification list ──────────────────────────────────────────────────── */
.notif-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.notif-item:last-child { border-bottom: none; }
.notif-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.notif-body { flex: 1; }
.notif-title { font-size: 13.5px; font-weight: 600; }
.notif-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.notif-time { font-size: 11px; color: var(--muted); white-space: nowrap; }

/* ─── Marketing Site ─────────────────────────────────────────────────────── */
.marketing-body { background: #fff; }
.mkt-nav {
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  z-index: 100;
}
.mkt-logo { display: flex; align-items: center; gap: 10px; }
.mkt-logo-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: #fff;
}
.mkt-logo-text { font-size: 18px; font-weight: 800; color: var(--text); }
.mkt-links { display: flex; gap: 28px; align-items: center; }
.mkt-link { font-size: 14px; font-weight: 500; color: var(--text-light); transition: color 0.15s; }
.mkt-link:hover { color: var(--text); }
.mkt-cta { display: flex; gap: 10px; }
.hero-section {
  padding: 100px 0 80px;
  text-align: center;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 99px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(37,211,102,0.25);
}
.hero-h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; line-height: 1.1; letter-spacing: -1px; margin-bottom: 20px; color: var(--text); }
.hero-h1 span { color: var(--primary-dark); }
.hero-sub { font-size: 1.1rem; color: var(--muted); max-width: 640px; margin: 0 auto 32px; line-height: 1.7; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin: 48px auto 0;
  max-width: 800px;
}
.stats-bar-item { background: #fff; padding: 24px; text-align: center; }
.stats-bar-value { font-size: 26px; font-weight: 800; color: var(--text); }
.stats-bar-label { font-size: 12px; color: var(--muted); margin-top: 4px; }
.features-section { padding: 80px 0; background: #f8fafc; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 48px; }
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}
.feature-name { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-desc { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.section-label { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--primary-dark); margin-bottom: 12px; }
.section-h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; letter-spacing: -0.5px; margin-bottom: 12px; }
.section-sub { font-size: 1rem; color: var(--muted); max-width: 560px; line-height: 1.7; }
.mkt-footer { padding: 40px 0; border-top: 1px solid var(--border); text-align: center; }
.mkt-footer p { color: var(--muted); font-size: 13px; }

/* ─── Auth pages ─────────────────────────────────────────────────────────── */
.auth-body { background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f0f9ff 100%); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.auth-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 40px; width: 100%; max-width: 460px; box-shadow: var(--shadow-lg); }
.auth-logo { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 28px; }
.auth-logo-icon { width: 40px; height: 40px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; }
.auth-logo-text { font-size: 22px; font-weight: 800; }
.auth-title { font-size: 22px; font-weight: 800; text-align: center; margin-bottom: 6px; }
.auth-sub { font-size: 13.5px; color: var(--muted); text-align: center; margin-bottom: 28px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-divider span { font-size: 12px; color: var(--muted); }
.auth-footer { text-align: center; margin-top: 20px; font-size: 13px; color: var(--muted); }
.auth-footer a { color: var(--primary-dark); font-weight: 600; }

/* ─── DataTables overrides ───────────────────────────────────────────────── */
.dataTables_wrapper .dataTables_filter input { border: 1.5px solid var(--border); border-radius: var(--radius); padding: 7px 12px; font-size: 13px; outline: none; }
.dataTables_wrapper .dataTables_filter input:focus { border-color: var(--primary); }
.dataTables_wrapper .dataTables_length select { border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 6px 10px; }
.dataTables_wrapper .dataTables_paginate .paginate_button { border-radius: var(--radius-sm) !important; padding: 5px 10px !important; }
.dataTables_wrapper .dataTables_paginate .paginate_button.current { background: var(--primary) !important; border-color: var(--primary) !important; color: #fff !important; }
.dataTables_info, .dataTables_length, .dataTables_filter { font-size: 13px !important; color: var(--muted) !important; }

/* ─── Utility ────────────────────────────────────────────────────────────── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }
.text-muted { color: var(--muted); }
.text-sm { font-size: 12.5px; }
.text-xs { font-size: 11.5px; }
.text-lg { font-size: 16px; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.text-center { text-align: center; }
.divider { height: 1px; background: var(--border); margin: 20px 0; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.muted { color: var(--muted); }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .form-grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: -280px; transition: left 0.25s; height: 100vh; }
  .sidebar.open { left: 0; }
  .grid-2, .grid-3, .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .page-content { padding: 16px; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .mkt-links { display: none; }
  .cal-grid { grid-template-columns: repeat(7, 1fr); }
  .cal-day { min-height: 50px; font-size: 10px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-h1 { font-size: 2rem; }
  .modal { max-width: 100%; margin: 0 8px; }
}
