/* LeadShare design system — light, structured, professional B2B SaaS. No build step. */
/* Font: Inter is referenced for when a self-hosted WOFF2 is added under public/assets/fonts/.
   Until then, the system-ui stack provides a close, readable fallback. */
:root {
  --bg: #f5f7fa;
  --sidebar-bg: #eef2f7;
  --surface: #ffffff;
  --surface-hover: #f8fafc;
  --text: #263449;
  --text-2: #596579;
  --text-3: #8b95a7;
  --border: #dde3ec;
  --border-strong: #c4cdd9;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-bg: #eaf1ff;
  --primary-light: #f0f5ff;
  --success: #15803d;
  --success-bg: #ecfdf3;
  --warning: #b45309;
  --warning-bg: #fffbeb;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --muted-bg: #f3f4f6;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-lg: 0 8px 32px rgba(16, 24, 40, .14);
  --sidebar-w: 240px;
  --topbar-h: 64px;
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { margin: 0 0 .5rem; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 24px; }
h2 { font-size: 18px; }
p { margin: 0 0 .75rem; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); }
.small { font-size: 12.5px; }

/* ---------- icons ---------- */
.ico-svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ico-svg.sm { width: 16px; height: 16px; }
.ico-svg.lg { width: 24px; height: 24px; }
.nav .ico-svg { width: 18px; height: 18px; color: var(--text-3); flex-shrink: 0; }
.nav a.active .ico-svg { color: var(--primary); }
.nav a:hover .ico-svg { color: var(--text-2); }

/* ---------- layout ---------- */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--sidebar-w);
  background: var(--sidebar-bg); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; z-index: 40;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.brand-mark {
  width: 32px; height: 32px; border-radius: var(--radius); background: var(--primary);
  color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.brand .ls-logo { width: 28px; height: 28px; flex-shrink: 0; }
.brand-name { font-weight: 700; font-size: 16px; color: var(--text); }
.nav { padding: 8px 12px; display: flex; flex-direction: column; gap: 1px; overflow-y: auto; flex: 1; }
.nav-group { margin-top: 12px; }
.nav-group:first-child { margin-top: 0; }
.nav-group-label {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-3); padding: 4px 10px 6px;
}
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius);
  color: var(--text-2); font-weight: 500; font-size: 13.5px; transition: background .12s, color .12s;
}
.nav a:hover { background: rgba(255,255,255,.6); text-decoration: none; color: var(--text); }
.nav a.active { background: var(--primary-bg); color: var(--primary); font-weight: 600; }
.nav .ico { width: 18px; text-align: center; color: var(--text-3); }
.nav a.active .ico { color: var(--primary); }
.sidebar-foot { padding: 12px 20px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-2); }
.main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px; padding: 0 28px; height: var(--topbar-h);
}
.topbar h1 { font-size: 17px; margin: 0; font-weight: 600; }
.topbar .spacer { flex: 1; }
.topbar-context { font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.user-chip { font-size: 13px; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
.user-chip.num { font-variant-numeric: tabular-nums; }
.balance-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--radius);
  background: var(--muted-bg); font-size: 13px; font-weight: 600; color: var(--text);
  text-decoration: none; transition: background .12s;
}
.balance-chip:hover { background: var(--border); text-decoration: none; }
.balance-chip .ico-svg { width: 16px; height: 16px; color: var(--text-2); }
.content { padding: 24px 28px 48px; max-width: 1600px; width: 100%; margin: 0 auto; }
.content-narrow { max-width: 960px; }
.menu-btn { display: none; background: none; border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 10px; cursor: pointer; color: var(--text-2); align-items: center; }
.scrim { display: none; }

/* ---------- cards / stats ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 20px; margin-bottom: 20px; }
.card h2 { font-size: 15px; margin-bottom: 12px; }
.card .hint { font-size: 13px; color: var(--text-2); }
.grid { display: grid; gap: 16px; }
.grid.stats { grid-template-columns: repeat(4, 1fr); }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 18px 20px; }
.stat .label { font-size: 12.5px; color: var(--text-2); font-weight: 500; margin-bottom: 6px; }
.stat .value { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.stat .sub { font-size: 12.5px; color: var(--text-2); margin-top: 4px; }
.grid.two { grid-template-columns: 1fr 1fr; }
.grid.three { grid-template-columns: repeat(3, 1fr); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.table.compact { font-size: 13px; }
.table th {
  text-align: left; font-size: 12.5px; font-weight: 600;
  color: var(--text-2); padding: 12px 16px; border-bottom: 1px solid var(--border);
  background: var(--surface-hover); white-space: nowrap;
}
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table.compact td { padding: 8px 12px; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--surface-hover); }
.table tbody tr.is-open { background: var(--primary-light); }
.table .r { text-align: right; }
.table .col-id { width: 130px; }
.table .col-name { width: 180px; }
.table .col-phone { width: 160px; }
.table .col-address { width: 240px; }
.table .col-actions { width: 88px; white-space: nowrap; }
.cell-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 240px; }

/* ---------- badges ---------- */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap;
}
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-info { background: var(--primary-bg); color: var(--primary); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-muted { background: var(--muted-bg); color: var(--text-2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px;
  border-radius: var(--radius); font-size: 13.5px; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; line-height: 1.4; transition: background .12s, border-color .12s, box-shadow .12s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-secondary:hover { background: var(--muted-bg); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(.94); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--muted-bg); color: var(--text); }
.btn-sm { padding: 6px 12px; font-size: 12.5px; }
.btn-lg { padding: 11px 20px; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn .ico-svg { width: 16px; height: 16px; }
.actions { display: flex; gap: 10px; align-items: center; }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .spacer { flex: 1; }

/* quick amount buttons */
.quick-amounts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.quick-amounts .btn { padding: 6px 14px; font-size: 13px; }

/* ---------- forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.field input[type=text], .field input[type=email], .field input[type=password],
.field input[type=url], .field input[type=number], .field input[type=date],
.field input[type=tel], .field select, .field textarea {
  width: 100%; padding: 9px 12px; font-size: 14px; font-family: inherit;
  border: 1px solid var(--border-strong); border-radius: var(--radius); background: #fff; color: var(--text);
  transition: border-color .12s, box-shadow .12s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field .help { font-size: 12.5px; color: var(--text-2); margin-top: 5px; }
.field .error { font-size: 12.5px; color: var(--danger); margin-top: 5px; }
.field .req { color: var(--danger); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 16px; }
.filters .field { margin-bottom: 0; min-width: 150px; }
.filters input, .filters select { padding: 8px 11px; font-size: 13px; border: 1px solid var(--border-strong); border-radius: var(--radius); }

/* amount input with prefix */
.amount-input { position: relative; }
.amount-input .prefix { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-2); font-weight: 600; pointer-events: none; }
.amount-input input { padding-left: 28px; }

/* checkbox row */
.check-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; }
.check-row input { margin: 0; width: 16px; height: 16px; accent-color: var(--primary); }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; margin: 10px 0; }

/* ---------- toasts ---------- */
.toasts { position: fixed; top: 16px; right: 16px; z-index: 9000; display: flex; flex-direction: column; gap: 8px; max-width: 380px; }
.toast { padding: 12px 16px; border-radius: var(--radius-lg); font-size: 13.5px; font-weight: 500; box-shadow: var(--shadow-lg); border: 1px solid; display: flex; align-items: flex-start; gap: 8px; animation: toast-in 0.25s ease-out; }
.toast-success { background: var(--success-bg); border-color: #bbf7d0; color: #166534; }
.toast-error { background: var(--danger-bg); border-color: #fecaca; color: #991b1b; }
.toast-warning { background: var(--warning-bg); border-color: #fde68a; color: #92400e; }
.toast-close { background: none; border: none; color: inherit; opacity: 0.6; cursor: pointer; font-size: 18px; line-height: 1; padding: 0 0 2px; margin-left: auto; flex-shrink: 0; }
.toast-close:hover { opacity: 1; }
.toast.is-leaving { animation: toast-out 0.2s ease-in forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toast-out { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(20px); } }

/* ---------- settings tabs ---------- */
.settings-layout { display: flex; gap: 24px; align-items: flex-start; }
.settings-nav { width: 220px; flex-shrink: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.settings-nav-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 16px; background: none; border: none; border-bottom: 1px solid var(--border); text-align: left; font-size: 14px; font-weight: 500; color: var(--text-muted); cursor: pointer; transition: background 0.15s, color 0.15s; }
.settings-nav-item:last-child { border-bottom: none; }
.settings-nav-item:hover { background: var(--surface-hover); color: var(--text); }
.settings-nav-item.is-active { background: var(--primary-light); color: var(--primary); border-left: 3px solid var(--primary); padding-left: 13px; }
.settings-nav-item .ico-svg { flex-shrink: 0; }
.settings-content { flex: 1; min-width: 0; }
.settings-panel { display: none; }
.settings-panel.is-active { display: block; }
.settings-panel-head { margin-bottom: 16px; }
.settings-panel-head h2 { font-size: 18px; font-weight: 600; margin: 0 0 4px; }
.settings-panel-head p { font-size: 13.5px; color: var(--text-muted); margin: 0; }
@media (max-width: 768px) {
  .settings-layout { flex-direction: column; gap: 12px; }
  .settings-nav { width: 100%; display: flex; flex-direction: row; overflow-x: auto; }
  .settings-nav-item { white-space: nowrap; border-bottom: none; border-right: 1px solid var(--border); padding: 10px 14px; }
  .settings-nav-item.is-active { border-left: none; border-bottom: 3px solid var(--primary); padding-left: 14px; }
}

/* ---------- empty / misc ---------- */
.empty { text-align: center; padding: 48px 20px; background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); }
.empty .t { font-weight: 600; font-size: 15px; margin: 10px 0 4px; }
.empty .s { color: var(--text-2); font-size: 13.5px; margin-bottom: 14px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 16px 26px; font-size: 13.5px; }
.timeline li::before {
  content: ""; position: absolute; left: 6px; top: 6px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--border-strong);
}
.timeline li.done::before { background: var(--success); }
.timeline li.now::before { background: var(--primary); box-shadow: 0 0 0 3px var(--primary-bg); }
.timeline li::after { content: ""; position: absolute; left: 10px; top: 18px; bottom: -2px; width: 1px; background: var(--border); }
.timeline li:last-child::after { display: none; }
.timeline .tm { color: var(--text-3); font-size: 12px; }
pre.code {
  background: #1e293b; color: #e2e8f0; border-radius: var(--radius-lg); padding: 14px 16px;
  font-size: 12.5px; overflow-x: auto; font-family: var(--mono);
}
code.inline { background: var(--muted-bg); border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; font-size: 12.5px; font-family: var(--mono); }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 8px 12px; font-size: 13.5px; }
.kv dt { color: var(--text-2); font-weight: 500; }
.kv dd { margin: 0; }
.pagination { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 14px; font-size: 13px; color: var(--text-2); }
.secret-box { display: flex; gap: 8px; align-items: center; background: var(--muted-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; font-family: var(--mono); font-size: 12.5px; word-break: break-all; }
.int-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.page-head h1 { margin: 0; }
.page-head .spacer { flex: 1; }

/* ---------- filter bar ---------- */
.filter-bar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 16px 20px; margin-bottom: 16px; }
.filter-bar .filters { margin-bottom: 0; }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 12px; background: var(--primary-bg); color: var(--primary); border-radius: 999px; font-size: 12.5px; font-weight: 500; }
.filter-chip button { background: none; border: 0; cursor: pointer; color: var(--primary); padding: 0; display: flex; opacity: .7; }
.filter-chip button:hover { opacity: 1; }
.filter-chip .ico-svg { width: 14px; height: 14px; }

/* ---------- client lead overview (read-only statistics) ---------- */
.lead-overview { margin-bottom: 16px; }
.lead-overview-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.lead-overview-head h2 { margin: 0; font-size: 15px; }
.lead-overview-stale { display: inline-flex; align-items: center; gap: 6px; color: var(--warning); font-size: 12.5px; }
.lead-overview-stale[hidden] { display: none; }
.lead-overview-unavailable { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 14px 16px; background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); color: var(--text-2); font-size: 13px; }
.lead-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lead-metric { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); min-width: 0; }
.lead-metric-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.lead-metric-label .ico-svg { width: 15px; height: 15px; }
.lead-metric-value { font-size: 26px; font-weight: 700; line-height: 1.15; color: var(--text); }
.lead-metric-help { font-size: 12px; color: var(--text-3); }
.lead-status-counts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.lead-status-counts-label { font-size: 12px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .03em; }
.lead-status-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; font-size: 12.5px; font-weight: 500; color: var(--text-2); max-width: 100%; }
.lead-status-chip .num { font-weight: 600; color: var(--text); }

/* ---------- confirm modal ---------- */
.confirm-overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .45);
  display: flex; align-items: center; justify-content: center;
  z-index: 200; opacity: 0; pointer-events: none;
  transition: opacity .15s ease;
}
.confirm-overlay.open { opacity: 1; pointer-events: auto; }
.confirm-card {
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  width: 400px; max-width: 90vw; padding: 24px;
  transform: translateY(6px) scale(.98); transition: transform .15s ease;
}
.confirm-overlay.open .confirm-card { transform: translateY(0) scale(1); }
.confirm-msg { font-size: 14px; line-height: 1.5; color: var(--text); margin-bottom: 20px; }
.confirm-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ---------- lead workspace dialog ---------- */
.lead-dialog-overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .45);
  display: flex; justify-content: flex-end;
  z-index: 60; opacity: 0; pointer-events: none; transition: opacity .15s ease;
}
.lead-dialog-overlay.open { opacity: 1; pointer-events: auto; }
.lead-dialog {
  background: var(--surface); border-radius: 0; box-shadow: var(--shadow-lg);
  width: 720px; max-width: 92vw; height: 100vh; display: flex; flex-direction: column;
  transform: translateX(20px); transition: transform .18s ease;
}
.lead-dialog-overlay.open .lead-dialog { transform: translateX(0); }
.lead-dialog-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.lead-dialog-head h2 { font-size: 16px; margin: 0; flex: 1; }
.lead-dialog-head .lead-id { font-size: 13px; color: var(--text-3); font-weight: 400; }
.lead-dialog-close {
  background: none; border: 0; cursor: pointer; color: var(--text-2); padding: 4px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
}
.lead-dialog-close:hover { background: var(--muted-bg); }
.lead-dialog-close .ico-svg { width: 20px; height: 20px; }
.lead-dialog-nav { display: flex; gap: 4px; }
.lead-dialog-nav button { background: none; border: 0; cursor: pointer; padding: 6px; border-radius: var(--radius); color: var(--text-2); display: flex; align-items: center; }
.lead-dialog-nav button:hover { background: var(--muted-bg); color: var(--text); }
.lead-dialog-nav button:disabled { opacity: .4; cursor: not-allowed; }
.lead-dialog-nav .ico-svg { width: 18px; height: 18px; }
.lead-dialog-body { padding: 20px; overflow-y: auto; flex: 1; }
.lead-dialog-body h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); margin: 0 0 10px; font-weight: 600; }
.lead-dialog-section { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.lead-dialog-section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.lead-dialog-loading { color: var(--text-2); font-size: 13.5px; padding: 24px 0; text-align: center; }
.lead-dialog-foot { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--border); flex-shrink: 0; }
.lead-dialog-status { font-size: 13px; color: var(--text-2); flex: 1; }
.lead-dialog-status.is-error { color: var(--danger); }
.lead-dialog-status.is-ok { color: var(--success); }
body.lead-dialog-open { overflow: hidden; }

/* contact summary in drawer */
.contact-summary { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.contact-row { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.contact-row .ico-svg { width: 18px; height: 18px; color: var(--text-3); flex-shrink: 0; }
.contact-row .contact-val { flex: 1; min-width: 0; }
.contact-row .contact-actions { display: flex; gap: 4px; }
.contact-row .contact-actions .btn { padding: 4px 8px; }
.contact-row .contact-actions .ico-svg { width: 15px; height: 15px; }

/* quick status selector */
.quick-status { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.quick-status select { padding: 8px 12px; font-size: 13.5px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: #fff; }

/* ---------- recharge / wallet ---------- */
.balance-summary { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.balance-item { display: flex; flex-direction: column; gap: 2px; }
.balance-item .label { font-size: 12.5px; color: var(--text-2); font-weight: 500; }
.balance-item .value { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.balance-item .value.pending { color: var(--warning); }
.balance-item .sub { font-size: 12px; color: var(--text-3); }

.recharge-methods { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.recharge-method {
  display: flex; align-items: center; gap: 12px; padding: 16px; border: 2px solid var(--border); border-radius: var(--radius-lg);
  cursor: pointer; transition: border-color .12s, background .12s;
}
.recharge-method:hover { border-color: var(--border-strong); background: var(--surface-hover); }
.recharge-method.selected { border-color: var(--primary); background: var(--primary-light); }
.recharge-method input[type=radio] { accent-color: var(--primary); width: 18px; height: 18px; }
.recharge-method .method-info { flex: 1; }
.recharge-method .method-name { font-weight: 600; font-size: 14px; }
.recharge-method .method-desc { font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.recharge-method .ico-svg { width: 24px; height: 24px; color: var(--text-2); }

/* payment progress steps */
.pay-steps { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.pay-step { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); }
.pay-step .step-num { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; background: var(--muted-bg); color: var(--text-3); }
.pay-step.active { color: var(--primary); font-weight: 600; }
.pay-step.active .step-num { background: var(--primary); color: #fff; }
.pay-step.done { color: var(--success); }
.pay-step.done .step-num { background: var(--success); color: #fff; }
.pay-step-arrow { color: var(--text-3); }

/* UPI payment details */
.upi-details { background: var(--muted-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 20px; }
.upi-detail-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.upi-detail-row .label { font-size: 13px; color: var(--text-2); font-weight: 500; min-width: 80px; }
.upi-detail-row .value { font-size: 14px; font-weight: 600; flex: 1; }
.upi-detail-row .btn { padding: 5px 10px; }

/* upload area */
.upload-area { border: 2px dashed var(--border-strong); border-radius: var(--radius-lg); padding: 24px; text-align: center; cursor: pointer; transition: border-color .12s, background .12s; }
.upload-area:hover { border-color: var(--primary); background: var(--primary-light); }
.upload-area .ico-svg { width: 32px; height: 32px; color: var(--text-3); margin-bottom: 8px; }
.upload-area .upload-text { font-size: 13.5px; color: var(--text-2); }
.upload-preview { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px; background: var(--muted-bg); border-radius: var(--radius); }
.upload-preview img { width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius); }
.upload-preview .file-name { flex: 1; font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* recharge status banner */
.status-banner { display: flex; align-items: flex-start; gap: 12px; padding: 16px 20px; border-radius: var(--radius-lg); margin-bottom: 20px; }
.status-banner .ico-svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; }
.status-banner .banner-content { flex: 1; }
.status-banner .banner-title { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.status-banner .banner-text { font-size: 13px; }
.status-banner.pending { background: var(--warning-bg); color: var(--warning); }
.status-banner.pending .banner-text { color: #92400e; }
.status-banner.success { background: var(--success-bg); color: var(--success); }
.status-banner.success .banner-text { color: #166534; }
.status-banner.danger { background: var(--danger-bg); color: var(--danger); }
.status-banner.danger .banner-text { color: #991b1b; }
.status-banner.info { background: var(--primary-bg); color: var(--primary); }
.status-banner.info .banner-text { color: var(--primary-hover); }

/* ---------- auth / share / errors ---------- */
.center-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; gap: 16px; background: var(--bg-alt); }
.auth-brand { text-align: center; margin-bottom: 4px; }
.auth-brand .auth-logo { display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.auth-brand .auth-logo .ls-logo { width: 56px; height: 56px; }
.auth-brand h1 { font-size: 24px; margin: 0; letter-spacing: -0.02em; }
.auth-tagline { font-size: 13px; color: var(--text-2); margin: 4px 0 0; }
.auth-card { width: 400px; max-width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 32px; }
.auth-card h2 { font-size: 18px; margin: 0 0 4px; }
.auth-card .sub { text-align: left; color: var(--text-2); font-size: 13px; margin-bottom: 20px; }
.auth-card .btn-primary { width: 100%; justify-content: center; margin-top: 4px; }
.auth-options { display: flex; align-items: center; justify-content: flex-start; margin: 16px 0 4px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.checkbox-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
.auth-footer { font-size: 12px; color: var(--text-3); }
.share-head { background: var(--surface); border-bottom: 1px solid var(--border); padding: 18px 24px; }
.share-head h1 { font-size: 18px; margin: 0; }
.share-body { max-width: 860px; margin: 0 auto; padding: 24px; }
.lead-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 18px; margin-bottom: 12px; }
.error-wrap { text-align: center; padding: 80px 24px; }
.login-options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.login-option { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
@media (max-width: 768px) { .login-options { grid-template-columns: 1fr; } }
.error-wrap .code { font-size: 56px; font-weight: 800; color: var(--text-3); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .grid.stats { grid-template-columns: repeat(2, 1fr); }
  .int-cards { grid-template-columns: 1fr; }
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  .content { max-width: 100%; }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.3); z-index: 35; }
  .main { margin-left: 0; }
  .content { padding: 16px 16px 40px; }
  .menu-btn { display: inline-flex; }
  .form-grid { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: 1fr; }
  .lead-dialog-overlay { padding: 0; }
  .lead-dialog { width: 100%; max-width: 100%; height: 100dvh; border-radius: 0; }
  .lead-dialog-foot { flex-wrap: wrap; }
  .topbar { padding: 0 16px; }
  .field input, .field select, .field textarea { font-size: 16px; }
  .balance-summary { gap: 16px; }
  .balance-item .value { font-size: 18px; }
  .lead-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead-metric-value { font-size: 22px; }
}
@media (max-width: 480px) {
  .lead-metrics { grid-template-columns: 1fr; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
