:root {
  --bg: #05080c;
  --bg-soft: #080d13;
  --panel: #0b1219;
  --panel-2: #0f1822;
  --panel-3: #13202c;
  --line: #1a2b3a;
  --line-soft: #12202c;
  --text: #e8f1f8;
  --muted: #8298ac;
  --muted-2: #5b6f83;
  --accent: #2dd4bf;
  --accent-2: #38bdf8;
  --accent-ink: #03211f;
  --green: #34d399;
  --green-soft: rgba(52, 211, 153, 0.12);
  --red: #f87171;
  --red-soft: rgba(248, 113, 113, 0.12);
  --amber: #fbbf24;
  --amber-soft: rgba(251, 191, 36, 0.12);
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --font: "Inter", "Segoe UI", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.1; font-weight: 680; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
::selection { background: rgba(45, 212, 191, 0.3); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1e3242; border-radius: 99px; border: 2px solid var(--bg); }

.hidden { display: none !important; }
.pos { color: var(--green) !important; }
.neg { color: var(--red) !important; }
.warn { color: var(--amber) !important; }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }

.eyebrow {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.micro { color: var(--muted-2); font-size: 12px; line-height: 1.6; }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 650;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, opacity .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary {
  background: linear-gradient(135deg, #5eead4, #22b8a6);
  color: #04211f;
  box-shadow: 0 10px 28px rgba(45, 212, 191, .22);
}
.btn-primary:hover { background: linear-gradient(135deg, #7ff0dd, #2ac9b5); }
.btn-ghost {
  background: rgba(255, 255, 255, .028);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: #294357; background: rgba(255, 255, 255, .05); }
.btn-danger { background: var(--red); color: #2a0808; }
.btn-danger:hover { background: #ff8f8f; }
.btn-danger-ghost {
  background: var(--red-soft);
  border-color: rgba(248, 113, 113, .3);
  color: #ffb0b0;
}
.btn-sm { min-height: 34px; padding: 0 13px; font-size: 12.5px; border-radius: 9px; }
.btn-lg { min-height: 50px; padding: 0 26px; font-size: 15px; border-radius: 13px; }
.btn-block { width: 100%; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  transition: color .15s, border-color .15s, background .15s;
}
.icon-btn:hover { color: var(--text); border-color: #294357; background: rgba(255, 255, 255, .04); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- inputs ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
input[type="text"], input[type="password"], input[type="number"], select {
  min-height: 42px;
  width: 100%;
  padding: 0 13px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  outline: none;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
input:focus, select:focus {
  border-color: rgba(45, 212, 191, .55);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, .09);
  background: #060c11;
}
input::placeholder { color: var(--muted-2); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #6b8299 50%), linear-gradient(135deg, #6b8296 50%, transparent 50%); background-position: calc(100% - 17px) 18px, calc(100% - 12px) 18px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track {
  position: relative;
  width: 42px; height: 24px;
  border-radius: 99px;
  background: #16242f;
  border: 1px solid var(--line);
  transition: background .18s, border-color .18s;
  flex: none;
}
.switch .track::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #7d94a8;
  transition: transform .18s, background .18s;
}
.switch input:checked + .track { background: rgba(45, 212, 191, .2); border-color: rgba(45, 212, 191, .5); }
.switch input:checked + .track::after { transform: translateX(18px); background: var(--accent); }
.switch-label { display: flex; flex-direction: column; gap: 1px; }
.switch-label strong { font-size: 13.5px; font-weight: 600; }
.switch-label small { color: var(--muted-2); font-size: 11.5px; }

/* ---------- tags / pills ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .02em;
}
.tag.live { border-color: rgba(52, 211, 153, .35); background: var(--green-soft); color: var(--green); }
.tag.paper { border-color: rgba(56, 189, 248, .32); background: rgba(56, 189, 248, .1); color: #7dd3fc; }
.tag.off { color: var(--muted-2); }
.tag.warn { border-color: rgba(251, 191, 36, .3); background: var(--amber-soft); color: var(--amber); }
.tag.red { border-color: rgba(248, 113, 113, .3); background: var(--red-soft); color: #fca5a5; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); box-shadow: 0 0 0 3px rgba(255,255,255,.03); }
.status-pill.on { border-color: rgba(52, 211, 153, .3); color: var(--green); }
.status-pill.on i { background: var(--green); box-shadow: 0 0 0 3px rgba(52, 211, 153, .14); animation: pulse 2.4s infinite; }
.status-pill.off { color: var(--muted-2); }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(52, 211, 153, .12); }
  50% { box-shadow: 0 0 0 6px rgba(52, 211, 153, .04); }
}

/* ---------- cards ---------- */
.card {
  background: linear-gradient(180deg, var(--panel), var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  min-width: 0;
}
.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.card-head h2 { font-size: 17px; letter-spacing: -.02em; }
.card-head h3 { font-size: 14.5px; }
.card-head .eyebrow { margin-bottom: 3px; }

/* ---------- app shell ---------- */
.app-body { background: radial-gradient(1200px 600px at 78% -10%, rgba(45, 212, 191, .07), transparent 60%), var(--bg); }
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 232px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 20px 14px;
  background: rgba(7, 12, 17, .92);
  border-right: 1px solid var(--line-soft);
  backdrop-filter: blur(12px);
  z-index: 40;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #5eead4, #22b8a6);
  color: #04211f;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -.04em;
}
.brand-word { font-size: 16.5px; font-weight: 700; letter-spacing: -.02em; }
.brand-word em { font-style: normal; color: var(--accent); }

.nav { display: flex; flex-direction: column; gap: 3px; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 550;
  transition: background .15s, color .15s;
}
.nav-link svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nav-link:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.nav-link.active { background: rgba(45, 212, 191, .1); color: var(--accent); }
.nav-link.active svg { stroke: var(--accent); }
.nav-sep { margin: 10px 12px 4px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; }

.sidebar-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
}
.avatar {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: rgba(45, 212, 191, .14);
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  flex: none;
}
.user-meta { display: flex; flex-direction: column; min-width: 0; }
.user-meta strong { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-meta small { font-size: 10.5px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .1em; }

.app-main { flex: 1; min-width: 0; margin-left: 232px; display: flex; flex-direction: column; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 28px;
  background: rgba(5, 8, 12, .82);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(14px);
}
.topbar-title .eyebrow { font-size: 10px; margin-bottom: 2px; }
.topbar-title h1 { font-size: 21px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.mobile-menu { display: none; }
.content { padding: 24px 28px 56px; display: flex; flex-direction: column; gap: 18px; }

/* ---------- grids ---------- */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-hero { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.grid-live { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }

/* ---------- KPI ---------- */
.kpi {
  position: relative;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(160deg, var(--panel-2), var(--bg-soft));
  overflow: hidden;
}
.kpi::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), transparent);
  opacity: .7;
}
.kpi .kpi-label { font-size: 11px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: var(--muted-2); }
.kpi .kpi-value { margin-top: 6px; font-size: 25px; font-weight: 680; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kpi .kpi-sub { margin-top: 3px; font-size: 12px; color: var(--muted); }
.kpi.big .kpi-value { font-size: 32px; }

.stat-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line-soft); }
.stat-row:last-child { border-bottom: 0; }
.stat-row span { font-size: 12.5px; color: var(--muted); }
.stat-row strong { font-size: 13.5px; font-weight: 650; font-variant-numeric: tabular-nums; }

/* ---------- chart ---------- */
.chart-box { position: relative; width: 100%; }
.chart-box canvas { width: 100%; height: 100%; display: block; }
.chart-tall { height: 300px; }
.chart-mid { height: 220px; }
.chart-small { height: 150px; }
.chart-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted-2);
  font-size: 12.5px;
  pointer-events: none;
}
.chart-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11px; color: var(--muted); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 8px; height: 8px; border-radius: 3px; display: inline-block; }
.dot-up { background: var(--green); }
.dot-down { background: var(--red); }
.dot-ema9 { background: var(--accent); }
.dot-ema21 { background: #818cf8; }
.dot-level { background: var(--amber); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: -6px -4px; padding: 0 4px; }
table { width: 100%; border-collapse: collapse; font-size: 12.8px; }
th {
  text-align: left;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td { padding: 10px; border-bottom: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; vertical-align: middle; }
tbody tr:hover { background: rgba(255, 255, 255, .018); }
tbody tr:last-child td { border-bottom: 0; }
.num { text-align: right; }
.td-strong { font-weight: 600; }

.empty {
  padding: 26px 16px;
  text-align: center;
  color: var(--muted-2);
  font-size: 12.8px;
  border: 1px dashed var(--line);
  border-radius: 12px;
}

/* ---------- feed ---------- */
.feed { display: flex; flex-direction: column; gap: 0; max-height: 420px; overflow-y: auto; }
.feed-item {
  display: flex;
  gap: 11px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12.4px;
}
.feed-item:last-child { border-bottom: 0; }
.feed-icon {
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 7px;
  flex: none;
  font-size: 11px;
  font-weight: 800;
  background: var(--panel-3);
  color: var(--muted);
}
.feed-item.info .feed-icon { background: rgba(56, 189, 248, .12); color: #7dd3fc; }
.feed-item.warning .feed-icon { background: var(--amber-soft); color: var(--amber); }
.feed-item.error .feed-icon { background: var(--red-soft); color: #fca5a5; }
.feed-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.feed-msg { color: #cfdde8; line-height: 1.45; word-break: break-word; }
.feed-time { font-size: 10.5px; color: var(--muted-2); font-family: var(--mono); }

/* ---------- steps ---------- */
.steps { display: flex; flex-direction: column; gap: 8px; counter-reset: step; }
.steps li {
  position: relative;
  padding: 8px 10px 8px 32px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .02);
  border: 1px solid var(--line-soft);
  font-size: 12.2px;
  color: #c3d3df;
  line-height: 1.45;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 9px; top: 8px;
  display: grid;
  place-items: center;
  width: 16px; height: 16px;
  border-radius: 5px;
  background: rgba(45, 212, 191, .13);
  color: var(--accent);
  font-size: 9.5px;
  font-weight: 800;
}

.gates { display: flex; flex-wrap: wrap; gap: 6px; }
.gate {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 25px;
  padding: 0 9px;
  border-radius: 7px;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: .02em;
  border: 1px solid var(--line);
  color: var(--muted-2);
  background: var(--panel-2);
}
.gate.ok { border-color: rgba(52, 211, 153, .3); color: var(--green); background: var(--green-soft); }
.gate.ko { border-color: rgba(248, 113, 113, .25); color: #fca5a5; background: var(--red-soft); }

/* ---------- toolbar / misc ---------- */
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.toolbar .spacer { flex: 1; }
.mini-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--panel-3);
  border: 1px solid var(--line);
  font-size: 10.5px;
  font-weight: 650;
  color: var(--muted);
  letter-spacing: .02em;
}
.live-price { display: flex; flex-direction: column; line-height: 1.15; }
.live-price strong { font-size: 22px; font-weight: 680; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.live-price small { font-size: 11.5px; font-weight: 600; }
.price-up { color: var(--green); }
.price-down { color: var(--red); }

.conn { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--muted-2); }
.conn-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); }
.conn-dot.on { background: var(--green); box-shadow: 0 0 8px rgba(52, 211, 153, .6); }
.conn-dot.off { background: var(--red); }

.metric-list { display: flex; flex-direction: column; }
.metric-list > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line-soft); font-size: 12.4px; }
.metric-list > div:last-child { border-bottom: 0; }
.metric-list span { color: var(--muted); }
.metric-list strong { font-weight: 650; font-variant-numeric: tabular-nums; }

.banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 12.8px;
  color: #c3d3df;
}
.banner.warn { border-color: rgba(251, 191, 36, .3); background: var(--amber-soft); color: #fde68a; }
.banner.err { border-color: rgba(248, 113, 113, .3); background: var(--red-soft); color: #fecaca; }
.banner.ok { border-color: rgba(52, 211, 153, .3); background: var(--green-soft); color: #bbf7d0; }
.banner svg { width: 17px; height: 17px; flex: none; margin-top: 1px; stroke: currentColor; fill: none; stroke-width: 1.8; }

.seg {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
}
.seg button {
  height: 30px;
  padding: 0 13px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 620;
  transition: background .15s, color .15s;
}
.seg button.active { background: var(--panel-3); color: var(--text); }

/* ---------- toast ---------- */
.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-width: 360px;
}
.toast {
  padding: 12px 15px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  font-size: 12.8px;
  box-shadow: var(--shadow);
  animation: toast-in .22s ease;
}
.toast.ok { border-color: rgba(52, 211, 153, .35); }
.toast.err { border-color: rgba(248, 113, 113, .38); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- landing ---------- */
.landing { background: radial-gradient(900px 500px at 70% -10%, rgba(45, 212, 191, .12), transparent 65%), radial-gradient(700px 400px at 10% 10%, rgba(56, 189, 248, .07), transparent 60%), var(--bg); }
.land-nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 14px;
  padding: 16px clamp(18px, 5vw, 64px);
  background: rgba(5, 8, 12, .78);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(14px);
}
.land-nav .brand { padding: 0; }
.land-nav .nav-actions { margin-left: auto; display: flex; gap: 9px; align-items: center; }
.land-wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(18px, 5vw, 40px); }
.hero { padding: clamp(42px, 8vw, 92px) 0 44px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 42px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 58px); letter-spacing: -.045em; }
.hero h1 .grad { background: linear-gradient(120deg, #5eead4, #38bdf8 60%, #818cf8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { margin-top: 18px; font-size: clamp(15px, 1.6vw, 17.5px); color: var(--muted); max-width: 56ch; line-height: 1.62; }
.hero-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 11px; }
.hero-facts { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 22px; }
.hero-facts div { display: flex; flex-direction: column; gap: 2px; }
.hero-facts strong { font-size: 19px; letter-spacing: -.02em; }
.hero-facts span { font-size: 11px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .1em; font-weight: 650; }

.hero-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(170deg, #0d1620, #070d12);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-card-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
.hero-card-body { padding: 16px; display: flex; flex-direction: column; gap: 13px; }
.hero-mini-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.hero-mini-kpis div { padding: 11px 12px; border-radius: 11px; border: 1px solid var(--line-soft); background: rgba(255, 255, 255, .018); }
.hero-mini-kpis span { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); font-weight: 650; }
.hero-mini-kpis strong { display: block; margin-top: 3px; font-size: 17px; font-variant-numeric: tabular-nums; }

.section { padding: 54px 0; }
.section-head { margin-bottom: 26px; max-width: 62ch; }
.section-head h2 { font-size: clamp(24px, 3vw, 34px); margin-top: 8px; }
.section-head p { margin-top: 10px; color: var(--muted); line-height: 1.6; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feature {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(170deg, var(--panel), var(--bg-soft));
}
.feature .f-icon {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: rgba(45, 212, 191, .1);
  color: var(--accent);
  margin-bottom: 13px;
}
.feature .f-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 15px; margin-bottom: 6px; }
.feature p { font-size: 12.8px; color: var(--muted); line-height: 1.6; }

.steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.step-card { position: relative; padding: 20px 18px; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); }
.step-card::before {
  counter-increment: s;
  content: "0" counter(s);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: .1em;
}
.step-card h3 { font-size: 14.5px; margin: 8px 0 6px; }
.step-card p { font-size: 12.6px; color: var(--muted); line-height: 1.55; }

.footer {
  border-top: 1px solid var(--line-soft);
  padding: 26px 0 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted-2);
}
.disclaimer {
  margin: 18px 0 0;
  padding: 13px 16px;
  border-radius: 11px;
  border: 1px solid rgba(251, 191, 36, .2);
  background: rgba(251, 191, 36, .05);
  font-size: 11.8px;
  color: #d8c48b;
  line-height: 1.6;
}

/* ---------- auth ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-aside {
  position: relative;
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: radial-gradient(600px 400px at 20% 20%, rgba(45, 212, 191, .12), transparent 60%), #060b10;
  border-right: 1px solid var(--line-soft);
  overflow: hidden;
}
.auth-aside h2 { font-size: clamp(26px, 3vw, 38px); max-width: 18ch; margin-top: 26px; }
.auth-aside p { margin-top: 14px; color: var(--muted); max-width: 40ch; font-size: 14px; line-height: 1.65; }
.auth-points { margin-top: 30px; display: flex; flex-direction: column; gap: 13px; }
.auth-points div { display: flex; gap: 11px; align-items: flex-start; font-size: 13px; color: #c3d3df; }
.auth-points .pt-dot { margin-top: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 10px rgba(45,212,191,.7); }
.auth-form-wrap { display: grid; place-items: center; padding: 32px 22px; }
.auth-card { width: 100%; max-width: 388px; }
.auth-card h1 { font-size: 27px; }
.auth-card > p { margin-top: 7px; color: var(--muted); font-size: 13.5px; }
.auth-form { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.auth-alt { margin-top: 18px; font-size: 12.8px; color: var(--muted); text-align: center; }
.auth-alt a { color: var(--accent); font-weight: 600; }
.auth-alt a:hover { text-decoration: underline; }
.form-error {
  padding: 10px 13px;
  border-radius: 9px;
  border: 1px solid rgba(248, 113, 113, .32);
  background: var(--red-soft);
  color: #fecaca;
  font-size: 12.5px;
}

/* ---------- settings ---------- */
.settings-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.form-grid .span-2 { grid-column: span 2; }
.form-section { border-top: 1px solid var(--line-soft); margin-top: 17px; padding-top: 16px; }
.form-section > .eyebrow { margin-bottom: 4px; }
.form-section > p { font-size: 12px; color: var(--muted-2); margin-bottom: 13px; }
.hint { font-size: 11.4px; color: var(--muted-2); line-height: 1.5; }
.actions-row { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-top: 18px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-hero, .grid-live { grid-template-columns: minmax(0, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .settings-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; width: 250px; }
  .sidebar.open { transform: none; box-shadow: var(--shadow); }
  .app-main { margin-left: 0; }
  .mobile-menu { display: inline-grid; }
  .topbar { padding: 12px 16px; }
  .content { padding: 18px 16px 44px; }
  .auth-wrap { grid-template-columns: minmax(0, 1fr); }
  .auth-aside { display: none; }
  .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .feature-grid, .steps-grid { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-grid .span-2 { grid-column: span 1; }
  .land-nav .nav-actions .link-hide { display: none; }
}
@media (max-width: 520px) {
  .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .kpi .kpi-value { font-size: 22px; }
  .topbar-right .session-pill { display: none; }
  .toast-stack { left: 16px; right: 16px; max-width: none; }
}

/* utility */
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-6 { gap: 6px; }
.gap-10 { gap: 10px; }
.gap-14 { gap: 14px; }
.fs-12 { font-size: 12px; }
.fs-13 { font-size: 13px; }
.muted { color: var(--muted); }
.muted-2 { color: var(--muted-2); }
.w-full { width: 100%; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
