:root {
    --bg: #0f1115;
    --panel: #161922;
    --panel-2: #1e2230;
    --border: #2a2f3e;
    --text: #e8eaf0;
    --muted: #8a8fa3;
    --accent: #4f7cff;
    --accent-2: #33d9a8;
    --danger: #ff5c6c;
    --radius: 10px;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
}
.auth-body { display: flex; align-items: center; justify-content: center; height: 100vh; }
.auth-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.auth-card h1 { margin: 0 0 12px; font-size: 20px; }
.auth-card label { font-size: 13px; color: var(--muted); }
.auth-card input, .auth-card button, input, select, textarea, button {
    font-family: inherit;
}
input, select, textarea {
    background: var(--panel-2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 14px;
}
button {
    cursor: pointer;
    border: none;
    border-radius: 8px;
    padding: 9px 14px;
    background: var(--accent);
    color: white;
    font-size: 14px;
    font-weight: 600;
}
button.secondary { background: var(--panel-2); border: 1px solid var(--border); color: var(--text); }
button.danger { background: var(--danger); }
.error { color: var(--danger); font-size: 13px; }

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--panel);
}
.topbar h1 { font-size: 18px; margin: 0; }
.container { padding: 24px; max-width: 1200px; margin: 0 auto; }

.stats-row { display: flex; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.stat-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
    min-width: 120px;
}
.stat-card .num { font-size: 22px; font-weight: 700; }
.stat-card .label { font-size: 12px; color: var(--muted); text-transform: capitalize; }

.toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    align-items: center;
}
.toolbar input[type=text] { flex: 1; min-width: 200px; }

table { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 13px; }
th { background: var(--panel-2); color: var(--muted); font-weight: 600; text-transform: uppercase; font-size: 11px; }
tr:hover td { background: rgba(255,255,255,0.02); }

.badge { padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 600; text-transform: capitalize; }
.badge.new { background: #2b3a6a; color: #9db4ff; }
.badge.contacted { background: #3a3120; color: #f0c674; }
.badge.qualified { background: #1e3a2e; color: #6be3a8; }
.badge.converted { background: #17402f; color: var(--accent-2); }
.badge.rejected { background: #402024; color: var(--danger); }

.modal-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    align-items: center; justify-content: center;
    z-index: 50;
}
.modal-overlay.open { display: flex; }
.modal {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    width: 380px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.modal h2 { margin: 0 0 8px; font-size: 16px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.small { font-size: 12px; color: var(--muted); }
