:root {
  --bg: #07090d;
  --bg-soft: #0a0e15;
  --card: #101620;
  --card-2: #141c28;
  --card-3: #182231;
  --line: #1e2a3a;
  --line-soft: #16202d;
  --text: #e9eff9;
  --muted: #8d9bb0;
  --muted-2: #64728a;
  --accent: #7c5cff;
  --accent-2: #a78bfa;
  --green: #34d399;
  --green-soft: rgba(52, 211, 153, 0.12);
  --red: #fb7185;
  --red-soft: rgba(251, 113, 133, 0.12);
  --amber: #fbbf24;
  --amber-soft: rgba(251, 191, 36, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --font: "Segoe UI", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", 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.025em; line-height: 1.12; }
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(124, 92, 255, 0.35); }

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

.hidden { display: none !important; }
.pos { color: var(--green) !important; }
.neg { color: var(--red) !important; }
.mono { font-family: var(--mono); }
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.micro-disclaimer { 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;
  letter-spacing: -0.01em;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-primary {
  background: linear-gradient(135deg, #8b6cff, #6d4dfa);
  color: #fff;
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.28);
}
.btn-primary:hover { background: linear-gradient(135deg, #9a7dff, #7a5bff); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: #32435c; background: rgba(255, 255, 255, 0.05); }
.btn-danger { background: var(--red); color: #25070d; box-shadow: 0 10px 30px rgba(251, 113, 133, 0.22); }
.btn-danger:hover { background: #ff8a9b; }
.btn-danger-ghost {
  background: var(--red-soft);
  border-color: rgba(251, 113, 133, 0.3);
  color: #ffa5b1;
}
.btn-danger-ghost:hover { border-color: rgba(251, 113, 133, 0.55); }
.btn-lg { min-height: 50px; padding: 0 24px; 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 0.15s, border-color 0.15s, background 0.15s;
}
.icon-btn:hover { color: var(--text); border-color: #33445d; background: rgba(255, 255, 255, 0.04); }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Tags */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.tag.live, .tag-live { border-color: rgba(52, 211, 153, 0.3); background: var(--green-soft); color: var(--green); }
.tag.short { border-color: rgba(251, 113, 133, 0.3); background: var(--red-soft); color: var(--red); }
.tag.paper { color: var(--accent-2); border-color: rgba(124, 92, 255, 0.3); background: rgba(124, 92, 255, 0.1); }
.tag.warn { color: var(--amber); border-color: rgba(251, 191, 36, 0.3); background: var(--amber-soft); }
.mini-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-soft);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
}
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }
.dot.pos { background: var(--green); box-shadow: 0 0 10px rgba(52, 211, 153, 0.7); }
.dot.accent { background: var(--accent); box-shadow: 0 0 10px rgba(124, 92, 255, 0.7); }
.dot.line { background: #4b5b73; }
.dot.pmh { background: var(--green); }
.dot.pml { background: var(--red); }
.dot.vwap { background: var(--amber); }
.dot.ema { background: var(--accent-2); }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.22), rgba(52, 211, 153, 0.12));
  border: 1px solid rgba(124, 92, 255, 0.42);
  color: #c3b3ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand-word { font-size: 19px; font-weight: 750; letter-spacing: -0.04em; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 12px; font-weight: 650; color: var(--muted); letter-spacing: 0.015em; }
.field > small { font-size: 11.5px; color: var(--muted-2); }
.field input, .field select {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.field select {
  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) 19px, calc(100% - 13px) 19px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
.field input::placeholder { color: #4d5b70; }
.field input:focus, .field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.16);
  background: #0c1119;
}
.field input:disabled { opacity: 0.6; }
.form-error {
  min-height: 18px;
  color: var(--red);
  font-size: 12.5px;
  line-height: 1.45;
}
.form-ok { color: var(--green); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ===== Landing ===== */
.landing-body, .auth-body {
  background:
    radial-gradient(ellipse 70% 55% at 18% -8%, rgba(124, 92, 255, 0.18), transparent 62%),
    radial-gradient(ellipse 55% 45% at 92% 8%, rgba(52, 211, 153, 0.09), transparent 60%),
    var(--bg);
  min-height: 100vh;
}
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 28px;
  backdrop-filter: blur(14px);
}
.landing-links { display: flex; gap: 26px; margin-left: auto; }
.landing-links a { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.landing-links a:hover { color: var(--text); }
.landing-actions { display: flex; gap: 10px; margin-left: 10px; }
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 54px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 28px 54px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}
.hero-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.hero h1 {
  margin: 22px 0 20px;
  font-size: clamp(46px, 6.6vw, 82px);
  font-weight: 780;
  letter-spacing: -0.06em;
  line-height: 0.98;
}
.hero h1 span {
  background: linear-gradient(100deg, #b6a6ff 10%, #7c5cff 45%, #34d399 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { max-width: 560px; color: var(--muted); font-size: 16.5px; line-height: 1.65; }
.hero-sub strong { color: var(--text); font-weight: 650; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.hero-facts { display: flex; gap: 34px; padding: 20px 0 22px; border-top: 1px solid var(--line-soft); }
.hero-facts div { display: flex; flex-direction: column; gap: 3px; }
.hero-facts strong { font-size: 23px; font-weight: 750; letter-spacing: -0.04em; }
.hero-facts span { color: var(--muted-2); font-size: 11.5px; }
.hero-visual { position: relative; min-width: 0; }
.market-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(20, 28, 40, 0.96), rgba(12, 17, 25, 0.98));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.market-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 80% 0%, rgba(124, 92, 255, 0.12), transparent 70%);
  pointer-events: none;
}
.market-card-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 22px 22px 8px; }
.market-card-head .ticker { display: block; color: var(--muted-2); font-size: 11px; font-weight: 750; letter-spacing: 0.1em; }
.market-card-head strong { display: block; margin-top: 5px; font-family: var(--mono); font-size: 25px; font-weight: 650; letter-spacing: -0.03em; }
.mini-chart { position: relative; height: 240px; padding: 4px 10px 0; }
.mini-chart svg { width: 100%; height: 100%; }
.mini-chart .price-line { fill: none; stroke: #a78bfa; stroke-width: 2.4; stroke-linecap: round; }
.mini-chart .lvl { stroke-width: 1; stroke-dasharray: 4 5; opacity: 0.55; }
.mini-chart .lvl.pmh { stroke: var(--green); }
.mini-chart .lvl.pml { stroke: var(--red); }
.mini-chart .entry-dot { fill: var(--green); stroke: #07120e; stroke-width: 3; }
.mini-chart .entry-line { stroke: var(--green); stroke-width: 1; stroke-dasharray: 3 5; opacity: 0.5; }
.chart-label {
  position: absolute;
  right: 18px;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
}
.pmh-label { top: 28%; color: var(--green); background: var(--green-soft); }
.pml-label { top: 64%; color: var(--red); background: var(--red-soft); }
.entry-label { top: 33%; right: auto; left: 46%; color: #b9aaff; background: rgba(124, 92, 255, 0.16); }
.trade-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-soft);
  margin-top: 4px;
}
.trade-strip div { padding: 13px 14px; border-right: 1px solid var(--line-soft); }
.trade-strip div:last-child { border-right: 0; }
.trade-strip span { display: block; color: var(--muted-2); font-size: 10px; text-transform: uppercase; letter-spacing: 0.07em; }
.trade-strip strong { display: block; margin-top: 4px; font-size: 12.5px; font-weight: 650; }
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(16, 22, 32, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.float-card strong { display: block; font-size: 12px; font-weight: 650; }
.float-card small { display: block; color: var(--muted-2); font-size: 10px; margin-top: 1px; }
.float-top { top: -20px; right: -16px; }
.float-bottom { bottom: -18px; left: -18px; }
.logos-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 22px 28px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted-2);
  font-size: 12px;
}
.logos-strip strong { color: #93a1b7; font-weight: 650; font-size: 12.5px; }
.logos-strip i { width: 3px; height: 3px; border-radius: 50%; background: #33415a; }
.section { max-width: 1200px; margin: 0 auto; padding: 84px 28px; }
.section-head { max-width: 620px; margin-bottom: 38px; }
.section-head h2 { margin: 12px 0 12px; font-size: clamp(30px, 4vw, 46px); font-weight: 750; }
.section-head p { color: var(--muted); font-size: 15.5px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature {
  position: relative;
  padding: 24px 20px 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 25, 36, 0.75), rgba(11, 15, 22, 0.55));
  transition: border-color 0.2s, transform 0.2s;
}
.feature:hover { border-color: #2c3b52; transform: translateY(-3px); }
.feature-num { display: block; color: var(--accent-2); font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; }
.feature h3 { margin: 42px 0 10px; font-size: 17.5px; font-weight: 700; }
.feature p { color: var(--muted); font-size: 13px; line-height: 1.65; }
.split-section { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; border-top: 1px solid var(--line-soft); }
.split-copy h2 { margin: 12px 0 16px; font-size: clamp(30px, 4vw, 46px); font-weight: 750; }
.split-copy > p { color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.check-list { display: flex; flex-direction: column; gap: 11px; margin: 24px 0 28px; }
.check-list li { position: relative; padding-left: 26px; color: #b9c4d4; font-size: 13.5px; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}
.split-panel {
  padding: 8px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 25, 36, 0.9), rgba(11, 15, 22, 0.8));
  box-shadow: var(--shadow);
}
.panel-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; }
.panel-row span { color: var(--muted); }
.panel-row strong { font-family: var(--mono); font-size: 13px; font-weight: 650; }
.panel-note { padding: 16px 0 18px; color: var(--muted-2); font-size: 11.5px; line-height: 1.6; }
.risk-section { padding-top: 0; }
.risk-card {
  position: relative;
  padding: 44px 44px 40px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(ellipse 50% 100% at 100% 0%, rgba(124, 92, 255, 0.12), transparent 70%),
    linear-gradient(180deg, #111823, #0b0f16);
  overflow: hidden;
}
.risk-card h2 { margin: 12px 0 14px; font-size: clamp(26px, 3.4vw, 38px); font-weight: 750; }
.risk-card p { max-width: 780px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.risk-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.landing-footer {
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 28px 42px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted-2);
  font-size: 12px;
}
.landing-footer p { margin-left: auto; }
.landing-footer > a { color: var(--muted); }
.landing-footer > a:hover { color: var(--text); }

/* ===== Auth ===== */
.auth-body { display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-wrap { width: 100%; max-width: 430px; }
.auth-brand { margin-bottom: 24px; }
.auth-card {
  padding: 34px 32px 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(18, 25, 36, 0.96), rgba(10, 14, 21, 0.98));
  box-shadow: var(--shadow);
}
.auth-card h1 { margin: 9px 0 8px; font-size: 30px; font-weight: 760; letter-spacing: -0.04em; }
.auth-sub { margin-bottom: 26px; color: var(--muted); font-size: 13.5px; }
.auth-card form { display: flex; flex-direction: column; gap: 15px; }
.auth-switch { margin-top: 22px; text-align: center; color: var(--muted); font-size: 13px; }
.auth-switch a { color: var(--accent-2); font-weight: 650; }
.auth-switch a:hover { text-decoration: underline; }
.auth-legal { margin-top: 22px; text-align: center; color: var(--muted-2); font-size: 11px; line-height: 1.6; }
.auth-legal-inline { margin-top: 18px; color: var(--muted-2); font-size: 10.5px; line-height: 1.6; }

/* ===== App shell ===== */
.app-body { background: var(--bg); }
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  width: 236px;
  padding: 22px 16px;
  border-right: 1px solid var(--line-soft);
  background: #080b11;
}
.sidebar .brand { padding: 0 8px 22px; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 11px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  transition: color 0.15s, background 0.15s;
}
.nav-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: 0.85; }
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.035); }
.nav-link.active { color: #dcd3ff; background: rgba(124, 92, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(124, 92, 255, 0.18); }
.nav-link.active svg { opacity: 1; }
.sidebar-bottom { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.user-chip { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.3), rgba(52, 211, 153, 0.15));
  border: 1px solid rgba(124, 92, 255, 0.3);
  color: #d3c8ff;
  font-size: 13px;
  font-weight: 700;
}
.user-meta { min-width: 0; }
.user-meta strong { display: block; font-size: 12.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; }
.user-meta small { display: block; color: var(--muted-2); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; }
.sidebar .icon-btn { width: 34px; height: 34px; flex: none; }
.app-main { flex: 1; min-width: 0; margin-left: 236px; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 30px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(7, 9, 13, 0.82);
  backdrop-filter: blur(14px);
}
.mobile-menu { display: none; }
.topbar-title { min-width: 0; }
.topbar-title h1 { margin-top: 2px; font-size: 21px; font-weight: 740; letter-spacing: -0.035em; }
.topbar-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 650;
  white-space: nowrap;
}
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); }
.status-pill.on i { background: var(--green); box-shadow: 0 0 9px var(--green); }
.status-pill.off i { background: var(--red); }
.status-pill.paper i { background: var(--accent); box-shadow: 0 0 9px var(--accent); }
.session-pill {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 10.5px;
  white-space: nowrap;
}
.content { max-width: 1420px; margin: 0 auto; padding: 26px 30px 52px; }

/* Cards & stats */
.card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 25, 36, 0.72), rgba(11, 15, 22, 0.62));
  padding: 22px;
  min-width: 0;
}
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.card-head h2 { margin-top: 4px; font-size: 17px; font-weight: 700; letter-spacing: -0.025em; }
.card-sub { color: var(--muted); font-size: 13px; line-height: 1.65; margin-top: -4px; }
.card-link { color: var(--accent-2); font-size: 12px; font-weight: 650; white-space: nowrap; }
.card-link:hover { text-decoration: underline; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.stats-grid.compact { margin-top: 16px; }
.stat-card {
  padding: 18px 19px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(19, 27, 39, 0.72), rgba(10, 14, 21, 0.6));
  min-width: 0;
}
.stat-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.stat-value { display: block; margin: 9px 0 4px; font-family: var(--mono); font-size: 24px; font-weight: 650; letter-spacing: -0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-foot { display: block; color: var(--muted-2); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress { height: 4px; margin: 8px 0 6px; border-radius: 99px; background: #1a2433; overflow: hidden; }
.progress span { display: block; width: 0; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--green)); transition: width 0.5s ease; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, 0.85fr); gap: 16px; margin-bottom: 16px; }
.dash-grid-2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.9fr); gap: 16px; }
.chart-card { display: flex; flex-direction: column; }
.chart-box { position: relative; flex: 1; min-height: 260px; }
.chart-box canvas { width: 100%; height: 100%; }
.chart-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  color: var(--muted-2);
  font-size: 12px;
  background: repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(255, 255, 255, 0.025) 40px);
  border-radius: 10px;
}
.chart-empty.hidden { display: none; }
.legend { display: flex; gap: 18px; margin-top: 12px; color: var(--muted-2); font-size: 10.5px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.bot-card .kv { display: flex; flex-direction: column; gap: 0; }
.kv > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted-2); font-size: 11.5px; }
.kv dd { font-family: var(--mono); font-size: 11.5px; color: #c3cddd; text-align: right; }
.bot-actions { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 12px; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table th {
  padding: 0 10px 9px;
  text-align: left;
  color: var(--muted-2);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 1px solid var(--line-soft);
}
.data-table td { padding: 10px; border-bottom: 1px solid rgba(30, 42, 58, 0.55); color: #b9c4d4; white-space: nowrap; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td.num { font-family: var(--mono); font-size: 11.5px; }
.data-table .empty-cell { padding: 26px 10px; text-align: center; color: var(--muted-2); }
.side-badge { display: inline-flex; padding: 2px 7px; border-radius: 4px; font-size: 9.5px; font-weight: 750; letter-spacing: 0.05em; }
.side-badge.long { color: var(--green); background: var(--green-soft); }
.side-badge.short { color: var(--red); background: var(--red-soft); }
.analysis-card .analysis-decision { padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 10px; background: rgba(255, 255, 255, 0.02); color: #c3cddd; font-size: 12.5px; line-height: 1.55; }
.level-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.level-grid > div { padding: 9px 11px; border: 1px solid var(--line-soft); border-radius: 9px; background: rgba(255, 255, 255, 0.018); }
.level-grid span { display: block; color: var(--muted-2); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.07em; }
.level-grid strong { display: block; margin-top: 2px; font-family: var(--mono); font-size: 12px; }
.next-session { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line-soft); }
.next-session span { color: var(--muted-2); font-size: 11px; }
.next-session strong { font-family: var(--mono); font-size: 11.5px; color: #c3cddd; }
.disclaimer-mini { margin-top: 6px; padding: 9px 11px; border-radius: 8px; background: var(--amber-soft); color: #d9b45f; font-size: 10px; line-height: 1.5; }

/* ===== Live ===== */
.live-toolbar { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 16px; }
.live-symbol { display: flex; align-items: center; gap: 8px; }
.live-symbol strong { font-size: 17px; font-weight: 720; letter-spacing: -0.02em; }
.live-price { display: flex; align-items: baseline; gap: 9px; }
.live-price span { font-family: var(--mono); font-size: 22px; font-weight: 650; }
.live-price small { font-family: var(--mono); font-size: 11.5px; }
.live-connection { display: flex; align-items: center; gap: 8px; margin-left: auto; color: var(--muted-2); font-size: 11px; }
.conn-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); }
.conn-dot.on { background: var(--green); box-shadow: 0 0 9px var(--green); }
.conn-dot.off { background: var(--red); }
.conn-dot.wait { background: var(--amber); animation: blink 1.1s infinite; }
@keyframes blink { 50% { opacity: 0.3; } }
.live-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 0.9fr); gap: 16px; margin-bottom: 16px; }
.live-chart-card { padding-bottom: 15px; }
.live-chart-box { min-height: 380px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted-2); font-size: 10px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.chart-foot { display: flex; justify-content: space-between; gap: 14px; margin-top: 10px; color: var(--muted-2); font-family: var(--mono); font-size: 10px; }
.analysis-panel { display: flex; flex-direction: column; }
.metric-list { display: flex; flex-direction: column; }
.metric-list > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.metric-list span { color: var(--muted-2); font-size: 11.5px; }
.metric-list strong { font-family: var(--mono); font-size: 11.5px; color: #c3cddd; text-align: right; }
.steps-wrap { margin-top: 16px; }
.steps { display: flex; flex-direction: column; gap: 7px; margin-top: 8px; }
.steps li { position: relative; padding-left: 19px; color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid #3a4a62;
}
.steps li.done::before { border-color: var(--green); background: var(--green); }
.steps li.active::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.live-bottom { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; }
.position-data { display: flex; flex-direction: column; gap: 14px; }
.position-price { display: flex; align-items: baseline; gap: 12px; }
.position-price strong { font-family: var(--mono); font-size: 30px; font-weight: 650; letter-spacing: -0.04em; }
.position-price small { color: var(--muted-2); font-family: var(--mono); font-size: 11px; }
.position-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.position-grid > div { padding: 10px; border: 1px solid var(--line-soft); border-radius: 9px; background: rgba(255, 255, 255, 0.018); }
.position-grid span { display: block; color: var(--muted-2); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.06em; }
.position-grid strong { display: block; margin-top: 3px; font-family: var(--mono); font-size: 12px; }
.position-meta { color: var(--muted-2); font-size: 10.5px; line-height: 1.55; }
.empty-state { padding: 26px 16px; border: 1px dashed var(--line); border-radius: 11px; text-align: center; color: var(--muted-2); font-size: 12px; }
.feed-card { display: flex; flex-direction: column; }
.event-feed { display: flex; flex-direction: column; gap: 0; max-height: 330px; overflow-y: auto; padding-right: 4px; }
.event-feed li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(30, 42, 58, 0.5); }
.event-feed li:last-child { border-bottom: 0; }
.event-time { flex: none; width: 42px; color: var(--muted-2); font-family: var(--mono); font-size: 9.5px; padding-top: 2px; }
.event-body { min-width: 0; }
.event-body strong { display: block; font-size: 11.5px; font-weight: 650; }
.event-body p { margin-top: 1px; color: var(--muted-2); font-size: 10.5px; line-height: 1.45; overflow-wrap: anywhere; }
.event-level { display: inline-block; width: 5px; height: 5px; border-radius: 50%; margin-right: 6px; vertical-align: middle; background: var(--muted-2); }
.event-level.info { background: var(--accent); }
.event-level.success { background: var(--green); }
.event-level.warning { background: var(--amber); }
.event-level.error { background: var(--red); }
.event-empty { color: var(--muted-2); font-size: 11.5px; padding: 14px 0; }

/* ===== Settings ===== */
.settings-root { display: flex; flex-direction: column; gap: 16px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.settings-card .stack { margin-top: 4px; }
.key-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.key-meta > div { padding: 9px 11px; border: 1px solid var(--line-soft); border-radius: 9px; background: rgba(255, 255, 255, 0.018); min-width: 0; }
.key-meta span { display: block; color: var(--muted-2); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.06em; }
.key-meta strong { display: block; margin-top: 2px; font-family: var(--mono); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.warning-note { margin-top: 12px; padding: 10px 12px; border: 1px solid rgba(251, 191, 36, 0.25); border-radius: 9px; background: var(--amber-soft); color: #d9b45f; font-size: 11px; line-height: 1.55; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 0; border-top: 1px solid var(--line-soft); }
.toggle-row strong { display: block; font-size: 12.5px; font-weight: 650; }
.toggle-row small { display: block; margin-top: 2px; color: var(--muted-2); font-size: 10.5px; line-height: 1.5; max-width: 430px; }
.switch { position: relative; flex: none; width: 42px; height: 24px; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: #1d2838; border: 1px solid var(--line); transition: background 0.18s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #6c7a90; transition: transform 0.18s, background 0.18s; }
.switch input:checked + span { background: rgba(124, 92, 255, 0.4); border-color: rgba(124, 92, 255, 0.55); }
.switch input:checked + span::after { transform: translateX(18px); background: #d9d0ff; }
.switch input:focus-visible + span { box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.25); }
.ack-box { padding: 13px 14px; border: 1px solid rgba(251, 113, 133, 0.22); border-radius: 10px; background: var(--red-soft); }
.checkbox { display: flex; gap: 10px; cursor: pointer; }
.checkbox input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.checkbox span { color: #d7b9bf; font-size: 11px; line-height: 1.55; }
.checkbox strong { color: #ffc4cd; }
.info-strip { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; margin-top: 14px; border: 1px solid var(--line-soft); border-radius: 9px; background: rgba(255, 255, 255, 0.018); }
.info-strip span { color: var(--muted-2); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; flex: none; }
.info-strip strong { color: #b9c4d4; font-size: 11px; font-weight: 600; text-align: right; }
.inline-form { display: flex; align-items: flex-end; gap: 10px; margin-top: 4px; }
.inline-form .field { flex: 1; }
.security-list { display: flex; flex-direction: column; gap: 7px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.security-list p { position: relative; padding-left: 16px; color: var(--muted-2); font-size: 10.5px; }
.security-list p::before { content: "•"; position: absolute; left: 2px; color: var(--accent-2); }

/* ===== Strategy ===== */
.strategy-root { display: flex; flex-direction: column; gap: 16px; }
.strategy-hero { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 34px; align-items: center; padding: 32px; }
.strategy-hero h2 { margin: 10px 0 12px; font-size: clamp(25px, 3.4vw, 36px); font-weight: 750; }
.strategy-hero p { color: var(--muted); font-size: 13.5px; line-height: 1.7; max-width: 640px; }
.schedule-card { display: flex; flex-direction: column; border: 1px solid var(--line-soft); border-radius: 12px; background: rgba(255, 255, 255, 0.018); }
.schedule-card > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); }
.schedule-card > div:last-child { border-bottom: 0; }
.schedule-card span { color: var(--muted-2); font-size: 10.5px; }
.schedule-card strong { font-family: var(--mono); font-size: 10.5px; color: #c3cddd; text-align: right; }
.rule-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rule-card { padding: 21px 19px; }
.rule-card h3 { margin: 30px 0 8px; font-size: 15px; font-weight: 680; }
.rule-card p { color: var(--muted); font-size: 12px; line-height: 1.65; }
.strategy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.strategy-grid .card-sub { font-size: 12px; }
.strategy-grid .info-strip { align-items: flex-start; }
.strategy-grid .info-strip strong { font-size: 10px; line-height: 1.5; }
.strategy-root .risk-card { padding: 30px 32px; }

/* Toast */
.toast-stack { position: fixed; z-index: 200; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; max-width: min(360px, calc(100vw - 40px)); }
.toast {
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 9px;
  background: #111824;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  color: #d4dcea;
  font-size: 12px;
  line-height: 1.45;
  animation: toast-in 0.22s ease;
}
.toast.success { border-left-color: var(--green); }
.toast.error { border-left-color: var(--red); }
.toast.warn { border-left-color: var(--amber); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* Responsive */
@media (max-width: 1180px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .rule-grid, .strategy-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid, .dash-grid-2, .live-grid, .live-bottom, .settings-grid { grid-template-columns: 1fr; }
  .hero { gap: 40px; }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-visual { max-width: 560px; width: 100%; margin: 0 auto; }
  .hero h1 { font-size: clamp(44px, 9vw, 70px); }
  .split-section { grid-template-columns: 1fr; gap: 34px; }
  .strategy-hero { grid-template-columns: 1fr; gap: 24px; }
  .sidebar { transform: translateX(-100%); transition: transform 0.22s ease; }
  .sidebar.open { transform: translateX(0); box-shadow: 30px 0 80px rgba(0, 0, 0, 0.5); }
  .app-main { margin-left: 0; }
  .mobile-menu { display: inline-grid; }
  .landing-links { display: none; }
  .landing-actions { margin-left: auto; }
}
@media (max-width: 720px) {
  .content { padding: 20px 16px 44px; }
  .topbar { padding: 14px 16px; gap: 12px; }
  .topbar-title h1 { font-size: 18px; }
  .topbar-right .session-pill { display: none; }
  .hero { padding: 30px 18px 44px; }
  .hero-facts { gap: 22px; }
  .section { padding: 58px 18px; }
  .landing-nav { padding: 16px 18px; }
  .landing-actions .btn-ghost { display: none; }
  .feature-grid, .rule-grid, .strategy-grid { grid-template-columns: 1fr; }
  .trade-strip { grid-template-columns: 1fr 1fr; }
  .trade-strip div:nth-child(2) { border-right: 0; }
  .trade-strip div:nth-child(1), .trade-strip div:nth-child(2) { border-bottom: 1px solid var(--line-soft); }
  .float-top { right: -6px; top: -14px; }
  .float-bottom { left: -6px; bottom: -14px; }
  .risk-card { padding: 28px 22px; }
  .landing-footer { flex-wrap: wrap; }
  .landing-footer p { margin-left: 0; width: 100%; }
  .stats-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .position-grid { grid-template-columns: 1fr 1fr; }
  .key-meta { grid-template-columns: 1fr; }
  .inline-form { flex-direction: column; align-items: stretch; }
  .live-connection { margin-left: 0; }
  .chart-legend { display: none; }
  .live-chart-box { min-height: 300px; }
  .auth-card { padding: 26px 20px; }
}
@media (max-width: 460px) {
  .brand-word { display: none; }
  .sidebar .brand-word { display: inline; }
  .hero-facts { flex-wrap: wrap; gap: 16px 28px; }
  .stat-value { font-size: 21px; }
  .btn { padding: 0 14px; }
}
