/* ============ NEXUS AI — design system ============ */
:root {
  --bg: #060a13;
  --bg2: #0a1020;
  --panel: #0e1628;
  --panel2: #131d33;
  --panel3: #18243f;
  --line: rgba(148, 170, 220, 0.12);
  --line2: rgba(148, 170, 220, 0.22);
  --text: #e9eef9;
  --muted: #8b98b8;
  --muted2: #5f6c8c;
  --accent: #34e3c4;
  --accent2: #7b61ff;
  --accent3: #3aa8ff;
  --ok: #2fd47c;
  --warn: #ffb547;
  --danger: #ff4d6d;
  --grad: linear-gradient(135deg, #34e3c4 0%, #3aa8ff 50%, #7b61ff 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(52, 227, 196, 0.3); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--panel3); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ok-text { color: var(--ok); } .warn-text { color: var(--warn); } .danger-text { color: var(--danger); }
.hidden { display: none !important; }
.row { display: flex; gap: 12px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.col { display: flex; flex-direction: column; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.gap-s { gap: 8px; } .gap-l { gap: 20px; }
.mt { margin-top: 16px; } .mt-s { margin-top: 8px; } .mb { margin-bottom: 16px; }

/* ============ Layout (app) ============ */
.app { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: linear-gradient(180deg, var(--bg2), var(--bg));
  border-right: 1px solid var(--line);
  padding: 20px 14px; display: flex; flex-direction: column; gap: 6px; z-index: 40;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.brand-logo {
  width: 36px; height: 36px; border-radius: 10px; background: var(--grad);
  display: grid; place-items: center; color: #051018; font-weight: 800; font-size: 15px;
  box-shadow: 0 0 24px rgba(52, 227, 196, 0.35);
}
.brand-name { font-weight: 800; font-size: 16px; letter-spacing: 0.04em; }
.brand-sub { font-size: 11px; color: var(--muted); }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted2); padding: 14px 10px 6px; }
.nav-btn {
  display: flex; align-items: center; gap: 11px; width: 100%;
  background: transparent; border: 0; border-radius: 10px; padding: 9px 12px;
  color: var(--muted); cursor: pointer; text-align: left; transition: 0.15s;
}
.nav-btn svg { width: 18px; height: 18px; flex: none; }
.nav-btn:hover { background: var(--panel); color: var(--text); }
.nav-btn.active { background: var(--panel2); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.nav-btn .nav-badge { margin-left: auto; font-size: 10px; padding: 1px 7px; border-radius: 20px; background: var(--danger); color: #fff; font-weight: 700; }
.sidebar-foot { margin-top: auto; padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px;
  padding: 14px 28px; background: rgba(6, 10, 19, 0.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar h1 { font-size: 18px; font-weight: 700; }
.topbar .sub { font-size: 12px; color: var(--muted); }
.burger { display: none; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; width: 38px; height: 38px; cursor: pointer; }
.content { padding: 24px 28px 60px; max-width: 1400px; width: 100%; }
.view { display: none; animation: fadeIn 0.25s ease; }
.view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--panel3); display: grid; place-items: center; font-weight: 700; font-size: 13px; border: 1px solid var(--line2); }

/* ============ Grid ============ */
.grid { display: grid; gap: 18px; }
.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)); }
.g-main { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.g-main-r { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
.span2 { grid-column: span 2; }

/* ============ Cards ============ */
.card {
  background: linear-gradient(180deg, var(--panel), rgba(14, 22, 40, 0.75));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0;
}
.card.pad-s { padding: 14px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-h h3 { font-size: 15px; font-weight: 650; }
.card-h .hint { font-size: 12px; color: var(--muted); }
.card.glow { position: relative; overflow: hidden; }
.card.glow::before {
  content: ''; position: absolute; inset: -40% -20% auto auto; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(123, 97, 255, 0.25), transparent 65%); pointer-events: none;
}

.kpi { display: flex; flex-direction: column; gap: 6px; }
.kpi .label { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 6px; }
.kpi .value { font-size: 26px; font-weight: 750; letter-spacing: -0.02em; }
.kpi .delta { font-size: 12px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 11px; padding: 10px 16px; border: 1px solid var(--line2);
  background: var(--panel2); color: var(--text); cursor: pointer; font-weight: 600; font-size: 13px;
  transition: 0.15s; white-space: nowrap; text-decoration: none !important;
}
.btn:hover { background: var(--panel3); border-color: rgba(148, 170, 220, 0.35); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.primary { background: var(--grad); border: 0; color: #041019; box-shadow: 0 6px 24px rgba(52, 227, 196, 0.25); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { background: rgba(255, 77, 109, 0.14); border-color: rgba(255, 77, 109, 0.45); color: #ff8da2; }
.btn.danger:hover { background: rgba(255, 77, 109, 0.24); }
.btn.ok { background: rgba(47, 212, 124, 0.14); border-color: rgba(47, 212, 124, 0.45); color: #7ef0b0; }
.btn.ghost { background: transparent; }
.btn.sm { padding: 6px 11px; font-size: 12px; border-radius: 9px; }
.btn.block { width: 100%; }
.btn svg { width: 16px; height: 16px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px;
  border: 1px solid var(--line2); background: var(--panel); color: var(--muted); font-size: 12px; cursor: pointer; transition: 0.15s;
}
.chip:hover { color: var(--text); border-color: var(--accent); }

/* ============ Badges ============ */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 650; white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.low, .badge.ok { background: rgba(47, 212, 124, 0.12); color: var(--ok); }
.badge.med, .badge.warn { background: rgba(255, 181, 71, 0.13); color: var(--warn); }
.badge.high, .badge.danger { background: rgba(255, 77, 109, 0.14); color: var(--danger); }
.badge.info { background: rgba(58, 168, 255, 0.13); color: var(--accent3); }
.badge.violet { background: rgba(123, 97, 255, 0.16); color: #a998ff; }
.badge.plain::before { display: none; }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); font-size: 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px currentColor; flex: none; }
.dot.pulse { animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ============ Forms ============ */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; color: var(--muted); font-weight: 550; }
.input, select.input, textarea.input {
  width: 100%; background: var(--bg2); border: 1px solid var(--line2); border-radius: 11px;
  padding: 11px 13px; outline: none; transition: 0.15s;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(52, 227, 196, 0.13); }
textarea.input { resize: vertical; min-height: 110px; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 13px; color: var(--muted); }
.check input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }

.switch { position: relative; width: 42px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--panel3); border-radius: 24px; cursor: pointer; transition: 0.2s; border: 1px solid var(--line2); }
.switch span::after { content: ''; position: absolute; width: 18px; height: 18px; left: 2px; top: 2px; background: #cfd8ea; border-radius: 50%; transition: 0.2s; }
.switch input:checked + span { background: var(--accent); border-color: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); background: #04121a; }

.setting { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.setting:last-child { border-bottom: 0; }
.setting .t { font-weight: 600; font-size: 13px; }
.setting .d { font-size: 12px; color: var(--muted); }

.tabs { display: flex; gap: 4px; padding: 4px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; }
.tab { border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; color: var(--muted); cursor: pointer; font-weight: 600; font-size: 13px; white-space: nowrap; }
.tab.active { background: var(--panel3); color: var(--text); }

.drop {
  display: block;
  border: 1.5px dashed var(--line2); border-radius: 14px; padding: 28px; text-align: center; color: var(--muted);
  cursor: pointer; transition: 0.15s; background: rgba(10, 16, 32, 0.6);
}
.drop:hover, .drop.over { border-color: var(--accent); color: var(--text); background: rgba(52, 227, 196, 0.05); }
.drop svg { width: 32px; height: 32px; margin-bottom: 8px; opacity: 0.7; }

/* ============ Lists / tables ============ */
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.li:last-child { border-bottom: 0; }
.li .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--panel3); flex: none; font-size: 16px; }
.li .t { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li .s { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li .amt { font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }

.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); }
table.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted2); font-weight: 650; padding: 11px 14px; background: var(--bg2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background 0.15s; }
.table tbody tr:hover { background: rgba(148, 170, 220, 0.04); }
.table tr.flash { animation: flash 1.2s ease; }
@keyframes flash { from { background: rgba(52, 227, 196, 0.16); } to { background: transparent; } }
.table tr.row-high td:first-child { box-shadow: inset 3px 0 0 var(--danger); }
.table tr.row-med td:first-child { box-shadow: inset 3px 0 0 var(--warn); }

/* ============ Risk meter ============ */
.meter { height: 10px; border-radius: 10px; background: var(--panel3); overflow: hidden; position: relative; }
.meter > i { position: absolute; inset: 0 auto 0 0; border-radius: 10px; transition: width 0.5s cubic-bezier(.2,.8,.2,1), background 0.3s; }
.risk-big { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }

.verdict { border-radius: 14px; padding: 16px 18px; display: flex; gap: 14px; align-items: flex-start; border: 1px solid; }
.verdict.low { background: rgba(47, 212, 124, 0.07); border-color: rgba(47, 212, 124, 0.3); }
.verdict.med { background: rgba(255, 181, 71, 0.07); border-color: rgba(255, 181, 71, 0.3); }
.verdict.high { background: rgba(255, 77, 109, 0.08); border-color: rgba(255, 77, 109, 0.35); }
.verdict .vi { font-size: 26px; line-height: 1; }
.verdict h4 { font-size: 16px; margin-bottom: 4px; }

.reasons { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.reasons li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; padding: 10px 12px; background: var(--bg2); border-radius: 10px; border: 1px solid var(--line); }
.reasons li .w { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--muted); flex: none; }
.reasons li .ri { flex: none; }

/* ============ Chat ============ */
.chat { display: flex; flex-direction: column; height: calc(100vh - 190px); min-height: 480px; }
.chat-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 6px 4px 16px; }
.msg { max-width: 82%; padding: 12px 15px; border-radius: 16px; font-size: 14px; line-height: 1.55; animation: fadeIn 0.2s; }
.msg.bot { background: var(--panel2); border: 1px solid var(--line); border-top-left-radius: 4px; align-self: flex-start; }
.msg.user { background: linear-gradient(135deg, rgba(52, 227, 196, 0.18), rgba(123, 97, 255, 0.22)); border: 1px solid rgba(123, 97, 255, 0.3); border-top-right-radius: 4px; align-self: flex-end; }
.msg .who { font-size: 11px; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
.msg b { color: #fff; }
.msg ul { margin: 6px 0 0; padding-left: 18px; }
.msg .actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.typing span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); margin-right: 4px; animation: bounce 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: 0.15s; } .typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-5px); opacity: 1; } }
.chat-input { display: flex; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.chat-input .input { flex: 1; }
.suggest { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 0 0; }
.mini-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13px; }
.mini-table td { padding: 5px 0; border-bottom: 1px dashed var(--line); }
.mini-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }

/* ============ Toasts / modal ============ */
#toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100vw - 32px)); }
.toast { background: var(--panel2); border: 1px solid var(--line2); border-radius: 14px; padding: 13px 15px; box-shadow: var(--shadow); display: flex; gap: 11px; animation: slideIn 0.3s cubic-bezier(.2,.8,.2,1); font-size: 13px; }
.toast.high { border-color: rgba(255, 77, 109, 0.55); }
.toast.ok { border-color: rgba(47, 212, 124, 0.45); }
.toast.warn { border-color: rgba(255, 181, 71, 0.5); }
.toast .ti { font-size: 18px; line-height: 1.2; }
.toast b { display: block; margin-bottom: 2px; }
@keyframes slideIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }

.modal { position: fixed; inset: 0; z-index: 150; background: rgba(2, 5, 12, 0.72); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.open { display: flex; }
.modal-box { background: var(--panel); border: 1px solid var(--line2); border-radius: 20px; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 24px; box-shadow: var(--shadow); animation: fadeIn 0.2s; }
.modal-box.wide { width: min(860px, 100%); }
.modal-box h3 { font-size: 18px; margin-bottom: 6px; }

/* phone SMS mock */
.sms-pop { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 220; width: min(400px, calc(100vw - 32px)); background: rgba(30, 36, 52, 0.96); border: 1px solid var(--line2); border-radius: 18px; padding: 13px 15px; box-shadow: var(--shadow); animation: drop 0.4s cubic-bezier(.2,.8,.2,1); backdrop-filter: blur(10px); }
@keyframes drop { from { opacity: 0; transform: translate(-50%, -30px); } to { opacity: 1; transform: translate(-50%, 0); } }
.sms-pop .h { font-size: 11px; color: var(--muted); display: flex; justify-content: space-between; margin-bottom: 4px; }

/* ============ Timeline ============ */
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line2); }
.tl-item { position: relative; padding: 0 0 16px; animation: fadeIn 0.3s; }
.tl-item::before { content: ''; position: absolute; left: -20px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--panel); border: 2px solid var(--muted); }
.tl-item.high::before { border-color: var(--danger); background: var(--danger); box-shadow: 0 0 12px var(--danger); }
.tl-item.med::before { border-color: var(--warn); }
.tl-item.low::before { border-color: var(--ok); }
.tl-item .t { font-weight: 600; font-size: 13px; }
.tl-item .s { font-size: 12px; color: var(--muted); }

/* ============ Gauge ============ */
.gauge { position: relative; width: 200px; height: 200px; margin: 0 auto; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge .center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.gauge .num { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.gauge.sm { width: 120px; height: 120px; }
.gauge.sm .num { font-size: 28px; }

/* ============ Bank card ============ */
.bank-card {
  border-radius: 20px; padding: 22px; min-height: 190px; position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 100% 0%, rgba(123, 97, 255, 0.55), transparent 55%), radial-gradient(100% 100% at 0% 100%, rgba(52, 227, 196, 0.35), transparent 50%), #101a33;
  border: 1px solid rgba(255, 255, 255, 0.1); display: flex; flex-direction: column; justify-content: space-between;
}
.bank-card.blocked { filter: grayscale(0.9); }
.bank-card.blocked::after { content: 'ЗАБЛОКИРОВАНА'; position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; letter-spacing: 0.2em; color: var(--danger); background: rgba(6, 10, 19, 0.55); }
.bank-card .bal { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }
.bank-card .num { font-family: var(--mono); letter-spacing: 0.06em; opacity: 0.85; white-space: nowrap; font-size: 13px; }

/* ============ Misc ============ */
.feature-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(52, 227, 196, 0.1); color: var(--accent); flex: none; }
.feature-ic svg { width: 22px; height: 22px; }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; font-size: 13px; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 90px; gap: 10px; align-items: center; font-size: 12px; padding: 5px 0; }
.bar-row .bar { height: 8px; background: var(--panel3); border-radius: 8px; overflow: hidden; }
.bar-row .bar i { display: block; height: 100%; border-radius: 8px; }
.bar-row .v { text-align: right; font-variant-numeric: tabular-nums; }
canvas { display: block; max-width: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.notice { font-size: 12px; color: var(--muted); padding: 10px 14px; border-radius: 10px; background: rgba(58, 168, 255, 0.06); border: 1px solid rgba(58, 168, 255, 0.2); }
.notice.warn { background: rgba(255, 181, 71, 0.06); border-color: rgba(255, 181, 71, 0.25); }
.disclaimer { font-size: 11px; color: var(--muted2); line-height: 1.45; }
.step-list { counter-reset: s; display: flex; flex-direction: column; gap: 10px; }
.step { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); transition: 0.3s; opacity: 0.45; }
.step.on { opacity: 1; border-color: var(--line2); }
.step.done { opacity: 1; }
.step.alert { border-color: rgba(255, 77, 109, 0.5); background: rgba(255, 77, 109, 0.06); opacity: 1; }
.step .n { width: 26px; height: 26px; border-radius: 50%; background: var(--panel3); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.step.done .n { background: var(--accent); color: #041019; }
.step.alert .n { background: var(--danger); color: #fff; }

.spark { width: 100%; height: 60px; }
.tag { font-size: 11px; padding: 2px 8px; border-radius: 6px; background: var(--panel3); color: var(--muted); font-family: var(--mono); }
.member { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); }
.feat { display: flex; gap: 10px; font-size: 13px; padding: 6px 0; }
.feat::before { content: '✓'; color: var(--accent); font-weight: 800; }

/* ============ Responsive ============ */
@media (max-width: 1180px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-main, .g-main-r { grid-template-columns: minmax(0, 1fr); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; width: 270px; transform: translateX(-100%); transition: transform 0.25s; box-shadow: var(--shadow); }
  .sidebar.open { transform: none; }
  .burger { display: grid; place-items: center; }
  .topbar { padding: 12px 16px; }
  .content { padding: 18px 16px 60px; }
  .g2, .g3 { grid-template-columns: minmax(0, 1fr); }
  .span2 { grid-column: auto; }
  .chat { height: calc(100vh - 170px); }
  .msg { max-width: 92%; }
  .bar-row { grid-template-columns: 90px 1fr 80px; }
  .hide-m { display: none !important; }
}
@media (max-width: 520px) {
  .g4 { grid-template-columns: minmax(0, 1fr); }
  .kpi .value { font-size: 22px; }
  .bank-card .bal { font-size: 26px; }
}
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 35; display: none; }
.scrim.open { display: block; }
