/* Agentials brand, light "glass" look matching the sign-in screen: white cards on a soft
   lavender field, deep-violet accents, Outfit headings and DM Sans body text. */
:root {
  --navy: #0b1270;
  --sky: #12c6f5;
  --slate: #606a98;
  --violet: #1546a8;
  --glass: rgba(255, 255, 255, 0.82);
  --glass-strong: #ffffff;
  --glass-border: rgba(42, 34, 100, 0.07);
  --hairline: rgba(42, 34, 100, 0.08);
  --text: #0b1240;
  --muted: #646a8c;
  --primary: #0b1270;
  --primary-ink: #ffffff;
  --accent: #1546a8;
  --good: #0f8a5f;
  --good-bg: rgba(15, 138, 95, 0.10);
  --warn: #b3600b;
  --warn-bg: rgba(230, 140, 30, 0.12);
  --bad: #d62d3a;
  --bad-bg: rgba(214, 45, 58, 0.09);
  --shadow: 0 10px 30px rgba(42, 34, 100, 0.07), 0 1px 2px rgba(42, 34, 100, 0.04);
  --radius: 20px;
  --blur: saturate(160%) blur(18px);
  --grad: linear-gradient(90deg, #0b1270, #1546a8 55%, #12c6f5);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body {
  margin: 0; min-height: 100vh; color: var(--text);
  font: 14px/1.5 "DM Sans", -apple-system, "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(800px 500px at 0% 0%, rgba(60, 196, 240, 0.14), transparent 60%),
    radial-gradient(800px 600px at 100% 0%, rgba(18, 198, 245, 0.20), transparent 60%),
    radial-gradient(700px 600px at 50% 110%, rgba(90, 140, 230, 0.25), transparent 60%),
    linear-gradient(160deg, #f2f3fa, #e9ebf6);
  background-attachment: fixed;
}
a { color: var(--accent); }
h1 { font: 600 26px/1.2 "Outfit", "DM Sans", sans-serif; letter-spacing: -0.02em; margin: 0 0 18px; }
h2 { font: 600 16px/1.3 "Outfit", "DM Sans", sans-serif; margin: 0 0 12px; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

.glass, .card, dialog {
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
}

/* ---------- header + navigation ---------- */
.header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--hairline); box-shadow: 0 1px 12px rgba(42, 34, 100, 0.04); }
.header-inner { max-width: 1240px; margin: 0 auto; padding: 10px 22px; display: flex; align-items: center; gap: 18px; }
.brand img { height: 30px; display: block; }
.mainnav { display: flex; gap: 4px; align-items: center; }
.mainnav a { padding: 7px 14px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 500; white-space: nowrap; }
.mainnav a:hover { color: var(--text); background: rgba(42, 34, 100, .05); }
.mainnav a.active { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(21, 70, 168, .30); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.who { text-align: right; line-height: 1.2; }
.who strong { display: block; font-size: 13px; }
.who .role { font: 500 10px/1.4 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.subnav { max-width: 1240px; margin: 14px auto 0; padding: 0 22px; }
.subnav-inner { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 12px; background: rgba(255, 255, 255, .7);
  border: 1px solid var(--hairline); }
.subnav a { padding: 5px 14px; border-radius: 9px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 13px; }
.subnav a:hover { color: var(--text); }
.subnav a.active { background: var(--primary); color: #fff; }
.content { max-width: 1240px; margin: 0 auto; padding: 22px 22px 48px; min-width: 0; }
.bell { position: relative; border-radius: 999px; padding: 7px 12px; }
.bell .count { position: absolute; top: -4px; right: -4px; background: var(--bad); color: #fff; border-radius: 999px; font-size: 11px; min-width: 18px; height: 18px;
  line-height: 18px; text-align: center; padding: 0 5px; font-weight: 700; }
main { max-width: 1240px; }

.card { border-radius: var(--radius); padding: 20px; margin-bottom: 18px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.stat { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
th { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: rgba(255, 255, 255, 0.28); }
tr.overdue td { background: var(--bad-bg); }
.table-wrap { overflow-x: auto; }

button, .btn { font: inherit; font-weight: 600; border: 1px solid var(--hairline); background: var(--glass-strong); color: var(--text);
  padding: 8px 16px; border-radius: 12px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  transition: transform .08s ease, box-shadow .15s ease; }
button:hover, .btn:hover { box-shadow: 0 4px 14px rgba(42, 34, 100, .14); }
button:active, .btn:active { transform: scale(.97); }
button.primary, .btn.primary { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(21, 70, 168, .25); }
button.sky { background: linear-gradient(135deg, #1aa6dc, var(--sky)); color: #fff; border-color: transparent; }
button.danger { color: var(--bad); }
button:disabled { opacity: .55; cursor: default; }
input, select, textarea { font: inherit; color: var(--text); background: var(--glass-strong); border: 1px solid var(--hairline); border-radius: 12px; padding: 9px 12px; width: 100%;
  -webkit-user-select: text; user-select: text; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(18, 198, 245, .40); outline-offset: 1px; }
textarea { min-height: 80px; resize: vertical; }
label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; font-weight: 600; }
.field { margin-bottom: 14px; }
.form-grid { display: grid; gap: 0 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.secret { position: relative; }
.secret input { padding-right: 70px; }
.secret button { position: absolute; right: 4px; top: 4px; padding: 4px 10px; font-size: 12px; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(96, 106, 152, .14); color: var(--muted); }
.badge.good { background: var(--good-bg); color: var(--good); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.sky { background: rgba(60, 196, 240, .18); color: #0f7fad; }
.status-contacted { background: var(--warn-bg); color: var(--warn); }
.status-interested { background: rgba(60, 196, 240, .18); color: #0f7fad; }
.status-converted { background: var(--good-bg); color: var(--good); }
.status-lost { background: var(--bad-bg); color: var(--bad); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); margin-right: 6px; }
.dot.on { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }

.bar { height: 8px; background: rgba(96, 106, 152, .16); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.bar > span { display: block; height: 100%; background: var(--grad); }
.bar > span.done { background: linear-gradient(90deg, #0f8a5f, #4fd3a0); }

.error { color: var(--bad); margin: 8px 0; }
.note-box { background: rgba(255, 255, 255, 0.3); border: 1px solid var(--hairline); border-radius: 14px; padding: 12px 14px; margin-top: 12px; }

dialog { border-radius: 24px; color: var(--text); padding: 24px; width: min(760px, 94vw); max-height: 90vh; background: #fff; }
dialog::backdrop { background: rgba(12, 11, 34, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 10px 0; border-bottom: 1px solid var(--hairline); }
.convo { white-space: pre-wrap; max-height: 320px; overflow: auto; font-size: 13px; }

.dropzone { border: 2px dashed rgba(60, 196, 240, .6); border-radius: 18px; padding: 26px; text-align: center; background: rgba(60, 196, 240, .06);
  transition: background .15s ease; cursor: pointer; }
.dropzone.over { background: rgba(60, 196, 240, .18); }
.file-chip { display: inline-flex; gap: 6px; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--glass-strong);
  border: 1px solid var(--hairline); margin: 6px 6px 0 0; font-size: 12px; }
.file-chip button { padding: 0 6px; border: 0; background: transparent; }
.segmented { display: inline-flex; background: rgba(96, 106, 152, .14); padding: 3px; border-radius: 12px; }
.segmented button { border: 0; background: transparent; box-shadow: none; padding: 6px 14px; border-radius: 10px; }
.segmented button.on { background: var(--glass-strong); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.actions-bar { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 14px; }

.celebrate { text-align: center; }
.celebrate .big { font-size: 52px; }
.call-timer { font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: center; margin: 8px 0 14px; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: rgba(26, 24, 64, .9); color: #fff; padding: 11px 20px;
  border-radius: 14px; z-index: 1000; max-width: 90vw; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }

/* Copy protection for Lead Gen and BDA (owner is exempt). */
body.protected { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body.protected img { -webkit-user-drag: none; pointer-events: none; }
@media print { body.protected * { display: none !important; } body.protected::after { content: "Printing is disabled."; display: block; padding: 40px; } }

@media (max-width: 820px) {
  .header-inner { flex-wrap: wrap; padding: 10px 16px; gap: 10px; }
  .mainnav { order: 3; width: 100%; overflow-x: auto; }
  .who { display: none; }
  .subnav, .content { padding-left: 16px; padding-right: 16px; }
  .subnav-inner { display: flex; overflow-x: auto; flex-wrap: nowrap; }
}

/* ---------- sign-in screen ---------- */
.auth { display: grid; grid-template-columns: 52% 48%; min-height: 100vh; font-family: "DM Sans", -apple-system, "Segoe UI", sans-serif; color: #0e1446; }
.auth-hero { position: relative; overflow: hidden; padding: 38px 46px; display: flex; flex-direction: column;
  background: radial-gradient(480px 460px at -8% 78%, rgba(60, 196, 240, .40), transparent 62%), #ffffff; }
.auth-logo { width: 280px; max-width: 70%; height: auto; display: block; margin: 6px 0 0 -4px; }
.auth-copy { margin: auto 0; padding-bottom: 60px; max-width: 520px; }
.auth-eyebrow { font: 500 12px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .32em; text-transform: uppercase; color: #1546a8; margin-bottom: 22px; }
.auth-title { font: 600 46px/1.1 "Outfit", "DM Sans", sans-serif; letter-spacing: -0.03em; margin: 0 0 22px; color: #0b1240; }
.auth-sub { font-size: 16px; line-height: 1.55; color: #5d6385; margin: 0; }
.auth-panel { display: flex; align-items: center; padding: 40px 80px;
  background: radial-gradient(700px 500px at 100% 0%, rgba(18, 198, 245, .30), transparent 60%),
    radial-gradient(600px 500px at 60% 100%, rgba(90, 140, 230, .35), transparent 60%), linear-gradient(160deg, #eef0fa, #e6e8f6); }
.auth-form { width: 100%; max-width: 384px; }
.auth-shield { color: #12a8e0; margin-bottom: 18px; }
.auth-form h2 { font: 600 30px/1.1 "Outfit", sans-serif; letter-spacing: -0.02em; margin: 0 0 10px; color: #0b1240; }
.auth-note { color: #5d6385; margin: 0 0 32px; font-size: 14px; }
.auth-form label { font-size: 14px; color: #0e1446; font-weight: 500; margin: 0 0 8px; }
.auth-form input { height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .85); border: 1px solid rgba(42, 34, 100, .12);
  margin-bottom: 20px; box-shadow: inset 0 1px 2px rgba(42, 34, 100, .05); color: #0e1446; }
.auth-form input:focus { outline: 2px solid rgba(18, 198, 245, .45); outline-offset: 1px; }
.auth-btn { width: 100%; height: 42px; justify-content: center; border: 0; border-radius: 10px; color: #fff; font-weight: 600;
  background: linear-gradient(90deg, #0b1270, #1546a8 55%, #12c6f5); box-shadow: 0 8px 22px rgba(21, 70, 168, .35); }
.auth-btn:hover { box-shadow: 0 10px 26px rgba(21, 70, 168, .45); }
.auth-foot { margin-top: 38px; font: 500 11px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; color: #8a8fae; }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-hero { padding: 28px 16px 20px; }
  .auth-copy { margin: 36px 0 24px; }
  .auth-title { font-size: 34px; }
  .auth-logo { width: 220px; }
  .auth-panel { padding: 36px 16px 48px; }
}

/* ---------- home dashboard ---------- */
.kpis { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); margin-bottom: 18px; }
.kpi { margin: 0; padding: 16px 18px; text-decoration: none; color: inherit; display: block; }
a.kpi:hover { transform: translateY(-1px); }
.kpi-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.kpi-value { font: 600 30px/1.15 "Outfit", -apple-system, sans-serif; letter-spacing: -0.02em; margin-top: 4px; }
.kpi-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.kpi.bad .kpi-value { color: var(--bad); }
.kpi.good .kpi-value { color: var(--good); }
.kpi.warn .kpi-value { color: var(--warn); }
.target-card { padding: 18px 20px; }
.dash-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dash-grid .card { margin: 0; }
.dash-grid .span-2 { grid-column: 1 / -1; }
.empty { padding: 22px; text-align: center; color: var(--muted); border: 1px dashed var(--hairline); border-radius: 14px; }
.agenda-item { display: flex; gap: 14px; align-items: center; }
.agenda-time { width: 64px; font-weight: 700; font-variant-numeric: tabular-nums; }
.agenda-item.late .agenda-time { color: var(--bad); }
.feed li { display: flex; gap: 10px; align-items: flex-start; }
.feed-ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(96, 106, 152, .12); flex: none; font-size: 13px; }
.feed-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbars { display: grid; gap: 10px; }
.hbar { display: grid; grid-template-columns: 110px 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.hbar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-track { height: 10px; background: rgba(96, 106, 152, .12); border-radius: 4px; overflow: hidden; }
.hbar-track span { display: block; height: 100%; background: var(--violet); border-radius: 0 4px 4px 0; }
.hbar-value { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; min-width: 40px; }
.cols { display: flex; align-items: flex-end; gap: 2px; height: 140px; padding-top: 6px; border-bottom: 1px solid var(--hairline); }
.col { flex: 1; height: 100%; display: flex; align-items: flex-end; cursor: default; }
.col span { display: block; width: 100%; min-height: 2px; background: #7fa6e6; border-radius: 4px 4px 0 0; }
.col:hover span { background: var(--violet); }
.cols-axis { display: flex; justify-content: space-between; margin-top: 6px; }
.search { width: 230px; }
.search input { border-radius: 10px; padding: 7px 12px; background: rgba(42, 34, 100, .04); }

/* ---------- pipeline board ---------- */
.board { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.lane { background: rgba(255, 255, 255, .6); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--glass-border);
  border-radius: 18px; padding: 12px; min-height: 60vh; display: flex; flex-direction: column; transition: background .15s ease; }
.lane.over { background: rgba(60, 196, 240, .16); }
.lane-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.lane-body { display: grid; gap: 8px; align-content: start; flex: 1; }
.deal { background: var(--glass-strong); border: 1px solid var(--hairline); border-radius: 14px; padding: 10px 12px; cursor: pointer;
  box-shadow: 0 2px 8px rgba(42, 34, 100, .06); }
.deal:hover { box-shadow: 0 6px 16px rgba(42, 34, 100, .14); }
.deal.dragging { opacity: .5; }
.lane-empty { border: 1px dashed var(--hairline); border-radius: 12px; padding: 16px; text-align: center; }
@media (max-width: 1000px) { .dash-grid { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .search { display: none; } }

/* ---------- daily task assistant ---------- */
.assistant-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.assistant-ico { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; flex: none;
  box-shadow: 0 6px 14px rgba(21, 70, 168, .3); }
.tasks { list-style: none; margin: 0; padding: 0; }
.tasks li { display: flex; gap: 12px; padding: 9px 0; cursor: pointer; border-radius: 10px; }
.tasks li:hover .task-title { color: var(--accent); }
.task-dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 7px; flex: none; background: var(--slate); }
.task-dot.urgent { background: var(--bad); }
.task-dot.today { background: var(--accent); }
.task-title { font-weight: 500; }
.task-sub { font-size: 12px; color: var(--muted); }
.kpi-ico { width: 18px; height: 18px; color: var(--accent); margin-bottom: 8px; display: block; }
.kpi.bad .kpi-ico { color: var(--bad); }
button.linkish { border: 0; background: none; box-shadow: none; color: var(--accent); padding: 4px 0; }
.workspace { font: 500 10px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  background: rgba(21, 70, 168, .07); border: 1px solid rgba(21, 70, 168, .14); padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 1100px) { .workspace { display: none; } }
.header-right button { white-space: nowrap; }

/* ---------- scores, performance chart, bulk bar ---------- */
.badge.grade-hot { background: rgba(214, 45, 58, .10); color: #c22a36; }
.badge.grade-warm { background: var(--warn-bg); color: var(--warn); }
.badge.grade-cold { background: rgba(96, 106, 152, .12); color: var(--slate); }
.badge.grade-won { background: var(--good-bg); color: var(--good); }
.badge.grade-lost { background: rgba(96, 106, 152, .12); color: var(--muted); }
.perf { width: 100%; height: auto; display: block; }
.perf .grid { stroke: var(--hairline); stroke-width: 1; }
.perf .axis { font-size: 11px; fill: var(--muted); }
.perf .lbl { font-size: 12px; font-weight: 600; fill: var(--text); }
.perf .muted-lbl { fill: var(--muted); font-weight: 500; }
.perf .pace { stroke: #a3a8cc; stroke-width: 2; stroke-dasharray: 5 5; }
.perf .closed { fill: none; stroke: var(--violet); stroke-width: 2; stroke-linejoin: round; }
.perf .area { fill: rgba(21, 70, 168, .08); }
.perf .hit circle { fill: var(--violet); stroke: #fff; stroke-width: 2; opacity: 0; }
.perf .hit:hover circle, .perf .hit:last-of-type circle { opacity: 1; }
.legend { display: flex; gap: 18px; color: var(--muted); margin-top: 6px; }
.legend .sw { display: inline-block; width: 18px; height: 0; border-top: 2px solid var(--violet); vertical-align: middle; margin-right: 6px; }
.legend .pace-sw { border-top: 2px dashed #a3a8cc; }
.bulk { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 12px; border-radius: 14px;
  background: rgba(21, 70, 168, .06); border: 1px solid rgba(21, 70, 168, .14); }
.bulk[hidden] { display: none; }

/* ---------- lead gen live progress ---------- */
.live { display: inline-flex; align-items: center; gap: 6px; font: 600 11px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .14em;
  text-transform: uppercase; color: var(--good); background: var(--good-bg); padding: 6px 10px; border-radius: 999px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #10c98a; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(16, 201, 138, .5); } 50% { box-shadow: 0 0 0 6px rgba(16, 201, 138, 0); } }
.progress-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.prog { padding: 14px 16px; border: 1px solid var(--hairline); border-radius: 16px; background: #fff; cursor: pointer; transition: box-shadow .15s ease; }
.prog:hover { box-shadow: 0 6px 18px rgba(42, 34, 100, .08); }
.prog.flash { animation: flash 2.4s ease; }
@keyframes flash { 0% { background: rgba(21, 70, 168, .14); } 100% { background: #fff; } }
.prog-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.step::before { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: var(--hairline); z-index: 0; }
.step:first-child::before { display: none; }
.step.done::before, .step.current::before, .step.lost::before { background: var(--violet); }
.sdot { position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700;
  background: #fff; border: 2px solid #d4d6e6; color: #fff; }
.step.done .sdot { background: var(--violet); border-color: var(--violet); }
.step.current .sdot { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(21, 70, 168, .14); }
.step.current .sdot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); }
.step.lost .sdot { background: #9aa0bd; border-color: #9aa0bd; }
.slabel { font-size: 12px; font-weight: 600; }
.step.todo .slabel { color: var(--muted); font-weight: 500; }
.stime { font-size: 11px; color: var(--muted); min-height: 14px; }
@media (max-width: 600px) { .stime { display: none; } .slabel { font-size: 11px; } }

/* ---------- glossy finish (logo navy → royal → cyan) ---------- */
:root {
  --gloss: linear-gradient(180deg, rgba(255, 255, 255, .38) 0%, rgba(255, 255, 255, .10) 48%, rgba(255, 255, 255, 0) 52%);
  --glow: 0 8px 22px rgba(21, 70, 168, .32), inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(0, 0, 0, .12);
}
button.primary, .btn.primary, .auth-btn, .mainnav a.active, .subnav a.active, .nav a.active, .segmented button.on.brand {
  background: var(--gloss), linear-gradient(135deg, #0b1270 0%, #1546a8 55%, #12c6f5 100%);
  color: #fff; border-color: transparent; box-shadow: var(--glow); text-shadow: 0 1px 1px rgba(0, 0, 0, .18);
}
button.primary:hover, .btn.primary:hover, .auth-btn:hover { filter: brightness(1.06); box-shadow: 0 10px 26px rgba(21, 70, 168, .40), inset 0 1px 0 rgba(255, 255, 255, .6); }
button, .btn {
  background: linear-gradient(180deg, #ffffff 0%, #f2f6fd 100%);
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(11, 18, 112, .08);
}
button.sky {
  background: var(--gloss), linear-gradient(135deg, #1546a8, #12c6f5); color: #fff; box-shadow: var(--glow);
}
.segmented button.on { background: linear-gradient(180deg, #fff, #eef3fd); box-shadow: inset 0 1px 0 #fff, 0 1px 4px rgba(11, 18, 112, .12); color: #1546a8; }

/* Cards and panels: bright glass with a top highlight. */
.card, dialog, .lane, .prog, .subnav-inner {
  background: linear-gradient(180deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .80) 100%);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 12px 32px rgba(11, 18, 112, .08), 0 1px 2px rgba(11, 18, 112, .05), inset 0 1px 0 #fff;
}
.card { position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 46%; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0)); }
.card > * { position: relative; }
.header { background: linear-gradient(180deg, rgba(255, 255, 255, .97), rgba(255, 255, 255, .86)); box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 4px 18px rgba(11, 18, 112, .06); }
body {
  background:
    radial-gradient(800px 500px at 0% 0%, rgba(18, 198, 245, .16), transparent 60%),
    radial-gradient(800px 600px at 100% 0%, rgba(21, 70, 168, .12), transparent 60%),
    radial-gradient(700px 600px at 50% 110%, rgba(18, 198, 245, .12), transparent 60%),
    linear-gradient(160deg, #f3f6fc, #e8eef9);
  background-attachment: fixed;
}
.kpi-value { background: linear-gradient(135deg, #0b1270, #1546a8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kpi.bad .kpi-value { background: none; color: var(--bad); }
.kpi.good .kpi-value { background: none; color: var(--good); }
.kpi.warn .kpi-value { background: none; color: var(--warn); }
.hbar-track span, .bar > span { background: var(--gloss), linear-gradient(90deg, #0b1270, #1546a8 60%, #12c6f5); }
.col span { background: linear-gradient(180deg, #12c6f5, #1546a8); }
.col:hover span { background: linear-gradient(180deg, #4fd8fb, #0b1270); }
.step.done .sdot { background: var(--gloss), linear-gradient(135deg, #0b1270, #1546a8); border-color: #1546a8; }
.step.done::before, .step.current::before, .step.lost::before { background: linear-gradient(90deg, #1546a8, #12c6f5); }
.assistant-ico { background: var(--gloss), linear-gradient(135deg, #0b1270, #12c6f5); }
.workspace { color: #1546a8; background: linear-gradient(180deg, #fff, #eef4fe); border-color: rgba(21, 70, 168, .18); }
.who .role { color: #1546a8; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(18, 198, 245, .45); }

/* Sign-in screen: glossy glass card on a blue-cyan field. */
.auth-panel {
  background: radial-gradient(700px 500px at 100% 0%, rgba(18, 198, 245, .28), transparent 60%),
    radial-gradient(600px 500px at 40% 100%, rgba(21, 70, 168, .22), transparent 60%), linear-gradient(160deg, #eef3fc, #e2eaf8);
}
.auth-form { background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .70)); border: 1px solid rgba(255, 255, 255, .95);
  border-radius: 24px; padding: 34px 32px; box-shadow: 0 24px 60px rgba(11, 18, 112, .12), inset 0 1px 0 #fff;
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); }
.auth-eyebrow { color: #1546a8; }
.auth-hero { background: radial-gradient(480px 460px at -8% 82%, rgba(18, 198, 245, .38), transparent 62%), linear-gradient(180deg, #ffffff, #f7faff); }
.auth-title { background: linear-gradient(135deg, #0b1270 20%, #1546a8 70%, #12a8e0); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- plans & billing ---------- */
.plan-banner { max-width: 1240px; margin: 12px auto 0; padding: 10px 16px; border-radius: 12px; font-size: 13px; color: #0b1270;
  background: linear-gradient(90deg, rgba(18, 198, 245, .14), rgba(21, 70, 168, .10)); border: 1px solid rgba(21, 70, 168, .16); }
.plan-banner a { margin-left: 8px; font-weight: 600; }
.plan-banner.warn { background: var(--warn-bg); color: var(--warn); border-color: rgba(230, 140, 30, .3); }
.plan-banner.bad { background: var(--bad-bg); color: var(--bad); border-color: rgba(214, 45, 58, .25); }
.bill-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 12px; }
.bill-plan { margin: 0; display: grid; gap: 10px; align-content: start; }
.bill-plan.popular { border: 2px solid rgba(21, 70, 168, .35); }
.upgrade { text-align: center; padding: 18px; }
@media (max-width: 900px) { .bill-plans { grid-template-columns: 1fr; } .plan-banner { margin: 12px 16px 0; } }

.verify-card { border: 1px solid rgba(230, 140, 30, .35); background: var(--warn-bg); }
.topup-card { border: 1px solid rgba(21, 70, 168, .25); }
.renew-toggle { display: flex !important; gap: 8px; align-items: center; margin: 0 0 14px !important; font-size: 14px !important; color: var(--text) !important; }
.renew-toggle input { width: auto; }

/* Anything marked hidden stays hidden, whatever its layout style. */
[hidden] { display: none !important; }

/* Long emails and links wrap inside detail grids instead of running into the next column. */
.grid > div { min-width: 0; overflow-wrap: anywhere; }

/* =====================================================================
   Professional theme (final layer): Inter, flat white panels with hairline
   borders, calm grey background, flat brand-blue actions. Overrides the
   earlier glossy styles above.
   ===================================================================== */
:root {
  --font: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
  --ink: #101828;
  --ink-2: #344054;
  --muted: #667085;
  --line: #e4e7ec;
  --line-2: #d0d5dd;
  --canvas: #f6f7f9;
  --brand: #1546a8;
  --brand-hover: #123b8f;
  --brand-soft: #eef3fc;
  --text: var(--ink);
  --accent: var(--brand);
  --primary: var(--brand);
  --hairline: var(--line);
  --shadow: 0 1px 2px rgba(16, 24, 40, .05);
}
html, body { font-family: var(--font); font-feature-settings: "cv11", "ss01"; }
body { background: var(--canvas); color: var(--ink); font-size: 14px; line-height: 1.5; letter-spacing: -0.003em; }
h1 { font: 600 24px/1.25 var(--font); letter-spacing: -0.02em; color: var(--ink); }
h2 { font: 600 15px/1.35 var(--font); letter-spacing: -0.01em; color: var(--ink); }
.muted { color: var(--muted); }
a { color: var(--brand); }

/* Panels */
.card, dialog, .lane, .prog, .bill-plan, .kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.card { padding: 20px; }
.card::before { content: none; }
.card > * { position: static; }
dialog { border-radius: 14px; box-shadow: 0 20px 40px -8px rgba(16, 24, 40, .18); }
dialog::backdrop { background: rgba(16, 24, 40, .45); -webkit-backdrop-filter: none; backdrop-filter: none; }
.note-box { background: #f9fafb; border: 1px solid var(--line); border-radius: 10px; }
.lane { background: #f9fafb; }
.deal { background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: none; }
.deal:hover { border-color: var(--line-2); box-shadow: 0 1px 3px rgba(16, 24, 40, .08); }

/* Header + navigation */
.header { background: #fff; border-bottom: 1px solid var(--line); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.brand img { height: 28px; }
.workspace { font: 500 11px/1 var(--font); letter-spacing: 0; text-transform: none; color: var(--ink-2); background: #f2f4f7; border: 1px solid var(--line); }
.mainnav a { color: var(--ink-2); font-weight: 500; border-radius: 8px; padding: 7px 12px; }
.mainnav a:hover { background: #f2f4f7; color: var(--ink); }
.mainnav a.active { background: var(--brand-soft); color: var(--brand); box-shadow: none; text-shadow: none; }
.subnav { margin-top: 0; padding-top: 0; background: #fff; max-width: none; border-bottom: 1px solid var(--line); }
.subnav-inner { max-width: 1240px; margin: 0 auto; display: flex; gap: 4px; background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 0 22px; }
.subnav a { padding: 12px 10px 11px; border-radius: 0; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subnav a:hover { color: var(--ink); }
.subnav a.active { background: none; color: var(--brand); border-bottom-color: var(--brand); box-shadow: none; text-shadow: none; }
.who strong { font-weight: 600; }
.who .role { font: 500 11px/1.4 var(--font); letter-spacing: 0; text-transform: none; color: var(--muted); }
.plan-banner { border-radius: 10px; background: var(--brand-soft); border-color: #d5e1f8; color: var(--ink-2); }

/* Buttons */
button, .btn {
  font: 500 14px/1.2 var(--font); border-radius: 8px; padding: 8px 14px;
  background: #fff; color: var(--ink-2); border: 1px solid var(--line-2);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05); text-shadow: none; transition: background .12s ease, border-color .12s ease;
}
button:hover, .btn:hover { background: #f9fafb; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
button:active, .btn:active { transform: none; }
button.primary, .btn.primary, button.sky, .auth-btn {
  background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 1px 2px rgba(16, 24, 40, .08); text-shadow: none; filter: none;
}
button.primary:hover, .btn.primary:hover, button.sky:hover, .auth-btn:hover { background: var(--brand-hover); border-color: var(--brand-hover); box-shadow: 0 1px 2px rgba(16, 24, 40, .08); filter: none; }
button.danger { color: #b42318; }
button.linkish { box-shadow: none; border: 0; background: none; }
.segmented { background: #f2f4f7; border-radius: 8px; padding: 2px; }
.segmented button { box-shadow: none; border: 0; background: transparent; color: var(--muted); padding: 6px 12px; font-size: 13px; }
.segmented button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(16, 24, 40, .08); }
.bell { padding: 7px 10px; }

/* Forms */
input, select, textarea {
  font: 400 14px/1.4 var(--font); color: var(--ink); background: #fff;
  border: 1px solid var(--line-2); border-radius: 8px; padding: 9px 12px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: #84a6e6; box-shadow: 0 0 0 3px rgba(21, 70, 168, .12); }
label { font: 500 13px/1.3 var(--font); color: var(--ink-2); }
.search input { background: #f9fafb; border-color: var(--line); box-shadow: none; }

/* Tables */
th { font: 500 12px/1.3 var(--font); letter-spacing: 0; text-transform: none; color: var(--muted); background: #f9fafb; border-bottom: 1px solid var(--line); }
td { border-bottom: 1px solid #eef0f3; color: var(--ink-2); }
td strong { color: var(--ink); font-weight: 600; }
tr.clickable:hover td { background: #f9fafb; }
tr.overdue td { background: #fef3f2; }

/* Numbers, badges, bars */
.kpi { padding: 16px 18px; }
.kpi-label { font: 500 13px/1.3 var(--font); color: var(--muted); }
.kpi-value { font: 600 26px/1.2 var(--font); letter-spacing: -0.02em; background: none; -webkit-background-clip: border-box; background-clip: border-box;
  color: var(--ink); font-variant-numeric: tabular-nums; }
.kpi-ico { color: var(--muted); }
.kpi.bad .kpi-value { color: #b42318; }
.kpi.good .kpi-value { color: #067647; }
.kpi.warn .kpi-value { color: #b54708; }
.badge { font: 500 12px/1.5 var(--font); padding: 1px 8px; border-radius: 6px; }
.hbar-track, .bar { background: #eef0f3; border-radius: 4px; }
.hbar-track span, .bar > span { background: var(--brand); }
.bar > span.done { background: #079455; }
.col span { background: #9db7ea; }
.col:hover span { background: var(--brand); }
.perf .closed { stroke: var(--brand); }
.perf .area { fill: rgba(21, 70, 168, .06); }
.perf .hit circle { fill: var(--brand); }
.assistant-ico { background: var(--brand-soft); color: var(--brand); box-shadow: none; }
.step.done .sdot { background: var(--brand); border-color: var(--brand); }
.step.done::before, .step.current::before, .step.lost::before { background: var(--brand); }
.step.current .sdot { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(21, 70, 168, .12); }
.step.current .sdot::after { background: var(--brand); }
.live { font: 600 11px/1 var(--font); letter-spacing: .04em; }
.toast { background: var(--ink); border-radius: 10px; -webkit-backdrop-filter: none; backdrop-filter: none; }
.empty { border-color: var(--line); color: var(--muted); }
.feed-ico { background: #f2f4f7; }
@media (max-width: 820px) { .subnav-inner { overflow-x: auto; padding: 0 16px; } }
