/* ---------- COMPONENTS: CORE ---------- */
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 500;
  text-transform: capitalize;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.contact-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--link-underline-color);
  text-underline-offset: 2px;
}

.contact-link:hover {
  text-decoration-color: var(--text-placeholder);
}

.returning-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-tint-subtle);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Status colors - single source of truth */
.status-new {
  background: var(--status-new-bg);
  color: var(--status-new-fg);
}

.status-closed_won {
  background: var(--status-success-bg);
  color: var(--status-success-fg);
}

.status-closed_lost {
  background: var(--status-danger-bg);
  color: var(--status-danger-fg);
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--surface-0) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: var(--card-shadow);
}

.page-title {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.page-subtitle {
  margin: 6px 0 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.panel {
  background: var(--surface-0);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  padding: 16px;
}

.panel + .panel {
  margin-top: 14px;
}

@media (max-width: 720px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- DASHBOARD ---------- */

.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.dash-card {
  background: var(--surface-0);
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--card-shadow);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.dash-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.24);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.dash-card__label {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.dash-card__value {
  font-size: 36px;
  font-weight: 700;
  margin: 6px 0 10px 0;
  letter-spacing: -0.01em;
}

.dash-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-color);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  transition: color 150ms ease, transform 150ms ease;
}

.dash-card__link:hover {
  color: var(--accent-color-hover);
  transform: translateX(2px);
}

.dash-meta {
  color: var(--text-muted);
  font-size: 13px;
}

/* ---------- LEAD PAGE ---------- */

.leads-filter-panel {
  margin-top: 0;
  background: linear-gradient(160deg, var(--surface-0) 0%, var(--surface-tint-card) 100%);
}

.leads-filter-row {
  display: flex;
  align-items: center;
  column-gap: 8px;
  row-gap: 8px;
  flex-wrap: wrap;
}

.leads-filter-row + .leads-filter-row {
  margin-top: 2px;
}

.leads-filter-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  font-weight: 600;
  min-width: 66px;
}


.dash-meta.danger {
  color: var(--status-danger-fg);
}

.pagination-shell {
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.pagination-shell .btn {
  min-width: 120px;
}

.pagination-sentinel {
  height: 1px;
}

