/* ============================================================
   GREENMERCH APP – admin-style.css
   Admin Dashboard Premium Styles
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --green:       #22c55e;
  --green-dark:  #16a34a;
  --green-light: #bbf7d0;
  --green-glow:  rgba(34,197,94,0.12);

  --dark:        #0f172a;
  --dark-900:    #080d18;
  --dark-800:    #1e293b;
  --dark-750:    #243147;
  --dark-700:    #334155;
  --dark-600:    #475569;
  --dark-500:    #64748b;

  --white:       #ffffff;
  --slate-100:   #f1f5f9;
  --slate-300:   #cbd5e1;
  --slate-400:   #94a3b8;

  --red:         #ef4444;
  --orange:      #f97316;
  --yellow:      #eab308;
  --blue:        #3b82f6;
  --purple:      #8b5cf6;

  --font-body:    'Inter', sans-serif;
  --font-display: 'Plus Jakarta Sans', sans-serif;

  --sidebar-w:   260px;
  --topbar-h:    64px;

  --shadow-sm:   0 1px 3px rgba(0,0,0,0.3);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.5);

  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   20px;

  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --dur:         0.25s;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--font-body); cursor: pointer; }
input, select, textarea { font-family: var(--font-body); }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--dark-800); }
::-webkit-scrollbar-thumb { background: var(--dark-600); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--green); }

/* ═══════════════════════════════════
   LAYOUT
═══════════════════════════════════ */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* ── SIDEBAR ── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--dark-900);
  border-right: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 200;
  transition: transform var(--dur) var(--ease);
  overflow-y: auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
  flex-shrink: 0;
}

.sidebar-brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 0 12px rgba(34,197,94,0.3);
}

.sidebar-brand span { color: var(--green); }

.sidebar-badge {
  margin-left: auto;
  background: var(--green-glow);
  color: var(--green);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  border: 1px solid rgba(34,197,94,0.2);
}

.sidebar-section {
  padding: 12px 12px 4px;
}

.sidebar-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark-500);
  padding: 0 8px;
  margin-bottom: 4px;
}

.sidebar-nav {
  flex: 1;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--slate-400);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  position: relative;
  border: 1px solid transparent;
}

.sidebar-nav-item:hover {
  background: rgba(255,255,255,0.04);
  color: var(--white);
}

.sidebar-nav-item.active {
  background: rgba(34,197,94,0.1);
  color: var(--green);
  border-color: rgba(34,197,94,0.15);
}

.sidebar-nav-item.active .nav-icon {
  color: var(--green);
}

.nav-icon {
  font-size: 1rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.nav-badge {
  margin-left: auto;
  background: var(--red);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-badge.green {
  background: var(--green);
  color: var(--dark);
}

.sidebar-footer {
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
}

.sidebar-user-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
}

.sidebar-user-role {
  font-size: 0.72rem;
  color: var(--slate-400);
}

.sidebar-public-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--slate-400);
  transition: all var(--dur);
  margin-top: 2px;
}
.sidebar-public-link:hover { color: var(--green); background: var(--green-glow); }

/* ── MAIN CONTENT ── */
.admin-main {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── TOPBAR ── */
.topbar {
  height: var(--topbar-h);
  background: var(--dark-900);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.topbar-subtitle {
  font-size: 0.78rem;
  color: var(--slate-400);
  margin-top: 1px;
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-icon-btn {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--slate-400);
  transition: all var(--dur);
  position: relative;
}
.topbar-icon-btn:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.topbar-icon-btn .notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  border: 1.5px solid var(--dark-900);
}

.topbar-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.2rem;
  padding: 8px;
  cursor: pointer;
}

/* ── PAGE CONTENT ── */
.page-content {
  flex: 1;
  padding: 28px;
  display: none;
}

.page-content.active {
  display: block;
}

/* ═══════════════════════════════════
   COMPONENTS: STATS CARDS
═══════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--dark-800);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--card-accent, var(--green));
  opacity: 0.5;
}

.stat-card:hover {
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.stat-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.stat-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
}

.stat-badge.up   { background: rgba(34,197,94,0.1);  color: var(--green); }
.stat-badge.down { background: rgba(239,68,68,0.1);  color: var(--red); }
.stat-badge.neutral { background: rgba(100,116,139,0.1); color: var(--slate-400); }

.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  color: var(--white);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--slate-400);
  margin-top: 2px;
}

/* ═══════════════════════════════════
   SECTION HEADERS
═══════════════════════════════════ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}

.section-subtitle {
  font-size: 0.78rem;
  color: var(--slate-400);
  margin-top: 2px;
}

/* ═══════════════════════════════════
   CARDS / PANELS
═══════════════════════════════════ */
.panel {
  background: var(--dark-800);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.panel-header {
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-body {
  padding: 20px 24px;
}

/* ═══════════════════════════════════
   TABLE
═══════════════════════════════════ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.data-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--slate-400);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  white-space: nowrap;
}

.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  vertical-align: middle;
  color: var(--slate-300);
}

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

.data-table tbody tr {
  transition: background var(--dur);
  cursor: pointer;
}

.data-table tbody tr:hover {
  background: rgba(255,255,255,0.03);
}

.company-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.company-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--dark);
  flex-shrink: 0;
}

.cell-name {
  font-weight: 600;
  color: var(--white);
  font-size: 0.88rem;
}

.cell-sub {
  font-size: 0.75rem;
  color: var(--slate-400);
  margin-top: 1px;
}

/* ═══════════════════════════════════
   STATUS BADGES
═══════════════════════════════════ */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
}

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

.badge-new-lead   { background: rgba(59,130,246,0.15);  color: #60a5fa; }
.badge-contacted  { background: rgba(234,179,8,0.12);   color: #facc15; }
.badge-proposal   { background: rgba(139,92,246,0.12);  color: #a78bfa; }
.badge-negotiation{ background: rgba(249,115,22,0.12);  color: #fb923c; }
.badge-closing    { background: rgba(34,197,94,0.12);   color: #4ade80; }
.badge-lost       { background: rgba(239,68,68,0.12);   color: #f87171; }
.badge-prospect   { background: rgba(234,179,8,0.15);   color: #facc15; }
.badge-customer   { background: rgba(34,197,94,0.15);   color: #4ade80; }
.badge-repeat     { background: rgba(59,130,246,0.15);  color: #60a5fa; }
.badge-advocate   { background: rgba(139,92,246,0.15);  color: #a78bfa; }
.badge-design     { background: rgba(59,130,246,0.15);  color: #60a5fa; }
.badge-approval   { background: rgba(234,179,8,0.12);   color: #facc15; }
.badge-production { background: rgba(249,115,22,0.12);  color: #fb923c; }
.badge-qc         { background: rgba(139,92,246,0.12);  color: #a78bfa; }
.badge-delivery   { background: rgba(34,197,94,0.12);   color: #4ade80; }
.badge-completed  { background: rgba(34,197,94,0.2);    color: var(--green); }

/* ═══════════════════════════════════
   BUTTONS
═══════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
  font-family: var(--font-body);
}

.btn-primary    { background: var(--green); color: var(--dark); }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-secondary  { background: rgba(255,255,255,0.06); color: var(--white); border: 1px solid rgba(255,255,255,0.1); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); }
.btn-danger     { background: rgba(239,68,68,0.1); color: var(--red); border: 1px solid rgba(239,68,68,0.2); }
.btn-danger:hover { background: rgba(239,68,68,0.2); }
.btn-ghost      { background: transparent; color: var(--slate-400); }
.btn-ghost:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.btn-sm { padding: 7px 14px; font-size: 0.8rem; }
.btn-xs { padding: 5px 10px; font-size: 0.75rem; }
.btn-icon { width: 32px; height: 32px; padding: 0; border-radius: 8px; justify-content: center; }

/* ═══════════════════════════════════
   CRM KANBAN BOARD
═══════════════════════════════════ */
.kanban-wrap {
  overflow-x: auto;
  padding-bottom: 16px;
}

.kanban-board {
  display: flex;
  gap: 16px;
  min-width: max-content;
  align-items: flex-start;
}

.knb-column {
  width: 260px;
  flex-shrink: 0;
  background: var(--dark-800);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.knb-col-header {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.knb-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
}

.knb-col-count {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  background: rgba(255,255,255,0.08);
  color: var(--slate-300);
}

.knb-col-body {
  padding: 12px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background var(--dur);
}

.knb-col-body.drag-over {
  background: rgba(34,197,94,0.05);
  outline: 2px dashed rgba(34,197,94,0.3);
  outline-offset: -4px;
}

.knb-col-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
  font-size: 0.78rem;
  color: var(--dark-500);
  border: 1.5px dashed rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  flex: 1;
}

/* Cards */
.knb-card {
  background: var(--dark-750);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: grab;
  transition: all var(--dur) var(--ease);
  position: relative;
}

.knb-card:active { cursor: grabbing; }

.knb-card.dragging {
  opacity: 0.4;
  transform: rotate(2deg) scale(0.98);
}

.knb-card:hover {
  border-color: rgba(34,197,94,0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

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

.knb-card-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--white);
  line-height: 1.3;
}

.knb-card-company {
  font-size: 0.75rem;
  color: var(--slate-400);
  margin-bottom: 10px;
}

.knb-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}

.knb-tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(34,197,94,0.08);
  color: var(--green-light);
  border: 1px solid rgba(34,197,94,0.1);
}

.knb-card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--slate-400);
  margin-bottom: 10px;
}

.knb-card-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.knb-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.knb-date {
  font-size: 0.7rem;
  color: var(--dark-500);
}

.knb-card-actions {
  display: flex;
  gap: 4px;
}

.knb-card-actions button {
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  color: var(--slate-400);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur);
}
.knb-card-actions button:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.knb-card-actions button.wa:hover { background: rgba(37,211,102,0.15); color: #25D366; }
.knb-card-actions button.del:hover { background: rgba(239,68,68,0.15); color: var(--red); }

/* Kanban stage colors */
.knb-stage-new-lead    .knb-col-header { background: rgba(59,130,246,0.08); }
.knb-stage-contacted   .knb-col-header { background: rgba(234,179,8,0.06); }
.knb-stage-proposal    .knb-col-header { background: rgba(139,92,246,0.08); }
.knb-stage-negotiation .knb-col-header { background: rgba(249,115,22,0.08); }
.knb-stage-closing     .knb-col-header { background: rgba(34,197,94,0.08); }
.knb-stage-lost        .knb-col-header { background: rgba(239,68,68,0.06); }

/* ═══════════════════════════════════
   MODALS
═══════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--dur) var(--ease);
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--dark-800);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(10px);
  transition: transform var(--dur) var(--ease);
}

.modal-overlay.open .modal { transform: scale(1) translateY(0); }

.modal-lg { max-width: 720px; }

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  color: var(--slate-400);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--dur);
}
.modal-close:hover { background: rgba(239,68,68,0.15); color: var(--red); }

.modal-body { padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* ═══════════════════════════════════
   FORM CONTROLS (ADMIN)
═══════════════════════════════════ */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 0.8rem; font-weight: 600; color: var(--slate-300); }
.form-label .req { color: var(--red); margin-left: 3px; }

.form-input,
.form-select,
.form-textarea {
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.88rem;
  padding: 11px 14px;
  outline: none;
  transition: all var(--dur) var(--ease);
  width: 100%;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--dark-500); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--green);
  background: rgba(34,197,94,0.04);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.08);
}
.form-select option { background: var(--dark-800); }
.form-textarea { resize: vertical; min-height: 100px; }

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-error { font-size: 0.72rem; color: var(--red); display: none; margin-top: 2px; }
.form-group.has-error .form-input,
.form-group.has-error .form-select { border-color: var(--red); }
.form-group.has-error .form-error { display: block; }

/* ═══════════════════════════════════
   TOAST / NOTIFICATIONS
═══════════════════════════════════ */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--dark-800);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--white);
  box-shadow: var(--shadow-lg);
  transform: translateX(120%);
  transition: transform 0.4s var(--ease);
  pointer-events: all;
  max-width: 360px;
}
.toast.show { transform: translateX(0); }
.toast.toast-error { border-color: rgba(239,68,68,0.3); }

/* Lead notification toast */
.lead-toast {
  background: var(--dark-800);
  border: 1px solid rgba(34,197,94,0.4);
  border-left: 4px solid var(--green);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--white);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(34,197,94,0.1);
  transform: translateX(120%);
  transition: transform 0.4s var(--ease);
  max-width: 360px;
  pointer-events: all;
  cursor: pointer;
}
.lead-toast.show { transform: translateX(0); }
.lead-toast-icon { font-size: 1.3rem; flex-shrink: 0; }
.lead-toast-name { font-weight: 700; color: var(--green); font-size: 0.9rem; }
.lead-toast-detail { font-size: 0.78rem; color: var(--slate-400); margin-top: 2px; }

/* ═══════════════════════════════════
   NOTES TIMELINE
═══════════════════════════════════ */
.notes-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.note-item {
  display: flex;
  gap: 12px;
  padding-bottom: 16px;
  position: relative;
}

.note-item::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 28px;
  bottom: 0;
  width: 1px;
  background: rgba(255,255,255,0.06);
}

.note-item:last-child::before { display: none; }

.note-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--dark-700);
  border: 2px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
  z-index: 1;
}

.note-content {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.note-text { font-size: 0.85rem; color: var(--slate-300); line-height: 1.5; }
.note-meta { font-size: 0.72rem; color: var(--dark-500); margin-top: 6px; }

/* ═══════════════════════════════════
   SETTINGS
═══════════════════════════════════ */
.settings-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
}

.settings-nav {
  background: var(--dark-800);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-xl);
  padding: 8px;
  position: sticky;
  top: 90px;
}

.settings-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate-400);
  cursor: pointer;
  transition: all var(--dur);
}
.settings-nav-item:hover { background: rgba(255,255,255,0.04); color: var(--white); }
.settings-nav-item.active { background: var(--green-glow); color: var(--green); }

.settings-section {
  background: var(--dark-800);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 16px;
}

.settings-section-header {
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.settings-section-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
}

.settings-section-desc {
  font-size: 0.78rem;
  color: var(--slate-400);
  margin-top: 3px;
}

.settings-body { padding: 24px; display: flex; flex-direction: column; gap: 16px; }

/* ═══════════════════════════════════
   EMPTY STATE
═══════════════════════════════════ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  text-align: center;
}

.empty-state-icon { font-size: 2.5rem; margin-bottom: 16px; opacity: 0.4; }
.empty-state-title { font-size: 0.95rem; font-weight: 600; color: var(--slate-300); margin-bottom: 6px; }
.empty-state-text { font-size: 0.82rem; color: var(--slate-400); max-width: 280px; }

/* ═══════════════════════════════════
   CHARTS
═══════════════════════════════════ */
.chart-wrap {
  position: relative;
  height: 240px;
}

/* ═══════════════════════════════════
   SIDEBAR OVERLAY (MOBILE)
═══════════════════════════════════ */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 190;
}
.sidebar-overlay.show { display: block; }

/* ═══════════════════════════════════
   RESPONSIVE
═══════════════════════════════════ */
@media (max-width: 1200px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .admin-main {
    margin-left: 0;
  }
  .topbar-hamburger {
    display: flex;
  }
  .settings-grid { grid-template-columns: 1fr; }
  .settings-nav { position: static; }
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .page-content { padding: 16px; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .modal { border-radius: var(--radius-lg); }
}
