/* ─── 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;
}
body.modal-open { overflow: hidden; }
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;
  height: 100vh;
  overflow: hidden;
}

/* ─── 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); }

/* ─── Sidebar collapse (desktop only — mobile keeps its slide-in drawer) ────── */
.sidebar-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sidebar-collapse-toggle {
  width: 30px; height: 30px; flex-shrink: 0; border-radius: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6); display: flex; align-items: center; justify-content: center;
  font-size: 13px; cursor: pointer; transition: background 0.15s, color 0.15s;
}
.sidebar-collapse-toggle:hover { background: rgba(255,255,255,0.14); color: #fff; }
@media (max-width: 768px) {
  .sidebar-collapse-toggle { display: none; }
}
@media (min-width: 769px) {
  .dashboard-layout { transition: grid-template-columns 0.2s; }
  .dashboard-layout.sidebar-collapsed { grid-template-columns: 76px 1fr; }
  .sidebar.collapsed .sidebar-logo-text,
  .sidebar.collapsed .sidebar-tagline,
  .sidebar.collapsed .wa-status-info,
  .sidebar.collapsed .nav-section-label,
  .sidebar.collapsed .sidebar-user-info,
  .sidebar.collapsed .nav-badge { display: none; }
  .sidebar.collapsed .nav-link { font-size: 0; justify-content: center; padding: 10px 0; gap: 0; }
  .sidebar.collapsed .sidebar-brand { padding: 20px 0; text-align: center; }
  .sidebar.collapsed .sidebar-brand-row { flex-direction: column; gap: 12px; }
  .sidebar.collapsed .sidebar-logo { justify-content: center; margin-bottom: 0; }
  .sidebar.collapsed .wa-status-badge { justify-content: center; padding: 10px; margin: 16px 8px 0; }
  .sidebar.collapsed .sidebar-user { justify-content: center; }
  .sidebar.collapsed .sidebar-footer { padding: 16px 8px; }
}

/* ─── Main Area ──────────────────────────────────────────────────────────── */
.main-area { display: flex; flex-direction: column; min-width: 0; height: 100vh; overflow: hidden; }
.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; min-height: 0; overflow-y: auto; }

/* ─── 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;
  gap: 5px;
  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: calc(100dvh - 24px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.2s;
}
.modal > form {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-lg { max-width: 720px; }
.modal-xl { max-width: 1200px; }
.modal-header {
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  background: var(--surface);
  position: relative;
  z-index: 1;
}
.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;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.modal-footer {
  padding: 16px 28px 24px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.modal .modal-footer {
  flex: 0 0 auto;
  border-top: 1px solid var(--border);
  background: var(--surface);
  position: relative;
  z-index: 1;
}

/* ─── 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 {
  display: flex;
  align-items: center;
  gap: 4px;
  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 ─────────────────────────────────────────────────────────── */
/* Campaigns page */
.campaigns-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, 0.9fr);
  gap: 18px;
  margin-bottom: 20px;
  padding: 24px;
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(37,211,102,0.18), transparent 28%),
    radial-gradient(circle at bottom left, rgba(59,130,246,0.14), transparent 26%),
    linear-gradient(135deg, #ffffff 0%, #f7fbff 52%, #f7fff9 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.campaigns-kicker {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15,23,42,0.05);
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.campaigns-hero-title-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.campaigns-hero-title {
  margin: 0;
  max-width: 760px;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
  color: var(--text);
}
.campaigns-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(15,23,42,0.08);
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-dark);
  white-space: nowrap;
}
.campaigns-hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.campaigns-hero-stat,
.campaigns-hero-note {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,0.08);
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
}
.campaigns-hero-stat-value {
  display: block;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
  margin-bottom: 6px;
}
.campaigns-hero-stat-label {
  font-size: 12px;
  color: var(--muted);
}
.campaigns-hero-aside {
  display: flex;
  align-items: stretch;
}
.campaigns-hero-note {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.campaigns-hero-note-title {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}
.campaigns-actionbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.campaigns-tabs {
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
}
.campaigns-tabs .tab-btn {
  border-bottom: none;
  border-radius: 999px;
}
.campaigns-tabs .tab-btn.active {
  background: var(--primary-light);
  color: var(--primary-dark);
}
.campaigns-stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 20px;
}
.campaigns-stat-card {
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}
.campaigns-table-card {
  border-radius: 24px;
  overflow: hidden;
}
.campaigns-table-card .card-header {
  margin-bottom: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.campaigns-table-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.campaign-rule-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}
.campaign-rule-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  opacity: 0.9;
}
.campaign-rule-card-birthday::before {
  background: linear-gradient(90deg, var(--accent), #fb7185);
}
.campaign-rule-card-anniversary::before {
  background: linear-gradient(90deg, var(--purple), #ec4899);
}
.campaign-rule-card-reactivation::before {
  background: linear-gradient(90deg, var(--info), #22c55e);
}
.campaign-rule-card-festival::before {
  background: linear-gradient(90deg, #f59e0b, #3b82f6);
}

.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; }

/* ─── Inbox ──────────────────────────────────────────────────────────────── */
.inbox-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 16px;
  align-items: stretch;
  height: calc(100vh - 120px);
}
.inbox-sidebar,
.inbox-main {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}
.inbox-sidebar {
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: #ffffff;
}
.inbox-sidebar-header {
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.inbox-sidebar-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.inbox-bell-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  font-size: 14px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.inbox-bell-btn:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}
.inbox-bell-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.inbox-sidebar-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
}
.inbox-sidebar-controls {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}
.inbox-search {
  position: relative;
}
.inbox-search i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 13px;
}
.inbox-search .form-control {
  padding-left: 40px;
  border-radius: 999px;
  border-color: var(--border);
  background: #f0f2f5;
}
.inbox-search .form-control:focus {
  background: #fff;
}
.inbox-filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.inbox-filter-chip {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: 999px;
  transition: all 0.15s;
}
.inbox-filter-chip:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}
.inbox-filter-chip.active {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}
.inbox-conversation-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: none;
  overflow-y: auto;
  padding: 2px 4px 10px;
  flex: 1;
  min-height: 0;
}
.inbox-list-empty {
  padding: 18px 10px;
  text-align: center;
}
.inbox-conversation-item {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
  padding: 12px 40px 12px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  transition: background 0.15s;
  background: transparent;
}
.inbox-conversation-item:hover {
  background: #f5f6f6;
}
.inbox-conversation-item.active {
  background: var(--primary-light);
  border-color: rgba(37,211,102,0.25);
}
.inbox-conversation-item.is-pinned {
  background: rgba(245,158,11,0.06);
}
.inbox-conversation-item.is-pinned.active {
  background: var(--primary-light);
}
.inbox-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #0f766e);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.inbox-conversation-body {
  flex: 1;
  min-width: 0;
}
.inbox-conversation-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}
.inbox-conversation-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.inbox-pin-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--border-dark);
  font-size: 12px;
  opacity: 0;
  transform: rotate(0deg);
  transition: opacity 0.15s, background 0.15s, color 0.15s;
}
.inbox-conversation-item:hover .inbox-pin-btn,
.inbox-conversation-item:focus-within .inbox-pin-btn {
  opacity: 1;
}
.inbox-pin-btn:hover {
  background: rgba(15,23,42,0.06);
  color: var(--text);
}
.inbox-pin-btn.pinned {
  opacity: 1;
  color: #b45309;
  transform: rotate(35deg);
}
.inbox-pin-btn.pinned:hover {
  background: rgba(180,83,9,0.1);
}
.inbox-pin-btn.thread-pin {
  position: static;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  transform: none;
}
.inbox-pin-btn.thread-pin.pinned {
  transform: none;
  color: #b45309;
  border-color: rgba(180,83,9,0.3);
  background: rgba(180,83,9,0.08);
}
.inbox-pin-btn.thread-pin.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.inbox-main {
  padding: 16px;
  background: #f8fafc;
}
.inbox-workspace {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: stretch;
  width: 100%;
  flex: 1;
  min-height: 0;
}
.inbox-center-column {
  min-width: 0;
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.inbox-thread-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #ffffff;
}
.inbox-thread-person {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.inbox-thread-avatar,
.inbox-context-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #16a34a, #0f766e);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}
.inbox-thread-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}
.inbox-assignment-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  flex-wrap: wrap;
}
.inbox-owner-select {
  width: min(280px, 100%);
}
.inbox-reply-collision {
  font-weight: 700;
  color: #b45309;
}
.inbox-reply-collision.active {
  color: #b45309;
}
.inbox-typing-indicator {
  margin-top: 6px;
  min-height: 18px;
}
.inbox-thread-shell {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(37,211,102,0.05), transparent 30%),
    #efeae2;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.inbox-thread-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  flex: 0 0 auto;
}
.inbox-thread-search i {
  color: var(--muted);
  font-size: 13px;
}
.inbox-thread-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--text);
}
.inbox-thread-search-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
.inbox-thread-search-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  transition: background 0.15s, color 0.15s;
}
.inbox-thread-search-nav:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}
mark.search-hit {
  background: #ffe08a;
  color: inherit;
  border-radius: 3px;
  padding: 0 1px;
}
.message-row.search-match-current .message-bubble {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.inbox-thread {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.inbox-thread-empty {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 26px 20px;
  border: 1px dashed #cbd5e1;
  border-radius: 22px;
  background: rgba(255,255,255,0.7);
}
.inbox-thread-empty-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ecfdf5;
  color: #15803d;
  font-size: 22px;
}
.message-row {
  display: flex;
}
.message-row.outbound {
  justify-content: flex-end;
}
.message-bubble {
  max-width: min(75%, 560px);
  background: #ffffff;
  border: 1px solid rgba(15,23,42,0.04);
  border-radius: 12px 12px 12px 3px;
  padding: 8px 12px;
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.06);
}
.message-row.outbound .message-bubble {
  background: #d9fdd3;
  border-radius: 12px 12px 3px 12px;
  border-color: rgba(37,211,102,0.12);
}
.message-text {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 14px;
}
.message-attachment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--info);
}
.message-media-link {
  display: inline-block;
  margin-top: 8px;
}
.message-media-preview {
  display: block;
  width: min(100%, 320px);
  max-height: 320px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #e5e7eb;
  object-fit: cover;
}
.message-audio-preview {
  display: block;
  width: min(100%, 320px);
  margin-top: 8px;
}
.message-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
}
.msg-tick { display: inline-flex; align-items: center; line-height: 1; }
.msg-tick-sent { color: #9CA3AF; }
.msg-tick-delivered { color: #9CA3AF; }
.msg-tick-read { color: #3B82F6; }
.msg-tick-failed { color: #EF4444; }
.reaction-message-row {
  display: flex;
  justify-content: flex-start;
  margin: 2px 0 6px;
  padding: 0 4px;
}
.reaction-message-row.outbound { justify-content: flex-end; }
.reaction-message-bubble {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 13px;
  color: var(--muted);
  max-width: 70%;
}
.reaction-emoji { font-size: 22px; line-height: 1; }
.message-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.reaction-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 2px 7px;
  font-size: 16px;
  cursor: default;
}
.inbox-composer {
  margin-top: 16px;
  flex: 0 0 auto;
  z-index: 4;
  padding-top: 12px;
  background: linear-gradient(180deg, rgba(248,250,252,0) 0%, rgba(248,250,252,0.95) 18%, #f8fafc 100%);
}
.composer-box {
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.composer-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px 0;
}
.composer-status-left,
.composer-status-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.composer-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
}
.composer-status-right {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 700;
}
.composer-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}
.composer-box .inbox-textarea {
  border: none;
  border-radius: 0;
  resize: none;
  min-height: 80px;
  box-shadow: none !important;
  padding: 10px 14px 12px;
}
.composer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-top: 1px solid var(--border);
  background: #f8fafc;
  gap: 8px;
}
.composer-tools {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}
.composer-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1;
  transition: color 0.15s, background 0.15s;
}
.composer-tool-btn:hover,
.composer-tool-btn.active {
  color: var(--primary);
  background: var(--primary-light);
}
.attach-label,
.template-label {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.composer-selection-preview {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.composer-selection-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #dbe5ef;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
}
.composer-selection-chip.subtle {
  color: var(--muted);
  font-weight: 600;
}
.composer-panel {
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}
.emoji-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}
.emoji-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 22px;
  padding: 5px;
  border-radius: 8px;
  line-height: 1;
  transition: background 0.12s;
}
.emoji-btn:hover {
  background: var(--primary-light);
}
.template-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.template-list {
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.template-item {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.template-item:hover,
.template-item.selected {
  background: var(--primary-light);
  border-color: var(--primary);
}
.template-item-name {
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.template-item-body {
  margin-top: 3px;
}
.inbox-textarea {
  resize: vertical;
  min-height: 110px;
}
.inbox-mobile-back { display: none; }
.inbox-context-panel {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 84px;
}
.inbox-context-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 16px;
}
.inbox-context-top {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}
.inbox-context-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.inbox-context-stat {
  padding: 10px 11px;
  border: 1px solid #e5edf5;
  border-radius: 14px;
  background: rgba(255,255,255,0.84);
  display: grid;
  gap: 2px;
}
.inbox-context-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--muted);
}
.inbox-context-stat strong {
  font-size: 13px;
  color: var(--text);
  word-break: break-word;
}
.inbox-context-section-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}
.inbox-context-stack {
  display: grid;
  gap: 10px;
}
.inbox-context-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text);
  padding-bottom: 10px;
  border-bottom: 1px solid #edf2f7;
}
.inbox-context-line:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.impersonation-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #7c3aed;
  color: #fff;
  padding: 10px 18px;
  border-radius: 12px;
  margin-bottom: 18px;
  font-size: 13.5px;
  font-weight: 500;
  flex-wrap: wrap;
}
.impersonation-banner i {
  font-size: 16px;
  opacity: 0.9;
}
.impersonation-return-btn {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  padding: 5px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s;
  margin-left: auto;
}
.impersonation-return-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: zoom-out;
}
.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 1100px);
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  object-fit: contain;
  display: block;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 22px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: background 0.15s;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.28);
}
.inbox-empty {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
}
.inbox-empty-actions {
  margin-top: 10px;
}

/* ─── 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; }
  .inbox-context-panel { position: static; }
  .inbox-conversation-list { max-height: none; }
  .campaigns-hero { grid-template-columns: 1fr; }
  .campaigns-hero-title-row { flex-direction: column; }
}
/* Inbox: full-screen panel switching on tablet/mobile (also toggled by JS at the same width) */
@media (max-width: 1024px) {
  .inbox-layout {
    height: auto;
    min-height: 0;
    display: block;
  }
  .inbox-sidebar {
    width: 100%;
    height: auto;
    min-height: calc(100dvh - 130px);
    overflow-y: auto;
    display: flex;
    padding: 14px;
    border-radius: 0;
  }
  .inbox-main {
    display: none;
    padding: 12px;
    border-radius: 0;
  }
  .inbox-layout.mobile-chat-open .inbox-sidebar { display: none; }
  .inbox-layout.mobile-chat-open .inbox-main {
    display: flex;
    height: calc(100dvh - 130px);
  }
  .inbox-mobile-back { display: inline-flex !important; }
  .inbox-filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .inbox-filter-chip {
    flex: 0 0 auto;
  }
  .inbox-thread {
    flex: 1;
    min-height: 0;
    max-height: none;
    padding: 12px;
  }
  .inbox-composer {
    padding-top: 10px;
  }
  .message-bubble { max-width: 88%; }
  .inbox-thread-header { padding: 12px; flex-wrap: wrap; gap: 10px; }
  .inbox-thread-actions { justify-content: flex-start; flex-wrap: wrap; }
  .inbox-context-grid { grid-template-columns: 1fr; }
  .inbox-sidebar-count { display: none; }
  .composer-status-left .composer-hint:nth-child(2),
  .composer-status-right { display: none; }
}
/* Touch devices have no hover, so pin buttons must stay visible instead of hidden-until-hover */
@media (hover: none) {
  .inbox-pin-btn { opacity: 1; }
}
@media (max-width: 768px) {
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: -280px; width: 280px; max-width: 85vw; transition: left 0.25s; height: 100vh; }
  .sidebar.open { left: 0; box-shadow: 4px 0 24px rgba(0,0,0,0.18); }
  .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; }
  .campaigns-hero { padding: 18px; }
  .campaigns-hero-meta { grid-template-columns: 1fr; }
  .campaigns-actionbar { align-items: stretch; }
  .campaigns-actionbar .btn { width: 100%; }
  .campaigns-tabs { width: 100%; justify-content: space-between; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-h1 { font-size: 2rem; }
  .modal-overlay { padding: 12px; }
  .modal {
    max-width: 100%;
    max-height: calc(100dvh - 24px);
  }
  .modal-header,
  .modal-body,
  .modal-footer {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* ─── WishPilot Marketing Refresh ───────────────────────────────────────── */
body.marketing-body {
  background:
    radial-gradient(circle at top, rgba(37, 211, 102, 0.08), transparent 30%),
    #ffffff;
  color: #1c2b22;
}

body.marketing-body .container {
  width: min(1600px, calc(100% - 40px));
}

.mkt-nav {
  height: 88px;
  padding: 0 28px;
  border-bottom: 1px solid #d4e8db;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
}

.mkt-logo {
  gap: 12px;
}

.mkt-logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.mkt-logo-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: #0d1a12;
}

.mkt-links {
  gap: 8px;
}

.mkt-link {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px;
  color: #5a7060;
}

.mkt-link:hover {
  color: #1c2b22;
  background: #f5faf6;
}

.mkt-cta {
  gap: 10px;
}

.mkt-cta .btn {
  border-radius: 10px;
}

.btn-primary {
  background: #128c51;
}

.btn-primary:hover {
  background: #0a5c34;
}

.hero-section {
  padding: 88px 0 72px;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 56px;
  align-items: center;
}

.hero-copy {
  max-width: 620px;
}

.hero-pill {
  margin-bottom: 22px;
  padding: 6px 14px;
  border: 1px solid rgba(37,211,102,0.22);
  background: #e8faf0;
  color: #128c51;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.hero-h1 {
  margin-bottom: 20px;
  font-size: clamp(2.4rem, 4.8vw, 4.35rem);
  line-height: 1.04;
  letter-spacing: -1.8px;
  color: #0d1a12;
  text-align: left;
}

.hero-h1 span {
  color: #128c51;
}

.hero-sub {
  max-width: 560px;
  margin: 0 0 30px;
  font-size: 17px;
  line-height: 1.75;
  color: #5a7060;
  text-align: left;
}

.hero-cta {
  justify-content: flex-start;
  margin-bottom: 34px;
}

.hero-cta .btn {
  min-height: 50px;
  padding-inline: 24px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: #8aa290;
  font-size: 13px;
}

.hero-trust-avatars {
  display: flex;
  align-items: center;
}

.hero-trust-avatars span {
  width: 30px;
  height: 30px;
  margin-left: -8px;
  border-radius: 50%;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.hero-trust-avatars span:first-child {
  margin-left: 0;
}

.hero-trust-avatars .av1 { background: #10b981; }
.hero-trust-avatars .av2 { background: #3b82f6; }
.hero-trust-avatars .av3 { background: #f59e0b; }
.hero-trust-avatars .av4 { background: #ef4444; }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 540px;
}

.phone-frame {
  width: 290px;
  padding: 12px;
  border-radius: 36px;
  background: #17171f;
  box-shadow: 0 16px 56px rgba(13,26,18,0.16), 0 0 0 8px rgba(255,255,255,0.9);
  position: relative;
  z-index: 2;
}

.phone-notch {
  width: 84px;
  height: 6px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: #2e3140;
}

.phone-screen {
  overflow: hidden;
  border-radius: 26px;
  background: #ece5dd;
}

.wa-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 10px;
  background: #075e54;
}

.wa-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.wa-info { flex: 1; }
.wa-name { color: #fff; font-size: 13px; font-weight: 600; }
.wa-status { color: rgba(255,255,255,0.65); font-size: 11px; }

.wa-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 12px 16px;
}

.wa-bubble {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 0 12px 12px 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.wa-bubble.wa-bubble-sent {
  align-self: flex-end;
  border-radius: 12px 0 12px 12px;
  background: #dcf8c6;
}

.wa-bubble p {
  font-size: 12px;
  line-height: 1.5;
  color: #2f2f2f;
}

.wa-emoji {
  display: block;
  margin-bottom: 4px;
  font-size: 22px;
}

.wa-time {
  margin-top: 4px;
  color: #8b8b8b;
  font-size: 10px;
  text-align: right;
}

.wa-coupon {
  margin-top: 6px;
  padding: 11px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, #128c51, #25d366);
  text-align: center;
}

.wa-coupon .code {
  display: inline-block;
  margin-bottom: 4px;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-family: monospace;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
}

.wa-coupon .label {
  color: rgba(255,255,255,0.85);
  font-size: 10px;
}

.float-card {
  position: absolute;
  z-index: 3;
  padding: 12px 15px;
  border: 1px solid #d4e8db;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(13,26,18,0.1);
}

.float-card-1 { top: 52px; left: -18px; }
.float-card-2 { right: -18px; bottom: 96px; }
.float-card-3 { top: 48px; right: -8px; }

.float-stat {
  color: #0d1a12;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.float-label {
  color: #8aa290;
  font-size: 11px;
}

.float-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 10px;
  background: #e8faf0;
  color: #128c51;
  font-size: 12px;
  font-weight: 700;
}

.tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #25d366;
}

.stats-ribbon {
  padding: 36px 0;
  background: #0d1a12;
}

.stats-grid-dark {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-dark {
  padding: 0 24px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.stat-dark:last-child {
  border-right: none;
}

.stat-dark-value {
  color: #25d366;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-dark-label {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
}

.marketing-section {
  padding: 96px 0;
}

.marketing-section.alt {
  background: #f5faf6;
}

.section-label {
  color: #128c51;
  font-size: 12px;
  margin-bottom: 14px;
  letter-spacing: 1px;
}

.section-h2 {
  color: #0d1a12;
  margin-bottom: 14px;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.15;
}

.section-sub {
  color: #5a7060;
  font-size: 16px;
  max-width: 620px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  margin-top: 56px;
  border-radius: 24px;
  overflow: hidden;
  background: #d4e8db;
}

.step-card {
  padding: 38px 34px;
  background: #fff;
}

.step-number {
  margin-bottom: 24px;
  color: #e8faf0;
  font-size: 56px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -2px;
}

.step-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: #e8faf0;
  color: #128c51;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.step-title {
  margin-bottom: 10px;
  color: #0d1a12;
  font-size: 17px;
  font-weight: 700;
}

.step-desc {
  color: #5a7060;
  font-size: 14px;
  line-height: 1.7;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 56px;
}

.feature-card {
  padding: 30px 28px;
  border: 1px solid #d4e8db;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(13,26,18,0.03);
}

.feature-card:hover {
  border-color: rgba(37,211,102,0.35);
  box-shadow: 0 10px 28px rgba(13,26,18,0.08);
}

.feature-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: #e8faf0;
  color: #128c51;
}

.feature-name {
  margin-bottom: 8px;
  color: #0d1a12;
  font-size: 16px;
}

.feature-desc {
  color: #5a7060;
  font-size: 13.5px;
  line-height: 1.7;
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 44px;
}

.industry-card {
  padding: 24px 18px;
  border: 1px solid #d4e8db;
  border-radius: 18px;
  background: #fff;
  text-align: center;
}

.industry-card:hover {
  border-color: #25d366;
  box-shadow: 0 0 0 3px #e8faf0;
}

.industry-emoji {
  display: block;
  margin-bottom: 10px;
  font-size: 29px;
}

.industry-name {
  color: #1c2b22;
  font-size: 13px;
  font-weight: 700;
}

.pricing-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.pricing-kicker {
  margin-bottom: 18px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
}

.pricing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid #d4e8db;
  border-radius: 16px;
  background: #f8fafc;
  flex-shrink: 0;
}

.toggle-btn {
  border: none;
  background: transparent;
  color: #0f172a;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
}

.toggle-btn.active {
  background: #128c51;
  color: #fff;
}

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

.pricing-card-marketing {
  position: relative;
  border: 1px solid #d4e8db;
  border-radius: 28px;
  background: #fff;
  overflow: hidden;
}

.pricing-card-marketing.featured {
  border-color: #25d366;
  box-shadow: 0 0 0 1px rgba(37,211,102,0.12);
}

.pricing-card-marketing.trial-card {
  border-color: #25d366;
  box-shadow: 0 0 0 1px rgba(37,211,102,0.12);
}

.trial-ribbon {
  padding: 10px 16px;
  background: #25d366;
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-card-inner {
  padding: 28px 28px 30px;
}

.plan-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #e8faf0;
  color: #128c51;
  font-size: 12px;
  font-weight: 700;
}

.plan-price-line {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin: 10px 0 12px;
  flex-wrap: wrap;
}

.plan-price-big {
  color: #0f172a;
  font-size: clamp(2rem, 3vw, 2.55rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
}

.plan-period {
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
}

.plan-desc {
  min-height: 48px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 18px;
}

.plan-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #e5edf5;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.5;
}

.plan-list li:first-child {
  border-top: none;
}

.plan-list li i {
  margin-top: 2px;
  color: #25d366;
  font-size: 14px;
  flex-shrink: 0;
}

.plan-list li.muted-item {
  color: #64748b;
}

.plan-list li.muted-item i {
  color: #64748b;
}

.cta-banner {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  background: #0d1a12;
}

.cta-banner::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -100px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,211,102,0.16), transparent 70%);
}

.cta-banner-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
}

.cta-title {
  color: #fff;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}

.cta-sub {
  color: rgba(255,255,255,0.58);
  font-size: 15px;
  line-height: 1.75;
  max-width: 560px;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.cta-actions .btn-secondary {
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.72);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.15fr);
  margin-top: 52px;
  border: 1px solid #d4e8db;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(13,26,18,0.1);
}

.contact-side {
  padding: 44px 38px;
  background: #1a2e22;
  color: #fff;
}

.contact-side h3 {
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 800;
}

.contact-side p {
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  line-height: 1.75;
}

.contact-stack {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-item-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #25d366;
}

.contact-item-label {
  color: rgba(255,255,255,0.45);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}

.contact-item-value {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.contact-item-copy {
  color: rgba(255,255,255,0.42);
  font-size: 12px;
  line-height: 1.6;
  margin-top: 2px;
}

.contact-form {
  padding: 44px 40px;
  background: #fff;
}

.contact-form h3 {
  color: #0d1a12;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 6px;
}

.contact-form > p {
  color: #5a7060;
  font-size: 14px;
  margin-bottom: 24px;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form .form-group {
  margin-bottom: 16px;
}

.contact-form .form-control {
  border-color: #d4e8db;
}

.contact-form .form-control:focus {
  border-color: #25d366;
  box-shadow: 0 0 0 3px rgba(37,211,102,0.12);
}

.marketing-footer {
  padding: 48px 0 28px;
  background: #0d1a12;
}

.marketing-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
}

.marketing-footer p,
.footer-copy {
  color: rgba(255,255,255,0.38);
  font-size: 13px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}

.footer-links a {
  color: rgba(255,255,255,0.48);
  font-size: 13.5px;
}

.footer-links a:hover {
  color: #fff;
}

.policy-hero {
  padding: 68px 0 56px;
  background: #0d1a12;
}

.policy-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255,255,255,0.42);
  font-size: 13px;
}

.policy-breadcrumb a:hover {
  color: rgba(255,255,255,0.75);
}

.policy-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  padding: 5px 12px;
  border: 1px solid rgba(37,211,102,0.22);
  border-radius: 999px;
  background: rgba(37,211,102,0.1);
  color: #25d366;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.policy-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.9px;
  margin-bottom: 12px;
}

.policy-hero p {
  color: rgba(255,255,255,0.52);
  font-size: 15px;
  line-height: 1.75;
  max-width: 620px;
}

.policy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
}

.policy-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,0.42);
  font-size: 13px;
}

.policy-meta i {
  color: #25d366;
  font-size: 12px;
}

.policy-content {
  padding: 56px 0 84px;
}

.policy-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.policy-aside {
  position: sticky;
  top: 110px;
}

.policy-aside-card {
  padding: 18px 18px 20px;
  border: 1px solid #d4e8db;
  border-radius: 18px;
  background: #f5faf6;
}

.policy-aside-title {
  margin-bottom: 12px;
  color: #8aa290;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.policy-aside-card p {
  margin-bottom: 12px;
  color: #5a7060;
  font-size: 13.5px;
  line-height: 1.7;
}

.policy-aside-card a {
  color: #128c51;
  font-weight: 700;
  font-size: 13px;
}

.policy-sections {
  min-width: 0;
}

.policy-section {
  padding-bottom: 42px;
  margin-bottom: 42px;
  border-bottom: 1px solid #d4e8db;
}

.policy-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.policy-section h2 {
  color: #0d1a12;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
}

.policy-section p,
.policy-section li {
  color: #5a7060;
  font-size: 15px;
  line-height: 1.78;
}

.policy-section p {
  margin-bottom: 12px;
}

.policy-section ul,
.policy-section ol {
  padding-left: 20px;
  margin: 12px 0 14px;
  display: grid;
  gap: 8px;
}

.policy-section strong {
  color: #1c2b22;
}

.policy-section a {
  color: #128c51;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-note {
  padding: 16px 20px;
  border: 1px solid #d4e8db;
  border-left: 3px solid #25d366;
  border-radius: 12px;
  background: #f5faf6;
  color: #5a7060;
  font-size: 14px;
  line-height: 1.7;
}

.policy-note.critical {
  border-color: #fecaca;
  border-left-color: #ef4444;
  background: #fff5f5;
}

@media (max-width: 1100px) {
  .hero-shell,
  .cta-banner-inner,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    align-items: flex-start;
  }

  .features-grid,
  .industries-grid,
  .stats-grid-dark,
  .steps-grid,
  .pricing-grid-marketing {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .policy-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .policy-aside {
    position: static;
  }

  .marketing-footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .mkt-nav {
    height: auto;
    padding: 18px 20px;
    gap: 14px;
    flex-wrap: wrap;
  }

  .mkt-cta {
    display: none;
  }

  .hero-section,
  .marketing-section,
  .cta-banner,
  .policy-hero,
  .policy-content {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .hero-h1,
  .hero-sub {
    text-align: left;
  }

  .hero-visual {
    min-height: 440px;
  }

  .float-card-1 { left: 0; top: 20px; }
  .float-card-2 { right: 0; bottom: 48px; }
  .float-card-3 { right: 0; top: 18px; }

  .steps-grid,
  .features-grid,
  .industries-grid,
  .stats-grid-dark,
  .contact-form-grid,
  .pricing-grid-marketing {
    grid-template-columns: 1fr;
  }

  .pricing-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .stat-dark {
    padding: 20px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .stat-dark:last-child {
    border-bottom: none;
  }
}

/* ─── Mobile Marketing Nav Drawer ────────────────────────────────────────── */
.mkt-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #d4e8db;
  border-radius: 10px;
  background: transparent;
  color: #1c2b22;
  font-size: 17px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}
.mkt-hamburger:hover { background: #f5faf6; }

.mkt-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 26, 18, 0.5);
  backdrop-filter: blur(4px);
  z-index: 200;
}
.mkt-mobile-overlay.open { display: block; }

.mkt-mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(320px, 85vw);
  height: 100dvh;
  background: #fff;
  z-index: 201;
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 20px;
  transition: right 0.25s ease;
  box-shadow: -8px 0 32px rgba(13, 26, 18, 0.12);
  overflow-y: auto;
}
.mkt-mobile-nav.open { right: 0; }

.mkt-mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid #d4e8db;
}

.mkt-mobile-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #d4e8db;
  border-radius: 8px;
  background: transparent;
  color: #5a7060;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.15s;
}
.mkt-mobile-close:hover { background: #f5faf6; }

.mkt-mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.mkt-mobile-link {
  display: block;
  padding: 13px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #1c2b22;
  transition: background 0.15s;
  text-decoration: none;
}
.mkt-mobile-link:hover { background: #f5faf6; }

.mkt-mobile-nav-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid #d4e8db;
}

/* ─── Responsive Improvements ────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Marketing nav hamburger */
  .mkt-hamburger { display: flex; }
  .mkt-links { display: none !important; }
  .mkt-nav { justify-content: space-between; flex-wrap: nowrap; }

  /* Tabs: horizontal scroll instead of wrapping */
  .tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    padding-bottom: 1px;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab-btn { flex-shrink: 0; }

  /* Topbar tweaks */
  .topbar { padding: 0 14px; gap: 10px; }
  .topbar-title { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
  .topbar-subtitle { display: none; }

  /* Hero: hide absolute float cards so they don't cause overflow */
  .float-card { display: none; }
  .hero-visual { min-height: 380px; }

  /* Campaigns hero title size */
  .campaigns-hero-title { font-size: 20px; }
  .campaigns-hero-badge { display: none; }

  /* Search bar: stack on mobile */
  .search-bar { flex-direction: column; align-items: stretch; }
  .search-input-wrap { min-width: 0; }

  /* Billing plan cards: reduce padding */
  .plan-card { padding: 20px; }

  /* Table: ensure horizontal scroll works on iOS */
  .table-wrapper { -webkit-overflow-scrolling: touch; }

  /* Card: reduce padding */
  .card { padding: 18px; }

  /* Settings: compact tab buttons */
  .tabs .tab-btn { padding: 8px 12px; font-size: 12.5px; }

  /* Settings: prevent long code/URL inside card subtitle from causing overflow */
  .card-subtitle code { word-break: break-all; }

  /* Settings: API reference pre blocks contained within card */
  .card pre { max-width: 100%; }
}

@media (max-width: 480px) {
  /* Page content: tighter padding */
  .page-content { padding: 12px; }

  /* Cards: tighter */
  .card { padding: 14px; }
  .stat-card { padding: 12px 14px; }
  .stat-value { font-size: 20px; }

  /* Topbar: hide calendar shortcut to save space */
  .topbar-right > a.topbar-btn:first-child { display: none; }
  .topbar-title { max-width: 130px; }

  /* Hero CTA: stack buttons */
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; width: 100%; }

  /* Marketing nav padding */
  .mkt-nav { padding: 14px 16px; }

  /* Inbox: reduce panel padding */
  .inbox-sidebar,
  .inbox-main { padding: 10px; }

  /* Modals: full screen on very small phones */
  .modal { border-radius: var(--radius-lg); }
  .modal-header { padding: 16px; }
  .modal-body { padding: 14px 16px; }
  .modal-footer { padding: 10px 16px 16px; }

  /* Campaign hero meta: 1 col already, reduce gap */
  .campaigns-hero { padding: 14px; }

  /* Auth card: reduce padding */
  .auth-card { padding: 28px 20px; }

  /* Settings: extra compact tabs on very small phones */
  .tabs .tab-btn { padding: 7px 10px; font-size: 12px; }
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* ─── Feature Showcase Sections ─────────────────────────────────────────── */
/* ═══════════════════════════════════════════════════════════════════════════ */

.feature-showcase {
  padding: 96px 0;
  background: #fff;
}
.feature-showcase.feature-showcase-alt {
  background: #f6faf7;
}
.feature-showcase-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  min-width: 0;
}
/* DOM order already handles left/right swap for reversed sections */
.feature-showcase-inner.feature-showcase-inner-reverse {
  /* intentionally empty */
}

.feature-showcase-copy { min-width: 0; }
.feature-showcase-visual {
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.feature-showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 16px;
}
.birthday-badge { background: #fce7f3; color: #be185d; }
.anniversary-badge { background: #ede9fe; color: #6d28d9; }
.winback-badge { background: #fff7ed; color: #c2410c; }
.festival-badge { background: #fef9c3; color: #92400e; }
.calling-badge { background: #ecfdf5; color: #065f46; }
.chatbot-badge { background: #e0f2fe; color: #075985; }
.analytics-badge { background: #eff6ff; color: #1d4ed8; }
.api-badge { background: #f0fdf4; color: #166534; }

.feature-showcase-h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 14px;
  color: #0d1a12;
}
.feature-showcase-sub {
  font-size: 1rem;
  color: #5a7060;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 480px;
}
.feature-bullets {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: #1c2b22;
  line-height: 1.5;
}
.feature-bullets li i {
  color: #128c51;
  font-size: 13px;
  margin-top: 3px;
  flex-shrink: 0;
}

/* ─── Showcase Phone Wrap ──────────────────────────────────────────────────── */
.showcase-phone-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: linear-gradient(150deg, #f0fdf4 0%, #ecfdf5 60%, #f0f9ff 100%);
  border-radius: 32px;
  padding: 40px 32px 28px;
  border: 1.5px solid #bbf7d0;
  box-shadow: 0 16px 48px rgba(37,211,102,0.12), 0 4px 16px rgba(0,0,0,0.06);
  width: 100%;
  max-width: 380px;
}

/* Slightly enlarge phone inside showcase */
.showcase-phone-wrap .phone-frame {
  width: 300px;
}
.phone-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.phone-badge-green { background: #dcfce7; color: #166534; }
.phone-badge-purple { background: #ede9fe; color: #6d28d9; }
.phone-badge-orange { background: #fff7ed; color: #c2410c; }
.phone-badge-amber { background: #fef9c3; color: #92400e; }
.phone-badge-blue { background: #e0f2fe; color: #075985; }

/* ─── WhatsApp UI Elements ─────────────────────────────────────────────────── */
.wa-date-chip {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  background: rgba(0,0,0,0.06);
  padding: 3px 12px;
  border-radius: 99px;
  margin: 4px auto 8px;
  width: fit-content;
}
.wa-btn-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 8px;
}
.wa-btn-option {
  padding: 7px 12px;
  border: 1.5px solid #25d366;
  border-radius: 8px;
  color: #128c7e;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}

/* ─── AI Calling Visual ────────────────────────────────────────────────────── */
.calling-visual-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: linear-gradient(150deg, #f0fdf4 0%, #ecfdf5 60%, #f0f9ff 100%);
  border-radius: 32px;
  padding: 40px 32px 32px;
  border: 1.5px solid #bbf7d0;
  box-shadow: 0 16px 48px rgba(37,211,102,0.12), 0 4px 16px rgba(0,0,0,0.06);
  width: 100%;
  max-width: 380px;
}
.calling-card {
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
  border-radius: 28px;
  padding: 40px 36px;
  width: 280px;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
  color: #fff;
}
.calling-avatar-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(37,211,102,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  animation: ringPulse 2s ease-in-out infinite;
}
.calling-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}
.calling-name { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.calling-label { font-size: 12px; color: rgba(255,255,255,0.5); margin-bottom: 12px; }
.calling-status { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: #25d366; margin-bottom: 20px; }
.calling-dot { width: 8px; height: 8px; border-radius: 50%; background: #25d366; animation: blink 1.2s ease-in-out infinite; }
.calling-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 32px;
  margin-bottom: 24px;
}
.calling-wave span {
  display: block;
  width: 4px;
  border-radius: 99px;
  background: rgba(37,211,102,0.7);
  animation: waveAnim 1.2s ease-in-out infinite;
}
.calling-wave span:nth-child(1) { height: 12px; animation-delay: 0s; }
.calling-wave span:nth-child(2) { height: 24px; animation-delay: 0.1s; }
.calling-wave span:nth-child(3) { height: 32px; animation-delay: 0.2s; }
.calling-wave span:nth-child(4) { height: 20px; animation-delay: 0.3s; }
.calling-wave span:nth-child(5) { height: 28px; animation-delay: 0.2s; }
.calling-wave span:nth-child(6) { height: 22px; animation-delay: 0.1s; }
.calling-wave span:nth-child(7) { height: 14px; animation-delay: 0s; }
.calling-actions { display: flex; align-items: center; justify-content: center; gap: 20px; }
.call-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
}
.call-btn-end { background: #ef4444; color: #fff; }
.call-btn-speaker { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); }
.calling-badge-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.calling-info-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 99px;
  background: #f0fdf4;
  color: #065f46;
  font-size: 12px;
  font-weight: 600;
}

@keyframes ringPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.3); }
  50% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
@keyframes waveAnim {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.4); }
}

/* ─── Analytics Visual ─────────────────────────────────────────────────────── */
.analytics-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.analytics-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  width: 100%;
  max-width: 460px;
}
.analytics-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.analytics-title { font-size: 14px; font-weight: 700; color: var(--text); }
.analytics-badge-sent { font-size: 12px; font-weight: 600; color: var(--muted); background: #f8fafc; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--border); }
.analytics-stats-row { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.analytics-stat { display: flex; flex-direction: column; gap: 4px; }
.analytics-stat-value { font-size: 22px; font-weight: 800; line-height: 1; }
.analytics-stat-label { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.analytics-bar { height: 6px; background: #f1f5f9; border-radius: 99px; overflow: hidden; margin-top: 4px; }
.analytics-bar-fill { height: 100%; border-radius: 99px; }
.analytics-revenue-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f0fdf4;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
}
.analytics-revenue-label { font-size: 12px; color: #065f46; font-weight: 500; }
.analytics-revenue-value { font-size: 18px; font-weight: 800; color: #166534; }
.analytics-chart-labels { display: flex; justify-content: space-between; margin-top: 4px; }
.analytics-chart-labels span { font-size: 10px; color: var(--muted); }

/* ─── API Trust Section ────────────────────────────────────────────────────── */
.api-trust-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.api-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.api-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 99px;
  border: 1.5px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
  font-size: 12.5px;
  font-weight: 600;
}
.api-trust-features { display: flex; flex-direction: column; gap: 20px; }
.api-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.api-feature-item > i {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f0fdf4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #166534;
  flex-shrink: 0;
}
.api-feature-item > div > strong { font-size: 14.5px; font-weight: 700; display: block; margin-bottom: 4px; }
.api-feature-item > div > p { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin: 0; }

/* ─── Industries Grid (Enhanced) ──────────────────────────────────────────── */
.industry-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 22px 20px;
  text-align: center;
  transition: all 0.2s;
  cursor: default;
}
.industry-card:hover { border-color: #86efac; box-shadow: 0 4px 20px rgba(37,211,102,0.12); transform: translateY(-2px); }
.industry-emoji { font-size: 28px; margin-bottom: 8px; display: block; }
.industry-name { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.industry-desc { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ─── Testimonials ─────────────────────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.testimonial-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testimonial-stars { color: #f59e0b; font-size: 14px; display: flex; gap: 2px; }
.testimonial-text { font-size: 14px; color: #1c2b22; line-height: 1.7; flex: 1; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.testimonial-name { font-size: 14px; font-weight: 700; color: var(--text); }
.testimonial-biz { font-size: 12px; color: var(--muted); margin-top: 1px; }

/* ─── FAQ ──────────────────────────────────────────────────────────────────── */
.faq-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  align-items: start;
}
.faq-sidebar { position: sticky; top: 100px; }
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: color 0.15s;
}
.faq-question:hover { color: var(--primary-dark); }
.faq-question.active { color: var(--primary-dark); }
.faq-chevron { font-size: 13px; color: var(--muted); flex-shrink: 0; margin-top: 3px; transition: transform 0.25s; }
.faq-question.active .faq-chevron { transform: rotate(180deg); color: var(--primary-dark); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.2s;
}
.faq-answer.open {
  max-height: 400px;
  padding-bottom: 20px;
}
.faq-answer p { font-size: 14.5px; color: var(--muted); line-height: 1.75; margin: 0; }

/* ─── Pricing Yearly Badge ─────────────────────────────────────────────────── */
.yearly-save {
  display: inline-flex;
  padding: 1px 7px;
  background: #dcfce7;
  color: #166534;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* ─── Blog Public Pages ──────────────────────────────────────────────────── */
/* ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Blog Hero ──────────────────────────────────────────────────────────── */
.blog-hero-section {
  padding: 72px 0 56px;
  text-align: center;
  background: radial-gradient(ellipse at top, rgba(37,211,102,0.08), transparent 60%), #fff;
}
.blog-hero-content { max-width: 680px; margin: 0 auto; }
.blog-hero-h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.5px; margin-bottom: 16px; color: #0d1a12; }
.blog-hero-sub { font-size: 1rem; color: #5a7060; line-height: 1.7; margin-bottom: 28px; }
.blog-hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── Blog Category Filter ──────────────────────────────────────────────── */
.blog-filter-section { padding: 0 0 32px; background: #fff; border-bottom: 1px solid var(--border); }
.blog-category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 20px;
}
.blog-cat-tab {
  padding: 7px 16px;
  border-radius: 99px;
  font-size: 13.5px;
  font-weight: 600;
  color: #5a7060;
  border: 1.5px solid transparent;
  background: #f5faf6;
  transition: all 0.15s;
}
.blog-cat-tab:hover { color: #128c51; border-color: #86efac; }
.blog-cat-tab.active { background: #128c51; color: #fff; border-color: #128c51; }

/* ─── Blog Grid Section ─────────────────────────────────────────────────── */
.blog-grid-section { padding: 48px 0 80px; background: #fff; }

/* ─── Blog Category Badge (inline) ─────────────────────────────────────── */
.blog-cat-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 99px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 11.5px;
  font-weight: 700;
}
.blog-reading-time {
  font-size: 12px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ─── Featured Post ─────────────────────────────────────────────────────── */
.blog-featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 48px;
  background: #f6faf7;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.blog-featured-card:hover { border-color: #86efac; box-shadow: 0 8px 32px rgba(37,211,102,0.1); }
.blog-featured-image { height: 360px; overflow: hidden; }
.blog-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-cover-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #86efac;
}
.blog-cover-placeholder-lg { font-size: 80px; }
.blog-featured-body { padding: 40px 40px 40px 0; }
.blog-featured-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.blog-featured-title { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.3px; line-height: 1.2; margin-bottom: 12px; color: #0d1a12; }
.blog-featured-excerpt { font-size: 14.5px; color: #5a7060; line-height: 1.7; margin-bottom: 24px; }
.blog-featured-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.blog-author-row { display: flex; align-items: center; gap: 10px; }
.blog-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.blog-author-avatar-sm { width: 28px; height: 28px; font-size: 11px; }
.blog-author-avatar-md { width: 44px; height: 44px; font-size: 16px; }
.blog-author-name { font-size: 13px; font-weight: 600; color: var(--text); }
.blog-post-date { font-size: 12px; color: var(--muted); }
.blog-read-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: #128c51;
  white-space: nowrap;
}

/* ─── Blog Posts Grid ────────────────────────────────────────────────────── */
.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-post-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.blog-post-card:hover { border-color: #86efac; box-shadow: 0 8px 24px rgba(37,211,102,0.1); transform: translateY(-3px); }
.blog-post-image { height: 180px; overflow: hidden; flex-shrink: 0; }
.blog-post-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.blog-post-card:hover .blog-post-image img { transform: scale(1.04); }
.blog-post-body { padding: 20px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.blog-post-meta { display: flex; align-items: center; gap: 8px; }
.blog-post-title { font-size: 16px; font-weight: 700; line-height: 1.35; color: #0d1a12; flex: 1; }
.blog-post-excerpt { font-size: 13px; color: var(--muted); line-height: 1.6; }
.blog-post-footer { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }

/* ─── Blog Empty State ────────────────────────────────────────────────────── */
.blog-empty {
  text-align: center;
  padding: 80px 24px;
}
.blog-empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
  color: var(--primary-dark);
}
.blog-empty h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.blog-empty p { color: var(--muted); font-size: 14px; max-width: 380px; margin: 0 auto 20px; }

/* ═══════════════════════════════════════════════════════════════════════════ */
/* ─── Blog Article (Single Post) ────────────────────────────────────────── */
/* ═══════════════════════════════════════════════════════════════════════════ */

.blog-article-page { background: #fff; }
.blog-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 20px;
  transition: color 0.15s;
}
.blog-back-link:hover { color: var(--primary-dark); }
.blog-article-header { padding: 56px 0 40px; background: #f6faf7; }
.blog-article-header-inner { max-width: 760px; }
.blog-article-meta-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.blog-article-title { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; letter-spacing: -0.5px; line-height: 1.15; margin-bottom: 16px; color: #0d1a12; }
.blog-article-excerpt { font-size: 1.05rem; color: #5a7060; line-height: 1.7; margin-bottom: 24px; }
.blog-article-author-row { display: flex; align-items: center; gap: 12px; }
.blog-article-cover { padding: 0 0 48px; background: #f6faf7; }
.blog-article-cover img { width: 100%; max-height: 440px; object-fit: cover; border-radius: 20px; border: 1px solid var(--border); }
.blog-article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; padding-top: 48px; padding-bottom: 80px; }
.blog-article-content { max-width: 100%; }
.blog-article-content h1 { font-size: 1.9rem; font-weight: 800; margin: 32px 0 16px; color: #0d1a12; }
.blog-article-content h2 { font-size: 1.5rem; font-weight: 700; margin: 28px 0 14px; color: #0d1a12; }
.blog-article-content h3 { font-size: 1.2rem; font-weight: 700; margin: 24px 0 12px; color: #0d1a12; }
.blog-article-content p { font-size: 16px; line-height: 1.8; color: #2d3e30; margin: 0 0 18px; }
.blog-article-content ul, .blog-article-content ol { padding-left: 24px; margin: 14px 0 18px; }
.blog-article-content li { font-size: 16px; line-height: 1.7; color: #2d3e30; margin-bottom: 8px; }
.blog-article-content blockquote { border-left: 4px solid #25d366; background: #f0fdf4; padding: 14px 20px; border-radius: 0 12px 12px 0; margin: 20px 0; font-style: italic; color: #2d3e30; }
.blog-article-content img { max-width: 100%; border-radius: 12px; margin: 16px 0; border: 1px solid var(--border); }
.blog-article-content pre { background: #0f172a; color: #e2e8f0; border-radius: 12px; padding: 18px 20px; font-size: 13px; overflow-x: auto; margin: 16px 0; }
.blog-article-content code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 13.5px; color: #0f172a; }
.blog-article-content pre code { background: none; color: inherit; padding: 0; }
.blog-article-content strong { font-weight: 700; color: #0d1a12; }
.blog-article-content a { color: #128c51; text-decoration: underline; font-weight: 600; }

/* ─── Blog Sidebar ─────────────────────────────────────────────────────────── */
.blog-article-sidebar { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px; }
.blog-sidebar-widget { background: #fff; border: 1.5px solid var(--border); border-radius: 16px; padding: 20px; }
.blog-sidebar-widget-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--muted); margin-bottom: 12px; }
.blog-tags-list { display: flex; flex-wrap: wrap; gap: 7px; }
.blog-tag {
  padding: 4px 12px;
  border-radius: 99px;
  background: #f5faf6;
  border: 1.5px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: #5a7060;
  transition: all 0.15s;
}
.blog-tag:hover { border-color: #86efac; color: #128c51; }
.blog-sidebar-cta {
  background: linear-gradient(160deg, #0f172a, #1e293b);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
}
.blog-sidebar-cta-icon { font-size: 28px; color: #25d366; margin-bottom: 12px; }
.blog-sidebar-cta-title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 8px; line-height: 1.35; }
.blog-sidebar-cta-sub { font-size: 12.5px; color: rgba(255,255,255,0.55); line-height: 1.6; margin-bottom: 16px; }
.blog-share-btns { display: flex; flex-direction: column; gap: 8px; }
.blog-share-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  transition: opacity 0.15s;
}
.blog-share-btn:hover { opacity: 0.85; }
.blog-share-wa { background: #25d366; color: #fff; }
.blog-share-tw { background: #0f172a; color: #fff; }
.blog-share-li { background: #0a66c2; color: #fff; }

/* ─── Related Posts ─────────────────────────────────────────────────────────── */
.blog-related-section { padding: 64px 0; background: #f6faf7; border-top: 1px solid var(--border); }
.blog-related-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; gap: 12px; }
.blog-related-header h2 { font-size: 1.4rem; font-weight: 800; color: #0d1a12; }
.blog-related-header h2 span { color: #128c51; }
.blog-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ═══════════════════════════════════════════════════════════════════════════ */
/* ─── Responsive: Feature Showcase + Blog ────────────────────────────────── */
/* ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .feature-showcase-inner { gap: 40px; }
  .showcase-phone-wrap .phone-frame { width: 280px; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-posts-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-related-grid { grid-template-columns: repeat(2, 1fr); }
  .api-trust-section { grid-template-columns: 1fr; gap: 32px; }
  .faq-layout { grid-template-columns: 1fr; gap: 28px; }
  .faq-sidebar { position: static; }
  .blog-article-layout { grid-template-columns: 1fr; }
  .blog-article-sidebar { position: static; }
}

@media (max-width: 768px) {
  .feature-showcase { padding: 56px 0; }
  .feature-showcase-inner { grid-template-columns: 1fr; gap: 32px; }
  .showcase-phone-wrap { padding: 28px 20px 20px; max-width: 320px; }
  .showcase-phone-wrap .phone-frame { width: 280px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .blog-posts-grid { grid-template-columns: 1fr; }
  .blog-related-grid { grid-template-columns: 1fr; }
  .blog-featured-card { grid-template-columns: 1fr; }
  .blog-featured-image { height: 220px; }
  .blog-featured-body { padding: 24px; }
  .blog-featured-footer { flex-direction: column; align-items: flex-start; }
  .calling-card { width: 240px; padding: 28px 24px; }
  .blog-article-header { padding: 40px 0 28px; }
  .blog-article-title { font-size: 1.7rem; }
}

@media (max-width: 480px) {
  .feature-showcase-h2 { font-size: 1.5rem; }
  .blog-hero-h1 { font-size: 1.7rem; }
  .blog-category-tabs { gap: 6px; }
  .blog-cat-tab { font-size: 12px; padding: 6px 12px; }
  .calling-visual-wrap { gap: 12px; }
}

/* ═══ NAV SCROLL STATE ══════════════════════════════════════════════════════ */
.mkt-nav {
  transition: height 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.mkt-nav.scrolled {
  height: 68px;
  box-shadow: 0 4px 24px rgba(13,26,18,0.08);
  background: rgba(255,255,255,0.98);
}

/* ═══ FLOATING WHATSAPP BUTTON ══════════════════════════════════════════════ */
.wa-float-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
  text-decoration: none;
}

.wa-float-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  animation: waPulse 2.4s ease-out infinite;
  z-index: -1;
}

@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.9); opacity: 0; }
}

.wa-float-tooltip {
  position: absolute;
  right: 70px;
  white-space: nowrap;
  background: #0d1a12;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.wa-float-btn:hover .wa-float-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 768px) {
  .wa-float-btn { right: 16px; bottom: 16px; width: 52px; height: 52px; font-size: 24px; }
  .wa-float-tooltip { display: none; }
}

/* ═══ TRUST STRIP ═══════════════════════════════════════════════════════════ */
.trust-strip {
  padding: 18px 0;
  background: #f5faf6;
  border-bottom: 1px solid #d4e8db;
}

.trust-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
}

.trust-strip-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #3d5544;
  white-space: nowrap;
}

.trust-strip-item i {
  color: #128c51;
  font-size: 14px;
}

@media (max-width: 768px) {
  .trust-strip-inner { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
}

/* ═══ PLATFORM OVERVIEW TABS ════════════════════════════════════════════════ */
.platform-tabs-shell {
  margin-top: 48px;
}

.platform-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 32px;
}

.platform-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  border: 1.5px solid #d4e8db;
  background: #fff;
  color: #5a7060;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.platform-tab i {
  font-size: 16px;
}

.platform-tab:hover {
  border-color: rgba(37,211,102,0.4);
  color: #128c51;
}

.platform-tab.active {
  border-color: #128c51;
  background: #128c51;
  color: #fff;
}

.platform-tab-panels {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #d4e8db;
  box-shadow: 0 20px 48px rgba(13,26,18,0.08);
}

.platform-tab-panel {
  display: none;
}

.platform-tab-panel.active {
  display: block;
  animation: platformFade 0.4s ease;
}

.platform-tab-panel img {
  display: block;
  width: 100%;
  height: auto;
}

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

@media (max-width: 768px) {
  .platform-tab { padding: 11px 16px; font-size: 13px; }
  .platform-tab span { display: none; }
}

/* ═══ COMPARISON TABLE ══════════════════════════════════════════════════════ */
.compare-table-wrap {
  margin-top: 48px;
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid #d4e8db;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  background: #fff;
}

.compare-table th,
.compare-table td {
  padding: 16px 22px;
  text-align: left;
  font-size: 14.5px;
  border-bottom: 1px solid #e8f1ea;
}

.compare-table thead th {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #5a7060;
  background: #f5faf6;
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table td:first-child {
  font-weight: 700;
  color: #0d1a12;
}

.compare-col-manual {
  color: #94a39a;
}

.compare-col-manual i {
  color: #dc2626;
  margin-right: 8px;
}

.compare-col-wp {
  color: #0d1a12;
  font-weight: 600;
  background: rgba(37,211,102,0.06);
}

.compare-col-wp i {
  color: #128c51;
  margin-right: 8px;
}

/* ═══ SCROLL REVEAL ══════════════════════════════════════════════════════════ */
.reveal.reveal-init {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.reveal-init.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal.reveal-init {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .wa-float-btn::before { animation: none; }
}
