/* ============================================================
   CLEAR PATH — ADMIN PORTAL STYLES
   ============================================================ */

:root {
  --navy:        #1A3A6E;
  --navy-dark:   #0D2347;
  --teal:        #2BB5AF;
  --teal-light:  #45CFC9;
  --teal-dark:   #1E8F8A;

  --s-new:       #3B82F6;
  --s-contacted: #F59E0B;
  --s-progress:  #8B5CF6;
  --s-completed: #10B981;
  --s-closed:    #6B7280;

  --p-high:      #EF4444;
  --p-normal:    #2BB5AF;
  --p-low:       #94A3B8;

  --bg:          #F0F2F5;
  --card:        #FFFFFF;
  --border:      #E2E8F0;
  --text:        #1E293B;
  --text-light:  #64748B;

  --font: 'Inter', system-ui, sans-serif;
  --sidebar-w: 248px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.07);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.14);
  --radius:    10px;
  --tr:        .2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.5; }
img { max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
.hidden { display: none !important; }

/* ============================================================
   LOGIN
   ============================================================ */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 24px;
}
.login-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, #1B4A8A 100%);
}
.login-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(43,181,175,.2) 0%, transparent 50%),
    radial-gradient(circle at 15% 80%, rgba(43,181,175,.1) 0%, transparent 40%);
}
.login-card {
  position: relative;
  z-index: 1;
  background: var(--card);
  border-radius: 20px;
  padding: 48px 44px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
}
.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo img { height: 64px; margin: 0 auto; }
.login-header { text-align: center; margin-bottom: 32px; }
.login-header h1 { font-size: 1.6rem; font-weight: 800; color: var(--navy-dark); margin-bottom: 6px; }
.login-header p { font-size: 0.9rem; color: var(--text-light); }
.login-form { display: flex; flex-direction: column; gap: 18px; }
.login-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #DC2626;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.85rem;
  display: none;
}
.login-error.show { display: block; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon-wrap > svg:first-child {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--text-light);
  pointer-events: none;
}
.input-icon-wrap input {
  width: 100%;
  padding: 11px 40px 11px 38px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: var(--tr);
}
.input-icon-wrap input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(43,181,175,.12);
}
.toggle-pw {
  position: absolute;
  right: 12px;
  color: var(--text-light);
  padding: 4px;
}
.toggle-pw svg { width: 16px; height: 16px; }
.btn-login {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff;
  padding: 13px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: var(--tr);
  box-shadow: 0 4px 16px rgba(43,181,175,.35);
  margin-top: 4px;
}
.btn-login:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(43,181,175,.45); }
.btn-login:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.login-hint { font-size: 0.75rem; color: var(--text-light); text-align: center; }

/* ============================================================
   ADMIN APP LAYOUT
   ============================================================ */
.admin-app {
  display: flex;
  min-height: 100vh;
}

/* ---- SIDEBAR ---- */
.sidebar {
  width: var(--sidebar-w);
  background: var(--navy-dark);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: transform .3s ease;
}
.sidebar__header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sidebar__logo { height: 42px; width: auto; }
.sidebar__close {
  display: none;
  color: rgba(255,255,255,.5);
  padding: 4px;
}
.sidebar__close svg { width: 20px; height: 20px; }
.sidebar__nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}
.sidebar__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255,255,255,.6);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--tr);
  position: relative;
}
.sidebar__link svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar__link:hover { color: #fff; background: rgba(255,255,255,.07); }
.sidebar__link.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(43,181,175,.25), rgba(43,181,175,.08));
  border-left: 3px solid var(--teal);
}
.sidebar__badge {
  margin-left: auto;
  background: var(--s-new);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 50px;
  display: none;
}
.sidebar__badge.show { display: inline-block; }
.sidebar__footer {
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar__footer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: rgba(255,255,255,.45);
  font-size: 0.82rem;
  transition: var(--tr);
}
.sidebar__footer-link svg { width: 16px; height: 16px; }
.sidebar__footer-link:hover { color: rgba(255,255,255,.8); background: rgba(255,255,255,.06); }
.sidebar__logout { width: 100%; text-align: left; }

/* ---- MAIN AREA ---- */
.admin-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ---- TOPBAR ---- */
.topbar {
  height: 64px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar__menu-btn {
  display: none;
  color: var(--text-light);
  padding: 4px;
}
.topbar__menu-btn svg { width: 22px; height: 22px; }
.topbar__search {
  flex: 1;
  max-width: 420px;
  position: relative;
  display: flex;
  align-items: center;
}
.topbar__search svg {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--text-light);
  pointer-events: none;
}
.topbar__search input {
  width: 100%;
  padding: 9px 14px 9px 38px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: var(--tr);
}
.topbar__search input:focus { border-color: var(--teal); background: #fff; }
.topbar__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar__icon-btn {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: var(--tr);
}
.topbar__icon-btn:hover { background: var(--border); color: var(--text); }
.topbar__icon-btn svg { width: 18px; height: 18px; }
.topbar__notif-dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--s-new);
  border: 2px solid var(--card);
  display: none;
}
.topbar__notif-dot.show { display: block; }
.topbar__export-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: var(--navy-dark);
  color: #fff;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--tr);
}
.topbar__export-btn:hover { background: var(--navy); }
.topbar__export-btn svg { width: 15px; height: 15px; }
.topbar__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

/* ---- CONTENT ---- */
.admin-content { padding: 28px; flex: 1; }

/* ============================================================
   PAGE: DASHBOARD
   ============================================================ */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.page-title { font-size: 1.4rem; font-weight: 800; color: var(--navy-dark); }
.page-subtitle { font-size: 0.85rem; color: var(--text-light); margin-top: 2px; }
.page-actions { display: flex; gap: 10px; }

/* KPI Cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.kpi-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  transition: var(--tr);
}
.kpi-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.kpi-card__info {}
.kpi-card__label { font-size: 0.78rem; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.kpi-card__value { font-size: 2rem; font-weight: 800; color: var(--navy-dark); line-height: 1; }
.kpi-card__change { font-size: 0.75rem; margin-top: 6px; font-weight: 600; }
.kpi-card__change.up   { color: #10B981; }
.kpi-card__change.down { color: #EF4444; }
.kpi-card__icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.kpi-card__icon svg { width: 22px; height: 22px; }
.kpi-icon--blue   { background: rgba(59,130,246,.12);  color: #3B82F6; }
.kpi-icon--amber  { background: rgba(245,158,11,.12);  color: #F59E0B; }
.kpi-icon--purple { background: rgba(139,92,246,.12);  color: #8B5CF6; }
.kpi-icon--green  { background: rgba(16,185,129,.12);  color: #10B981; }

/* Dashboard Grid */
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 16px;
}
.dash-grid--full { grid-template-columns: 1fr; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--border);
}
.card-title { font-size: 0.9rem; font-weight: 700; color: var(--navy-dark); }
.card-link  { font-size: 0.78rem; color: var(--teal); font-weight: 600; transition: var(--tr); }
.card-link:hover { color: var(--teal-dark); }
.card-body { padding: 18px 22px; }

/* Recent Leads Table */
.mini-table { width: 100%; border-collapse: collapse; }
.mini-table th {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-light);
  padding: 0 12px 10px 0;
  text-align: left;
  white-space: nowrap;
}
.mini-table td {
  font-size: 0.85rem;
  padding: 10px 12px 10px 0;
  border-top: 1px solid var(--border);
  vertical-align: middle;
}
.mini-table tr:hover td { background: rgba(43,181,175,.03); }
.mini-table td:last-child, .mini-table th:last-child { padding-right: 0; }

/* Service Chart (Donut) */
.donut-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 8px 0;
}
.donut-svg { width: 120px; height: 120px; flex-shrink: 0; }
.donut-legend { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
}
.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.legend-label { color: var(--text-light); flex: 1; }
.legend-pct   { font-weight: 700; color: var(--text); }

/* Activity Feed */
.activity-list { display: flex; flex-direction: column; gap: 0; }
.activity-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.activity-item:last-child { border-bottom: none; }
.activity-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
.activity-text { font-size: 0.85rem; color: var(--text); line-height: 1.4; }
.activity-time { font-size: 0.75rem; color: var(--text-light); margin-top: 2px; }

/* ============================================================
   PAGE: CONSULTATIONS (TABLE)
   ============================================================ */
.filters-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.filter-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-pill {
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--text-light);
  background: var(--card);
  transition: var(--tr);
  cursor: pointer;
}
.filter-pill:hover  { border-color: var(--teal); color: var(--teal); }
.filter-pill.active { border-color: var(--teal); background: var(--teal); color: #fff; }
.filters-right {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}
.sort-select {
  padding: 7px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--text);
  background: var(--card);
  outline: none;
  cursor: pointer;
}
.sort-select:focus { border-color: var(--teal); }

/* Table */
.table-wrap {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th {
  background: #F8FAFC;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: 13px 16px;
  font-size: 0.875rem;
  color: var(--text);
  border-bottom: 1px solid #F1F5F9;
  vertical-align: middle;
}
.data-table tbody tr:hover td { background: rgba(43,181,175,.03); cursor: pointer; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table .unread td:first-child { border-left: 3px solid var(--s-new); }

.lead-name { font-weight: 600; color: var(--navy-dark); }
.lead-email { font-size: 0.78rem; color: var(--text-light); }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}
.badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge--new       { background: rgba(59,130,246,.1);   color: var(--s-new); }
.badge--contacted { background: rgba(245,158,11,.1);   color: var(--s-contacted); }
.badge--progress  { background: rgba(139,92,246,.1);   color: var(--s-progress); }
.badge--completed { background: rgba(16,185,129,.1);   color: var(--s-completed); }
.badge--closed    { background: rgba(107,114,128,.1);  color: var(--s-closed); }
.badge--scheduled { background: rgba(43,181,175,.12);  color: var(--teal-dark); }
.badge--noshow    { background: rgba(239,68,68,.1);    color: #EF4444; }
.badge--booking   { background: rgba(43,181,175,.1);   color: var(--teal-dark); display:inline-flex;align-items:center; }
.badge--inquiry   { background: rgba(26,58,110,.08);   color: var(--navy); }

.priority-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
}
.priority--high   { background: rgba(239,68,68,.1);   color: var(--p-high); }
.priority--normal { background: rgba(43,181,175,.1);  color: var(--p-normal); }
.priority--low    { background: rgba(148,163,184,.1); color: var(--p-low); }

.table-actions { display: flex; gap: 6px; }
.tbl-btn {
  width: 30px; height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--tr);
  color: var(--text-light);
}
.tbl-btn:hover { background: var(--bg); color: var(--teal); }
.tbl-btn svg { width: 14px; height: 14px; }
.tbl-btn--danger:hover { background: rgba(239,68,68,.1); color: #EF4444; }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-light);
}
.pag-buttons { display: flex; gap: 6px; }
.pag-btn {
  padding: 5px 12px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  background: var(--card);
  transition: var(--tr);
}
.pag-btn:hover:not(:disabled) { border-color: var(--teal); color: var(--teal); }
.pag-btn.active { background: var(--teal); color: #fff; border-color: var(--teal); }
.pag-btn:disabled { opacity: .4; cursor: not-allowed; }

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}
.empty-state svg { width: 48px; height: 48px; margin: 0 auto 16px; opacity: .3; }
.empty-state h4 { font-size: 1rem; font-weight: 700; color: var(--navy-dark); margin-bottom: 6px; }
.empty-state p { font-size: 0.85rem; }

/* ============================================================
   DETAIL DRAWER
   ============================================================ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,35,71,.4);
  backdrop-filter: blur(2px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.drawer-overlay.show { opacity: 1; pointer-events: all; }
.detail-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 460px;
  background: var(--card);
  z-index: 201;
  box-shadow: -8px 0 40px rgba(0,0,0,.15);
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
}
.detail-drawer.open { transform: none; }
.drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.drawer-header h3 { font-size: 1rem; font-weight: 700; color: var(--navy-dark); }
.drawer-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--tr);
}
.drawer-close:hover { background: var(--bg); color: var(--text); }
.drawer-close svg { width: 16px; height: 16px; }
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/* Drawer Content */
.drawer-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 14px;
}
.drawer-name { font-size: 1.2rem; font-weight: 800; color: var(--navy-dark); margin-bottom: 4px; }
.drawer-meta { font-size: 0.82rem; color: var(--text-light); margin-bottom: 16px; }
.drawer-badges { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }

.drawer-section { margin-bottom: 24px; }
.drawer-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-light);
  margin-bottom: 12px;
}
.drawer-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.drawer-info-item {}
.drawer-info-label { font-size: 0.72rem; color: var(--text-light); margin-bottom: 2px; }
.drawer-info-value { font-size: 0.88rem; font-weight: 600; color: var(--text); }

.drawer-msg {
  background: var(--bg);
  border-radius: 8px;
  padding: 14px;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.6;
  font-style: italic;
}

.drawer-controls { display: flex; flex-direction: column; gap: 12px; }
.drawer-label { font-size: 0.78rem; font-weight: 600; color: var(--text); margin-bottom: 5px; display: block; }
.drawer-select, .drawer-textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text);
  background: var(--card);
  outline: none;
  transition: var(--tr);
  font-family: inherit;
}
.drawer-select:focus, .drawer-textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(43,181,175,.1);
}
.drawer-textarea { resize: vertical; min-height: 80px; }
.drawer-date-input {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text);
  outline: none;
  transition: var(--tr);
  font-family: inherit;
}
.drawer-date-input:focus { border-color: var(--teal); }

.drawer-actions {
  display: flex;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.btn-save {
  flex: 1;
  padding: 10px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  transition: var(--tr);
}
.btn-save:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(43,181,175,.3); }
.btn-email {
  padding: 10px 16px;
  background: var(--bg);
  color: var(--text);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  transition: var(--tr);
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-email svg { width: 15px; height: 15px; }
.btn-email:hover { border-color: var(--navy); color: var(--navy); }
.btn-delete {
  padding: 10px 14px;
  background: rgba(239,68,68,.06);
  color: #EF4444;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1.5px solid rgba(239,68,68,.2);
  transition: var(--tr);
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-delete:hover { background: rgba(239,68,68,.12); }
.btn-delete svg { width: 15px; height: 15px; }

/* ============================================================
   PAGE: PIPELINE (KANBAN)
   ============================================================ */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  align-items: start;
}
.kanban-col {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 14px;
  min-height: 200px;
}
.kanban-col-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.kanban-col-dot { width: 8px; height: 8px; border-radius: 50%; }
.kanban-col-count {
  margin-left: auto;
  background: rgba(0,0,0,.08);
  padding: 1px 7px;
  border-radius: 50px;
  font-size: 0.7rem;
}
.kanban-cards { display: flex; flex-direction: column; gap: 8px; }
.kanban-card {
  background: var(--card);
  border-radius: 8px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--tr);
}
.kanban-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.kanban-card-name { font-size: 0.85rem; font-weight: 700; color: var(--navy-dark); margin-bottom: 4px; }
.kanban-card-service { font-size: 0.75rem; color: var(--text-light); margin-bottom: 8px; }
.kanban-card-meta { display: flex; align-items: center; justify-content: space-between; }
.kanban-card-date { font-size: 0.72rem; color: var(--text-light); }

/* ============================================================
   PAGE: ANALYTICS
   ============================================================ */
.analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.analytics-grid--full { grid-template-columns: 1fr; }

/* Bar Chart */
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 160px;
  padding-bottom: 28px;
  position: relative;
}
.bar-chart::after {
  content: '';
  position: absolute;
  bottom: 28px; left: 0; right: 0;
  height: 1px;
  background: var(--border);
}
.bar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  justify-content: flex-end;
}
.bar-fill {
  width: 100%;
  background: linear-gradient(to top, var(--teal-dark), var(--teal-light));
  border-radius: 4px 4px 0 0;
  transition: height .6s cubic-bezier(.4,0,.2,1);
  min-height: 4px;
}
.bar-label { font-size: 0.68rem; color: var(--text-light); }
.bar-val { font-size: 0.72rem; font-weight: 700; color: var(--text-light); position: absolute; }

/* Funnel */
.funnel-list { display: flex; flex-direction: column; gap: 12px; }
.funnel-item {}
.funnel-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 5px;
}
.funnel-name { font-weight: 600; color: var(--text); }
.funnel-count { font-weight: 700; color: var(--navy-dark); }
.funnel-bar-bg {
  height: 8px;
  background: var(--bg);
  border-radius: 50px;
  overflow: hidden;
}
.funnel-bar-fill {
  height: 100%;
  border-radius: 50px;
  transition: width .8s cubic-bezier(.4,0,.2,1);
}

/* Source chart */
.source-list { display: flex; flex-direction: column; gap: 10px; }
.source-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}
.source-name { flex: 1; color: var(--text); }
.source-bar-bg {
  flex: 2;
  height: 6px;
  background: var(--bg);
  border-radius: 50px;
  overflow: hidden;
}
.source-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--navy), var(--teal));
  border-radius: 50px;
  transition: width .8s ease;
}
.source-pct { font-weight: 700; color: var(--navy-dark); min-width: 36px; text-align: right; font-size: 0.82rem; }

/* ============================================================
   PAGE: SETTINGS
   ============================================================ */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 900px;
}
.settings-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 24px 28px;
}
.settings-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 4px;
}
.settings-card > p {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 20px;
}
.settings-form { display: flex; flex-direction: column; gap: 14px; }
.s-input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text);
  outline: none;
  transition: var(--tr);
  font-family: inherit;
}
.s-input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(43,181,175,.1); }
.btn-setting {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  transition: var(--tr);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
}
.btn-setting--primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff;
  box-shadow: 0 3px 12px rgba(43,181,175,.25);
}
.btn-setting--primary:hover { transform: translateY(-1px); }
.btn-setting--danger {
  background: rgba(239,68,68,.06);
  color: #EF4444;
  border: 1.5px solid rgba(239,68,68,.2);
}
.btn-setting--danger:hover { background: rgba(239,68,68,.12); }
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.toggle-row:last-child { border-bottom: none; }
.toggle-info {}
.toggle-info span { display: block; font-size: 0.88rem; font-weight: 600; color: var(--text); }
.toggle-info small { font-size: 0.78rem; color: var(--text-light); }
.toggle {
  width: 42px; height: 24px;
  background: var(--border);
  border-radius: 50px;
  cursor: pointer;
  position: relative;
  transition: var(--tr);
  flex-shrink: 0;
  border: none;
}
.toggle::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: var(--tr);
}
.toggle.on { background: var(--teal); }
.toggle.on::after { left: 21px; }

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--navy-dark);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translateX(120%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  max-width: 320px;
}
.toast.show { transform: none; }
.toast svg { width: 16px; height: 16px; flex-shrink: 0; }
.toast--success { border-left: 3px solid #10B981; }
.toast--error   { border-left: 3px solid #EF4444; }
.toast--info    { border-left: 3px solid var(--teal); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .kanban-board { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    box-shadow: none;
  }
  .sidebar.open {
    transform: none;
    box-shadow: 8px 0 40px rgba(0,0,0,.25);
  }
  .sidebar__close { display: flex; }
  .admin-main { margin-left: 0; }
  .topbar__menu-btn { display: flex; }
  .detail-drawer { width: 100%; max-width: 460px; }
  .analytics-grid { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .admin-content { padding: 16px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .kanban-board { grid-template-columns: repeat(2, 1fr); }
  .topbar { padding: 0 16px; gap: 10px; }
  .topbar__export-btn span { display: none; }
  .filters-bar { flex-direction: column; align-items: flex-start; }
  .filters-right { margin-left: 0; }
  .login-card { padding: 32px 24px; }
}

/* ============================================================
   FOUNDER PROFILE EDITOR
   ============================================================ */
.founder-editor { max-width: 1060px; }

.fe-two-col {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 0;
}

/* ---- Photo zone ---- */
.photo-zone {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--tr);
  background: var(--bg);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-zone.has-photo { border-style: solid; border-color: var(--teal); }
.photo-zone.dragging  { border-color: var(--teal); background: rgba(43,181,175,.06); box-shadow: 0 0 0 4px rgba(43,181,175,.12); }
.photo-zone:hover     { border-color: var(--teal); }
.photo-zone img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.photo-zone__overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,35,71,.62);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity var(--tr);
  z-index: 2;
}
.photo-zone:hover .photo-zone__overlay,
.photo-zone.dragging .photo-zone__overlay { opacity: 1; }
.photo-zone__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  text-align: center;
  padding: 24px;
  z-index: 1;
}
.photo-zone__placeholder svg { width: 44px; height: 44px; opacity: .3; }
.photo-zone__placeholder span { font-size: .8rem; line-height: 1.5; }

.photo-actions { display: flex; gap: 8px; margin-top: 10px; }
.btn-photo {
  flex: 1;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 600;
  transition: var(--tr);
  text-align: center;
  cursor: pointer;
  font-family: inherit;
}
.btn-photo--upload { background: var(--teal); color: #fff; }
.btn-photo--upload:hover { background: var(--teal-dark); }
.btn-photo--remove { background: rgba(239,68,68,.06); color: #EF4444; border: 1.5px solid rgba(239,68,68,.2); }
.btn-photo--remove:hover { background: rgba(239,68,68,.14); }

.photo-hint { font-size: .72rem; color: var(--text-light); text-align: center; margin-top: 6px; line-height: 1.4; }
.photo-hint.warn { color: #F59E0B; }

/* ---- Cards ---- */
.fe-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 20px 22px;
}
.fe-card h4 {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-light);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* ---- Fields ---- */
.fe-fields { display: flex; flex-direction: column; gap: 12px; }
.fe-field  { display: flex; flex-direction: column; gap: 5px; }
.fe-field label { font-size: .78rem; font-weight: 600; color: var(--text); }
.fe-input, .fe-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .88rem;
  color: var(--text);
  font-family: inherit;
  outline: none;
  transition: var(--tr);
  background: var(--white);
  box-sizing: border-box;
}
.fe-input:focus, .fe-textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(43,181,175,.1);
}
.fe-textarea { resize: vertical; min-height: 90px; line-height: 1.65; }
.fe-textarea--lg { min-height: 110px; }

/* ---- Bio paragraph list ---- */
.bio-para-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.bio-para-item { display: flex; gap: 8px; align-items: flex-start; }
.bio-para-item .fe-textarea { flex: 1; min-width: 0; }

/* ---- Credential list ---- */
.cred-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.cred-item { display: flex; gap: 8px; align-items: center; }
.cred-item .fe-input { flex: 1; }

/* ---- Remove button ---- */
.btn-rm {
  width: 30px; height: 30px;
  border-radius: 6px;
  background: rgba(239,68,68,.07);
  color: #EF4444;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  font-family: inherit;
  border: none;
  transition: var(--tr);
}
.btn-rm:hover { background: rgba(239,68,68,.16); }
.btn-rm svg { width: 13px; height: 13px; }

/* ---- Add item button ---- */
.btn-add-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--teal);
  background: rgba(43,181,175,.07);
  border: 1.5px dashed rgba(43,181,175,.4);
  cursor: pointer;
  font-family: inherit;
  transition: var(--tr);
}
.btn-add-item:hover:not(:disabled) { background: rgba(43,181,175,.13); border-color: var(--teal); }
.btn-add-item:disabled { opacity: .4; cursor: not-allowed; }
.btn-add-item svg { width: 14px; height: 14px; }

/* ---- Sticky save bar ---- */
.founder-save-bar {
  position: sticky;
  bottom: 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 14px 0;
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 -4px 20px rgba(0,0,0,.07);
  z-index: 10;
}
.founder-save-bar__note { font-size: .78rem; color: var(--text-light); }
.founder-save-bar__actions { display: flex; gap: 10px; flex-shrink: 0; }
.btn-fe-save {
  padding: 10px 26px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: var(--tr);
  box-shadow: 0 3px 14px rgba(43,181,175,.28);
}
.btn-fe-save:hover { transform: translateY(-1px); box-shadow: 0 5px 20px rgba(43,181,175,.38); }
.btn-fe-reset {
  padding: 10px 18px;
  background: var(--bg);
  color: var(--text-light);
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1.5px solid var(--border);
  transition: var(--tr);
}
.btn-fe-reset:hover { color: #EF4444; border-color: rgba(239,68,68,.3); background: rgba(239,68,68,.04); }

@media (max-width: 860px) {
  .fe-two-col { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .founder-save-bar { flex-direction: column; align-items: stretch; }
  .founder-save-bar__actions { flex-direction: row; }
  .btn-fe-save, .btn-fe-reset { flex: 1; text-align: center; justify-content: center; }
}

/* ============================================================
   MAINTENANCE MODE — ADMIN STYLES
   ============================================================ */

/* Topbar wrench button active state */
.topbar__maint-btn { position: relative; }
.topbar__maint-dot {
  position: absolute;
  top: 5px; right: 5px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #EF4444;
  border: 2px solid var(--card);
  display: none;
}
.topbar__maint-dot.show { display: block; animation: maintDotPulse 1.4s ease-in-out infinite; }
@keyframes maintDotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,.5); }
  50%       { box-shadow: 0 0 0 5px rgba(239,68,68,0); }
}
.topbar__maint-btn.maint-active {
  background: rgba(239,68,68,.1);
  color: #EF4444;
}

/* Admin warning banner */
.maint-admin-banner {
  background: linear-gradient(90deg, #7F1D1D, #991B1B);
  border-bottom: 1px solid rgba(239,68,68,.4);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .4s ease;
}
.maint-admin-banner.show {
  max-height: 64px;
  padding: 10px 28px;
}
.maint-admin-banner__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .82rem;
  color: rgba(255,255,255,.9);
}
.maint-admin-banner__inner > svg { width: 16px; height: 16px; flex-shrink: 0; color: #FCA5A5; }
.maint-admin-banner__inner > span { flex: 1; }
.maint-admin-banner__inner strong { color: #fff; }
.maint-admin-banner__btn {
  padding: 6px 14px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  border-radius: 6px;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s;
  white-space: nowrap;
}
.maint-admin-banner__btn:hover { background: rgba(255,255,255,.25); }
.maint-admin-banner__preview {
  color: rgba(255,255,255,.6);
  font-size: .75rem;
  white-space: nowrap;
  transition: color .2s;
}
.maint-admin-banner__preview:hover { color: #fff; }

/* Settings page maintenance card */
.maint-settings-card {
  margin-bottom: 20px;
  border: 1.5px solid var(--border);
  grid-column: 1 / -1;
}
.maint-settings-card--on {
  border-color: rgba(239,68,68,.4);
  background: rgba(239,68,68,.02);
}
.maint-settings-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
.maint-settings-info h3 { margin-bottom: 4px; }
.maint-settings-info p  { font-size: .85rem; color: var(--text-light); margin: 0; }

/* Big toggle switch */
.maint-big-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
}
.maint-big-toggle__track {
  width: 60px;
  height: 32px;
  border-radius: 50px;
  background: var(--gray-200);
  position: relative;
  transition: background .3s ease;
  cursor: pointer;
}
.maint-big-toggle__track.on { background: #EF4444; }
.maint-big-toggle__thumb {
  position: absolute;
  top: 4px; left: 4px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,.25);
  transition: left .3s cubic-bezier(.4,0,.2,1);
}
.maint-big-toggle__track.on .maint-big-toggle__thumb { left: 32px; }
.maint-big-toggle__label {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--text-light);
}
.maint-big-toggle__track.on + .maint-big-toggle__label { color: #EF4444; }

/* Status pill */
.maint-settings-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: .82rem;
  margin-bottom: 20px;
}
.maint-settings-status--on  { background: rgba(239,68,68,.08); color: #DC2626; border: 1px solid rgba(239,68,68,.2); }
.maint-settings-status--off { background: rgba(16,185,129,.08); color: #059669; border: 1px solid rgba(16,185,129,.2); }
.maint-status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.maint-settings-status--on .maint-status-dot { animation: maintDotPulse 1.4s ease-in-out infinite; }

@media (max-width: 640px) {
  .maint-admin-banner.show { max-height: none; }
  .maint-admin-banner__inner { flex-wrap: wrap; }
  .maint-settings-header { flex-direction: column; }
}

/* ============================================================
   MOBILE CARD LIST — Consultations
   ============================================================ */
.mobile-leads { display: none; }

/* ============================================================
   ADMIN MOBILE IMPROVEMENTS
   ============================================================ */
@media (max-width: 768px) {
  /* ---- Topbar ---- */
  .topbar { padding: 0 14px; gap: 8px; height: 56px; }
  .topbar__menu-btn { display: flex; }

  /* Hide search text, keep icon */
  .topbar__search { max-width: 140px; }
  .topbar__search input { font-size: .82rem; padding: 7px 10px 7px 34px; }

  /* Export: icon only */
  .topbar__export-btn { padding: 8px 10px; }
  .topbar__export-btn span,
  .topbar__export-btn svg + * { display: none; }

  /* Hide maintenance wrench label */
  .topbar__maint-btn span { display: none; }

  /* ---- Admin content ---- */
  .admin-content { padding: 14px; }

  /* ---- Page header ---- */
  .page-header { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
  .page-title { font-size: 1.15rem; }
  .page-actions { width: 100%; }
  .page-actions .topbar__export-btn { width: 100%; justify-content: center; }

  /* ---- KPI cards ---- */
  .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .kpi-card { padding: 14px 14px; }
  .kpi-card__value { font-size: 1.6rem; }
  .kpi-card__label { font-size: .7rem; }
  .kpi-card__icon { width: 36px; height: 36px; }
  .kpi-card__icon svg { width: 18px; height: 18px; }

  /* ---- Filters bar ---- */
  .filters-bar { flex-direction: column; align-items: stretch; gap: 10px; }

  /* Horizontal-scroll pill row */
  .filter-pills {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 7px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .filter-pills::-webkit-scrollbar { display: none; }
  .filter-pill { flex-shrink: 0; font-size: .75rem; padding: 5px 12px; }

  .filters-right { margin-left: 0; }
  .sort-select { width: 100%; }

  /* ---- Hide desktop table, show card list ---- */
  .table-wrap { display: none; }
  .mobile-leads {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  /* ---- Mobile lead card ---- */
  .mlc {
    background: var(--card);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 14px 16px;
    cursor: pointer;
    transition: box-shadow var(--tr), transform var(--tr);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .mlc:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
  .mlc--unread { border-left: 3px solid var(--s-new); }

  .mlc__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
  .mlc__row--bottom { align-items: center; }

  .mlc__identity { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .mlc__name {
    font-weight: 700;
    font-size: .9rem;
    color: var(--navy-dark);
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .mlc__dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--s-new);
    flex-shrink: 0;
  }
  .mlc__email { font-size: .74rem; color: var(--text-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  .mlc__service { font-size: .8rem; color: var(--text-light); font-weight: 500; }
  .mlc__meta { display: flex; align-items: center; gap: 8px; }
  .mlc__time { font-size: .72rem; color: var(--text-light); white-space: nowrap; }

  .mlc__appt {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .72rem;
    color: var(--teal-dark);
    font-weight: 600;
    background: rgba(43,181,175,.07);
    border-radius: 6px;
    padding: 4px 8px;
    width: fit-content;
  }

  .mlc-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    margin-top: 4px;
  }

  /* ---- Dash grid ---- */
  .dash-grid { grid-template-columns: 1fr; gap: 14px; }

  /* ---- Kanban ---- */
  .kanban-board { grid-template-columns: 1fr 1fr; gap: 10px; }

  /* ---- Analytics ---- */
  .analytics-grid { grid-template-columns: 1fr; gap: 14px; }

  /* ---- Founder editor ---- */
  .fe-two-col { grid-template-columns: 1fr; }

  /* ---- Login card ---- */
  .login-card { padding: 28px 20px; }
  .login-header h1 { font-size: 1.3rem; }

  /* ---- Sidebar ---- */
  .sidebar__header { padding: 16px; }
  .sidebar__logo { height: 36px; }

  /* ---- Detail drawer ---- */
  .detail-drawer { width: 100%; max-width: 100%; border-radius: 16px 16px 0 0; top: auto; height: 90vh; }
  .detail-drawer.open { transform: none; }
}
