/* AI-DATA visual system.
   Petrol ink for structure, cool stone for the canvas, brass for "you are here" and the brand.
   Blue always means Cold data and orange-red always means Hot leads; nothing else uses them.
   One type family (IBM Plex) in Latin and Arabic so every language reads the same. */
:root {
  --ink: #12303a;
  --ink-2: #1c3f4b;
  --ink-soft: #566a70;
  --line: #d6ddda;
  --bg: #eef1ef;
  --card: #ffffff;
  --gold: #8f6420;
  --gold-soft: #f2e9d7;
  --cold: #2a58c4;
  --cold-bg: #e5ecfb;
  --hot: #c0441d;
  --hot-bg: #fbe8e1;
  --ok: #1d7a4f;
  --ok-bg: #e0f1e8;
  --warn: #8f5f00;
  --warn-bg: #fbefd4;
  --bad: #b42318;
  --bad-bg: #fbe5e3;
  --muted-bg: #e6ebe8;
  --text: #13252b;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(18, 48, 58, .06);
  --lift: 0 12px 32px rgba(18, 48, 58, .12);
  --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d181c; --card: #132328; --line: #24393f; --text: #e4ecea; --ink-soft: #9bb0b2; --muted-bg: #1a2d32;
    --gold: #d2a65a; --gold-soft: #2c2415; --cold: #7ea3f5; --cold-bg: #15253f; --hot: #f08a63; --hot-bg: #3a1e14;
    --ok: #5cc590; --ok-bg: #12301f; --warn: #e3b450; --warn-bg: #33270d; --bad: #f2867c; --bad-bg: #3a1614;
    --shadow: 0 1px 2px rgba(0,0,0,.3); --lift: 0 12px 32px rgba(0,0,0,.4);
  }
}
html[lang='ar'] { --font: 'IBM Plex Sans Arabic', 'IBM Plex Sans', system-ui, sans-serif; --display: var(--font); }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
a { color: inherit; }
a:not(.btn):not(.nav-link):not(.logo):not(.step):not(.kcard):not(.chip):not(.notif):not(.banner) { text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.015em; margin: 0; line-height: 1.2; }
.muted { color: var(--ink-soft); }
.small { font-size: 12px; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.hidden { display: none !important; }

/* ---------- Buttons, inputs ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--card); padding: 9px 14px; border-radius: 8px; cursor: pointer; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { border-color: var(--ink-soft); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn.cold { background: var(--cold); border-color: var(--cold); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.sm { padding: 6px 10px; font-size: 12px; border-radius: 8px; }
.btn.block { width: 100%; justify-content: center; }
.btn.primary:hover { background: var(--ink-2); }
.btn.gold:hover, .btn.cold:hover { filter: brightness(1.08); }
@media (prefers-color-scheme: dark) { .btn.primary { background: #e4ecea; color: #12303a; border-color: #e4ecea; } .btn.gold { color: #1a1407; } .btn.cold { color: #0b1630; } }
label.field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text); }
label.field .small, label.field .muted { font-weight: 400; }
input[type=text], input[type=email], input[type=url], input[type=number], input[type=date], input[type=datetime-local], input[type=password], select, textarea {
  width: 100%; border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 10px 12px; font-weight: 400; color: var(--text); }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--ink-soft) 75%, transparent); }
select[multiple] { min-height: 92px; padding: 6px; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--text); font-weight: 500; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.spacer { flex: 1; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--muted-bg); color: var(--ink-soft); white-space: nowrap; }
.badge.cold { background: var(--cold-bg); color: var(--cold); }
.badge.hot { background: var(--hot-bg); color: var(--hot); }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.gold { background: var(--gold-soft); color: var(--gold); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ---------- Public site ---------- */
.pub-nav { display: flex; align-items: center; gap: 18px; padding: 18px clamp(16px, 5vw, 64px); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .02em; text-decoration: none; }
.logo-mark { width: 32px; height: 32px; border-radius: 8px; background: var(--gold); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 17px; }
.logo small { display: block; font-weight: 500; letter-spacing: 0; font-size: 11px; color: var(--ink-soft); }
.hero { padding: clamp(28px, 6vw, 80px) clamp(16px, 5vw, 64px) 40px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }
.kicker { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; letter-spacing: -.025em; margin: 12px 0 18px; max-width: 16ch; }
.hero p { font-size: 18px; color: var(--ink-soft); max-width: 58ch; }
.hero-card { background: var(--ink); color: #e6eeec; border-radius: 16px; padding: 22px; box-shadow: var(--lift); border-top: 4px solid var(--gold); }
.hero-card .mini-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.hero-card .mini-row:last-child { border-bottom: 0; }
.section { padding: 40px clamp(16px, 5vw, 64px); }
.section h2 { font-size: 30px; margin-bottom: 8px; }
.price-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 26px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.price-card.featured { border: 2px solid var(--gold); }
.price-card .price { font-size: 40px; font-weight: 600; letter-spacing: -.02em; }
.price-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.price-card li { display: flex; gap: 8px; }
.price-card li::before { content: '✓'; color: var(--ok); font-weight: 800; }
.price-card li.no::before { content: '—'; color: var(--ink-soft); }
.price-card.hot { border-top: 4px solid var(--hot); }
.steps { counter-reset: s; display: grid; gap: 10px; }
.step { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.step::before { counter-increment: s; content: counter(s); width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
a.step { text-decoration: none; } a.step:hover { border-color: var(--ink-soft); }
.footer { padding: 30px clamp(16px, 5vw, 64px); color: var(--ink-soft); font-size: 12px; border-top: 1px solid var(--line); }

/* ---------- App shell ---------- */
.shell { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.side { background: var(--ink); color: #c8d6d5; padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.side .logo { color: #fff; padding: 4px 8px 16px; }
.side .logo small { color: #8fa5a6; }
.nav-group { font-size: 12px; color: #8fa5a6; padding: 16px 10px 4px; font-weight: 600; }
.nav-org { margin: 4px 4px 2px; padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,.06); color: #fff; font-weight: 600; font-size: 13px; }
.nav-org small { display: block; color: #8fa5a6; font-weight: 400; }
.nav-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: #c8d6d5; font-weight: 500; }
.nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-link.active { background: rgba(210,166,90,.16); color: #fff; box-shadow: inset 3px 0 0 #d2a65a; }
html[dir=rtl] .nav-link.active { box-shadow: inset -3px 0 0 #d2a65a; }
.user-card { margin: 8px 4px 0; padding: 12px 10px 4px; border-top: 1px solid rgba(255,255,255,.1); display: grid; gap: 4px; font-size: 12.5px; color: #8fa5a6; }
.user-card b { color: #fff; font-size: 13.5px; font-weight: 600; }
.user-card .row { gap: 6px; }
.nav-link .ico { width: 18px; text-align: center; opacity: .9; }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 12px; padding: 12px 24px; border-bottom: 1px solid var(--line); background: var(--card); position: sticky; top: 0; z-index: 20; }
.page { padding: 28px 32px 48px; max-width: 1400px; width: 100%; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 8px; flex-wrap: wrap; }
.page-head h1 { font-size: 30px; letter-spacing: -.02em; }
.page-head + :not(.page-lede) { margin-top: 12px; }
.page-lede { margin: 0 0 22px; max-width: 72ch; color: var(--ink-soft); font-size: 15.5px; }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 50; transform: translateX(-105%); transition: transform .2s; }
  html[dir=rtl] .side { inset: 0 0 0 auto; transform: translateX(105%); }
  body.nav-open .side { transform: none; }
  .menu-btn { display: inline-flex; }
  .page { padding: 16px; }
  .top { padding: 10px 16px; }
}
.quota-pill { display: flex; align-items: center; gap: 10px; white-space: nowrap; background: var(--cold-bg); color: var(--cold); padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 12px; }
.quota-pill .bar { width: 70px; height: 6px; border-radius: 6px; background: rgba(43,99,217,.18); overflow: hidden; }
.quota-pill .bar i { display: block; height: 100%; background: var(--cold); }
@media (max-width: 680px) { .quota-pill .bar, .hide-sm { display: none; } }

/* ---------- Cards & tables ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.card h3 { font-size: 16px; margin-bottom: 10px; font-weight: 600; }
.stat { display: grid; gap: 4px; }
.stat .v { font-size: 30px; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
.stat .l { font-size: 13px; color: var(--ink-soft); font-weight: 500; }
.stat.cold .v { color: var(--cold); }
.stat.hot .v { color: var(--hot); }
.meter { height: 10px; background: var(--muted-bg); border-radius: 10px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--cold); border-radius: 10px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: start; font-size: 12.5px; color: var(--ink-soft); font-weight: 600; padding: 10px 12px; background: var(--muted-bg); white-space: nowrap; position: sticky; top: 0; }
td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
tr.sel td { background: var(--cold-bg); }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--muted-bg); }
.num { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.empty { padding: 36px; text-align: center; color: var(--ink-soft); }
.banner { border-radius: 10px; padding: 12px 14px; display: block; font-weight: 500; font-size: 14px; border: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.banner b { font-weight: 700; }
.banner.cold { background: var(--cold-bg); color: var(--cold); }
.banner.hot { background: var(--hot-bg); color: var(--hot); }
.banner.warn { background: var(--warn-bg); color: var(--warn); }
.banner.bad { background: var(--bad-bg); color: var(--bad); }
.banner.ok { background: var(--ok-bg); color: var(--ok); }
.tabs { display: flex; gap: 4px; background: var(--muted-bg); padding: 4px; border-radius: 12px; width: fit-content; flex-wrap: wrap; }
.tabs a, .tabs button { border: 0; background: transparent; padding: 7px 14px; border-radius: 9px; font-weight: 600; cursor: pointer; text-decoration: none; color: var(--ink-soft); }
.tabs .on { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(18,48,58,.12); }

/* ---------- Investor history ---------- */
.ih { display: grid; grid-template-columns: 290px 1fr; gap: 18px; align-items: start; }
@media (max-width: 1100px) { .ih { grid-template-columns: 1fr; } }
.filters { position: sticky; top: 76px; display: grid; gap: 12px; max-height: calc(100vh - 96px); overflow-y: auto; }
@media (max-width: 1100px) { .filters { position: static; max-height: none; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--gold-soft); color: var(--gold); border-radius: 999px; padding: 3px 10px; font-size: 12.5px; font-weight: 600; text-decoration: none; }
.basket { position: sticky; bottom: 14px; margin-top: 14px; background: var(--ink); color: #fff; border-radius: 12px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; box-shadow: var(--lift); }
.masked { font-family: var(--mono); font-size: .94em; }

/* ---------- Kanban ---------- */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: 250px; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.kcol { background: var(--muted-bg); border-radius: 12px; padding: 10px; display: grid; gap: 8px; align-content: start; min-height: 200px; }
.kcol h4 { margin: 2px 4px 6px; font-size: 13px; font-weight: 600; color: var(--ink-soft); display: flex; justify-content: space-between; }
.kcol.drop { outline: 2px dashed var(--gold); outline-offset: -4px; background: var(--gold-soft); }
.kcard[draggable="true"] { cursor: grab; }
.kcard { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: grid; gap: 6px; text-decoration: none; }
.kcard:hover { box-shadow: var(--shadow); }

/* ---------- Modal, toast, dropdown ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(8, 15, 24, .55); display: grid; place-items: center; z-index: 100; padding: 16px; }
.modal { background: var(--card); border-radius: 16px; width: min(560px, 100%); max-height: 90vh; overflow-y: auto; padding: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.35); display: grid; gap: 14px; }
.modal h2 { font-size: 21px; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; font-size: 14px; }
.kv .k { color: var(--ink-soft); }
.kv .v { font-weight: 700; text-align: end; font-variant-numeric: tabular-nums; }
.kv .total { border-top: 1px solid var(--line); padding-top: 8px; }
#toast { position: fixed; bottom: 18px; inset-inline-start: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; }
html[dir=rtl] #toast { transform: translateX(50%); }
.toast { background: var(--ink); color: #fff; border-radius: 8px; padding: 10px 16px; font-weight: 600; box-shadow: var(--shadow); max-width: 90vw; }
.toast.err { background: var(--bad); }
.dropdown { position: absolute; inset-inline-end: 16px; top: 56px; width: min(380px, calc(100vw - 32px)); background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.18); max-height: 70vh; overflow-y: auto; z-index: 60; }
.notif { padding: 12px 14px; border-top: 1px solid var(--line); display: grid; gap: 2px; text-decoration: none; }
.notif.unread { background: var(--cold-bg); }
.bell { position: relative; }
.bell .count { position: absolute; top: -4px; inset-inline-end: -4px; background: var(--hot); color: #fff; border-radius: 999px; font-size: 10px; padding: 1px 5px; font-weight: 800; }
.timeline { display: grid; gap: 0; }
.tl { display: grid; grid-template-columns: 14px 1fr; gap: 12px; padding: 8px 0; }
.tl::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--ink-soft); margin-top: 6px; box-shadow: 0 0 0 3px var(--muted-bg); }
.scorebar { height: 8px; border-radius: 8px; background: var(--muted-bg); overflow: hidden; width: 120px; }
.scorebar i { display: block; height: 100%; background: var(--gold); }
.code { background: var(--muted-bg); border-radius: 8px; padding: 12px; font-family: var(--mono); font-size: 12px; white-space: pre-wrap; word-break: break-all; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--muted-bg); color: var(--ink); flex: none; }
.persona { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer; text-align: start; width: 100%; transition: border-color .15s, background .15s; }
.persona:hover { border-color: var(--ink-soft); }
.persona[aria-pressed=true] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: color-mix(in srgb, var(--ink) 4%, var(--card)); }
.persona[aria-pressed=true] .avatar { background: var(--ink); color: #fff; }
@media (prefers-color-scheme: dark) { .persona[aria-pressed=true] { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); } .persona[aria-pressed=true] .avatar { background: var(--text); color: var(--ink); } }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.auth-card { width: min(460px, 100%); display: grid; gap: 16px; }

/* Dark basket: secondary buttons need light text. */
.basket .btn:not(.cold):not(.gold) { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
/* Phone numbers, masked values, quotas and IDs keep LTR order inside Arabic RTL. */
.masked, .mono, .quota-pill, .kv .v, td.num { unicode-bidi: isolate; }
.masked, .mono, .quota-pill { direction: ltr; }
.kv .k::first-letter { text-transform: uppercase; }

.demo-strip { background: repeating-linear-gradient(45deg, var(--warn-bg), var(--warn-bg) 12px, transparent 12px, transparent 24px), var(--warn-bg); color: var(--warn); font-weight: 700; font-size: 12px; text-align: center; padding: 5px 10px; }

/* CRM dashboard */
.hbars { display: grid; gap: 7px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 140px) 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.hbar .l { color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar .track { height: 9px; border-radius: 9px; background: var(--muted-bg); overflow: hidden; }
.hbar .track i { display: block; height: 100%; background: var(--ink-2); border-radius: 9px; }
.hbar .v { font-weight: 700; font-variant-numeric: tabular-nums; text-align: end; white-space: nowrap; }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 56px; }
.spark span { flex: 1; height: 100%; display: flex; align-items: flex-end; background: var(--muted-bg); border-radius: 4px; overflow: hidden; }
.spark i { display: block; width: 100%; background: var(--ink-2); border-radius: 4px 4px 0 0; }
.dash-insights ul { margin: 6px 0 0; padding-inline-start: 18px; }
.dash-insights li { margin: 2px 0; }
@media (max-width: 680px) { .hbar { grid-template-columns: 90px 1fr auto; } }

/* Guide */
.gtabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.gtab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.gtab:hover { border-color: var(--gold); }
.gtab.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.gtab .gi { font-size: 16px; }
.ghero { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; border-inline-start: 4px solid var(--gold); }
.ghero-ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; background: var(--card); box-shadow: var(--shadow); }
.gprog { min-width: 170px; display: grid; gap: 4px; }
.gprog-bar { height: 10px; border-radius: 10px; background: var(--muted-bg); overflow: hidden; }
.gprog-bar i { display: block; height: 100%; background: var(--ok); transition: width .3s; }
.gmap-wrap { display: grid; grid-template-columns: minmax(230px, 300px) 1fr; gap: 16px; align-items: start; }
.gmap { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 10px; }
.gmap::before { content: ''; position: absolute; inset-inline-start: 21px; top: 22px; bottom: 22px; width: 3px; border-radius: 3px; background: repeating-linear-gradient(var(--gold) 0 8px, transparent 8px 14px); }
.gstation { position: relative; width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 6px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; text-align: start; cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s; }
.gstation:hover { transform: translateX(3px); border-color: var(--gold); }
[dir=rtl] .gstation:hover { transform: translateX(-3px); }
.gstation.on { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.gnum { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: var(--ink); color: #fff; z-index: 1; }
.gstation.on .gnum { background: var(--gold); }
.gstation.done .gnum { background: var(--ok); }
.gico { font-size: 18px; }
.gtitle { font-weight: 600; font-size: 14px; }
.gdetail { position: sticky; top: 76px; animation: gfade .25s ease; }
@keyframes gfade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.gwhere { margin: 10px 0; padding: 8px 12px; border-radius: 10px; background: var(--cold-bg); }
.gsteps { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; }
.gtip { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--gold-soft); font-size: 14px; }
.gcheck { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; cursor: pointer; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; }
.gflow { display: grid; gap: 12px; }
.glane { display: grid; grid-template-columns: 170px 1fr; gap: 10px; align-items: center; }
.glane-name { font-weight: 700; font-size: 13px; padding: 6px 10px; border-radius: 10px; }
.glane-name.cold { background: var(--cold-bg); color: var(--cold); } .glane-name.hot { background: var(--hot-bg); color: var(--hot); }
.glane-name.gold { background: var(--gold-soft); color: var(--gold); } .glane-name.ok { background: var(--ok-bg); color: var(--ok); }
.glane-nodes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.gnode { font: inherit; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; transition: transform .15s; }
.gnode:hover { transform: translateY(-2px); }
.gnode.on.cold { background: var(--cold); color: #fff; border-color: var(--cold); } .gnode.on.hot { background: var(--hot); color: #fff; border-color: var(--hot); }
.gnode.on.gold { background: var(--gold); color: #fff; border-color: var(--gold); } .gnode.on.ok { background: var(--ok); color: #fff; border-color: var(--ok); }
.garrow { color: var(--ink-soft); }
[dir=rtl] .garrow { transform: scaleX(-1); display: inline-block; }
.gflow-note { margin-top: 14px; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line); background: var(--muted-bg); }
.gaccess td, .gaccess th { text-align: center; } .gaccess td:first-child, .gaccess th:first-child { text-align: start; white-space: nowrap; }
.gaccess tr.gsel td { background: var(--gold-soft); }
.gyes { color: var(--ok); font-weight: 800; } .gno { color: var(--ink-soft); }
.gfaq { border-top: 1px solid var(--line); padding: 10px 0; } .gfaq summary { cursor: pointer; font-weight: 600; } .gfaq p { margin: 8px 0 0; color: var(--ink-soft); }
@media (max-width: 900px) { .gmap-wrap { grid-template-columns: 1fr; } .gdetail { position: static; } .glane { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .gstation, .gnode, .gdetail, .gprog-bar i { transition: none; animation: none; } }

/* Lead generation */
.lg-body { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.lg-qr { display: grid; gap: 4px; justify-items: center; }
.lg-qr img { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 4px; }
.lg-stats { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.lg-stats div { display: grid; gap: 2px; } .lg-stats b { font-variant-numeric: tabular-nums; }
@media (max-width: 1300px) { .lg-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Live leads */
.live-list { display: grid; gap: 8px; }
.live-row { display: grid; grid-template-columns: minmax(160px, 2fr) repeat(auto-fit, minmax(90px, auto)); gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.live-row.live-new { border-color: var(--hot); box-shadow: 0 0 0 3px var(--hot-bg); animation: livein .6s ease; }
.live-row.live-late { border-inline-start: 4px solid var(--bad); }
@keyframes livein { from { transform: translateY(-6px); opacity: 0; } to { transform: none; opacity: 1; } }
.live-clock { font-variant-numeric: tabular-nums; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-inline-start: 4px; animation: livepulse 1.6s infinite; vertical-align: middle; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(31,138,76,.5); } 100% { box-shadow: 0 0 0 8px rgba(31,138,76,0); } }
@media (max-width: 680px) { .live-row { grid-template-columns: 1fr 1fr; } .live-main { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) { .live-row.live-new, .live-dot { animation: none; } }

/* ---------- Sign-in: one step in focus, the route on the left ---------- */
.signin { min-height: 100vh; display: grid; grid-template-columns: minmax(300px, 420px) 1fr; }
.signin-side { background: var(--ink); color: #c8d6d5; padding: 32px 36px; display: flex; flex-direction: column; gap: 28px; }
.signin-side .logo { color: #fff; }
.signin-side .logo small { color: #8fa5a6; }
.signin-side h1 { color: #fff; font-size: 32px; letter-spacing: -.02em; }
.rail-lede { margin: 0; color: #c8d6d5; max-width: 34ch; }
.rail { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.rail-step { display: grid; grid-template-columns: 32px 1fr; gap: 14px; padding-bottom: 26px; position: relative; color: #8fa5a6; }
.rail-step:last-child { padding-bottom: 0; }
.rail-step:not(:last-child)::before { content: ''; position: absolute; inset-inline-start: 15px; top: 34px; bottom: 4px; width: 2px; background: rgba(255,255,255,.14); }
.rail-step.done:not(:last-child)::before { background: #d2a65a; }
.rail-dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; border: 2px solid rgba(255,255,255,.22); color: #8fa5a6; }
.rail-step b { color: #c8d6d5; font-weight: 600; font-size: 15px; }
.rail-step.on .rail-dot { background: #d2a65a; border-color: #d2a65a; color: #12303a; }
.rail-step.on b, .rail-step.done b { color: #fff; }
.rail-step.done .rail-dot { border-color: #d2a65a; color: #d2a65a; }
.rail-note { font-size: 13px; }
.rail-note a { color: #fff; }
.signin-privacy { margin: auto 0 0; color: #8fa5a6; max-width: 34ch; }
.signin-main { display: grid; align-content: center; justify-items: center; gap: 18px; padding: 40px 24px; }
.signin-panel { width: min(480px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 28px; box-shadow: var(--shadow); }
.signin-panel h2 { font-size: 22px; }
.staff { border-top: 1px solid var(--line); padding-top: 10px; }
.staff summary { cursor: pointer; font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.signin-alt { margin: 0; font-size: 14px; color: var(--ink-soft); }
.signin-back { text-decoration: none; }
@media (max-width: 820px) {
  .signin { grid-template-columns: 1fr; }
  .signin-side { padding: 20px 16px; gap: 16px; }
  .signin-side h1 { font-size: 24px; }
  .rail { grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
  .rail-step { grid-template-columns: 1fr; gap: 6px; padding-bottom: 0; text-align: center; justify-items: center; }
  .rail-step::before { display: none; }
  .rail-step b { font-size: 13px; }
  .rail-note, .signin-privacy { display: none; }
  .signin-main { align-content: start; padding: 16px; }
  .signin-panel { padding: 20px; }
}

/* Overview: the one thing to do next */
.next-step { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; border-inline-start: 4px solid var(--gold); }
.next-step > div { flex: 1; min-width: 240px; }
.next-step h2 { font-size: 21px; margin: 2px 0 4px; }
.next-step p { margin: 0; max-width: 64ch; }
.nav-console { margin-top: 10px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 16px; color: #d2a65a; }

/* Searchable multi-select dropdown (ai-home.world sync filter) */
.msel-wrap { display: grid; gap: 6px; font-size: 13px; font-weight: 600; position: relative; }
details.msel { position: relative; }
details.msel > summary { list-style: none; cursor: pointer; padding: 10px 34px 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card, #fff); font-weight: 400; font-size: 15px; position: relative; }
details.msel > summary::-webkit-details-marker { display: none; }
details.msel > summary::after { content: '▾'; position: absolute; inset-inline-end: 12px; top: 50%; transform: translateY(-50%); color: var(--muted, #667); }
details.msel[open] > summary { border-color: var(--gold, #8a6a1f); }
.msel-pop { position: absolute; z-index: 30; inset-inline: 0; top: calc(100% + 4px); background: var(--card, #fff); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.15); padding: 8px; min-width: 220px; }
.msel-search { width: 100%; }
.msel-tools { display: flex; justify-content: space-between; align-items: center; margin: 6px 0; }
.msel-list { max-height: 260px; overflow-y: auto; display: grid; }
.msel-opt { display: flex; gap: 8px; align-items: center; padding: 6px 4px; font-weight: 400; cursor: pointer; border-radius: 6px; }
.msel-opt:hover { background: var(--gold-soft, #f6efe0); }
.msel-opt[hidden] { display: none; }

/* Cold-data filter panel (owner Master Cold database + Investor History) */
.cfp details.msel .msel-pop { position: static; box-shadow: none; margin-top: 4px; min-width: 0; }
.cfp details.msel > summary { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cfp .msel-list { max-height: 220px; }
.cf-sec { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #667); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 2px; }
.cf-go { position: sticky; bottom: -20px; margin: 0 -20px; padding: 10px 20px; background: var(--card); border-top: 1px solid var(--line); z-index: 5; }
@media (max-width: 1100px) { .cf-go { position: static; margin: 0; padding: 0; border: 0; } }
.msel-opt > span:first-of-type { flex: 1; min-width: 0; }
.msel-n { font-size: 12px; color: var(--muted, #667); font-variant-numeric: tabular-nums; }
.msel-opt[data-off] { display: none; }
details.msel.over > summary { border-color: var(--bad); color: var(--bad); }
.chip { display: inline-flex; align-items: center; gap: 4px; }
.chip-x { border: 0; background: none; color: inherit; font: inherit; font-size: 15px; line-height: 1; padding: 0 2px; cursor: pointer; opacity: .7; }
.chip-x:hover, .chip-x:focus-visible { opacity: 1; }
