/* Admin page — lead listing */

.admin-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.admin-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}

.admin-header h1 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--fg);
  margin-top: 8px;
}

.ah-meta {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--fg-muted);
}

.lead-count {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  margin-right: 4px;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.es-icon { margin-bottom: 20px; }

.empty-state p {
  font-size: 16px;
  color: var(--fg-muted);
  margin-bottom: 24px;
}

.es-link {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
}

/* Table */
.leads-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.leads-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 14px;
}

.leads-table thead tr {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}

.leads-table th {
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-muted);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  white-space: nowrap;
}

.leads-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
}

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

.leads-table tbody tr:hover td {
  background: var(--bg-2);
}

.td-name { font-weight: 500; }

.td-email a {
  color: var(--accent);
  text-decoration: none;
}

.td-email a:hover { text-decoration: underline; }

.td-phone { color: var(--fg-muted); }

.type-badge {
  display: inline-block;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(240,78,26,0.2);
  border-radius: 100px;
  padding: 2px 10px;
  font-size: 11px;
  font-family: var(--font-display);
  font-weight: 600;
}

.td-msg {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--fg-muted);
  font-size: 13px;
}

.td-date {
  color: var(--fg-muted);
  white-space: nowrap;
  font-size: 12px;
}

.admin-back {
  margin-top: 40px;
}

.back-link {
  color: var(--fg-muted);
  font-family: var(--font-display);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
}

.back-link:hover { color: var(--fg); }