/* ============================================================
   ProBI Leads — Design System v2  (moderno, clean, SaaS)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300..800;1,14..32,300..800&display=swap');

/* ── Tokens ──────────────────────────────────────────────────── */
:root {
  /* Brand */
  --blue-50:  #EFF6FF;
  --blue-100: #DBEAFE;
  --blue-500: #3B82F6;
  --blue-600: #2563EB;
  --blue-700: #1D4ED8;

  /* Palette */
  --primary:        var(--blue-600);
  --primary-hover:  var(--blue-700);
  --primary-light:  var(--blue-50);
  --primary-ring:   rgba(37,99,235,.18);

  /* Layout */
  --sidebar-w:    252px;
  --topbar-h:     62px;
  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    16px;
  --radius-xl:    20px;

  /* Surfaces */
  --body-bg:       #F0F5FF;
  --sidebar-bg:    #FFFFFF;
  --card-bg:       #FFFFFF;
  --topbar-bg:     #FFFFFF;

  /* Borders & Shadows */
  --border:        #E2EAF6;
  --shadow-sm:     0 1px 3px rgba(15,23,60,.06), 0 1px 2px rgba(15,23,60,.04);
  --shadow-md:     0 4px 16px rgba(37,99,235,.08), 0 1px 3px rgba(15,23,60,.06);
  --shadow-lg:     0 8px 32px rgba(37,99,235,.12), 0 2px 8px rgba(15,23,60,.06);

  /* Text */
  --text-1:  #0F172A;
  --text-2:  #475569;
  --text-3:  #94A3B8;

  /* Status colors */
  --c-secondary: #6B7280;
  --c-primary:   #2563EB;
  --c-warning:   #D97706;
  --c-danger:    #DC2626;
  --c-info:      #0891B2;
  --c-success:   #16A34A;

  --transition: .18s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

body.probi-body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-1);
  background: var(--body-bg);
  -webkit-font-smoothing: antialiased;
}

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

.probi-main {
  flex: 1;
  min-width: 0;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
}

.probi-content {
  flex: 1;
  padding: 28px 32px 40px;
}

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════════════════════ */
.probi-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  box-shadow: 2px 0 20px rgba(37,99,235,.04);
}

/* Brand */
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 18px;
  border-bottom: 1px solid var(--border);
}

.brand-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--blue-600) 0%, #5B8DEF 100%);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37,99,235,.35);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-size: 16px; font-weight: 800; color: var(--text-1); letter-spacing: -.03em; }
.brand-sub  { font-size: 11px; font-weight: 500; color: var(--text-3); letter-spacing: .04em; text-transform: uppercase; }

/* Nav */
.sidebar-nav {
  list-style: none;
  padding: 14px 12px;
  margin: 0;
  flex: 1;
  overflow-y: auto;
}

.nav-section {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 14px 8px 6px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  position: relative;
  margin-bottom: 2px;
}

.sidebar-link i {
  font-size: 16px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  transition: color var(--transition);
}

.sidebar-link:hover {
  background: var(--blue-50);
  color: var(--primary);
}

.sidebar-link:hover i { color: var(--primary); }

.sidebar-link.active {
  background: var(--blue-50);
  color: var(--primary);
  font-weight: 600;
}

.sidebar-link.active i { color: var(--primary); }

.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: -12px; top: 6px; bottom: 6px;
  width: 3px;
  background: var(--primary);
  border-radius: 0 3px 3px 0;
}

/* Footer user pill */
.sidebar-footer {
  padding: 14px 12px;
  border-top: 1px solid var(--border);
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  transition: background var(--transition);
}

.user-pill:hover { background: var(--blue-100); }

.user-avatar {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-600) 0%, #5B8DEF 100%);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(37,99,235,.3);
}

.user-name  { font-size: 13px; font-weight: 600; color: var(--text-1); line-height: 1.2; }
.user-role  { font-size: 11px; color: var(--text-3); font-weight: 500; }
.user-info  { flex: 1; min-width: 0; overflow: hidden; }

.logout-btn {
  color: var(--text-3);
  font-size: 16px;
  text-decoration: none;
  transition: color var(--transition);
  padding: 2px;
  flex-shrink: 0;
}

.logout-btn:hover { color: #EF4444; }

/* ═══════════════════════════════════════════════════════════════
   TOPBAR (mobile)
═══════════════════════════════════════════════════════════════ */
.probi-topbar {
  height: var(--topbar-h);
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow-sm);
}

.topbar-title { font-weight: 600; font-size: 15px; color: var(--text-1); }

/* ═══════════════════════════════════════════════════════════════
   PAGE HEADER
═══════════════════════════════════════════════════════════════ */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.page-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
  color: var(--text-1);
  letter-spacing: -.03em;
}

.page-subtitle {
  color: var(--text-3);
  font-size: 13px;
  margin: 3px 0 0;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   CARDS
═══════════════════════════════════════════════════════════════ */
.probi-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.probi-card-header {
  padding: 16px 20px;
  font-weight: 700;
  font-size: 13.5px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-1);
  background: #FAFBFF;
}

.probi-card-body { padding: 20px; }

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════════ */
.btn-probi-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 8px var(--primary-ring);
  white-space: nowrap;
}

.btn-probi-primary:hover {
  background: var(--primary-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37,99,235,.3);
}

.btn-probi-primary:active { transform: translateY(0); box-shadow: none; }
.btn-probi-primary:disabled, .btn-probi-primary.disabled {
  opacity: .6; cursor: not-allowed; transform: none;
}

.btn-probi-primary.btn-sm { padding: 7px 14px; font-size: 12.5px; }

.btn-probi-outline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}

.btn-probi-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* ── Bootstrap overrides ────────────────────────────────────── */
.btn.btn-xs { padding: 3px 9px; font-size: 12px; border-radius: 6px; }

.btn-primary {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}

.btn-primary:hover {
  background: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
}

/* ═══════════════════════════════════════════════════════════════
   FORMS
═══════════════════════════════════════════════════════════════ */
.form-group-probi { margin-bottom: 18px; }

.form-label-probi {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px var(--primary-ring) !important;
}

/* ═══════════════════════════════════════════════════════════════
   AUTH LAYOUT
═══════════════════════════════════════════════════════════════ */
.probi-auth-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0F172A 0%, #1E3A6E 60%, #1E293B 100%);
  padding: 24px;
}

.auth-card-wrapper { width: 100%; max-width: 420px; }

.auth-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  backdrop-filter: blur(24px);
  box-shadow: 0 24px 64px rgba(0,0,0,.4);
}

.auth-logo { text-align: center; margin-bottom: 32px; }

.auth-logo-icon {
  width: 58px; height: 58px;
  background: linear-gradient(135deg, var(--blue-600) 0%, #5B8DEF 100%);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: #fff;
  margin: 0 auto 14px;
  box-shadow: 0 8px 28px rgba(37,99,235,.45);
}

.auth-logo-name {
  font-size: 22px; font-weight: 900;
  color: #fff; letter-spacing: -.04em; margin: 0;
}

.auth-logo-name span { color: #60A5FA; }
.auth-logo-sub { font-size: 13px; color: rgba(255,255,255,.4); margin: 4px 0 0; font-weight: 500; }

.auth-form .form-label-probi { color: rgba(255,255,255,.6); }

.auth-form .form-control {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.12);
  color: #fff;
  border-radius: var(--radius-sm);
}

.auth-form .form-control::placeholder { color: rgba(255,255,255,.25); }

.auth-form .form-control:focus {
  background: rgba(255,255,255,.1);
  border-color: #60A5FA;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(96,165,250,.2) !important;
}

.input-password-wrapper { position: relative; }

.password-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: rgba(255,255,255,.4);
  cursor: pointer; padding: 2px; font-size: 15px;
  transition: color var(--transition);
}

.password-toggle:hover { color: rgba(255,255,255,.8); }

.auth-footer-text { text-align: center; color: rgba(255,255,255,.2); font-size: 12px; margin-top: 24px; }
.auth-flash { width: 100%; max-width: 420px; margin-bottom: 16px; }

/* ═══════════════════════════════════════════════════════════════
   TABLES
═══════════════════════════════════════════════════════════════ */
.probi-table { font-size: 13.5px; }

.probi-table thead th {
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-3);
  background: #F8FAFF;
  border-bottom: 1px solid var(--border);
  padding: 11px 16px;
  white-space: nowrap;
}

.probi-table tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid #F1F5FF;
  vertical-align: middle;
}

.probi-table tbody tr:last-child td { border-bottom: none; }
.probi-table tbody tr { transition: background var(--transition); }
.probi-table tbody tr:hover { background: var(--blue-50); }

.lead-row { cursor: pointer; }
.lead-row:hover td:first-child .lead-name { color: var(--primary); }

.lead-name { font-weight: 600; font-size: 13.5px; transition: color var(--transition); }
.lead-address { line-height: 1.3; margin-top: 2px; }

/* ═══════════════════════════════════════════════════════════════
   STATUS BADGES
═══════════════════════════════════════════════════════════════ */
.lead-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.bg-secondary { background: var(--c-secondary) !important; }
.bg-primary   { background: var(--c-primary)   !important; }
.bg-warning   { background: var(--c-warning)   !important; }
.bg-danger    { background: var(--c-danger)     !important; }
.bg-info      { background: var(--c-info)       !important; }
.bg-success   { background: var(--c-success)    !important; }

/* ═══════════════════════════════════════════════════════════════
   CATEGORY PILLS
═══════════════════════════════════════════════════════════════ */
.badge-category {
  display: inline-flex;
  align-items: center;
  background: var(--blue-50);
  color: var(--blue-700);
  border: 1px solid var(--blue-100);
  border-radius: 6px;
  font-size: 11px;
  padding: 2px 8px;
  font-weight: 600;
}

.category-pills { display: flex; flex-wrap: wrap; gap: 3px; }

.contact-count {
  font-size: 12px; font-weight: 600;
  color: var(--primary);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  padding: 2px 8px; border-radius: 20px;
  display: inline-flex; align-items: center; gap: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   KPI CARDS
═══════════════════════════════════════════════════════════════ */
.kpi-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.kpi-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.kpi-icon {
  width: 50px; height: 50px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.kpi-value { font-size: 26px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.kpi-label { font-size: 12px; color: var(--text-3); margin-top: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

/* ═══════════════════════════════════════════════════════════════
   FINANCE STATS
═══════════════════════════════════════════════════════════════ */
.finance-stat {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0; border-bottom: 1px solid #F1F5FF;
}
.finance-stat:last-of-type { border-bottom: none; }
.finance-label { font-size: 12.5px; color: var(--text-2); font-weight: 500; }
.finance-value { font-weight: 700; font-size: 15px; }

.stale-alert {
  background: #FEF2F2; border: 1px solid #FECACA;
  border-radius: var(--radius-sm); padding: 10px 14px;
  font-size: 12.5px; color: #DC2626;
  display: flex; gap: 8px; align-items: flex-start;
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT TIMELINE
═══════════════════════════════════════════════════════════════ */
.contact-timeline { padding: 8px 0; }

.contact-item {
  display: flex; gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid #F1F5FF;
  transition: background var(--transition);
}
.contact-item:last-child { border-bottom: none; }
.contact-item:hover { background: var(--blue-50); }

.contact-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0; color: #fff;
}

.channel-phone    { background: var(--c-primary); }
.channel-whatsapp { background: var(--c-success); }
.channel-email    { background: #7C3AED; }
.channel-visit    { background: var(--c-warning); }
.channel-other    { background: var(--c-secondary); }

.contact-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 4px; }
.contact-body { flex: 1; min-width: 0; }

.contact-summary {
  background: var(--blue-50); border: 1px solid var(--blue-100);
  border-radius: var(--radius-sm); padding: 7px 11px;
  font-size: 12.5px; margin-top: 6px; line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════
   DETAIL PAGE
═══════════════════════════════════════════════════════════════ */
.detail-row {
  display: flex; gap: 16px; padding: 11px 0;
  border-bottom: 1px solid #F1F5FF; font-size: 13.5px;
}
.detail-row:last-child { border-bottom: none; }

.detail-label {
  min-width: 130px; font-weight: 700;
  color: var(--text-3); font-size: 11.5px;
  display: flex; align-items: center; gap: 5px;
  flex-shrink: 0; text-transform: uppercase; letter-spacing: .05em;
}

.metric-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0; border-bottom: 1px solid #F1F5FF; font-size: 13px;
}
.metric-row:last-child { border-bottom: none; }
.metric-label { color: var(--text-3); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }

.opening-hours div { font-size: 12.5px; line-height: 1.7; }
.font-mono { font-family: 'Fira Mono', 'Cascadia Code', monospace; font-size: 12.5px; }

/* ═══════════════════════════════════════════════════════════════
   TABS
═══════════════════════════════════════════════════════════════ */
.probi-tabs { border-bottom: 2px solid var(--border); }

.probi-tabs .nav-link {
  color: var(--text-3); font-size: 13.5px; font-weight: 600;
  padding: 10px 18px; border: none;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: color var(--transition), border-color var(--transition);
  display: flex; align-items: center; gap: 7px;
}

.probi-tabs .nav-link:hover { color: var(--primary); }
.probi-tabs .nav-link.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ═══════════════════════════════════════════════════════════════
   FILTER SIDEBAR
═══════════════════════════════════════════════════════════════ */
.filters-card .probi-card-body { padding: 16px; }
.filter-group { margin-bottom: 16px; }

.filter-label {
  font-size: 10.5px; font-weight: 700; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .07em;
  margin-bottom: 5px; display: block;
}

/* ═══════════════════════════════════════════════════════════════
   VIEW TOGGLE (Table / Kanban)
═══════════════════════════════════════════════════════════════ */
.view-toggle {
  display: flex;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 2px;
}

.view-toggle-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  border: none; background: transparent;
  border-radius: 6px;
  font-size: 12.5px; font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
  transition: all var(--transition);
}

.view-toggle-btn.active {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* ═══════════════════════════════════════════════════════════════
   KANBAN BOARD
═══════════════════════════════════════════════════════════════ */
.kanban-wrapper {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
  min-height: calc(100vh - 200px);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.kanban-wrapper::-webkit-scrollbar { height: 6px; }
.kanban-wrapper::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }

.kanban-col {
  flex-shrink: 0;
  width: 272px;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: #EEF3FF;
  border: 2px solid transparent;
  transition: border-color var(--transition), background var(--transition);
  min-height: 200px;
}

.kanban-col.drag-over {
  border-color: var(--primary);
  background: var(--blue-50);
}

.kanban-col-header {
  padding: 14px 14px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kanban-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-1);
}

.kanban-col-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.kanban-col-count {
  font-size: 11px; font-weight: 700;
  background: #fff;
  color: var(--text-2);
  padding: 2px 7px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.kanban-col-body {
  flex: 1;
  padding: 4px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 80px;
}

/* Kanban Card */
.kanban-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: grab;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
  user-select: none;
}

.kanban-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-100);
  color: inherit;
}

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

.kanban-card.dragging {
  opacity: .5;
  transform: scale(.98);
  box-shadow: none;
}

.kanban-card-name {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-1);
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kanban-card-phone {
  font-size: 12px;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.kanban-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.kanban-card-date {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
}

.kanban-card-rating {
  font-size: 11px;
  color: #D97706;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
}

.kanban-card-cats { margin-bottom: 6px; }

/* Empty kanban drop target */
.kanban-drop-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  padding: 24px 12px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  color: var(--text-3);
  font-size: 12px;
  text-align: center;
  font-weight: 500;
  transition: all var(--transition);
}

.drag-over .kanban-drop-hint {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(37,99,235,.04);
}

/* Status dot colors */
.dot-secondary { background: var(--c-secondary); }
.dot-primary   { background: var(--c-primary); }
.dot-warning   { background: var(--c-warning); }
.dot-danger    { background: var(--c-danger); }
.dot-info      { background: var(--c-info); }
.dot-success   { background: var(--c-success); }

/* ═══════════════════════════════════════════════════════════════
   SEARCH MODE TABS (capture)
═══════════════════════════════════════════════════════════════ */
.search-mode-tabs {
  display: flex; background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-sm); padding: 3px; gap: 3px;
}

.mode-tab {
  flex: 1; padding: 8px; border: none; background: transparent;
  border-radius: 6px; font-size: 13px; font-weight: 600;
  color: var(--text-3); cursor: pointer;
  transition: all var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}

.mode-tab.active {
  background: #fff; color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.batch-counter { font-size: 12px; color: var(--text-3); }

.info-step { display: flex; gap: 12px; margin-bottom: 16px; }
.step-icon { font-size: 20px; color: var(--primary); flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════
   STATUS PAGE (captação)
═══════════════════════════════════════════════════════════════ */
.status-icon-large { font-size: 3.5rem; }

.counter-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 13.5px;
}

.pill-found    { background: var(--blue-50); color: var(--blue-700); border: 1px solid var(--blue-100); }
.pill-new      { background: #F0FDF4; color: #15803D; border: 1px solid #BBF7D0; }
.pill-updated  { background: #E0F2FE; color: #0369A1; border: 1px solid #BAE6FD; }
.pill-existing { background: #F8FAFF; color: var(--text-2); border: 1px solid var(--border); }

/* ═══════════════════════════════════════════════════════════════
   HISTORY BADGES
═══════════════════════════════════════════════════════════════ */
.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-completed { background: #F0FDF4; color: #15803D; }
.badge-running   { background: var(--blue-50); color: var(--blue-700); }
.badge-pending   { background: #FEFCE8; color: #A16207; }
.badge-failed    { background: #FEF2F2; color: #DC2626; }

.badge-query {
  display: inline-block; background: var(--blue-50); border: 1px solid var(--blue-100);
  border-radius: 5px; padding: 2px 8px; font-size: 11.5px; margin: 1px;
  color: var(--text-1); font-weight: 500;
}

.query-list { display: flex; flex-wrap: wrap; gap: 3px; }

/* ═══════════════════════════════════════════════════════════════
   EMPTY STATES
═══════════════════════════════════════════════════════════════ */
.empty-state { text-align: center; padding: 48px 24px; color: var(--text-3); }
.empty-state .fs-1 { opacity: .4; }

/* ═══════════════════════════════════════════════════════════════
   ERROR PAGES
═══════════════════════════════════════════════════════════════ */
.error-page { padding: 80px 24px; }
.error-code {
  font-size: 100px; font-weight: 900; color: var(--blue-100);
  line-height: 1; letter-spacing: -.04em;
}

/* ═══════════════════════════════════════════════════════════════
   ADMIN USER TABLE
═══════════════════════════════════════════════════════════════ */
.user-avatar-sm {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-600), #5B8DEF);
  color: #fff; font-weight: 700; font-size: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════════════════════ */
.pagination .page-link {
  border-radius: 7px !important; margin: 0 2px;
  font-size: 13px; color: var(--text-2);
  border-color: var(--border);
  transition: all var(--transition);
}

.pagination .page-link:hover { background: var(--blue-50); color: var(--primary); border-color: var(--blue-100); }
.pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); }

/* ═══════════════════════════════════════════════════════════════
   FLASH MESSAGES
═══════════════════════════════════════════════════════════════ */
.flash-container { margin-bottom: 20px; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 991.98px) {
  .probi-main { margin-left: 0; }

  .probi-sidebar {
    transform: translateX(-100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    z-index: 200;
    box-shadow: none;
  }

  .probi-sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 32px rgba(15,23,60,.15);
  }

  .probi-content { padding: 20px 16px; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .kpi-card .kpi-value { font-size: 22px; }
  .kanban-wrapper { min-height: 60vh; }
}

@media (max-width: 575.98px) {
  .probi-content { padding: 16px 12px; }
  .auth-card { padding: 28px 20px; }
  .detail-row { flex-direction: column; gap: 4px; }
  .detail-label { min-width: unset; }
  .kanban-col { width: 240px; }
}
