/* NovaLedger Pro — dark high-tech fintech theme */
:root {
  --bg: #070b16;
  --bg2: #0b1120;
  --card: rgba(17, 25, 44, 0.62);
  --card-border: rgba(34, 211, 238, 0.14);
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --green: #34d399;
  --red: #fb7185;
  --text: #e5edf7;
  --muted: #8b98b3;
  --input: #0d1426;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(1200px 800px at 80% -10%, #101a38 0%, var(--bg) 55%, #050810 100%);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
/* ambient background */
.bg-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(34,211,238,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,211,238,0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 100%);
}
.bg-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(600px 320px at 15% 8%, rgba(139,92,246,0.16), transparent 70%),
    radial-gradient(700px 360px at 85% 18%, rgba(34,211,238,0.13), transparent 70%);
}
.hidden { display: none !important; }
.glass {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.05);
}
h2 { font-size: 1.5rem; margin-bottom: 1rem; letter-spacing: 0.01em; }
h3 { font-size: 1.05rem; margin-bottom: 0.8rem; color: var(--text); }
.muted { color: var(--muted); font-size: 0.9rem; }
.accent { color: var(--cyan); }

/* toast */
.toast {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  background: #0d1a30; border: 1px solid rgba(34,211,238,0.4);
  color: var(--text); padding: 0.75rem 1.25rem; border-radius: 10px;
  box-shadow: 0 0 24px rgba(34,211,238,0.25); z-index: 1000;
  max-width: 90vw; text-align: center; font-size: 0.92rem;
}

/* auth */
.auth-wrap {
  position: relative; z-index: 1; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem;
}
.auth-card { padding: 2.5rem; width: 100%; max-width: 420px; }
.brand { display: flex; gap: 0.9rem; align-items: center; margin-bottom: 1.6rem; }
.logo-mark {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.6rem; color: #04121a;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: 0 0 26px rgba(34,211,238,0.55);
}
.logo-mark.sm { width: 32px; height: 32px; font-size: 1rem; border-radius: 9px; }
.brand-text h1 { font-size: 1.55rem; letter-spacing: 0.01em; }
.tagline { color: var(--muted); font-size: 0.85rem; margin-top: 0.2rem; }
.auth-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.2rem; }
.auth-tab {
  flex: 1; padding: 0.65rem; background: transparent; border: 1px solid rgba(139,152,179,0.25);
  color: var(--muted); border-radius: 10px; cursor: pointer; font-size: 0.95rem;
}
.auth-tab.active {
  color: var(--text); border-color: rgba(34,211,238,0.55);
  background: rgba(34,211,238,0.08); box-shadow: 0 0 16px rgba(34,211,238,0.15);
}
.auth-form { display: flex; flex-direction: column; gap: 0.9rem; }

/* forms */
label { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.85rem; color: var(--muted); }
input, select {
  background: var(--input); border: 1px solid rgba(139,152,179,0.25);
  color: var(--text); border-radius: 9px; padding: 0.65rem 0.8rem; font-size: 0.95rem;
  width: 100%; outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus { border-color: var(--cyan); box-shadow: 0 0 12px rgba(34,211,238,0.25); }
input[type="date"] { color-scheme: dark; }
small { font-weight: normal; }
.error {
  background: rgba(251,113,133,0.1); border: 1px solid rgba(251,113,133,0.4);
  color: var(--red); border-radius: 9px; padding: 0.6rem 0.8rem; font-size: 0.88rem;
}

/* buttons */
.btn {
  border: none; border-radius: 10px; padding: 0.7rem 1.2rem; font-size: 0.95rem;
  cursor: pointer; font-weight: 600; transition: transform 0.08s, box-shadow 0.15s, opacity 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: default; }
/* In-flight indicator: spinning ring appended while an async action runs. */
.btn-loading { position: relative; pointer-events: none; }
.btn-loading::after {
  content: ''; display: inline-block; width: 0.85em; height: 0.85em;
  margin-left: 0.5em; border: 2px solid currentColor; border-top-color: transparent;
  border-radius: 50%; vertical-align: -0.12em;
  animation: btn-spin 0.7s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn-loading::after { animation: none; } }
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #04121a; box-shadow: 0 0 20px rgba(34,211,238,0.35);
}
.btn-primary:hover { box-shadow: 0 0 30px rgba(34,211,238,0.55); }
.btn-secondary {
  background: rgba(139,92,246,0.15); color: var(--text);
  border: 1px solid rgba(139,92,246,0.5);
}
.btn-secondary:hover { box-shadow: 0 0 18px rgba(139,92,246,0.35); }
.btn-ghost {
  background: transparent; color: var(--muted);
  border: 1px solid rgba(139,152,179,0.25); padding: 0.45rem 0.9rem; font-size: 0.85rem;
}
.btn-ghost:hover { color: var(--text); border-color: rgba(34,211,238,0.4); }
.btn-danger { background: rgba(251,113,133,0.12); color: var(--red); border: 1px solid rgba(251,113,133,0.45); }

/* nav */
.topnav {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center;
  justify-content: space-between; padding: 0.8rem 1.4rem; border-radius: 0;
  border-left: none; border-right: none; border-top: none;
}
.nav-left { display: flex; align-items: center; gap: 0.7rem; }
.nav-brand { font-weight: 700; font-size: 1.1rem; }
.nav-links { display: flex; gap: 0.3rem; margin-left: 1.2rem; }
.nav-link {
  color: var(--muted); text-decoration: none; padding: 0.5rem 0.9rem;
  border-radius: 8px; font-size: 0.92rem; transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--cyan); background: rgba(34,211,238,0.1); box-shadow: 0 0 14px rgba(34,211,238,0.15); }
.nav-right { display: flex; align-items: center; gap: 0.8rem; }
.currency-label {
  font-size: 0.8rem; font-weight: 700; color: var(--cyan);
  border: 1px solid rgba(34,211,238,0.4); border-radius: 7px; padding: 0.3rem 0.6rem;
  background: rgba(34,211,238,0.07);
}

/* layout */
.container { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 1.6rem 1.2rem 3rem; }
.view-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; }
.view-head h2 { margin-bottom: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin: 1.2rem 0; }
.kpi { padding: 1.1rem 1.3rem; display: flex; flex-direction: column; gap: 0.35rem; }
.kpi-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.kpi-value { font-size: 1.5rem; font-weight: 700; }
.kpi-value.pos { color: var(--green); text-shadow: 0 0 18px rgba(52,211,153,0.45); }
.kpi-value.neg { color: var(--red); text-shadow: 0 0 18px rgba(251,113,133,0.45); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin-top: 1rem; }
.card { padding: 1.4rem; margin-bottom: 1rem; position: relative; }
.card-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; }
.card-head h3 { margin-bottom: 0; }
.chart-wrap { position: relative; height: 280px; }

/* transaction form */
.txn-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.9rem; align-items: end; margin-top: 0.8rem; }
.amount-row { display: flex; gap: 0.6rem; align-items: stretch; }
.amount-row input { flex: 1; min-width: 0; }
.seg { display: flex; border: 1px solid rgba(139,152,179,0.25); border-radius: 9px; overflow: hidden; }
.seg-btn {
  background: transparent; color: var(--muted); border: none; padding: 0.65rem 0.9rem;
  cursor: pointer; font-size: 0.85rem; font-weight: 600; white-space: nowrap;
}
.seg-btn.active { background: rgba(34,211,238,0.15); color: var(--cyan); }
.seg-btn#type-income.active { background: rgba(52,211,153,0.15); color: var(--green); }
.seg-btn#type-expense.active { background: rgba(251,113,133,0.15); color: var(--red); }

/* table */
.table-scroll { overflow-x: auto; margin-top: 0.8rem; }
.txn-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
/* Reconcile tables share the standard table look. */
.tbl { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 560px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.6rem; border-bottom: 1px solid rgba(139,152,179,0.2); white-space: nowrap; }
.tbl td { padding: 0.7rem 0.6rem; border-bottom: 1px solid rgba(139,152,179,0.1); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.txn-table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.6rem; border-bottom: 1px solid rgba(139,152,179,0.2); }
.txn-table td { padding: 0.7rem 0.6rem; border-bottom: 1px solid rgba(139,152,179,0.1); }
.txn-table tr:hover td { background: rgba(34,211,238,0.04); }
.txn-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.pos { color: var(--green); } .neg { color: var(--red); }
.pager { display: flex; align-items: center; gap: 0.5rem; }
.page-info { color: var(--muted); font-size: 0.85rem; }
.del-btn { background: transparent; border: none; color: var(--red); cursor: pointer; font-size: 1rem; opacity: 0.7; }
.del-btn:hover { opacity: 1; }

/* connections */
.provider-card { display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start; }
.provider-card h3 { margin-bottom: 0; }
.items-list { display: flex; flex-direction: column; gap: 0.6rem; width: 100%; margin-top: 0.6rem; }
.item-row {
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
  background: rgba(13,20,38,0.7); border: 1px solid rgba(139,152,179,0.2);
  border-radius: 9px; padding: 0.6rem 0.8rem; font-size: 0.88rem;
}
.item-row .item-actions { display: flex; gap: 0.4rem; }
.item-row .meta { color: var(--muted); font-size: 0.78rem; display: block; }

/* tools */
.debt-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.8rem; align-items: end; margin-bottom: 1rem; }
.debt-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.debt-list li {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(13,20,38,0.7); border: 1px solid rgba(139,152,179,0.2);
  border-radius: 9px; padding: 0.55rem 0.8rem; font-size: 0.88rem;
}
.debt-order { margin: 1rem 0; display: flex; flex-direction: column; gap: 0.45rem; }
.debt-order .step {
  display: flex; gap: 0.7rem; align-items: baseline; font-size: 0.92rem;
  background: rgba(139,92,246,0.08); border: 1px solid rgba(139,92,246,0.3);
  border-radius: 9px; padding: 0.55rem 0.8rem;
}
.debt-order .step .n {
  background: linear-gradient(135deg, var(--cyan), var(--violet)); color: #04121a;
  font-weight: 800; border-radius: 50%; width: 1.5rem; height: 1.5rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 0.8rem;
}

/* business health */
.health-hero { display: flex; align-items: center; gap: 1.4rem; }
.health-ring {
  --p: 0;
  width: 108px; height: 108px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: conic-gradient(var(--cyan) calc(var(--p) * 1%), rgba(139,152,179,0.15) 0);
  position: relative;
  box-shadow: 0 0 28px rgba(34,211,238,0.25);
}
.health-ring::before {
  content: ''; position: absolute; inset: 10px; border-radius: 50%;
  background: #0b1226;
}
.health-ring span {
  position: relative; font-size: 1.7rem; font-weight: 800; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.health-ring.low { background: conic-gradient(var(--red) calc(var(--p) * 1%), rgba(139,152,179,0.15) 0); box-shadow: 0 0 28px rgba(251,113,133,0.3); }
.health-ring.mid { background: conic-gradient(#fbbf24 calc(var(--p) * 1%), rgba(139,152,179,0.15) 0); box-shadow: 0 0 28px rgba(251,191,36,0.25); }
.health-hero-text h3 { margin-bottom: 0.4rem; }
.findings { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 0.4rem; }
.finding {
  padding: 1.1rem 1.3rem; border-left: 4px solid var(--muted);
  display: flex; flex-direction: column; gap: 0.45rem;
}
.finding.sev-ok { border-left-color: var(--green); }
.finding.sev-watch { border-left-color: #fbbf24; }
.finding.sev-warning { border-left-color: #fb923c; }
.finding.sev-critical { border-left-color: var(--red); box-shadow: 0 0 22px rgba(251,113,133,0.12), 0 8px 32px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.05); }
.finding-head { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.finding-head h4 { font-size: 1rem; }
.sev-badge {
  font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem; border-radius: 20px; border: 1px solid;
}
.sev-ok .sev-badge { color: var(--green); border-color: rgba(52,211,153,0.5); background: rgba(52,211,153,0.08); }
.sev-watch .sev-badge { color: #fbbf24; border-color: rgba(251,191,36,0.5); background: rgba(251,191,36,0.08); }
.sev-warning .sev-badge { color: #fb923c; border-color: rgba(251,146,60,0.5); background: rgba(251,146,60,0.08); }
.sev-critical .sev-badge { color: var(--red); border-color: rgba(251,113,133,0.5); background: rgba(251,113,133,0.1); }
.finding-detail { color: var(--muted); font-size: 0.9rem; }
.finding-action { font-size: 0.88rem; color: var(--text); background: rgba(34,211,238,0.06); border: 1px solid rgba(34,211,238,0.18); border-radius: 8px; padding: 0.55rem 0.8rem; }
.finding-action strong { color: var(--cyan); }

/* inventory */
.inv-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.9rem; align-items: end; margin-top: 0.8rem; }
.inv-form-actions { display: flex; gap: 0.6rem; align-items: end; }
.inv-summary { font-size: 1.02rem; color: var(--text); }
.buy-head { color: var(--green); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; }
.stop-head { color: var(--red); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; }
.inv-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.inv-list li {
  background: rgba(13,20,38,0.7); border: 1px solid rgba(139,152,179,0.2);
  border-radius: 9px; padding: 0.6rem 0.8rem; font-size: 0.88rem;
}
.inv-list li strong { display: block; margin-bottom: 0.15rem; }
.inv-list li .muted { font-size: 0.82rem; }
.inv-list.buy li { border-left: 3px solid var(--green); }
.inv-list.stop li { border-left: 3px solid var(--red); }
.inv-list .none { color: var(--muted); border-left-color: rgba(139,152,179,0.3); }
.stock-badge {
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem; border-radius: 20px; border: 1px solid; white-space: nowrap;
}
.stock-ok { color: var(--green); border-color: rgba(52,211,153,0.5); background: rgba(52,211,153,0.08); }
.stock-reorder { color: #fbbf24; border-color: rgba(251,191,36,0.5); background: rgba(251,191,36,0.08); }
.stock-low { color: #fb923c; border-color: rgba(251,146,60,0.5); background: rgba(251,146,60,0.08); }
.stock-out { color: var(--red); border-color: rgba(251,113,133,0.5); background: rgba(251,113,133,0.1); }
.stock-dead { color: #c084fc; border-color: rgba(192,132,252,0.5); background: rgba(192,132,252,0.08); }
.stock-over { color: #94a3b8; border-color: rgba(148,163,184,0.5); background: rgba(148,163,184,0.08); }
.inv-actions { display: flex; gap: 0.35rem; justify-content: flex-end; }
.inv-actions .btn-ghost { padding: 0.3rem 0.6rem; font-size: 0.78rem; }
h4.buy-head, h4.stop-head { margin-bottom: 0.5rem; }

@media (max-width: 760px) {
  .grid-2 { grid-template-columns: 1fr; }
  .nav-links { margin-left: 0.4rem; }
  .nav-link { padding: 0.5rem 0.55rem; font-size: 0.85rem; }
  .nav-brand { display: none; }
  .container { padding: 1.1rem 0.8rem 2.5rem; }
  .auth-card { padding: 1.8rem; }
}

/* Mobile nav: 35 links can't fit in one row — wrap the bar and let the
   links scroll horizontally instead of blowing out the page width. */
@media (max-width: 760px) {
  .topnav { flex-wrap: wrap; row-gap: 0.5rem; padding: 0.7rem 0.8rem; }
  .nav-left { flex: 1 1 100%; min-width: 0; }
  .nav-links {
    flex: 1 1 100%; min-width: 0; margin-left: 0;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding-bottom: 0.2rem;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-link { white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
  .nav-right { flex-wrap: wrap; gap: 0.5rem; }
  /* Touch targets: keep small buttons comfortably tappable. */
  .btn-sm { min-height: 36px; }
  .del-btn { min-width: 44px; min-height: 44px; }
  .inv-actions .btn-ghost { padding: 0.45rem 0.7rem; font-size: 0.85rem; }
  .form-grid .span-2 { grid-column: 1 / -1; }
}

/* what-if simulator */
.scenario-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.8rem; margin-top: 0.6rem; }
.scenario-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem;
  padding: 1rem; border-radius: 14px; cursor: pointer; text-align: left;
  border: 1px solid rgba(139,152,179,0.18); color: var(--text);
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}
.scenario-card:hover { transform: translateY(-2px); border-color: rgba(34,211,238,0.45); }
.scenario-card.selected { border-color: var(--cyan); box-shadow: 0 0 18px rgba(34,211,238,0.22); }
.scenario-icon { font-size: 1.5rem; }
.scenario-card strong { font-size: 0.95rem; }
.section-title { margin: 1.2rem 0 0.2rem; font-size: 1.05rem; }
#whatif-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.9rem; align-items: end; margin-top: 0.8rem; }
.whatif-numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0.7rem; margin: 0.9rem 0; }
.whatif-num { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.6rem 0.8rem; border-radius: 10px; background: rgba(139,152,179,0.07); border: 1px solid rgba(139,152,179,0.14); }
.whatif-num strong { font-size: 1.05rem; }
.whatif-bullets { margin: 0.6rem 0 0.9rem 1.1rem; color: var(--muted); font-size: 0.92rem; display: flex; flex-direction: column; gap: 0.35rem; }
.runway-bars { display: flex; flex-direction: column; gap: 0.45rem; margin: 0.4rem 0 0.6rem; }
.runway-row { display: grid; grid-template-columns: 110px 1fr 90px; align-items: center; gap: 0.7rem; font-size: 0.85rem; }
.runway-label { color: var(--muted); }
.runway-track { height: 10px; border-radius: 6px; background: rgba(139,152,179,0.14); overflow: hidden; }
.runway-fill { height: 100%; border-radius: 6px; transition: width 0.5s ease; }
.runway-fill.good { background: linear-gradient(90deg, #34d399, #22d3ee); box-shadow: 0 0 10px rgba(52,211,153,0.4); }
.runway-fill.mid { background: linear-gradient(90deg, #fbbf24, #fb923c); }
.runway-fill.bad { background: linear-gradient(90deg, #fb7185, #f43f5e); box-shadow: 0 0 10px rgba(251,113,133,0.4); }
.runway-fill.stable { background: linear-gradient(90deg, #22d3ee, #8b5cf6); box-shadow: 0 0 10px rgba(34,211,238,0.4); }
.runway-val { text-align: right; font-weight: 600; }

/* books: double-entry accounting */
.book-tabs, .stmt-tabs { display: flex; gap: 0.5rem; margin: 1rem 0; flex-wrap: wrap; }
.book-tab, .stmt-tab {
  background: var(--surface); color: var(--muted);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 0.55rem 1rem; font-size: 0.9rem; cursor: pointer;
}
.book-tab:hover, .stmt-tab:hover { color: var(--text); border-color: rgba(34,211,238,0.4); }
.book-tab.active, .stmt-tab.active {
  color: var(--text); border-color: rgba(34,211,238,0.6);
  background: rgba(34,211,238,0.1); box-shadow: 0 0 16px rgba(34,211,238,0.15);
}
.ledger-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin-top: 0.6rem; }
.ledger-table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.6rem; border-bottom: 1px solid rgba(139,152,179,0.2); }
.ledger-table td { padding: 0.6rem; border-bottom: 1px solid rgba(139,152,179,0.1); }
.ledger-table tr:hover td { background: rgba(34,211,238,0.04); }
.ledger-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.journal-entry { border: 1px solid var(--border); border-radius: 12px; padding: 0.9rem 1.1rem; margin-bottom: 0.8rem; background: rgba(255,255,255,0.015); }
.journal-head { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
.tag { font-size: 0.72rem; color: var(--muted); border: 1px solid var(--border); border-radius: 20px; padding: 0.15rem 0.6rem; }
.stmt-summary .stmt-hero h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.stmt-section { margin: 1.1rem 0; }
.stmt-section h4 { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.4rem; }
.stmt-row { display: flex; justify-content: space-between; padding: 0.35rem 0; border-bottom: 1px solid rgba(139,152,179,0.07); font-size: 0.92rem; }
.stmt-row .num { font-variant-numeric: tabular-nums; }
.stmt-row.stmt-total { font-weight: 700; border-bottom: none; border-top: 1px solid rgba(139,152,179,0.25); margin-top: 0.3rem; padding-top: 0.6rem; font-size: 1rem; }
.stmt-controls { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.stmt-controls select, .stmt-controls input[type="date"] { width: auto; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.8rem; align-items: end; }
.neg { color: var(--red); }

/* ask nova: conversational CFO chat */
.chat-card { padding: 1.2rem; }
.chat-messages { display: flex; flex-direction: column; gap: 0.7rem; max-height: 52vh; overflow-y: auto; padding: 0.4rem 0.2rem; margin-bottom: 1rem; }
.chat-bubble { max-width: 82%; padding: 0.75rem 1rem; border-radius: 14px; font-size: 0.93rem; line-height: 1.55; white-space: normal; }
.chat-bubble.user { align-self: flex-end; background: rgba(34,211,238,0.14); border: 1px solid rgba(34,211,238,0.35); color: var(--text); border-bottom-right-radius: 4px; }
.chat-bubble.nova { align-self: flex-start; background: rgba(139,92,246,0.1); border: 1px solid rgba(139,92,246,0.3); color: var(--text); border-bottom-left-radius: 4px; }
.chat-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.chip { background: var(--surface); color: var(--muted); border: 1px solid var(--border); border-radius: 20px; padding: 0.4rem 0.9rem; font-size: 0.82rem; cursor: pointer; }
.chip:hover { color: var(--text); border-color: rgba(34,211,238,0.5); }
.chat-input-row { display: flex; gap: 0.6rem; }
.chat-input-row input { flex: 1; }
.chat-actions { display: flex; gap: 0.5rem; margin-top: 0.7rem; flex-wrap: wrap; }
.btn-sm { padding: 0.35rem 0.8rem; font-size: 0.8rem; }
.typing { display: inline-flex; gap: 4px; padding: 0.3rem 0; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }

/* ---------- tax autopilot ---------- */
.tax-disclaimer {
  font-size: 0.8rem; color: #fbbf24;
  background: rgba(251,191,36,0.07); border: 1px solid rgba(251,191,36,0.25);
  border-radius: 8px; padding: 0.5rem 0.8rem; margin: 0.7rem 0;
}
.quarter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.9rem; }
.quarter-card { padding: 1rem 1.1rem; border-left: 4px solid var(--cyan); }
.quarter-card.q-past { border-left-color: var(--muted); opacity: 0.65; }
.quarter-card.q-due_soon { border-left-color: var(--red); box-shadow: 0 0 22px rgba(251,113,133,0.12); }
.quarter-card.q-upcoming { border-left-color: var(--green); }
.quarter-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.4rem; }
.q-badge {
  font-weight: 700; font-size: 0.8rem; color: var(--cyan);
  background: rgba(34,211,238,0.1); border: 1px solid rgba(34,211,238,0.3);
  border-radius: 6px; padding: 0.15rem 0.55rem;
}
.quarter-due { font-size: 1.25rem; font-weight: 700; }
.quarter-amt { font-size: 1.05rem; color: var(--text); margin-top: 0.15rem; }
.quarter-when { font-size: 0.85rem; color: var(--muted); margin-top: 0.25rem; }
.progress-track {
  height: 12px; border-radius: 999px; background: rgba(139,152,179,0.15);
  overflow: hidden; margin-top: 0.6rem;
}
.progress-fill {
  height: 100%; width: 0%; border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  box-shadow: 0 0 12px rgba(34,211,238,0.5);
  transition: width 0.5s ease;
}

/* ---------- invoices ---------- */
.inv-tabs { display: flex; gap: 0.5rem; margin: 1rem 0; }
.filter-select {
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 0.4rem 0.6rem; font-size: 0.85rem;
}
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: rgba(34,211,238,0.06); }
.pill {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  padding: 0.15rem 0.6rem; border-radius: 999px;
  border: 1px solid var(--border); color: var(--muted);
  background: rgba(139,152,179,0.08); white-space: nowrap;
}
.pill.new { color: var(--green); border-color: rgba(52,211,153,0.5); background: rgba(52,211,153,0.12); }
.pill.pos { color: var(--green); border-color: rgba(52,211,153,0.5); background: rgba(52,211,153,0.12); }
.pill.warn { color: #fbbf24; border-color: rgba(251,191,36,0.5); background: rgba(251,191,36,0.1); }
/* proposals / recurring status pills */
.pill.draft { color: var(--muted); }
.pill.sent { color: #fbbf24; border-color: rgba(251,191,36,0.5); background: rgba(251,191,36,0.1); }
.pill.accepted { color: var(--green); border-color: rgba(52,211,153,0.5); background: rgba(52,211,153,0.12); }
.pill.declined, .pill.expired { color: var(--red); border-color: rgba(251,113,133,0.5); background: rgba(251,113,133,0.1); }
/* lead finder: nav badge + preference checkboxes */
.nav-link { position: relative; }
.nav-badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 18px; height: 18px; line-height: 18px; text-align: center;
  font-size: 0.68rem; font-weight: 800; color: #04121a;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  border-radius: 999px; padding: 0 5px;
  box-shadow: 0 0 12px rgba(34,211,238,0.6);
}
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.4rem 0.8rem; }
.check-item {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.9rem; color: var(--text); cursor: pointer;
  padding: 0.35rem 0.5rem; border-radius: 8px;
  border: 1px solid transparent;
}
.check-item:hover { border-color: var(--card-border); background: rgba(34,211,238,0.05); }
.check-item input { accent-color: var(--cyan); width: 15px; height: 15px; }
/* growth engine: difficulty pills + completed plays */
.pill.diff-easy { color: var(--green); border-color: rgba(52,211,153,0.5); background: rgba(52,211,153,0.1); }
.pill.diff-medium { color: #fbbf24; border-color: rgba(251,191,36,0.5); background: rgba(251,191,36,0.1); }
.pill.diff-hard { color: var(--red); border-color: rgba(251,113,133,0.5); background: rgba(251,113,133,0.1); }
.play-done { opacity: 0.72; }
.play-done h4 { color: var(--green); }
.pill.sev-ok { color: var(--green); border-color: rgba(52,211,153,0.5); background: rgba(52,211,153,0.1); }
.pill.sev-watch { color: var(--amber); border-color: rgba(251,191,36,0.5); background: rgba(251,191,36,0.1); }
.pill.sev-warning { color: var(--orange); border-color: rgba(251,146,60,0.5); background: rgba(251,146,60,0.1); }
.pill.sev-critical { color: var(--red); border-color: rgba(251,113,133,0.5); background: rgba(251,113,133,0.1); }
.pill.sev-info { color: var(--cyan, #22d3ee); border-color: rgba(34,211,238,0.5); background: rgba(34,211,238,0.1); }
.pill.founding {
  color: #fbbf24; border-color: rgba(251,191,36,0.6); background: rgba(251,191,36,0.12);
  box-shadow: 0 0 12px rgba(251,191,36,0.25);
}
.founding-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.25rem; margin-bottom: 1rem;
  border: 1px solid rgba(251,191,36,0.4); border-radius: 12px;
  background: linear-gradient(135deg, rgba(251,191,36,0.08), rgba(251,191,36,0.02));
}
.founding-banner p { margin: 0.25rem 0 0; }
.founding-banner strong { color: #fbbf24; }
.inv-line-row {
  display: grid; grid-template-columns: 1fr 90px 110px 90px 40px; gap: 0.5rem;
  align-items: center; margin-bottom: 0.5rem;
}
.inv-line-row input {
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 0.5rem; width: 100%; box-sizing: border-box;
}
.inv-totals { margin: 1rem 0; max-width: 320px; margin-left: auto; }
.inv-totals > div { display: flex; justify-content: space-between; padding: 0.3rem 0; }
.inv-grand { font-size: 1.1rem; border-top: 1px solid var(--border); margin-top: 0.3rem; padding-top: 0.6rem; }
.inv-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem; margin-bottom: 1rem;
}
.inv-meta > div { display: flex; flex-direction: column; gap: 0.2rem; }
.form-grid .span-2 { grid-column: span 2; }
.form-grid textarea {
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 0.5rem; width: 100%; box-sizing: border-box;
  font-family: inherit; resize: vertical;
}
@media (max-width: 640px) {
  /* Invoice line rows: description takes the full row, numeric fields flow below. */
  .inv-line-row { grid-template-columns: 1fr 70px 90px; row-gap: 0.4rem; }
  .inv-line-row [data-f="desc"] { grid-column: 1 / -1; }
  .inv-line-row [data-f="total"] { grid-column: 1 / -1; text-align: left; }
}

/* Profit per customer */
.margin-bar { width: 90px; height: 8px; border-radius: 4px; background: rgba(139,152,179,0.15); overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 0.4rem; }
.margin-fill { height: 100%; border-radius: 4px; transition: width 0.4s ease; }
.margin-fill.pos { background: linear-gradient(90deg, #34d399, #22d3ee); box-shadow: 0 0 8px rgba(52,211,153,0.5); }
.margin-fill.warn { background: linear-gradient(90deg, #fbbf24, #fb923c); box-shadow: 0 0 8px rgba(251,191,36,0.5); }
.margin-fill.neg { background: linear-gradient(90deg, #fb7185, #ef4444); box-shadow: 0 0 8px rgba(251,113,133,0.5); }
.rate-input { width: 70px; background: rgba(139,152,179,0.08); border: 1px solid var(--hatch-widget-border, rgba(139,152,179,0.25)); border-radius: 6px; color: var(--text); padding: 0.25rem 0.4rem; font-size: 0.85rem; text-align: right; }
.rate-input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(34,211,238,0.2); }

/* ---------- daily owner briefing ---------- */
.briefing-hero { padding: 1.4rem 1.6rem; margin-bottom: 1.2rem; border-left: 3px solid var(--cyan, #22d3ee); }
.briefing-date { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted, #8b98b3); margin-bottom: 0.4rem; }
.briefing-headline { font-size: 1.35rem; line-height: 1.4; margin: 0 0 0.5rem; }
.briefing-sub { margin: 0.25rem 0; color: var(--muted, #8b98b3); }
.briefing-section { font-size: 1.05rem; margin: 1.4rem 0 0.7rem; }
.briefing-list { display: flex; flex-direction: column; gap: 0.8rem; }
.finding.sev-info { border-left-color: var(--cyan, #22d3ee); }
.sev-info .sev-badge { color: var(--cyan, #22d3ee); border-color: rgba(34,211,238,0.5); background: rgba(34,211,238,0.1); }
.good-item { display: flex; align-items: center; gap: 0.7rem; padding: 0.8rem 1rem; }
.good-check { display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: rgba(52,211,153,0.15); color: #34d399; font-weight: bold; flex-shrink: 0; }
.dive-link { color: var(--cyan, #22d3ee); text-decoration: none; white-space: nowrap; }
.dive-link:hover { text-decoration: underline; }

/* ---------- protection center ---------- */
.pro-hero-row { display: flex; align-items: center; gap: 1.4rem; }
.pro-score {
  font-size: 3.2rem; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, #22d3ee, #818cf8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  flex-shrink: 0; min-width: 6.5rem; text-align: center;
}

/* ---- billing ---- */
.plan-card { display: flex; flex-direction: column; gap: 0.6rem; }
.plan-card.plan-current { border-color: rgba(52,211,153,0.5); }
.plan-price { font-size: 2rem; font-weight: 800; }
.plan-features { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.35rem; }
.plan-features li { color: var(--text-dim, #9aa3b2); font-size: 0.9rem; }
.plan-btn { margin-top: auto; }

/* ---------- sales dashboard ---------- */
.headline { font-size: 1.05rem; line-height: 1.5; }
.source-row { display: flex; align-items: center; gap: 0.7rem; padding: 0.45rem 0; }
.source-row + .source-row { border-top: 1px solid rgba(255,255,255,0.06); }
.source-dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; flex-shrink: 0; }
.source-bar { flex: 1; height: 0.5rem; border-radius: 0.25rem; background: rgba(255,255,255,0.08); overflow: hidden; }
.source-bar span { display: block; height: 100%; border-radius: 0.25rem; }
.topdays-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0.8rem; margin-bottom: 1rem; }
.triage-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 1rem; margin-bottom: 0.6rem; flex-wrap: wrap; }
.triage-actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }

/* ---------- payroll ---------- */
.payroll-tabs { display: flex; gap: 0.5rem; margin: 1rem 0; flex-wrap: wrap; }
.payroll-tab.active { border-color: rgba(34,211,238,0.6); color: #22d3ee; background: rgba(34,211,238,0.08); }
.payroll-pane { margin-top: 0.5rem; }

/* Split: personal/business triage */
.split-card { margin-bottom: 0.75rem; }
.split-card-top { margin-bottom: 0.6rem; }
.split-sug { margin-top: 0.3rem; font-size: 0.85rem; }
.split-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.split-editor { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid rgba(255,255,255,0.08); }
.split-pattern { margin-bottom: 0.6rem; }

/* ---- Legal pages + footer ---- */
.auth-footer { text-align: center; margin-top: 1rem; font-size: .85rem; opacity: .7; }
.auth-footer a { margin: 0 .4rem; }
.app-footer { text-align: center; padding: 1.5rem 1rem 2rem; font-size: .85rem; opacity: .65; }
.app-footer a { margin: 0 .4rem; }
.app-footer .muted { opacity: .8; }
.terms-check { display: flex; align-items: flex-start; gap: .5rem; font-size: .85rem; line-height: 1.5; }
.terms-check input[type="checkbox"] { margin-top: .25rem; accent-color: #4f8cff; }
.terms-check a { text-decoration: underline; }

/* ---- Team access ---- */
.team-banner { margin: 0.75rem 0; padding: 0.6rem 1rem; border-radius: 10px;
  background: rgba(34,211,238,0.08); border: 1px solid rgba(34,211,238,0.35);
  font-size: 0.9rem; }
.team-banner a { color: #22d3ee; font-weight: 600; }
.team-row { display: flex; justify-content: space-between; align-items: center;
  gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.team-row:last-child { border-bottom: none; }
.row-actions { display: flex; gap: 0.4rem; }
.team-form { display: grid; grid-template-columns: 1fr 220px auto; gap: 0.6rem; align-items: end; }
@media (max-width: 720px) { .team-form { grid-template-columns: 1fr; } }
.invite-link-row { display: flex; gap: 0.5rem; }
.invite-link-row input { flex: 1; font-size: 0.8rem; }
.small { font-size: 0.8rem; }

/* ================= LANDING PAGE ================= */
#landing-view { position: relative; z-index: 1; }
.lp-nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.6rem; border-radius: 0;
  border-left: none; border-right: none; border-top: none;
  max-width: 1280px; margin: 0 auto;
}
.lp-brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text); }
.lp-brand-name { font-weight: 700; font-size: 1.1rem; }
.lp-links { display: flex; gap: 1.4rem; }
.lp-links a { color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 500; transition: color 0.15s; }
.lp-links a:hover { color: var(--cyan); }
.lp-nav-cta { display: flex; gap: 0.6rem; align-items: center; }

/* hero */
.lp-hero { position: relative; overflow: hidden; padding: 5rem 1.5rem 4rem; }
.lp-hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 380px at 50% 0%, rgba(34,211,238,0.14), transparent 70%),
    radial-gradient(500px 300px at 20% 60%, rgba(139,92,246,0.12), transparent 70%),
    radial-gradient(500px 300px at 80% 70%, rgba(34,211,238,0.08), transparent 70%);
  animation: lpGlow 8s ease-in-out infinite alternate;
}
@keyframes lpGlow { from { opacity: 0.7; } to { opacity: 1; } }
.lp-hero-inner {
  position: relative; z-index: 1; max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center;
}
.lp-badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  color: var(--cyan); border: 1px solid rgba(34,211,238,0.4);
  background: rgba(34,211,238,0.07); border-radius: 999px; padding: 0.45rem 1rem;
  margin-bottom: 1.4rem;
}
.lp-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: lpPulse 1.8s infinite; }
@keyframes lpPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.8); } }
.lp-h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 1.2rem; }
.lp-grad {
  background: linear-gradient(100deg, var(--cyan) 10%, var(--violet) 55%, #f472b6 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lp-sub { font-size: 1.12rem; color: var(--muted); line-height: 1.65; margin-bottom: 1.8rem; max-width: 34rem; }
.lp-cta-row { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.lp-cta-big { padding: 0.9rem 1.8rem; font-size: 1.02rem; text-decoration: none; display: inline-block; }
.lp-trust { font-size: 0.82rem; color: var(--muted); }

/* hero mockup */
.lp-hero-visual { position: relative; }
.lp-mock { padding: 1.2rem 1.3rem; transform: perspective(1200px) rotateY(-6deg) rotateX(2deg); transition: transform 0.4s ease; }
.lp-mock:hover { transform: perspective(1200px) rotateY(0deg) rotateX(0deg); }
.lp-mock-head { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 1rem; }
.lp-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(139,152,179,0.35); }
.lp-dot:first-child { background: rgba(251,113,133,0.6); }
.lp-dot:nth-child(2) { background: rgba(251,191,36,0.6); }
.lp-dot:nth-child(3) { background: rgba(52,211,153,0.6); }
.lp-mock-title { margin-left: 0.5rem; font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.lp-mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; margin-bottom: 1rem; }
.lp-mock-kpi { background: rgba(13,20,38,0.7); border: 1px solid rgba(139,152,179,0.18); border-radius: 10px; padding: 0.65rem 0.8rem; display: flex; flex-direction: column; gap: 0.25rem; }
.lp-mock-kpi span { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.lp-mock-kpi strong { font-size: 1.15rem; }
.lp-mock-bars { display: flex; align-items: flex-end; gap: 0.55rem; height: 130px; padding: 0.4rem 0.2rem; }
.lp-bar {
  flex: 1; height: var(--h); border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, rgba(34,211,238,0.75), rgba(34,211,238,0.15));
  animation: lpBar 1.1s cubic-bezier(0.2, 0.9, 0.3, 1.2) backwards;
}
.lp-bar:nth-child(2) { animation-delay: 0.08s; } .lp-bar:nth-child(3) { animation-delay: 0.16s; }
.lp-bar:nth-child(4) { animation-delay: 0.24s; } .lp-bar:nth-child(5) { animation-delay: 0.32s; }
.lp-bar:nth-child(6) { animation-delay: 0.40s; } .lp-bar:nth-child(7) { animation-delay: 0.48s; }
.lp-bar:nth-child(8) { animation-delay: 0.56s; }
.lp-bar.hot { background: linear-gradient(180deg, var(--violet), rgba(139,92,246,0.2)); box-shadow: 0 0 18px rgba(139,92,246,0.5); }
@keyframes lpBar { from { height: 0; } }
.lp-mock-insight {
  margin-top: 0.9rem; font-size: 0.88rem; color: var(--text);
  background: rgba(52,211,153,0.07); border: 1px solid rgba(52,211,153,0.25);
  border-radius: 9px; padding: 0.6rem 0.85rem;
}
.lp-chip {
  position: absolute; padding: 0.55rem 0.95rem; font-size: 0.82rem; font-weight: 600;
  border-radius: 999px; white-space: nowrap; animation: lpFloat 5s ease-in-out infinite;
}
.lp-chip-1 { top: -18px; right: 6%; color: var(--cyan); }
.lp-chip-2 { bottom: -16px; left: 4%; animation-delay: 2.5s; color: var(--green); }
@keyframes lpFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ticker */
.lp-ticker { overflow: hidden; border-top: 1px solid rgba(139,152,179,0.14); border-bottom: 1px solid rgba(139,152,179,0.14); padding: 0.9rem 0; background: rgba(11,17,32,0.5); }
.lp-ticker-track { display: inline-flex; gap: 3rem; white-space: nowrap; animation: lpTick 26s linear infinite; padding-left: 1.5rem; }
.lp-ticker-track span { color: var(--muted); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; }
.lp-ticker-track span::before { content: "◆ "; color: rgba(34,211,238,0.5); font-size: 0.7rem; }
@keyframes lpTick { to { transform: translateX(-50%); } }

/* sections */
.lp-section { max-width: 1180px; margin: 0 auto; padding: 4.5rem 1.5rem 1rem; }
.lp-eyebrow { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.18em; color: var(--cyan); margin-bottom: 0.8rem; }
.lp-h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.15; font-weight: 800; letter-spacing: -0.015em; margin-bottom: 2.2rem; }
.lp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.lp-stat { padding: 1.5rem; text-align: center; display: flex; flex-direction: column; gap: 0.4rem; transition: transform 0.2s, box-shadow 0.2s; }
.lp-stat:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(34,211,238,0.12), 0 8px 32px rgba(0,0,0,0.35); }
.lp-stat strong { font-size: 2.4rem; font-weight: 800; background: linear-gradient(135deg, var(--cyan), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-stat span { color: var(--muted); font-size: 0.9rem; }

/* features */
.lp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.1rem; }
.lp-grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.lp-card { padding: 1.7rem; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.lp-card:hover { transform: translateY(-5px); border-color: rgba(34,211,238,0.45); box-shadow: 0 16px 44px rgba(34,211,238,0.12), 0 8px 32px rgba(0,0,0,0.35); }
.lp-icon {
  width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; margin-bottom: 1rem; color: var(--violet);
  background: rgba(139,92,246,0.12); border: 1px solid rgba(139,92,246,0.35);
}
.lp-icon-cyan { color: var(--cyan); background: rgba(34,211,238,0.1); border-color: rgba(34,211,238,0.35); box-shadow: 0 0 18px rgba(34,211,238,0.18); }
.lp-card h3 { font-size: 1.12rem; margin-bottom: 0.55rem; }
.lp-card p { color: var(--muted); font-size: 0.94rem; line-height: 1.6; }
.lp-tag { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; color: var(--cyan); border: 1px solid rgba(34,211,238,0.45); border-radius: 999px; padding: 0.15rem 0.55rem; vertical-align: middle; }

/* steps */
.lp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; }
.lp-step { padding: 1.8rem; position: relative; transition: transform 0.2s; }
.lp-step:hover { transform: translateY(-4px); }
.lp-step-n {
  width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.2rem; color: #04121a; margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--cyan), var(--violet)); box-shadow: 0 0 22px rgba(34,211,238,0.45);
}
.lp-step h3 { margin-bottom: 0.5rem; }
.lp-step p { color: var(--muted); font-size: 0.94rem; line-height: 1.6; }

/* trades */
.lp-trades { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.lp-trade { padding: 1.4rem; text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 0.35rem; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.lp-trade:hover { transform: translateY(-4px); border-color: rgba(34,211,238,0.5); box-shadow: 0 14px 40px rgba(34,211,238,0.14); }
.lp-trade strong { font-size: 1.05rem; }
.lp-trade span { color: var(--muted); font-size: 0.88rem; }

/* pricing */
.lp-founding {
  padding: 1.2rem 1.5rem; margin-bottom: 1.6rem; border-radius: var(--radius);
  border: 1px solid rgba(251,191,36,0.4);
  background: linear-gradient(135deg, rgba(251,191,36,0.09), rgba(251,191,36,0.02));
  display: flex; gap: 1rem; align-items: flex-start;
}
.lp-founding strong { color: #fbbf24; white-space: nowrap; }
.lp-founding p { color: var(--muted); font-size: 0.92rem; margin: 0.15rem 0 0; }
.lp-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.1rem; align-items: stretch; }
.lp-plan { padding: 2rem 1.7rem; display: flex; flex-direction: column; gap: 0.7rem; position: relative; transition: transform 0.2s, box-shadow 0.2s; }
.lp-plan:hover { transform: translateY(-5px); }
.lp-plan-hot { border-color: rgba(34,211,238,0.55); box-shadow: 0 0 34px rgba(34,211,238,0.16), 0 8px 32px rgba(0,0,0,0.35); }
.lp-pop {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; color: #04121a;
  background: linear-gradient(135deg, var(--cyan), var(--violet)); border-radius: 999px; padding: 0.3rem 0.9rem;
  white-space: nowrap;
}
.lp-plan h3 { font-size: 1.2rem; }
.lp-price { font-size: 2.6rem; font-weight: 800; }
.lp-price span { font-size: 1rem; color: var(--muted); font-weight: 500; }
.lp-plan ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; margin: 0.4rem 0 1rem; }
.lp-plan ul li { color: var(--muted); font-size: 0.93rem; padding-left: 1.5rem; position: relative; }
.lp-plan ul li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.lp-plan .btn { margin-top: auto; }
.lp-note { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 1.4rem; }
.lp-calc { max-width: 560px; margin: 0 auto; padding: 2rem; display: flex; flex-direction: column; gap: 1.1rem; }
.lp-calc-label { display: flex; flex-direction: column; gap: 0.5rem; font-weight: 600; }
.lp-calc-label select { padding: 0.7rem 0.9rem; border-radius: 10px; font-size: 1rem; }
.lp-calc-result { background: rgba(34,211,238,0.06); border: 1px solid rgba(34,211,238,0.25); border-radius: 12px; padding: 1.2rem; }
.lp-calc-row { display: flex; justify-content: space-between; align-items: center; font-size: 1.05rem; }
.lp-calc-save { font-size: 1.5rem; margin-top: 0.6rem; }
.lp-calc-save strong { color: var(--green); }

/* testimonials */
.lp-quote { padding: 1.7rem; display: flex; flex-direction: column; gap: 1rem; transition: transform 0.2s; }
.lp-quote:hover { transform: translateY(-4px); }
.lp-quote p { font-size: 1.02rem; line-height: 1.6; font-style: italic; }
.lp-quote span { color: var(--cyan); font-size: 0.88rem; font-weight: 600; }

/* about */
.lp-about { padding: 2.2rem; display: flex; gap: 1.8rem; align-items: flex-start; }
.lp-about-mark { flex-shrink: 0; }
.lp-about-mark .logo-mark { width: 72px; height: 72px; font-size: 2.2rem; }
.lp-about-copy p { color: var(--muted); line-height: 1.7; margin-bottom: 1rem; font-size: 0.98rem; }
.lp-about-copy p strong { color: var(--text); }
.lp-about-sign { color: var(--cyan) !important; font-weight: 600; }

/* faq */
.lp-faq { display: flex; flex-direction: column; gap: 0.8rem; max-width: 800px; }
.lp-faq-item { padding: 0; overflow: hidden; }
.lp-faq-item summary { padding: 1.15rem 1.4rem; cursor: pointer; font-weight: 600; font-size: 0.98rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.lp-faq-item summary::-webkit-details-marker { display: none; }
.lp-faq-item summary::after { content: "+"; color: var(--cyan); font-size: 1.3rem; font-weight: 700; }
.lp-faq-item[open] summary::after { content: "−"; }
.lp-faq-item p { padding: 0 1.4rem 1.3rem; color: var(--muted); line-height: 1.65; font-size: 0.93rem; }

/* final cta + footer */
.lp-final { text-align: center; padding: 3.5rem 2rem; margin-top: 2rem; position: relative; overflow: hidden; }
.lp-final::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(500px 240px at 50% 0%, rgba(34,211,238,0.12), transparent 70%);
}
.lp-final .lp-h2 { margin-bottom: 0.8rem; }
.lp-final .lp-sub { margin: 0 auto 1.8rem; }
.lp-footer { max-width: 1180px; margin: 0 auto; padding: 3rem 1.5rem 2.5rem; text-align: center; display: flex; flex-direction: column; gap: 0.7rem; align-items: center; border-top: 1px solid rgba(139,152,179,0.12); margin-top: 3rem; }
.lp-footer .lp-brand { margin-bottom: 0.2rem; }
.lp-footer-links a { color: var(--muted); text-decoration: none; margin: 0 0.5rem; font-size: 0.9rem; }
.lp-footer-links a:hover { color: var(--cyan); }
.lp-footer-links span { color: rgba(139,152,179,0.4); }
.lp-copy { font-size: 0.78rem; }

/* reveal on scroll (JS-gated: only hidden when body.js-landing is set by initLanding) */
.js-landing .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1); }
.js-landing .reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .lp-ticker-track, .lp-bar, .lp-chip, .lp-hero-glow, .lp-pulse { animation: none; }
}

/* auth back link */
.auth-back { text-align: center; margin-top: 0.9rem; }

/* landing responsive */
@media (max-width: 900px) {
  .lp-hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .lp-hero { padding: 3.5rem 1.2rem 3rem; }
  .lp-mock { transform: none; }
  .lp-links { display: none; }
  .lp-about { flex-direction: column; }
  .lp-chip-1 { top: -14px; right: 2%; }
}

/* ---------- trade pipeline kanban ---------- */
.pipe-board {
  display: flex; gap: 0.9rem; overflow-x: auto; padding-bottom: 0.8rem;
  align-items: flex-start; min-height: 240px;
}
.pipe-col {
  flex: 0 0 264px; background: rgba(11, 17, 32, 0.72);
  border: 1px solid var(--card-border); border-radius: var(--radius);
  display: flex; flex-direction: column; max-height: 70vh;
}
.pipe-col-head {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 0.85rem; border-bottom: 1px solid rgba(139,152,179,0.14);
  position: sticky; top: 0;
}
.pipe-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.pipe-col-name { font-weight: 700; font-size: 0.88rem; flex: 1; }
.pipe-col-count {
  font-size: 0.75rem; color: var(--muted); background: rgba(139,152,179,0.12);
  border-radius: 999px; padding: 0.1rem 0.55rem;
}
.pipe-col-total { font-size: 0.78rem; color: var(--cyan); font-weight: 600; }
.pipe-col-body { padding: 0.6rem; display: flex; flex-direction: column; gap: 0.6rem; overflow-y: auto; }
.pipe-col.drag-over { border-color: var(--cyan); box-shadow: 0 0 18px rgba(34,211,238,0.25); }
.pipe-card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: 10px;
  padding: 0.7rem 0.8rem; cursor: grab; transition: transform 0.1s, box-shadow 0.15s;
}
.pipe-card:hover { box-shadow: 0 0 16px rgba(34,211,238,0.18); transform: translateY(-1px); }
.pipe-card.dragging { opacity: 0.4; cursor: grabbing; }
.pipe-card-title { font-weight: 700; font-size: 0.9rem; margin-bottom: 0.25rem; }
.pipe-card-cust { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.35rem; }
.pipe-card-foot { display: flex; justify-content: space-between; align-items: center; }
.pipe-card-value { font-weight: 700; color: var(--green); font-size: 0.9rem; }
.pipe-card-trade {
  font-size: 0.7rem; color: var(--muted); text-transform: capitalize;
  border: 1px solid rgba(139,152,179,0.3); border-radius: 999px; padding: 0.05rem 0.5rem;
}
.pipe-filters { display: flex; gap: 1rem; align-items: flex-end; }
.pipe-empty { color: var(--muted); font-size: 0.82rem; text-align: center; padding: 1rem 0; }

/* ---------- modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 900; display: flex;
  align-items: center; justify-content: center; padding: 1rem;
  background: rgba(4, 8, 18, 0.72); backdrop-filter: blur(4px);
}
.modal-card { width: 100%; max-width: 520px; max-height: 88vh; overflow-y: auto; padding: 1.4rem; }
.modal-card .form-grid { margin-top: 0.6rem; }

/* ---------- css bar charts (benchmarks) ---------- */
.bar-row { display: flex; align-items: center; gap: 0.7rem; margin: 0.55rem 0; }
.bar-label { flex: 0 0 150px; font-size: 0.84rem; color: var(--muted); text-align: right; }
.bar-track {
  flex: 1; height: 22px; background: rgba(139,152,179,0.1);
  border-radius: 6px; position: relative; overflow: hidden;
}
.bar-fill {
  height: 100%; border-radius: 6px;
  background: linear-gradient(90deg, rgba(34,211,238,0.55), rgba(139,92,246,0.55));
  transition: width 0.6s ease;
}
.bar-fill.you { background: linear-gradient(90deg, var(--cyan), var(--green)); box-shadow: 0 0 12px rgba(34,211,238,0.4); }
.bar-val { flex: 0 0 92px; font-size: 0.84rem; font-weight: 700; }
.insight-card {
  background: rgba(34,211,238,0.06); border: 1px solid rgba(34,211,238,0.2);
  border-radius: 10px; padding: 0.75rem 0.95rem; font-size: 0.92rem; line-height: 1.45;
}
.insight-card.warn { background: rgba(251,191,36,0.06); border-color: rgba(251,191,36,0.25); }
.insight-card.good { background: rgba(52,211,153,0.06); border-color: rgba(52,211,153,0.25); }

/* ---------- business GPS ---------- */
.gps-progress-track { height: 10px; border-radius: 999px; background: rgba(139,148,170,0.18); overflow: hidden; margin-top: 0.5rem; }
.gps-progress-fill { height: 100%; background: linear-gradient(90deg, var(--cyan), var(--violet)); border-radius: 999px; box-shadow: 0 0 10px rgba(34,211,238,0.5); transition: width 0.6s ease; }
.gps-timeline { display: flex; overflow-x: auto; padding: 0.4rem 0 0.2rem; scrollbar-width: thin; }
.gps-ms { flex: 1 0 auto; min-width: 118px; text-align: center; position: relative; padding: 1.7rem 0.4rem 0.4rem; }
.gps-ms::before { content: ''; position: absolute; top: 0.6rem; left: 0; right: 0; height: 2px; background: rgba(139,148,170,0.25); }
.gps-ms:first-child::before { left: 50%; }
.gps-ms:last-child::before { right: 50%; }
.gps-ms .dot { position: absolute; top: 0.32rem; left: 50%; transform: translateX(-50%); width: 0.95rem; height: 0.95rem; border-radius: 50%; background: #131b33; border: 2px solid var(--muted); }
.gps-ms.done .dot { background: var(--green); border-color: var(--green); box-shadow: 0 0 12px rgba(52,211,153,0.65); }
.gps-ms-title { font-size: 0.82rem; font-weight: 600; margin-bottom: 0.25rem; }
.gps-dir-top { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.gps-impact { margin-left: auto; font-weight: 800; font-size: 0.95rem; }
.gps-dir-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-top: 0.5rem; flex-wrap: wrap; }
.pill.src-benchmarks { color: var(--cyan); border-color: rgba(34,211,238,0.5); background: rgba(34,211,238,0.1); }
.pill.src-pipeline { color: var(--violet); border-color: rgba(139,92,246,0.5); background: rgba(139,92,246,0.1); }
.pill.src-leads { color: var(--green); border-color: rgba(52,211,153,0.5); background: rgba(52,211,153,0.1); }
.pill.src-growth { color: #fbbf24; border-color: rgba(251,191,36,0.5); background: rgba(251,191,36,0.1); }
.pill.src-gps { color: var(--text); border-color: rgba(229,237,247,0.3); background: rgba(229,237,247,0.06); }

/* ---------- data marketplace ---------- */
.data-pkgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.data-pkg { padding: 1.4rem; display: flex; flex-direction: column; gap: 0.6rem; position: relative; }
.data-pkg.hot { border-color: rgba(34,211,238,0.5); box-shadow: 0 0 28px rgba(34,211,238,0.18); }
.data-pkg-name { font-size: 1.1rem; font-weight: 800; }
.data-pkg-price { font-size: 1.7rem; font-weight: 800; }
.data-pkg-price span { font-size: 0.85rem; color: var(--muted); font-weight: 400; }
.data-pkg-records { color: var(--cyan); font-weight: 600; font-size: 0.92rem; }
.data-pkg-desc { color: var(--muted); font-size: 0.88rem; line-height: 1.5; flex: 1; }
.data-pkg .lp-pop {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--cyan), var(--violet)); color: #04121a;
  font-size: 0.68rem; font-weight: 800; padding: 0.2rem 0.8rem; border-radius: 999px;
  letter-spacing: 0.06em;
}
.data-result {
  display: flex; justify-content: space-between; gap: 0.8rem; align-items: flex-start;
  padding: 0.7rem 0; border-bottom: 1px solid rgba(139,152,179,0.12);
}
.data-result:last-child { border-bottom: none; }
.data-result-name { font-weight: 700; font-size: 0.92rem; }
.data-result-meta { font-size: 0.82rem; color: var(--muted); margin-top: 0.2rem; line-height: 1.5; }
.data-result-web { font-size: 0.82rem; }

/* ---------- referrals ---------- */
.ref-code-row { display: flex; gap: 0.7rem; align-items: center; flex-wrap: wrap; }
.ref-code {
  font-size: 1.3rem; font-weight: 800; letter-spacing: 0.08em; color: var(--cyan);
  background: rgba(34,211,238,0.08); border: 1px dashed rgba(34,211,238,0.45);
  border-radius: 10px; padding: 0.5rem 1rem;
}
.ref-apply-form { display: flex; gap: 0.6rem; }
.ref-apply-form .input { flex: 1; }
.status-pill {
  display: inline-block; font-size: 0.75rem; font-weight: 700; border-radius: 999px;
  padding: 0.15rem 0.65rem; border: 1px solid;
}
.status-pill.pending { color: #fbbf24; border-color: rgba(251,191,36,0.5); background: rgba(251,191,36,0.1); }
.status-pill.converted { color: var(--green); border-color: rgba(52,211,153,0.5); background: rgba(52,211,153,0.1); }
.status-pill.expired { color: var(--muted); border-color: rgba(139,152,179,0.4); background: rgba(139,152,179,0.08); }

/* ---------- shared bits ---------- */
.view-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.view-head > div { display: flex; gap: 0.5rem; }
.upgrade-cta { margin-top: 0.9rem; }

@media (max-width: 720px) {
  .bar-label { flex: 0 0 104px; font-size: 0.76rem; }
  .bar-val { flex: 0 0 72px; font-size: 0.76rem; }
  .pipe-col { flex: 0 0 230px; }
  .ref-apply-form { flex-direction: column; }
}

/* ---------- moat: NovaScore widget ---------- */
.moat-score-card { border-color: rgba(34,211,238,0.25); }
.moat-score-grid { display: grid; grid-template-columns: 150px 1fr; gap: 1.2rem; align-items: start; margin-top: 1rem; }
.moat-ring-wrap { position: relative; width: 130px; height: 130px; }
.moat-ring { display: block; }
.moat-ring-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.moat-score-num { font-size: 1.9rem; font-weight: 800; line-height: 1; }
.bar-fill.good { background: linear-gradient(90deg, rgba(52,211,153,0.55), rgba(34,211,238,0.55)); box-shadow: 0 0 10px rgba(52,211,153,0.35); }
.bar-fill.bad { background: linear-gradient(90deg, rgba(251,113,133,0.55), rgba(251,191,36,0.55)); }
.moat-ranks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.8rem; }
.rank-chip {
  background: rgba(13,20,38,0.7); border: 1px solid rgba(139,92,246,0.3);
  border-radius: 12px; padding: 0.85rem 1rem; display: flex; flex-direction: column; gap: 0.25rem;
}
.rank-pct { font-size: 1.35rem; font-weight: 800; color: var(--cyan); text-shadow: 0 0 16px rgba(34,211,238,0.45); }
.rank-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.moat-contrib { border-color: rgba(139,92,246,0.3); background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(34,211,238,0.05)); }
@media (max-width: 720px) {
  .moat-score-grid { grid-template-columns: 1fr; justify-items: center; }
}

/* ---------- Guided onboarding ---------- */
.onb-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(4, 8, 18, 0.82);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; overflow-y: auto;
}
.onb-overlay.hidden { display: none; }
.onb-card {
  width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto;
  padding: 1.8rem; border-radius: 20px;
  border: 1px solid rgba(34, 211, 238, 0.25);
  box-shadow: 0 0 60px rgba(34, 211, 238, 0.12), 0 24px 80px rgba(0, 0, 0, 0.6);
  animation: onb-in 0.35s ease-out;
}
@keyframes onb-in {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.onb-top { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.4rem; }
.onb-progress { display: flex; gap: 0.4rem; flex: 1; }
.onb-dot {
  height: 6px; flex: 1; border-radius: 3px;
  background: rgba(148, 163, 184, 0.25);
  transition: background 0.25s, box-shadow 0.25s;
}
.onb-dot.done { background: rgba(52, 211, 153, 0.7); }
.onb-dot.now {
  background: linear-gradient(90deg, var(--cyan), #8b5cf6);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.6);
}
.onb-step-label { margin-bottom: 1rem; }
.onb-card h2 { margin: 0 0 0.6rem; font-size: 1.5rem; }
.onb-card label { display: block; margin: 0.9rem 0; font-weight: 600; }
.onb-card input, .onb-card select {
  width: 100%; margin-top: 0.35rem; padding: 0.7rem 0.9rem;
  border-radius: 10px; border: 1px solid rgba(34, 211, 238, 0.25);
  background: rgba(13, 20, 38, 0.8); color: var(--text); font-size: 1rem;
}
.onb-card input:focus, .onb-card select:focus {
  outline: none; border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2);
}
.onb-nav { display: flex; justify-content: space-between; gap: 0.8rem; margin-top: 1.4rem; }
.onb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.8rem; margin: 1rem 0; }
.onb-feat { margin-bottom: 0; }
.onb-feat h3 { margin: 0 0 0.4rem; font-size: 1.02rem; }
.onb-goals { display: grid; gap: 0.6rem; margin: 1rem 0; }
.onb-goal {
  display: block; padding: 0.9rem 1rem; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(148, 163, 184, 0.25); background: rgba(13, 20, 38, 0.6);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; margin: 0 !important;
}
.onb-goal strong { display: block; margin-bottom: 0.2rem; }
.onb-goal.picked {
  border-color: rgba(34, 211, 238, 0.7); background: rgba(34, 211, 238, 0.08);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.18);
}
.onb-wins { display: grid; gap: 0.7rem; margin: 1rem 0; }
.onb-win { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0; }
.onb-win.done { border-color: rgba(52, 211, 153, 0.5); }
.onb-win-icon { font-size: 1.4rem; margin-right: 0.5rem; }
.onb-win p { margin: 0.25rem 0 0; }
.onb-done { border-color: rgba(52, 211, 153, 0.5); background: rgba(52, 211, 153, 0.06); }
body.onb-open { overflow: hidden; }
@media (max-width: 640px) {
  .onb-card { padding: 1.2rem; border-radius: 16px; }
  .onb-card h2 { font-size: 1.25rem; }
  .onb-win { flex-direction: column; align-items: stretch; }
  .onb-top .btn { padding: 0.4rem 0.6rem; font-size: 0.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .onb-card { animation: none; }
}

/* ---------- 24/7 AI support chat ---------- */
.support-fab {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 900;
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: linear-gradient(135deg, #22d3ee, #2dd4bf);
  border: none; cursor: pointer;
  box-shadow: 0 8px 28px rgba(34, 211, 238, 0.35);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.support-fab:hover { transform: scale(1.06); box-shadow: 0 10px 34px rgba(34, 211, 238, 0.5); }
.support-fab-icon { font-size: 1.5rem; }
.support-fab-dot {
  position: absolute; top: 0.15rem; right: 0.15rem;
  width: 0.8rem; height: 0.8rem; border-radius: 50%;
  background: #f87171; border: 2px solid #0a0f1e;
  animation: support-pulse 1.6s ease-in-out infinite;
}
@keyframes support-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.support-panel {
  position: fixed; right: 1.25rem; bottom: 5.25rem; z-index: 901;
  width: min(24rem, calc(100vw - 2rem)); height: min(34rem, calc(100vh - 8rem));
  display: flex; flex-direction: column;
  background: rgba(13, 20, 36, 0.97);
  border: 1px solid rgba(34, 211, 238, 0.25); border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 24px rgba(34, 211, 238, 0.08);
  overflow: hidden;
}
.support-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1rem;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(45, 212, 191, 0.08));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.support-header-info { display: flex; align-items: center; gap: 0.7rem; }
.support-avatar {
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: linear-gradient(135deg, #22d3ee, #2dd4bf);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #06281f;
}
.support-title { font-weight: 700; font-size: 0.95rem; }
.support-status { font-size: 0.75rem; color: #9fb3c8; display: flex; align-items: center; gap: 0.35rem; }
.support-online-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #34d399; box-shadow: 0 0 6px #34d399; }
.support-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.7rem; }
.support-msg { display: flex; flex-direction: column; max-width: 92%; }
.support-msg-user { align-self: flex-end; align-items: flex-end; }
.support-msg-assistant { align-self: flex-start; align-items: flex-start; }
.support-bubble {
  padding: 0.65rem 0.9rem; border-radius: 14px; font-size: 0.88rem; line-height: 1.45;
  word-wrap: break-word; overflow-wrap: anywhere;
}
.support-msg-user .support-bubble {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.25), rgba(45, 212, 191, 0.18));
  border: 1px solid rgba(34, 211, 238, 0.35); border-bottom-right-radius: 4px;
}
.support-msg-assistant .support-bubble {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1); border-bottom-left-radius: 4px;
  color: #e2e8f0;
}
.support-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.support-typing { display: flex; gap: 0.3rem; padding: 0.4rem 1rem; }
.support-typing span {
  width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #22d3ee;
  animation: support-typing 1.2s ease-in-out infinite;
}
.support-typing span:nth-child(2) { animation-delay: 0.15s; }
.support-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes support-typing { 0%,100% { opacity: 0.3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.support-quick { display: flex; gap: 0.4rem; padding: 0.5rem 1rem; overflow-x: auto; border-top: 1px solid rgba(255,255,255,0.06); }
.support-quick-btn {
  flex: 0 0 auto; font-size: 0.78rem; padding: 0.4rem 0.75rem; border-radius: 999px;
  background: rgba(34, 211, 238, 0.08); border: 1px solid rgba(34, 211, 238, 0.3);
  color: #a5f3fc; cursor: pointer; white-space: nowrap;
}
.support-quick-btn:hover { background: rgba(34, 211, 238, 0.16); }
.support-input-row { display: flex; gap: 0.5rem; padding: 0.75rem 1rem; border-top: 1px solid rgba(255,255,255,0.08); }
.support-input-row input {
  flex: 1; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; padding: 0.55rem 0.8rem; color: #fff; font-size: 0.88rem;
}
.support-input-row input:focus { outline: none; border-color: rgba(34, 211, 238, 0.6); }
.support-ticket { padding: 1rem; border-top: 1px solid rgba(255,255,255,0.08); display: flex; flex-direction: column; gap: 0.6rem; }
.support-ticket-title { font-weight: 700; }
.support-ticket input, .support-ticket textarea {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; padding: 0.55rem 0.8rem; color: #fff; font-size: 0.88rem; width: 100%;
}
.support-ticket input:focus, .support-ticket textarea:focus { outline: none; border-color: rgba(34, 211, 238, 0.6); }
.support-ticket-actions { display: flex; justify-content: flex-end; gap: 0.5rem; }
@media (max-width: 640px) {
  .support-panel { right: 0.75rem; bottom: 4.75rem; }
  .support-fab { right: 0.75rem; bottom: 0.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .support-fab-dot, .support-typing span { animation: none; }
}

/* ---------- support ticket dashboard ---------- */
.support-ticket-card { margin-bottom: 1rem; }
.support-ticket-status {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  padding: 0.25rem 0.6rem; border-radius: 999px;
}
.support-ticket-status-open { background: rgba(248, 113, 113, 0.15); color: #fca5a5; border: 1px solid rgba(248,113,113,0.4); }
.support-ticket-status-resolved { background: rgba(52, 211, 153, 0.12); color: #6ee7b7; border: 1px solid rgba(52,211,153,0.4); }
.support-ticket-notes { margin: 0.75rem 0; display: flex; flex-direction: column; gap: 0.4rem; }
.support-note {
  background: rgba(255,255,255,0.04); border-left: 3px solid rgba(34,211,238,0.5);
  padding: 0.5rem 0.75rem; border-radius: 0 8px 8px 0; font-size: 0.85rem;
}
.support-ticket-card-actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.support-note-input {
  flex: 1; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; padding: 0.5rem 0.75rem; color: #fff; font-size: 0.85rem;
}
.support-note-input:focus { outline: none; border-color: rgba(34, 211, 238, 0.6); }

/* ---------- issue tracker ---------- */
.issue-card { margin-bottom: 1rem; }
.issue-notes { margin: 0.75rem 0; display: flex; flex-direction: column; gap: 0.4rem; }
.pill.issue-sev-critical { color: #fca5a5; border-color: rgba(248,113,113,0.5); background: rgba(248,113,113,0.12); }
.pill.issue-sev-high { color: #fdba74; border-color: rgba(251,146,60,0.5); background: rgba(251,146,60,0.1); }
.pill.issue-sev-medium { color: #fcd34d; border-color: rgba(251,191,36,0.5); background: rgba(251,191,36,0.1); }
.pill.issue-sev-low { color: #6ee7b7; border-color: rgba(52,211,153,0.5); background: rgba(52,211,153,0.1); }
.pill.issue-status-fixed { color: #6ee7b7; border-color: rgba(52,211,153,0.5); background: rgba(52,211,153,0.12); }
.pill.issue-status-open { color: #fca5a5; border-color: rgba(248,113,113,0.4); background: rgba(248,113,113,0.1); }
.pill.issue-status-inprogress { color: #7dd3fc; border-color: rgba(56,189,248,0.4); background: rgba(56,189,248,0.1); }
.pill.issue-status-wontfix { color: #94a3b8; border-color: rgba(148,163,184,0.4); background: rgba(148,163,184,0.1); }
.kpi-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.kpi { flex: 1; min-width: 120px; padding: 0.9rem 1rem; border-radius: 12px; text-align: center; }
.kpi-num { font-size: 1.6rem; font-weight: 800; }
.kpi-label { font-size: 0.75rem; color: var(--muted); margin-top: 0.25rem; }
.input-sm { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; padding: 0.4rem 0.6rem; color: #fff; font-size: 0.85rem; }
.issue-note-input { flex: 1; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; padding: 0.5rem 0.75rem; color: #fff; font-size: 0.85rem; }
.issue-note-input:focus { outline: none; border-color: rgba(34, 211, 238, 0.6); }

/* ---------- i18n: language switcher ---------- */
.lang-switcher {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  color: #fff;
  font-size: 0.85rem;
  padding: 0.35rem 0.5rem;
  cursor: pointer;
  max-width: 8.5rem;
}
.lang-switcher option { background: #0b1220; color: #fff; }
.lp-nav-cta .lang-switcher { margin-inline-end: 0.5rem; }

/* ---------- i18n: RTL support (Arabic) ---------- */
[dir="rtl"] { text-align: right; }
[dir="rtl"] .topnav,
[dir="rtl"] .nav-links,
[dir="rtl"] .lp-nav,
[dir="rtl"] .view-head,
[dir="rtl"] .kpi-row,
[dir="rtl"] .auth-tabs,
[dir="rtl"] .support-ticket-actions {
  flex-direction: row-reverse;
}
[dir="rtl"] .nav-links { direction: rtl; }
[dir="rtl"] input, [dir="rtl"] select, [dir="rtl"] textarea { text-align: right; }
[dir="rtl"] input[type="email"], [dir="rtl"] input[type="password"], [dir="rtl"] input[type="url"] { text-align: left; direction: ltr; }
[dir="rtl"] .toast { left: auto; right: 50%; transform: translateX(50%); }
[dir="rtl"] table { direction: rtl; }
[dir="rtl"] .lp-hero-inner { direction: rtl; }
[dir="rtl"] .auth-card { direction: rtl; }
[dir="rtl"] ul, [dir="rtl"] ol { padding-inline-start: 1.25rem; padding-inline-end: 0; }

/* ---------- multi-currency ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.chip-row .chip { cursor: default; }
.chip-row .chip:hover { color: var(--muted); border-color: var(--border); }
.chip-row .chip strong { color: var(--text); }
.fx-widget-row { margin-top: 0.25rem; }

/* ---------- insights: notifications, search, reports ---------- */
.nav-search-wrap { position: relative; }
.nav-search {
  width: 220px; padding: 0.45rem 0.8rem; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.04);
  color: var(--text); font-size: 0.85rem;
}
.nav-search:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(34,211,238,0.25); }
.search-results {
  position: absolute; top: calc(100% + 8px); right: 0; width: 340px; max-height: 420px;
  overflow-y: auto; z-index: 60; border-radius: 12px; padding: 0.4rem;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 18px 50px rgba(0,0,0,0.5);
}
.search-row {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0.6rem;
  border-radius: 8px; text-decoration: none; color: var(--text);
}
.search-row:hover { background: rgba(34,211,238,0.08); }
.search-kind {
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.15rem 0.45rem; border-radius: 999px; background: rgba(139,92,246,0.18);
  color: #c4b5fd; white-space: nowrap;
}
.search-row .search-title { font-weight: 600; font-size: 0.9rem; }
.search-row .search-sub { font-size: 0.78rem; color: var(--muted); }
.search-row .search-amt { margin-left: auto; font-weight: 700; font-size: 0.85rem; }
.notif-wrap { position: relative; }
.notif-bell {
  position: relative; background: none; border: 1px solid transparent; border-radius: 10px;
  font-size: 1.25rem; padding: 0.35rem 0.55rem; cursor: pointer; color: var(--text);
}
.notif-bell:hover { border-color: var(--border); background: rgba(255,255,255,0.04); }
.notif-badge {
  position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px;
  border-radius: 999px; background: #fb7185; color: #fff; font-size: 0.68rem;
  font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 5px;
}
.notif-panel {
  position: absolute; top: calc(100% + 8px); right: 0; width: 360px; max-height: 440px;
  overflow-y: auto; z-index: 60; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 18px 50px rgba(0,0,0,0.5);
}
.notif-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--surface);
}
.notif-list { padding: 0.4rem; }
.notif-item {
  display: block; padding: 0.65rem 0.75rem; border-radius: 8px; text-decoration: none;
  color: var(--text); border-left: 3px solid transparent; margin-bottom: 0.25rem;
}
.notif-item:hover { background: rgba(34,211,238,0.06); }
.notif-item.unread { background: rgba(34,211,238,0.07); border-left-color: var(--accent); }
.notif-item .notif-title { font-weight: 600; font-size: 0.88rem; }
.notif-item .notif-body { font-size: 0.78rem; color: var(--muted); margin-top: 0.15rem; }
.notif-item .notif-time { font-size: 0.7rem; color: var(--muted); margin-top: 0.2rem; }
.notif-type {
  display: inline-block; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.1rem 0.4rem; border-radius: 999px; margin-bottom: 0.3rem;
  background: rgba(139,152,179,0.15); color: var(--muted);
}
.notif-type-overdue { background: rgba(251,113,133,0.15); color: #fda4af; }
.notif-type-tax { background: rgba(251,191,36,0.15); color: #fcd34d; }
.notif-type-cash { background: rgba(251,113,133,0.15); color: #fda4af; }
.notif-type-support { background: rgba(52,211,153,0.15); color: #6ee7b7; }
.dash-alert {
  display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem 1.1rem;
  border-radius: 12px; margin-bottom: 0.8rem; text-decoration: none; color: var(--text);
  border: 1px solid var(--border); background: rgba(251,191,36,0.06);
}
.dash-alert.alert-red { background: rgba(251,113,133,0.07); border-color: rgba(251,113,133,0.3); }
.dash-alert:hover { border-color: var(--accent); }
.dash-alert .alert-ico { font-size: 1.4rem; }
.dash-alert .alert-text { flex: 1; }
.dash-alert .alert-text strong { display: block; font-size: 0.92rem; }
.dash-alert .alert-text span { font-size: 0.8rem; color: var(--muted); }
.leader-row {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0;
  border-bottom: 1px solid rgba(139,152,179,0.1);
}
.leader-row:last-child { border-bottom: none; }
.leader-rank {
  width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 0.8rem; flex-shrink: 0;
  background: rgba(34,211,238,0.12); color: var(--accent);
}
.leader-name { flex: 1; font-weight: 600; font-size: 0.9rem; }
.leader-sub { font-size: 0.75rem; color: var(--muted); }
.leader-amt { font-weight: 700; font-size: 0.9rem; text-align: right; }
.tax-big { font-size: 2rem; font-weight: 800; color: var(--accent); }
.report-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.report-tabs .chip { cursor: pointer; }
.report-tabs .chip.active { border-color: var(--accent); color: var(--accent); }
.age-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.7rem; margin-bottom: 1.2rem; }
.age-bucket { padding: 0.9rem 1rem; border-radius: 12px; background: rgba(255,255,255,0.02); border: 1px solid var(--border); }
.age-bucket .age-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }
.age-bucket .age-bal { font-size: 1.25rem; font-weight: 700; margin-top: 0.2rem; }
.age-bucket .age-count { font-size: 0.78rem; color: var(--muted); }
.share-bar { height: 6px; border-radius: 999px; background: rgba(139,152,179,0.15); overflow: hidden; margin-top: 0.35rem; }
.share-bar > div { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #22d3ee, #8b5cf6); }
@media (max-width: 720px) {
  .nav-search { width: 140px; }
  .search-results, .notif-panel { width: calc(100vw - 2rem); right: -60px; }
}

/* ---------- referral tier ladder ---------- */
.tier-ladder { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.6rem; }
.tier-row {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.6rem 0.9rem; border-radius: 9px;
  border: 1px solid var(--hatch-widget-border, rgba(255,255,255,0.08));
  background: var(--hatch-widget-surface-muted, rgba(255,255,255,0.02));
}
.tier-row.active {
  border-color: rgba(52,211,153,0.55);
  background: rgba(52,211,153,0.07);
}
.tier-name { font-weight: 700; min-width: 9rem; }
.tier-range { flex: 1; font-size: 0.88rem; }
.tier-reward { font-weight: 700; color: #34d399; white-space: nowrap; }
@media (max-width: 640px) {
  .tier-name { min-width: 7rem; }
}

/* ---------- referral sharing tools ---------- */
.share-row { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.share-btn { min-width: 2.6rem; font-weight: 700; }
.leaderboard { list-style: none; margin: 0.6rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.leader-row { display: flex; align-items: center; gap: 0.7rem; padding: 0.5rem 0.7rem; border: 1px solid var(--hatch-widget-border, #2a2f3a); border-radius: 0.6rem; }
.leader-row.ambassador { border-color: #f59e0b; }
.leader-rank { font-weight: 800; min-width: 2.2rem; color: var(--hatch-widget-accent, #7c9eff); }
.leader-name { flex: 1; font-weight: 600; }
.toggle-row { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.9rem; cursor: pointer; }
.toggle-row input { width: 1.05rem; height: 1.05rem; accent-color: #7c9eff; }

/* ---------- landing page refer & earn ---------- */
.lp-grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.lp-tier { padding: 1.1rem; border-radius: 0.9rem; text-align: center; }
.lp-tier-name { font-weight: 800; font-size: 1.05rem; }
.lp-tier-range { font-size: 0.85rem; opacity: 0.75; margin: 0.25rem 0; }
.lp-tier-reward { font-weight: 800; font-size: 1.25rem; color: #34d399; }
.lp-tier-hot { border: 1px solid #f59e0b; }
.lp-sub { max-width: 40rem; margin: 0.8rem auto 0; text-align: center; opacity: 0.85; }

/* Data collection dashboard widget */
.stat-tile { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 0.6rem; padding: 0.7rem 0.9rem; }
.stat-num { font-weight: 800; font-size: 1.35rem; }
.stat-row { display: flex; justify-content: space-between; align-items: center; padding: 0.35rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 0.92rem; }

/* ---------- analytics view ---------- */
.tab-bar { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0; }
.tab-bar .tab { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); color: var(--text, #e8ecf4); padding: 0.5rem 1rem; border-radius: 999px; cursor: pointer; font-size: 0.9rem; }
.tab-bar .tab.active { background: rgba(124,158,255,0.18); border-color: #7c9eff; font-weight: 700; }
canvas.chart { width: 100%; display: block; }
.table-wrap { overflow-x: auto; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table-wrap th, .table-wrap td { text-align: left; padding: 0.55rem 0.7rem; border-bottom: 1px solid rgba(255,255,255,0.07); white-space: nowrap; }
.table-wrap th { color: var(--muted); font-weight: 600; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.06em; }
.pill.warn { background: rgba(251,191,36,0.15); color: #fbbf24; border: 1px solid rgba(251,191,36,0.4); }
.pill.alert { background: rgba(248,113,113,0.15); color: #f87171; border: 1px solid rgba(248,113,113,0.4); }
.pill.info { background: rgba(110,231,255,0.12); color: #6ee7ff; border: 1px solid rgba(110,231,255,0.35); }
.insight-card { padding: 1rem 1.2rem; border-radius: 0.8rem; margin-bottom: 0.8rem; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); }
.insight-card.warn { border-color: rgba(251,191,36,0.45); }
.insight-card.alert { border-color: rgba(248,113,113,0.5); }
.progress-track { height: 0.6rem; background: rgba(255,255,255,0.08); border-radius: 999px; overflow: hidden; margin-top: 0.4rem; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #7c9eff, #34d399); border-radius: 999px; }

/* Nova at Work */
.nav-link.nav-dot { position: relative; }
.nav-link.nav-dot::after {
  content: ''; position: absolute; top: 6px; right: 6px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green, #34d399);
  box-shadow: 0 0 6px var(--green, #34d399);
}

/* ---- Performance: skeleton loading shimmer (NLP.skeleton) ---- */
.skel-wrap { display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }
.skel-row { display: flex; gap: 12px; align-items: center; }
.skel {
  height: 14px; border-radius: 7px;
  background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.14) 50%, rgba(255,255,255,0.06) 75%);
  background-size: 200% 100%;
  animation: skel-shimmer 1.2s infinite linear;
}
.skel-w40 { width: 40%; } .skel-w25 { width: 25%; } .skel-w20 { width: 20%; }
@keyframes skel-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }
