/* =========================================================================
   leads-radar · design system
   Dark, premium, matches guard-radar.com brand
   ========================================================================= */

:root {
  --bg:        #0a0a0a;
  --bg-2:      #0c0c12;
  --bg-3:      #14141c;
  --bg-4:      #1c1c26;
  --bg-5:      #25252f;
  --line:      rgba(255,255,255,0.06);
  --line-2:    rgba(255,255,255,0.1);
  --line-3:    rgba(255,255,255,0.18);
  --text:      #f5f5f7;
  --text-2:    #d1d5db;
  --text-muted:#9ca3af;
  --text-dim:  #6b7280;

  --purple:    #8B5CF6;
  --purple-2:  #a78bfa;
  --purple-deep:#6d28d9;
  --purple-soft:rgba(139,92,246,0.15);
  --green:     #22c55e;
  --green-2:   #4ade80;
  --green-soft:rgba(34,197,94,0.15);
  --amber:     #f59e0b;
  --amber-soft:rgba(245,158,11,0.15);
  --red:       #ef4444;
  --red-soft:  rgba(239,68,68,0.15);
  --blue:      #3b82f6;
  --blue-soft: rgba(59,130,246,0.15);

  --font:      'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono:      'JetBrains Mono', 'SF Mono', Menlo, monospace;
  --r:         10px;
  --r-lg:      16px;
  --r-xl:      22px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(139,92,246,0.06), transparent 40%),
              radial-gradient(circle at 80% 100%, rgba(34,197,94,0.04), transparent 40%);
  pointer-events: none;
  z-index: -1;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: 0; color: inherit; }
input, select, textarea {
  font-family: inherit; font-size: inherit; color: inherit;
  background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 8px;
  padding: 8px 10px; outline: none; transition: border-color 0.15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.15);
}
textarea { font-family: var(--font); resize: vertical; }
.mono { font-family: var(--mono); }
.muted { color: var(--text-muted); }
.link-strong { font-weight: 600; color: var(--text); }
.link-strong:hover { color: var(--purple-2); }

/* ===================== APP LAYOUT ===================== */
.app {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--bg-2);
  border-right: 1px solid var(--line-2);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
}
.sidebar-logo {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--purple), var(--green));
  box-shadow: 0 0 16px rgba(139,92,246,0.5);
  position: relative;
}
.sidebar-logo::after {
  content: '';
  position: absolute; inset: 5px;
  border-radius: 4px;
  background: var(--bg-2);
}
.sidebar-brand-text strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.sidebar-brand-text span {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
}
.sidebar-nav a:hover {
  background: var(--bg-3);
  color: var(--text);
}
.sidebar-nav a.active {
  background: var(--purple-soft);
  color: var(--purple-2);
  border: 1px solid rgba(139,92,246,0.3);
  padding: 8px 11px;
}
.nav-icon { font-size: 14px; opacity: 0.7; }
.sidebar-foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
}
.sidebar-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 13px;
}
.sidebar-user strong { display: block; font-size: 13px; }
.sidebar-user span {
  font-size: 11px; color: var(--text-muted);
}
.sidebar-logout {
  width: 100%;
  padding: 7px 10px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: 7px;
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
}
.sidebar-logout:hover { background: var(--bg-4); color: var(--text); }

.main {
  padding: 32px 36px;
  min-width: 0;
}
/* ===================== PAGE HEADS ===================== */
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  gap: 24px;
}
.page-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-2);
  background: var(--purple-soft);
  border: 1px solid rgba(139,92,246,0.25);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.page-head h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.page-sub {
  color: var(--text-muted);
  font-size: 14px;
}
.page-head-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.back-link {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: inline-block;
}
.back-link:hover { color: var(--purple-2); }
.lead-title { margin-bottom: 6px; }
.lead-meta { display: flex; gap: 14px; flex-wrap: wrap; }
.lead-meta-link {
  font-size: 13px;
  color: var(--text-muted);
}
.lead-meta-link:hover { color: var(--purple-2); }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}
.btn-primary:hover {
  background: var(--purple-2);
  border-color: var(--purple-2);
  box-shadow: 0 4px 12px rgba(139,92,246,0.35);
  transform: translateY(-1px);
}
.btn-ghost {
  background: var(--bg-3);
  color: var(--text-2);
  border-color: var(--line-2);
}
.btn-ghost:hover {
  background: var(--bg-4);
  color: var(--text);
  border-color: var(--line-3);
}
.btn-sm {
  padding: 6px 11px;
  font-size: 12px;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ===================== STATS GRID ===================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  transition: all 0.15s;
  display: block;
}
.stat-card:hover {
  border-color: var(--line-3);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -6px rgba(0,0,0,0.5);
}
.stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stat-num {
  font-size: 28px;
  font-weight: 800;
  margin: 8px 0 4px;
  letter-spacing: -0.02em;
  font-feature-settings: 'tnum';
}
.stat-meta {
  font-size: 11px;
  color: var(--text-muted);
}
.stat-card-purple .stat-num { color: var(--purple-2); }
.stat-card-blue .stat-num { color: var(--blue); }
.stat-card-amber .stat-num { color: var(--amber); }
.stat-card-green .stat-num { color: var(--green); }

/* ===================== PANELS ===================== */
.panel {
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  margin-bottom: 16px;
}
.panel-tight { padding: 14px 16px; }
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.panel-head h2 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.panel-link {
  font-size: 12px;
  color: var(--purple-2);
  font-weight: 500;
}
.panel-link:hover { color: var(--purple); }
.empty {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main { padding: 20px; }
}

/* ===================== DATA TABLES ===================== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-2);
  background: var(--bg-2);
}
.data-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-2); }

/* ===================== STAGE PILLS ===================== */
.stage-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 100px;
}
.stage-New           { background: rgba(156,163,175,0.15); color: #9ca3af; border: 1px solid rgba(156,163,175,0.3); }
.stage-Researching   { background: var(--blue-soft);   color: var(--blue);  border: 1px solid rgba(59,130,246,0.3); }
.stage-Contacted     { background: var(--amber-soft);  color: var(--amber); border: 1px solid rgba(245,158,11,0.3); }
.stage-Qualified     { background: rgba(139,92,246,0.15); color: var(--purple-2); border: 1px solid rgba(139,92,246,0.3); }
.stage-Proposal-Sent { background: rgba(236,72,153,0.15); color: #ec4899; border: 1px solid rgba(236,72,153,0.3); }
.stage-Won           { background: var(--green-soft);  color: var(--green-2); border: 1px solid rgba(34,197,94,0.3); }
.stage-Lost          { background: rgba(239,68,68,0.15); color: #ef4444; border: 1px solid rgba(239,68,68,0.3); }

/* ===================== FIT BAR / BADGES ===================== */
.fit-bar {
  display: inline-block;
  width: 50px;
  height: 4px;
  background: var(--bg-4);
  border-radius: 2px;
  overflow: hidden;
  vertical-align: middle;
}
.fit-bar span {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: 2px;
  transition: width 0.4s;
}
.fit-bar-inline { width: 70px; margin-right: 8px; }
.fit-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 100px;
  font-family: var(--mono);
}
.fit-high { background: var(--green-soft); color: var(--green-2); }
.fit-med  { background: var(--amber-soft); color: var(--amber); }
.fit-low  { background: rgba(255,255,255,0.05); color: var(--text-muted); }

/* ===================== KANBAN ===================== */
.kanban {
  display: grid;
  grid-template-columns: repeat(7, minmax(180px, 1fr));
  gap: 10px;
  overflow-x: auto;
}
.kanban-col {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 10px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
}
.kanban-col-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
}
.kanban-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}
.kanban-count {
  font-family: var(--mono);
  font-size: 11px;
  background: var(--bg-3);
  padding: 1px 7px;
  border-radius: 100px;
  color: var(--text-muted);
}
.kanban-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.kanban-card {
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 10px 11px;
  display: block;
  transition: all 0.15s;
}
.kanban-card:hover {
  border-color: var(--purple);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -2px rgba(139,92,246,0.2);
}
.kanban-card-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.kanban-card-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kanban-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}
.kanban-empty {
  text-align: center;
  color: var(--text-dim);
  font-size: 12px;
  padding: 16px;
}

/* ===================== LEAD DETAIL ===================== */
.lead-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
}
.lead-main, .lead-side { display: flex; flex-direction: column; }
.lead-main > .panel:last-child, .lead-side > .panel:last-child { margin-bottom: 0; }
.contact-card { font-size: 13px; line-height: 1.7; }
.contact-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.notes-pre {
  font-family: var(--font);
  font-size: 13px;
  white-space: pre-wrap;
  word-wrap: break-word;
  color: var(--text-2);
  background: var(--bg-2);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 10px;
  max-height: 300px;
  overflow-y: auto;
}
.add-note-form, .add-task-form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.add-note-form textarea { flex: 1; }
.add-task-form input[type="text"], .add-task-form input:not([type]) { flex: 1; }
.task-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.task-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: var(--bg-2);
  border-radius: 7px;
  border: 1px solid var(--line);
}
.task-list li.task-done { opacity: 0.5; }
.task-list li.task-done .task-check span { text-decoration: line-through; }
.task-check {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 13px;
  flex: 1;
}
.task-check input { width: 16px; height: 16px; cursor: pointer; }

.email-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.email-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  background: var(--bg-2);
  border-radius: 8px;
  border: 1px solid var(--line);
}
.email-direction {
  font-size: 16px;
  width: 24px;
  flex-shrink: 0;
  text-align: center;
}
.email-outbound { color: var(--purple-2); }
.email-inbound  { color: var(--green-2); }
.email-subject {
  font-size: 13px;
  font-weight: 600;
}
.email-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  margin-top: 3px;
}
.email-status {
  padding: 2px 7px;
  border-radius: 100px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 10px;
}
.email-status-draft { background: var(--bg-4); color: var(--text-muted); }
.email-status-sent  { background: var(--green-soft); color: var(--green-2); }
.email-status-replied { background: var(--purple-soft); color: var(--purple-2); }

.new-email summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--purple-2);
  margin-top: 10px;
  font-weight: 600;
}
.new-email-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.new-email-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* ===================== KV (key-value pairs) ===================== */
.kv {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--text-muted); font-size: 12px; }
.kv .v { color: var(--text); text-align: right; }
.kv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.followup-form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.followup-form label { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--text-muted); }
.followup-form label span { display: none; }
.followup-form input { width: 100%; }

.stage-select {
  padding: 7px 12px;
  font-weight: 600;
  font-size: 13px;
}

/* ===================== ACTIVITY FEED ===================== */
.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}
.activity-feed li {
  display: flex;
  gap: 10px;
  padding: 6px 0;
}
.activity-feed-tall li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.activity-feed-tall li:last-child { border-bottom: none; }
.activity-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  margin-top: 7px;
  flex-shrink: 0;
}
.activity-dot.activity-login,
.activity-dot.activity-logout { background: var(--blue); }
.activity-dot.activity-lead { background: var(--purple); }
.activity-dot.activity-task { background: var(--amber); }
.activity-dot.activity-email { background: var(--green); }
.activity-dot.activity-agent { background: var(--green-2); box-shadow: 0 0 6px var(--green); }
.activity-dot.activity-scheduler { background: var(--purple-2); }
.activity-text { font-size: 13px; color: var(--text); }
.activity-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.activity-type {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  background: var(--bg-4);
  color: var(--purple-2);
  padding: 1px 6px;
  border-radius: 4px;
  margin-right: 6px;
  font-weight: 600;
}

/* ===================== MODAL ===================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
}
.modal-card {
  position: relative;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  padding: 28px;
  max-width: 600px;
  width: calc(100% - 32px);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  box-shadow: 0 30px 80px -10px rgba(0,0,0,0.6);
}
.modal-card h2 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.modal-card label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.modal-card label > span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* ===================== LOGIN PAGE ===================== */
.login-body {
  min-height: 100vh;
  display: flex;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.login-body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(139,92,246,0.12), transparent 35%),
    radial-gradient(circle at 80% 70%, rgba(34,197,94,0.08), transparent 35%);
  z-index: -1;
}
.login-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  min-height: 100vh;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px;
  gap: 48px;
  align-items: center;
}
.login-card {
  max-width: 380px;
}
.login-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}
.login-logo-mark {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--purple), var(--green));
  box-shadow: 0 0 20px rgba(139,92,246,0.5);
  position: relative;
}
.login-logo-mark::after {
  content: '';
  position: absolute; inset: 6px;
  border-radius: 5px;
  background: var(--bg);
}
.login-logo strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
}
.login-logo span {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.login-card h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.login-sub {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 14px;
}
.login-error {
  background: var(--red-soft);
  border: 1px solid rgba(239,68,68,0.3);
  color: #f87171;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.login-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.login-form label > span {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.login-form input {
  padding: 11px 14px;
  font-size: 14px;
}
.login-btn {
  background: var(--purple);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
  transition: all 0.15s;
}
.login-btn:hover {
  background: var(--purple-2);
  box-shadow: 0 4px 12px rgba(139,92,246,0.4);
  transform: translateY(-1px);
}
.login-foot {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-muted);
}
.login-foot a { color: var(--text-2); }
.login-foot a:hover { color: var(--purple-2); }

.login-art {
  position: relative;
  height: 100%;
  min-height: 480px;
  border-radius: var(--r-xl);
  background:
    linear-gradient(135deg, rgba(139,92,246,0.15), rgba(34,197,94,0.05)),
    var(--bg-3);
  border: 1px solid var(--line-2);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 28px;
}
.login-art-glow {
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--purple), transparent 70%);
  opacity: 0.25;
  filter: blur(40px);
}
.login-art-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.login-art-tag {
  position: relative;
  background: rgba(20,20,28,0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-2);
  padding: 14px 18px;
  border-radius: 10px;
}
.login-art-tag strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 3px;
}
.login-art-tag span {
  font-size: 12px;
  color: var(--text-muted);
}
@media (max-width: 800px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-art { display: none; }
}

/* ===================== SEARCH BOX ===================== */
.search-box input {
  width: 280px;
  background: var(--bg-3);
}

/* ===================== FOLLOW-UP LIST ===================== */
.followup-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.followup-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: var(--bg-2);
  border-radius: 7px;
  border: 1px solid var(--line);
  font-size: 13px;
}
.followup-list li a { font-weight: 600; }
.followup-list li a:hover { color: var(--purple-2); }

/* ===================== SETTINGS FORM ===================== */
.settings-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.settings-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.settings-form label > span {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.settings-form label small {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.settings-form label small a { color: var(--purple-2); }
.settings-form button { align-self: flex-start; margin-top: 6px; }
.kv-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.kv-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.kv-list li:last-child { border-bottom: none; }

/* ===================== EMPTY STATE ===================== */
.empty-state {
  text-align: center;
  padding: 80px 20px;
}
.empty-state h1 {
  font-size: 64px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}
.empty-state p {
  color: var(--text-muted);
  margin-bottom: 24px;
}
