/* ============================================================================
   WhatsApp Gateway - Premium SaaS Design System
   ============================================================================ */
:root {
  /* Brand */
  --primary: #075e54;
  --primary-dark: #05453d;
  --primary-light: #128c7e;
  --primary-soft: #e6f2f0;
  --accent: #25d366;
  --accent-dark: #1db954;
  --accent-soft: #e6f9ee;

  /* Neutrals */
  --bg: #f5f7f6;
  --card: #ffffff;
  --text: #17211d;
  --text-2: #5b6670;
  --text-3: #8a949c;
  --border: #e6e9e8;
  --border-strong: #d3d9d7;

  /* Status */
  --success: #16a34a;
  --success-soft: #e7f7ee;
  --danger: #dc2626;
  --danger-soft: #fdecec;
  --warning: #d97706;
  --warning-soft: #fdf3e3;
  --info: #2563eb;
  --info-soft: #e8effd;

  /* Shape */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  /* Shadow */
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 6px 18px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 16px 40px rgba(16, 24, 40, 0.12);

  /* Font */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ============================================================================
   Layout
   ============================================================================ */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: 260px;
  background: #0a1512;
  color: #cbd5d0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: transform 0.25s ease;
}
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 22px 20px 18px; }
.brand-logo {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}
.brand-name { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: -0.01em; }
.brand-sub { font-size: 11px; color: #7d8a84; margin-top: 1px; }

.sidebar-nav { flex: 1; padding: 8px 12px 16px; overflow-y: auto; }
.nav-group-label {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: #5f6d66; padding: 14px 12px 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; margin: 2px 0;
  border-radius: 10px; color: #aab6b0;
  font-size: 13.5px; font-weight: 500;
  transition: background 0.18s ease, color 0.18s ease;
}
.nav-item svg { flex-shrink: 0; opacity: 0.85; }
.nav-item:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.nav-item.active { background: rgba(37, 211, 102, 0.14); color: #fff; font-weight: 600; }
.nav-item.active svg { color: var(--accent); opacity: 1; }

.sidebar-footer { padding: 14px 12px 18px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.nav-item.logout { color: #f0a0a0; }
.nav-item.logout:hover { background: rgba(220, 38, 38, 0.12); color: #ffb4b4; }

.main { flex: 1; margin-left: 260px; padding: 28px 32px 48px; min-width: 0; transition: margin-left 0.25s ease; }
.page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 26px;
}
.page-title { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.page-desc { font-size: 13.5px; color: var(--text-2); margin-top: 4px; }
.page-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.breadcrumb { font-size: 12px; color: var(--text-3); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.breadcrumb a:hover { color: var(--primary-light); }

.mobile-topbar {
  display: none; align-items: center; gap: 12px;
  padding: 14px 16px; background: var(--card); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 90;
}
.mobile-topbar .menu-btn { background: none; border: none; color: var(--text); padding: 6px; display: flex; align-items: center; justify-content: center; }
.sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.4); z-index: 99; opacity: 0; transition: opacity 0.25s ease; }

/* ============================================================================
   Cards
   ============================================================================ */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 22px; margin-bottom: 22px; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.card-title { font-size: 15px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 8px; }
.card-title svg { color: var(--primary-light); }

/* ============================================================================
   Stat cards
   ============================================================================ */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 18px; display: flex; gap: 14px; align-items: flex-start;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-icon { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-icon.green { background: var(--accent-soft); color: var(--success); }
.stat-icon.blue { background: var(--info-soft); color: var(--info); }
.stat-icon.amber { background: var(--warning-soft); color: var(--warning); }
.stat-icon.red { background: var(--danger-soft); color: var(--danger); }
.stat-icon.teal { background: var(--primary-soft); color: var(--primary-light); }
.stat-icon.violet { background: #f0ebfd; color: #7c3aed; }
.stat-label { font-size: 12px; color: var(--text-2); font-weight: 500; }
.stat-value { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); line-height: 1.2; margin-top: 2px; }
.stat-hint { font-size: 11.5px; color: var(--text-3); margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.stat-hint .dot { width: 6px; height: 6px; border-radius: 50%; }
.dot.green { background: var(--success); }
.dot.red { background: var(--danger); }
.dot.amber { background: var(--warning); }

/* ============================================================================
   Buttons
   ============================================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; border: 1px solid transparent;
  transition: all 0.18s ease; white-space: nowrap; line-height: 1.2;
}
.btn svg { flex-shrink: 0; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover:not(:disabled) { background: var(--accent-dark); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #b91c1c; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-warning:hover:not(:disabled) { background: #b45309; }
.btn-ghost { background: transparent; color: var(--text-2); border: 1px solid var(--border-strong); }
.btn-ghost:hover:not(:disabled) { background: var(--bg); color: var(--text); }
.btn-outline { background: #fff; color: var(--primary); border: 1px solid var(--primary-light); }
.btn-outline:hover:not(:disabled) { background: var(--primary-soft); }
.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 8px; }
.btn-icon { padding: 8px; width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; }
.btn-icon.btn-sm { width: 30px; height: 30px; padding: 6px; }

/* ============================================================================
   Badges
   ============================================================================ */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; }
.badge svg { width: 12px; height: 12px; }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-teal { background: var(--primary-soft); color: var(--primary-light); }
.badge-muted { background: #eef1f0; color: var(--text-2); }

/* ============================================================================
   Tables
   ============================================================================ */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); }
table.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table thead th {
  text-align: left; padding: 11px 14px; background: #f7f9f8; color: var(--text-2);
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.data-table tbody td { padding: 13px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tbody tr { transition: background 0.15s ease; }
.data-table tbody tr:hover { background: #f8faf9; }
.data-table tbody tr:last-child td { border-bottom: none; }
.cell-actions { display: flex; gap: 6px; align-items: center; }

/* ============================================================================
   Forms
   ============================================================================ */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 10px 13px; border: 1px solid var(--border-strong); border-radius: 10px;
  font-size: 14px; color: var(--text); background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease; outline: none;
}
.form-control:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(18, 140, 126, 0.12); }
.form-control::placeholder { color: var(--text-3); }
textarea.form-control { resize: vertical; min-height: 110px; }
.form-hint { font-size: 11.5px; color: var(--text-3); margin-top: 5px; }
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a949c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}

/* ============================================================================
   Modal
   ============================================================================ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(10, 15, 13, 0.5);
  display: none; align-items: center; justify-content: center;
  z-index: 1000; padding: 20px; backdrop-filter: blur(2px);
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  width: 480px; max-width: 100%; max-height: 90vh; overflow-y: auto;
  animation: modalIn 0.22s ease;
}
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal-title { font-size: 16px; font-weight: 600; }
.modal-close { background: none; border: none; color: var(--text-3); padding: 6px; border-radius: 8px; display: flex; align-items: center; }
.modal-close:hover { background: var(--bg); color: var(--text); }
.modal-body { padding: 22px; }
.modal-footer { padding: 16px 22px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ============================================================================
   Toast
   ============================================================================ */
.toast-wrap { position: fixed; top: 20px; right: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-md);
  padding: 12px 16px; min-width: 260px; max-width: 360px; font-size: 13px; font-weight: 500; color: var(--text);
  animation: toastIn 0.25s ease;
}
.toast svg { flex-shrink: 0; }
.toast.success { background: var(--success-soft); color: var(--success); }
.toast.error { background: var(--danger-soft); color: var(--danger); }
.toast.warning { background: var(--warning-soft); color: var(--warning); }
.toast.info { background: var(--info-soft); color: var(--info); }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

/* ============================================================================
   Empty state
   ============================================================================ */
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-3); }
.empty-state .empty-icon {
  width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 16px;
  background: var(--bg); display: flex; align-items: center; justify-content: center; color: var(--text-3);
}
.empty-state h4 { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.empty-state p { font-size: 13px; max-width: 340px; margin: 0 auto; }

/* ============================================================================
   Misc
   ============================================================================ */
.plan-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  color: #fff; border-radius: var(--radius); padding: 22px 26px; margin-bottom: 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  box-shadow: var(--shadow-md);
}
.plan-banner .amount { font-size: 28px; font-weight: 700; }
.plan-banner .label { font-size: 13px; opacity: 0.85; }

.profile-item { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.profile-item:last-child { border-bottom: none; }
.profile-item .k { color: var(--text-2); }
.profile-item .v { font-weight: 600; }
.info-blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 14px; }
.info-block { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; }
.info-block .ib-label { font-size: 11px; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.info-block .ib-value { font-size: 17px; font-weight: 700; margin-top: 4px; color: var(--text); }

.code-block {
  background: #0b1210; color: #d6e2dd; border-radius: 12px; padding: 16px;
  font-family: 'SF Mono', ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px;
  line-height: 1.7; overflow-x: auto; margin: 10px 0; position: relative;
}
.code-block .comment { color: #7f9a8f; }
.code-block .method { color: #7ee3c0; }
.code-block .key { color: #6fc3a8; }
.code-block .string { color: #e8c98a; }
.code-copy { position: absolute; top: 8px; right: 8px; background: rgba(255, 255, 255, 0.08); border: none; color: #d6e2dd; border-radius: 6px; padding: 4px 8px; font-size: 11px; display: flex; align-items: center; gap: 4px; }
.code-copy:hover { background: rgba(255, 255, 255, 0.18); }

.token-display {
  background: var(--bg); border: 1px dashed var(--border-strong); border-radius: 10px;
  padding: 10px 12px; font-family: monospace; font-size: 12.5px; word-break: break-all;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0;
}

/* ============================================================================
   Utilities
   ============================================================================ */
.spin { animation: spin 0.9s linear infinite; }
.cell-trunc { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================================
   Responsive
   ============================================================================ */
@media (max-width: 1024px) { .main { padding: 24px; } }
@media (max-width: 768px) {
  .mobile-topbar { display: flex; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop.show { display: block; opacity: 1; }
  .main { margin-left: 0; padding: 18px 16px 40px; }
  .page-title { font-size: 20px; }
  .stats-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .modal { width: 100%; }
}

/* ============================================================================
   Notification bell (user panel)
   ============================================================================ */
.notif-wrap { position: relative; display: inline-flex; }
.notif-btn {
  position: relative;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); background: var(--card);
  border-radius: 11px; color: var(--text-2); cursor: pointer;
  transition: all 0.18s ease;
}
.notif-btn:hover { color: var(--primary-light); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.notif-badge {
  position: absolute; top: -5px; right: -5px;
  min-width: 18px; height: 18px; padding: 0 4px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--danger); color: #fff; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; border: 2px solid var(--card);
}
.notif-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: 340px; max-width: 90vw;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow-lg, 0 12px 32px rgba(0,0,0,0.12));
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all 0.18s ease; z-index: 100;
}
.notif-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.notif-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  font-weight: 600; font-size: 14px;
}
.notif-readall { background: none; border: none; color: var(--primary-light); font-size: 12px; font-weight: 600; cursor: pointer; }
.notif-readall:hover { text-decoration: underline; }
.notif-list { max-height: 340px; overflow-y: auto; }
.notif-item {
  display: flex; gap: 12px; padding: 12px 16px;
  border-bottom: 1px solid var(--border); cursor: pointer;
  transition: background 0.15s ease;
}
.notif-item:hover { background: var(--bg); }
.notif-item.read { opacity: 0.65; }
.notif-ic {
  width: 32px; height: 32px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px; background: var(--primary-soft); color: var(--primary-light);
}
.notif-body { min-width: 0; }
.notif-title { font-size: 13px; font-weight: 600; color: var(--text); }
.notif-msg { font-size: 12px; color: var(--text-2); margin-top: 2px; line-height: 1.45; }
.notif-time { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.notif-empty {
  padding: 34px 16px; text-align: center; color: var(--text-3); font-size: 13px;
}
.notif-empty svg { color: var(--text-3); opacity: 0.5; margin-bottom: 8px; }

/* ============================================================================
   Plan usage / expiry UI (user dashboard)
   ============================================================================ */
.plan-progress { height: 8px; background: var(--bg); border-radius: 999px; overflow: hidden; margin-top: 10px; }
.plan-progress > div { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--primary-light)); transition: width 0.4s ease; }
.plan-progress.low > div { background: linear-gradient(90deg, var(--warning), var(--warning)); }
.plan-progress.empty > div { background: var(--danger); }
.plan-alert {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 10px; font-size: 13px; font-weight: 500;
  margin-top: 14px;
}
.plan-alert.warning { background: var(--warning-soft); color: var(--warning); }
.plan-alert.danger { background: var(--danger-soft); color: var(--danger); }
.plan-alert.success { background: var(--success-soft); color: var(--success); }

/* ============================================================================
   Tabs / filters (admin fund request management)
   ============================================================================ */
.tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 4px;
  margin-bottom: 18px;
}
.tab-btn {
  padding: 8px 16px; border-radius: 9px; border: none; background: transparent;
  font-size: 13px; font-weight: 500; color: var(--text-2); cursor: pointer;
  transition: all 0.15s ease;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { background: var(--card); color: var(--primary); font-weight: 600; box-shadow: var(--shadow-sm); }
.tab-btn .tab-count { margin-left: 6px; font-size: 11px; background: var(--primary-soft); color: var(--primary-light); padding: 1px 7px; border-radius: 999px; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 16px; }
.filter-bar .form-group { margin-bottom: 0; }
.txn-credit { color: var(--success); font-weight: 600; }
.txn-debit { color: var(--danger); font-weight: 600; }

/* ============================================================================
   Dashboard enhancements (admin + user)
   ============================================================================ */
.dash-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; }
.dash-grid.wide { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .dash-grid, .dash-grid.wide { grid-template-columns: 1fr; } }
.chart-bars { display: flex; align-items: flex-end; gap: 10px; height: 180px; padding-top: 10px; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.chart-bar {
  width: 100%; max-width: 44px; border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, var(--accent), var(--primary-light));
  min-height: 4px; transition: height 0.4s ease;
}
.chart-bar.empty { background: var(--bg); }
.chart-label { font-size: 11px; color: var(--text-3); margin-top: 8px; }
.chart-val { font-size: 11px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.quick-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.quick-action {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border: 1px solid var(--border); border-radius: 13px; background: var(--card);
  color: var(--text); font-weight: 500; font-size: 13.5px; text-decoration: none;
  transition: all 0.18s ease;
}
.quick-action:hover { border-color: var(--primary-light); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.quick-action .qa-icon {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primary-light);
}
.activity-list { display: flex; flex-direction: column; }
.activity-item {
  display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); align-items: flex-start;
}
.activity-item:last-child { border-bottom: none; }
.activity-item .ai-icon {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg); color: var(--text-2);
}
.activity-item .ai-icon.sent { background: var(--success-soft); color: var(--success); }
.activity-item .ai-icon.failed { background: var(--danger-soft); color: var(--danger); }
.activity-item .ai-icon.pending { background: var(--warning-soft); color: var(--warning); }
.ai-body { min-width: 0; flex: 1; }
.ai-title { font-size: 13px; font-weight: 600; color: var(--text); }
.ai-sub { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.ai-time { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.sender-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 13px; border: 1px solid var(--border); border-radius: 999px;
  font-size: 12.5px; font-weight: 500; margin: 0 8px 8px 0;
}
.sender-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.metric-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.metric-row:last-child { border-bottom: none; }
.metric-row .k { color: var(--text-2); }
.metric-row .v { font-weight: 600; }
