:root {
  --bg: #f5f8fc;
  --surface: #ffffff;
  --surface-soft: #eef4fb;
  --line: #cfd9e7;
  --text: #121d2f;
  --muted: #607087;
  --blue: #1478ff;
  --blue-dark: #075bd1;
  --green: #22a85a;
  --red: #d82d27;
  --shadow: 0 28px 80px rgba(2, 12, 31, .38);
  --soft-shadow: 0 14px 34px rgba(36, 55, 81, .16), inset 0 1px 0 rgba(255, 255, 255, .72);
  --panel-shadow: 0 12px 32px rgba(33, 50, 74, .12), inset 0 1px 0 rgba(255, 255, 255, .82);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  min-height: 100vh;
  padding: 28px;
  background:
    radial-gradient(circle at 8% 12%, rgba(103, 157, 255, .38) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, .65) 0 1px, transparent 2px),
    radial-gradient(circle at 54% 72%, rgba(255, 255, 255, .45) 0 1px, transparent 2px),
    radial-gradient(circle at 84% 12%, rgba(173, 104, 255, .44), transparent 34%),
    radial-gradient(circle at 20% 88%, rgba(32, 111, 220, .28), transparent 42%),
    linear-gradient(135deg, #0a1831 0%, #15234b 44%, #351c62 100%);
  background-attachment: fixed;
}

body.menu-lock {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.site-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding-top: 62px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(220, 229, 240, .94);
  background:
    radial-gradient(circle at 70% 26%, rgba(188, 218, 255, .58), transparent 30%),
    radial-gradient(circle at 36% 16%, rgba(255, 255, 255, .95), transparent 34%),
    linear-gradient(180deg, rgba(250, 253, 255, .96), rgba(237, 244, 252, .96));
  min-height: calc(100vh - 56px);
  box-shadow: var(--shadow);
}

.site-shell::before,
.dashboard-layout::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 62px;
  z-index: 50;
  border-bottom: 1px solid rgba(157, 169, 184, .58);
  background:
    radial-gradient(circle at 22px 23px, #ff6259 0 6px, transparent 7px),
    radial-gradient(circle at 44px 23px, #ffbd2e 0 6px, transparent 7px),
    radial-gradient(circle at 66px 23px, #28c840 0 6px, transparent 7px),
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(210, 218, 229, .86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .94);
}

.site-shell::after,
.dashboard-layout::after {
  content: "tradebot.app";
  position: absolute;
  top: 16px;
  left: 255px;
  right: 44px;
  height: 30px;
  z-index: 51;
  display: grid;
  place-items: center;
  color: #424d5d;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(153, 166, 184, .62);
  border-radius: 6px;
  background: linear-gradient(180deg, #fff, #eef3f9);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .08), 0 1px 0 rgba(255, 255, 255, .84);
}

.topbar {
  min-height: 82px;
  padding: 0 clamp(20px, 5vw, 64px);
  display: flex;
  align-items: center;
  gap: 34px;
  border-bottom: 1px solid rgba(203, 214, 228, .82);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 253, 255, .62);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--blue);
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.2vw, 34px);
  flex: 1;
  color: #202b3d;
  font-weight: 650;
}

.main-nav a {
  transition: color .2s ease;
}

.main-nav a:hover {
  color: var(--blue);
}

.topbar-actions {
  display: flex;
  gap: 12px;
}

.button {
  border: 1px solid rgba(142, 157, 178, .44);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 7px;
  padding: 0 22px;
  font-weight: 750;
  cursor: pointer;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .4);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, filter .2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  text-shadow: 0 -1px 0 rgba(0, 34, 112, .38);
  border-color: #0864e7;
  background: linear-gradient(180deg, #49a0ff 0%, #086dff 45%, #0755c9 100%);
  box-shadow: 0 13px 28px rgba(20, 120, 255, .38), inset 0 1px 0 rgba(255, 255, 255, .58), inset 0 -2px 0 rgba(4, 49, 143, .28);
}

.button-ghost,
.button-soft {
  color: #173b68;
  background: linear-gradient(180deg, #ffffff 0%, #edf3f9 48%, #dce6f1 100%);
  border-color: #b9c7d8;
  box-shadow: var(--soft-shadow);
}

.button-large {
  min-height: 56px;
  padding-inline: 26px 18px;
  font-size: 17px;
}

.button-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .28);
}

.hero {
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 54px);
  padding: clamp(42px, 6vw, 78px) clamp(20px, 5vw, 64px) 42px;
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  right: 3%;
  bottom: 2%;
  width: 54%;
  height: 46%;
  border: 1px solid rgba(20, 120, 255, .12);
  border-radius: 50%;
  transform: rotate(-18deg);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(38px, 3.6vw, 48px);
  line-height: 1.12;
  letter-spacing: 0;
  margin-bottom: 28px;
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 590px;
}

.hero-lead {
  color: #46566c;
  font-size: 19px;
  line-height: 1.62;
  max-width: 560px;
  margin-bottom: 34px;
}

.hero-actions {
  display: grid;
  justify-items: start;
  gap: 20px;
}

.security-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-weight: 650;
}

.hero-visual {
  min-height: 430px;
  position: relative;
  perspective: 1200px;
  z-index: 1;
}

.hero-image-wrap {
  display: grid;
  place-items: center;
  min-height: 500px;
}

.hero-image-wrap img {
  width: min(760px, 118%);
  max-width: none;
  height: auto;
  display: block;
  border-radius: 18px;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 72% 62% at 54% 52%, #000 58%, rgba(0, 0, 0, .82) 72%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 62% at 54% 52%, #000 58%, rgba(0, 0, 0, .82) 72%, transparent 100%);
  filter: drop-shadow(0 24px 34px rgba(17, 50, 91, .18));
}

.terminal-card {
  width: min(520px, 100%);
  min-height: 300px;
  margin-left: auto;
  padding: 28px 30px 24px;
  border-radius: 24px;
  color: #e7f3ff;
  background:
    linear-gradient(155deg, rgba(35, 63, 107, .96), rgba(12, 31, 62, .97)),
    radial-gradient(circle at 12% 12%, rgba(255, 255, 255, .16), transparent 36%);
  box-shadow: 0 34px 70px rgba(13, 40, 75, .34), inset 0 1px 0 rgba(255, 255, 255, .24);
  border: 1px solid rgba(129, 183, 255, .32);
  transform: rotateY(-11deg) rotateX(5deg) rotateZ(-4deg);
}

.terminal-top,
.window-icons {
  display: flex;
  align-items: center;
}

.terminal-top {
  justify-content: space-between;
  color: #c6d7ec;
}

.window-icons {
  gap: 12px;
}

.window-icons span {
  width: 13px;
  height: 2px;
  background: #dfefff;
  border-radius: 999px;
}

.window-icons span:last-child {
  transform: rotate(45deg);
}

.terminal-card strong {
  display: block;
  color: #4ce985;
  font-size: 28px;
  margin: 12px 0 2px;
}

.terminal-card small {
  color: #bed1e6;
  font-size: 15px;
}

.profit-chart {
  width: 100%;
  height: 186px;
  margin-top: 2px;
}

.grid-line {
  stroke: rgba(255, 255, 255, .08);
  stroke-width: 1;
}

.chart-fill {
  fill: url(#chartFill);
}

.chart-line {
  fill: none;
  stroke: #5cf18d;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 12px rgba(92, 241, 141, .5));
}

.range-tabs {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.range-tabs span {
  min-height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #d9e7f6;
  background: rgba(0, 0, 0, .18);
  font-size: 13px;
  font-weight: 700;
}

.range-tabs .active {
  background: rgba(20, 120, 255, .56);
  color: #fff;
}

.bot-card {
  position: absolute;
  left: 5%;
  bottom: 10px;
  width: min(390px, 76%);
  min-height: 150px;
  padding: 24px;
  border-radius: 18px;
  color: #f6fbff;
  background: linear-gradient(150deg, rgba(28, 48, 83, .98), rgba(8, 21, 45, .98));
  border: 1px solid rgba(125, 181, 255, .35);
  box-shadow: 0 20px 45px rgba(8, 23, 47, .38);
  transform: rotateZ(5deg);
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 14px;
}

.status-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #32d978;
  box-shadow: 0 0 0 8px rgba(50, 217, 120, .16);
  margin-top: 4px;
}

.bot-card span {
  display: block;
  color: #c7d5e8;
  margin-top: 5px;
}

.bot-metrics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.bot-metrics b {
  display: block;
  color: #51ec89;
  font-size: 18px;
  margin-top: 5px;
}

.coin {
  position: absolute;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 34px;
  font-weight: 900;
  box-shadow: 0 18px 32px rgba(30, 67, 119, .26), inset 0 2px 0 rgba(255, 255, 255, .55);
  z-index: 4;
}

.coin-btc {
  top: 0;
  left: 30%;
  background: linear-gradient(155deg, #ffbd45, #f08a18);
}

.coin-eth {
  top: 175px;
  left: 2%;
  background: linear-gradient(155deg, #6aa4ff, #194eb4);
}

.coin-usdt {
  right: 0;
  top: 208px;
  background: linear-gradient(155deg, #5de1a4, #13966c);
}

.tools-section,
.pricing-section,
.faq-section,
.dashboard-preview-section,
.blog-section {
  padding: 34px clamp(20px, 5vw, 64px) 28px;
}

.section-heading {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 32px;
}

.section-heading h2 {
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.18;
  margin-bottom: 0;
}

.feature-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.feature-card,
.plan,
.faq-list details,
.panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(246, 250, 255, .9));
  border: 1px solid rgba(189, 202, 219, .88);
  border-radius: 8px;
  box-shadow: var(--panel-shadow);
}

.feature-card {
  min-height: 210px;
  padding: 28px;
}

.feature-card h3 {
  margin: 20px 0 10px;
  font-size: 20px;
}

.feature-card p,
.plan p,
.faq-list p {
  color: #4f6077;
  line-height: 1.55;
  margin-bottom: 0;
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 900;
}

.bot-icon {
  color: var(--blue);
  background: #e5f0ff;
}

.chart-icon {
  color: #20a956;
  background: #e6f8ee;
}

.shield-icon {
  color: #6755dc;
  background: #eeeafe;
}

.stats-band {
  margin: 24px 0 0;
  padding: 26px clamp(20px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 0%, rgba(31, 137, 255, .22), transparent 28%),
    linear-gradient(140deg, #14263f, #071123);
  border-top: 1px solid rgba(255, 255, 255, .18);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 -1px 0 rgba(5, 14, 30, .12);
}

.stats-band div {
  padding: 10px 28px;
  border-left: 1px solid rgba(255, 255, 255, .08);
}

.stats-band div:first-child {
  border-left: 0;
}

.stats-band strong {
  display: block;
  font-size: 30px;
  margin-bottom: 5px;
}

.stats-band span {
  color: #cbd8eb;
}

.dashboard-preview-section {
  padding-top: 56px;
}

.dashboard-preview-link {
  display: block;
  max-width: 1180px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(190, 205, 224, .86);
  box-shadow: 0 26px 70px rgba(30, 58, 96, .18);
  background: #fff;
}

.dashboard-preview-link img {
  width: 100%;
  display: block;
}

.plan {
  padding: 26px;
}

.plan h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.plan strong {
  display: block;
  font-size: 38px;
  margin-top: 26px;
}

.plan strong span {
  color: var(--muted);
  font-size: 15px;
}

.plan-accent {
  border-color: rgba(20, 120, 255, .52);
  box-shadow: 0 18px 46px rgba(20, 120, 255, .18);
}

.faq-list {
  display: grid;
  gap: 14px;
  max-width: 880px;
  margin: 0 auto;
}

.blog-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-list details {
  padding: 22px 24px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
}

.faq-list p {
  padding-top: 14px;
}

.footer {
  padding: 32px clamp(20px, 5vw, 64px);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #53647c;
  border-top: 1px solid var(--line);
}

.footer span:first-child,
.footer a {
  color: var(--text);
  font-weight: 800;
}

.dashboard-body {
  background:
    radial-gradient(circle at 8% 12%, rgba(103, 157, 255, .38) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, .65) 0 1px, transparent 2px),
    radial-gradient(circle at 54% 72%, rgba(255, 255, 255, .45) 0 1px, transparent 2px),
    radial-gradient(circle at 84% 12%, rgba(173, 104, 255, .44), transparent 34%),
    radial-gradient(circle at 20% 88%, rgba(32, 111, 220, .28), transparent 42%),
    linear-gradient(135deg, #0a1831 0%, #15234b 44%, #351c62 100%);
  background-attachment: fixed;
}

.is-hidden {
  display: none !important;
}

.auth-screen {
  min-height: calc(100vh - 56px);
  display: grid;
  place-items: center;
  padding: 24px;
  background: transparent;
}

.auth-card {
  width: min(520px, 100%);
  padding: 34px;
  border-radius: 12px;
  border: 1px solid rgba(190, 205, 224, .86);
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}

.auth-card h1 {
  font-size: 32px;
  margin: 12px 0 0;
}

.auth-card p {
  color: #54657b;
  line-height: 1.55;
  margin-bottom: 0;
}

.auth-card label {
  display: grid;
  gap: 8px;
  color: #2b394e;
  font-weight: 750;
}

.auth-card input {
  min-height: 52px;
  border: 1px solid #cbd8e8;
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  color: #142033;
}

.auth-error {
  min-height: 20px;
  color: var(--red);
  font-size: 14px;
}

.dashboard-layout {
  width: min(1440px, 100%);
  min-height: calc(100vh - 56px);
  margin: 0 auto;
  padding-top: 62px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(220, 229, 240, .94);
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  background:
    radial-gradient(circle at 88% 16%, rgba(255, 255, 255, .9), transparent 24%),
    linear-gradient(180deg, rgba(250, 253, 255, .96), rgba(238, 244, 252, .96));
  box-shadow: var(--shadow);
}

.dashboard-layout > * {
  position: relative;
  z-index: 1;
}

.mobile-menu-button,
.mobile-menu-backdrop {
  display: none;
}

.mobile-menu-button {
  width: 46px;
  height: 42px;
  border: 1px solid #b9c7d8;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #edf3f9 48%, #dce6f1 100%);
  box-shadow: var(--soft-shadow);
  place-items: center;
  gap: 4px;
  padding: 9px 10px;
  cursor: pointer;
}

.mobile-menu-button span {
  width: 21px;
  height: 2px;
  border-radius: 999px;
  background: #173b68;
}

.sidebar {
  min-height: calc(100vh - 118px);
  padding: 34px 26px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(249, 252, 255, .78), rgba(235, 242, 250, .78));
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: sticky;
  top: 0;
}

.side-nav {
  display: grid;
  gap: 8px;
}

.side-nav a,
.sidebar-footer a {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  border-radius: 7px;
  color: #2a374b;
  font-weight: 700;
}

.side-nav a.active {
  color: #fff;
  background: linear-gradient(180deg, #72b2ff 0%, #1d80ff 48%, #1362dc 100%);
  box-shadow: 0 12px 24px rgba(20, 120, 255, .28), inset 0 1px 0 rgba(255, 255, 255, .52), inset 0 -2px 0 rgba(5, 64, 164, .24);
}

.side-nav span,
.sidebar-footer span {
  width: 22px;
  text-align: center;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

.dashboard-main {
  padding: 30px 28px 34px;
}

.dashboard-header {
  min-height: 68px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
  margin-bottom: 28px;
}

.dashboard-header > div:first-child {
  display: flex;
  align-items: center;
  gap: 20px;
}

.dashboard-header h1 {
  font-size: 30px;
  margin: 0;
}

.profile-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.icon-button,
.user-button {
  border: 0;
  background: transparent;
  color: #172238;
  cursor: pointer;
}

.icon-button {
  width: 44px;
  height: 44px;
  font-size: 25px;
}

.user-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #8598ad;
  background: linear-gradient(180deg, #fff, #e3ebf5);
  border: 1px solid #cdd9e7;
  font-size: 18px;
  line-height: 1;
  text-shadow: 0 0 0 transparent;
  transition: color .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.avatar.status-running {
  color: #1fa65a;
  border-color: rgba(31, 166, 90, .28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78), 0 0 0 6px rgba(31, 166, 90, .08);
  text-shadow: 0 0 12px rgba(31, 166, 90, .72);
}

.avatar.status-attention {
  color: #f0a21a;
  border-color: rgba(240, 162, 26, .38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78), 0 0 0 6px rgba(240, 162, 26, .1);
  text-shadow: 0 0 12px rgba(240, 162, 26, .82);
  animation: profileStatusPulse 1s infinite;
}

.avatar.status-stopped {
  color: #d82d27;
  border-color: rgba(216, 45, 39, .28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78), 0 0 0 6px rgba(216, 45, 39, .08);
  text-shadow: 0 0 10px rgba(216, 45, 39, .62);
}

@keyframes profileStatusPulse {
  0%,
  100% {
    transform: translateY(0);
    filter: brightness(1);
  }
  50% {
    transform: translateY(-1px);
    filter: brightness(1.16);
  }
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 22px;
}

.panel {
  padding: 24px;
  backdrop-filter: blur(12px);
}

.panel h2 {
  font-size: 18px;
  margin: 0;
}

.panel-header,
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

select,
.amount-input {
  border: 1px solid #c2cfdf;
  background: linear-gradient(180deg, #fff, #eaf1f8);
  border-radius: 7px;
  box-shadow: inset 0 1px 2px rgba(20, 34, 55, .08), 0 1px 0 rgba(255, 255, 255, .7);
}

select {
  min-height: 42px;
  padding: 0 14px;
  color: #243248;
}

.chart-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.chart-panel {
  grid-column: span 7;
}

.result-panel {
  grid-column: span 5;
}

.mode-panel,
.control-panel {
  grid-column: span 6;
}

.limit-panel,
.help-panel {
  grid-column: span 4;
}

.dashboard-chart {
  position: relative;
  min-height: 330px;
}

.dashboard-chart svg {
  width: 100%;
  height: 330px;
}

.chart-tooltip {
  position: absolute;
  right: 8px;
  top: 46px;
  z-index: 2;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid #cbd8e7;
  box-shadow: var(--soft-shadow);
  color: #34435a;
  font-size: 13px;
  transform: translateX(-50%);
  pointer-events: none;
}

.chart-tooltip small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.dash-grid {
  stroke: #dce5ef;
  stroke-width: 1;
  stroke-dasharray: 5 5;
}

.dash-area {
  fill: url(#dashFill);
}

.dash-line {
  fill: none;
  stroke: #35b866;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-cursor-line {
  stroke: rgba(20, 120, 255, .42);
  stroke-width: 2;
  stroke-dasharray: 5 5;
}

.chart-cursor-dot {
  fill: #fff;
  stroke: #1478ff;
  stroke-width: 4;
  filter: drop-shadow(0 6px 12px rgba(20, 120, 255, .32));
}

.axis-labels {
  fill: #6d7c90;
  font-size: 14px;
}

.profit-number {
  display: block;
  font-size: 40px;
  margin: 16px 0 4px;
}

.profit-number span {
  font-size: 18px;
}

.profit-percent {
  color: var(--green);
  font-size: 18px;
  font-weight: 800;
}

.result-list {
  margin: 28px 0 0;
}

.result-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}

.result-list dt {
  color: #46556c;
}

.result-list dd {
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.hint {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #7b8ba0;
  border: 1px solid #aebdce;
  font-size: 13px;
  font-weight: 900;
}

.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.logic-mode-indicator {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid #c2cfdf;
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 10%, rgba(20, 120, 255, .14), transparent 36%),
    linear-gradient(180deg, #ffffff, #eef4fa);
  box-shadow: var(--panel-shadow);
}

.logic-mode-indicator span,
.logic-mode-indicator small,
.logic-mode-indicator em {
  display: block;
}

.logic-mode-indicator span {
  color: #607087;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.logic-mode-indicator strong {
  display: block;
  margin: 6px 0;
  color: #10213b;
  font-size: 34px;
  line-height: 1.08;
}

.logic-mode-indicator small {
  color: #41536c;
  font-weight: 750;
}

.logic-mode-indicator em {
  margin-top: 8px;
  color: #607087;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.mode-card {
  min-height: 128px;
  padding: 22px;
  text-align: left;
  border: 1px solid #c2cfdf;
  background: linear-gradient(180deg, #fff, #eef4fa);
  color: #29364b;
  cursor: pointer;
}

.mode-card:first-child {
  border-radius: 8px 0 0 8px;
}

.mode-card:last-child {
  border-radius: 0 8px 8px 0;
  border-left: 0;
}

.mode-card.active {
  border-color: var(--blue);
  background: linear-gradient(180deg, #f4f9ff, #e6f1ff);
  box-shadow: inset 0 0 0 1px var(--blue), 0 12px 24px rgba(20, 120, 255, .12);
}

.mode-icon {
  display: block;
  color: var(--blue);
  font-size: 32px;
  margin-bottom: 8px;
}

.mode-card b,
.mode-card small {
  display: block;
}

.mode-card small {
  color: #51637a;
  line-height: 1.45;
  margin-top: 10px;
}

.control-panel {
  display: grid;
  gap: 18px;
}

.button-success {
  color: #fff;
  text-shadow: 0 -1px 0 rgba(7, 93, 39, .4);
  border-color: #14984a;
  background: linear-gradient(180deg, #66e08c 0%, #22b957 48%, #0d903d 100%);
  box-shadow: 0 12px 24px rgba(34, 168, 90, .26), inset 0 1px 0 rgba(255, 255, 255, .48), inset 0 -2px 0 rgba(4, 95, 38, .24);
}

.button-danger {
  color: #fff;
  text-shadow: 0 -1px 0 rgba(128, 20, 18, .42);
  border-color: #c8231d;
  background: linear-gradient(180deg, #ff837c 0%, #ed3f39 48%, #c91813 100%);
  box-shadow: 0 12px 24px rgba(216, 45, 39, .24), inset 0 1px 0 rgba(255, 255, 255, .48), inset 0 -2px 0 rgba(124, 14, 12, .24);
}

.amount-input {
  min-height: 54px;
  display: grid;
  grid-template-columns: 1fr 74px;
  overflow: hidden;
}

.amount-input input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0 16px;
  font-size: 21px;
  color: #1d2a3e;
}

.amount-input span {
  display: grid;
  place-items: center;
  border-left: 1px solid #cbd8e8;
  color: #233148;
  font-weight: 800;
}

.limit-panel p,
.help-panel p {
  color: #5b6c82;
  margin: 14px 0 0;
}

.progress {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #d5dee9;
  margin-top: 18px;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #137dff, #54a7ff);
}

.help-panel {
  display: grid;
  align-content: start;
  gap: 18px;
}

.summary-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(247, 250, 254, .9));
  border: 1px solid rgba(190, 205, 224, .88);
  border-radius: 8px;
  box-shadow: var(--panel-shadow);
}

.summary-strip div {
  padding: 22px 26px;
  border-left: 1px solid var(--line);
}

.summary-strip div:first-child {
  border-left: 0;
}

.summary-strip span {
  display: block;
  color: #607087;
  margin-bottom: 10px;
}

.summary-strip strong {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 18px;
}

.summary-strip i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #62c984;
}

#bot-status.running i {
  background: #1fa65a;
  box-shadow: 0 0 0 6px rgba(31, 166, 90, .12);
}

#bot-status.running {
  color: var(--green);
}

.data-panel {
  margin-top: 22px;
}

.data-output {
  overflow: auto;
  max-height: 62vh;
}

.data-output pre {
  white-space: pre-wrap;
  margin: 0;
  color: #243248;
  line-height: 1.55;
}

.data-output table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-output th,
.data-output td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-output th {
  color: #1e2d42;
  background: #f3f7fc;
}

.book-view {
  min-width: 780px;
  color: #251b12;
}

.book-cover {
  min-height: 142px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  padding: 26px 30px;
  border: 1px solid rgba(110, 73, 41, .5);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .16), transparent 18%, rgba(0, 0, 0, .12) 19%, transparent 21%),
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, .2), transparent 30%),
    linear-gradient(135deg, #7b4c28 0%, #4f2d18 52%, #2c1b12 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -12px 28px rgba(0, 0, 0, .18), 0 18px 36px rgba(43, 27, 18, .18);
}

.book-cover span,
.book-cover small {
  display: block;
  color: rgba(255, 247, 226, .82);
  font-weight: 800;
}

.book-cover strong {
  display: block;
  margin: 8px 0;
  color: #fff8df;
  font-size: 34px;
  letter-spacing: .2px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .26);
}

.book-stamp {
  align-self: flex-start;
  border: 1px solid rgba(255, 238, 184, .34);
  border-radius: 7px;
  padding: 8px 11px;
  color: #ffeab1;
  background: rgba(24, 14, 8, .24);
  font-weight: 800;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.book-card {
  padding: 18px;
  border: 1px solid rgba(148, 120, 82, .38);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(130, 88, 43, .06) 0 1px, transparent 1px 32px),
    linear-gradient(180deg, #fffaf0, #f0e3c9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82), 0 12px 24px rgba(70, 48, 25, .1);
}

.book-card span,
.book-card small {
  display: block;
  color: #775f3f;
  font-weight: 800;
}

.book-card strong {
  display: block;
  margin: 7px 0;
  color: #2b2117;
  font-size: 24px;
}

.ledger-sheet {
  overflow: auto;
  border: 1px solid rgba(148, 120, 82, .36);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(211, 53, 53, .22) 0 1px, transparent 1px 74px),
    repeating-linear-gradient(180deg, #fffdf6 0 42px, #e8daba 43px 44px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 16px 30px rgba(70, 48, 25, .09);
}

.ledger-sheet table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.ledger-sheet th,
.ledger-sheet td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(157, 126, 82, .26);
  text-align: left;
}

.ledger-sheet th {
  color: #3a2a1a;
  background: rgba(222, 199, 155, .64);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.positions-sheet {
  max-width: 100%;
}

.positions-table {
  min-width: 900px;
  table-layout: fixed;
}

.positions-table th,
.positions-table td {
  overflow-wrap: anywhere;
  word-break: break-word;
  vertical-align: middle;
}

.positions-table th:nth-child(1),
.positions-table td:nth-child(1) {
  width: 150px;
}

.positions-table th:nth-child(2),
.positions-table td:nth-child(2) {
  width: 86px;
}

.positions-table th:nth-child(3),
.positions-table td:nth-child(3),
.positions-table th:nth-child(4),
.positions-table td:nth-child(4),
.positions-table th:nth-child(5),
.positions-table td:nth-child(5),
.positions-table th:nth-child(6),
.positions-table td:nth-child(6) {
  width: 104px;
  white-space: nowrap;
}

.positions-table th:nth-child(7),
.positions-table td:nth-child(7) {
  width: 128px;
}

.positions-table th:nth-child(8),
.positions-table td:nth-child(8) {
  width: 150px;
}

.grossbuch .ledger-sheet {
  background:
    linear-gradient(90deg, rgba(36, 94, 151, .24) 0 1px, transparent 1px 78px),
    repeating-linear-gradient(180deg, #fbfcff 0 40px, #d9e4ef 41px 42px);
}

.book-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.live-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #607087;
  font-size: 12px;
  font-weight: 850;
}

.live-meta span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22a85a;
  animation: signalLivePulse 1.4s infinite;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-row button,
.strategy-hero select,
.ops-panel select,
.book-field input {
  min-height: 38px;
  border: 1px solid rgba(139, 157, 178, .62);
  border-radius: 7px;
  padding: 0 12px;
  color: #253247;
  background: linear-gradient(180deg, #fff, #edf2f7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
  font-weight: 800;
}

.choice-row button {
  cursor: pointer;
}

.choice-row button.active {
  color: #fff;
  border-color: #0e67dc;
  background: linear-gradient(180deg, #55a7ff, #116ce7);
  text-shadow: 0 -1px 0 rgba(0, 40, 110, .36);
}

.ops-grid,
.settings-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ops-panel,
.strategy-card,
.strategy-hero {
  border: 1px solid rgba(184, 197, 214, .82);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f2f6fb);
  box-shadow: var(--panel-shadow);
}

.ops-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
}

.ops-panel h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.runtime-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.runtime-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.runtime-list dt {
  color: var(--muted);
}

.runtime-list dd {
  margin: 0;
  font-weight: 850;
}

.bot-orb {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  font-size: 28px;
}

.bot-orb.status-running {
  color: #61e694;
  box-shadow: 0 0 24px rgba(97, 230, 148, .42);
}

.bot-orb.status-attention {
  color: #ffc64c;
  box-shadow: 0 0 24px rgba(255, 198, 76, .5);
  animation: profileStatusPulse 1s infinite;
}

.bot-orb.status-stopped {
  color: #ff706a;
  box-shadow: 0 0 24px rgba(255, 112, 106, .38);
}

.strategy-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 20px;
  margin-bottom: 14px;
}

.strategy-hero span,
.strategy-hero small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.strategy-hero strong {
  display: block;
  margin: 6px 0;
  font-size: 24px;
}

.strategy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.strategy-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px;
}

.strategy-card strong {
  display: block;
  font-size: 16px;
}

.strategy-card small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
  font-weight: 800;
}

.book-switch {
  min-width: 78px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  border: 1px solid #c9a9a5;
  border-radius: 999px;
  padding: 0 10px;
  color: #7a2b25;
  background: linear-gradient(180deg, #fff, #f7e9e6);
  font-weight: 850;
  cursor: pointer;
}

.book-switch span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #d82d27;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}

.book-switch.on {
  color: #13683a;
  border-color: #a9d6bb;
  background: linear-gradient(180deg, #fff, #e9f8ef);
}

.book-switch.on span {
  background: #22a85a;
}

.book-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}

.book-field input {
  width: 100%;
  color: #182538;
}

.settings-flags {
  display: grid;
  gap: 10px;
}

.settings-flags div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.admin-create-user {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(130px, 1fr) minmax(130px, 1fr) minmax(180px, 1.4fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}

.admin-create-user div {
  min-width: 0;
}

.admin-create-user span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.admin-create-user input,
.admin-create-user select {
  width: 100%;
  min-height: 38px;
  border: 1px solid #c5d2e1;
  border-radius: 7px;
  padding: 0 10px;
  background: #fff;
}

.limit-request-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-registry {
  display: grid;
  grid-template-columns: minmax(160px, .9fr) minmax(260px, 2fr) minmax(260px, 2fr) minmax(90px, .5fr);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 18px;
}

.admin-registry div {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-registry span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.admin-registry code {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
}

.admin-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-kpis div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f3f7fc);
}

.admin-kpis span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.admin-kpis strong {
  font-size: 20px;
}

.admin-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-table {
  min-width: 1040px;
}

.admin-wallets .book-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wallet-table {
  min-width: 1420px;
}

.wallet-table small {
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 900px) {
  .admin-wallets .book-grid {
    grid-template-columns: 1fr;
  }
}

.reward-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
}

.reward-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-mode-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 150px;
}

@media (max-width: 980px) {
  .admin-create-user {
    grid-template-columns: 1fr 1fr;
  }

  .admin-registry {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .admin-create-user,
  .admin-registry {
    grid-template-columns: 1fr;
  }
}

.button-mini {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

.table-link {
  border: 0;
  padding: 0;
  color: var(--blue);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.mini-toggle {
  min-height: 30px;
  min-width: 54px;
  border: 1px solid #c5d2e1;
  border-radius: 7px;
  color: #5a2b2b;
  background: linear-gradient(180deg, #fff, #f4e9e9);
  font-weight: 800;
  cursor: pointer;
}

.mini-toggle.on {
  color: #14683a;
  border-color: #a9d6bb;
  background: linear-gradient(180deg, #f8fffb, #e9f8ef);
}

.signal-monitor {
  min-width: 760px;
}

.signal-toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 0 14px;
  background: linear-gradient(180deg, rgba(248, 251, 255, .98), rgba(248, 251, 255, .82));
}

.signal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.signal-tabs button {
  min-height: 34px;
  border: 1px solid #c5d2e1;
  border-radius: 7px;
  padding: 0 12px;
  background: linear-gradient(180deg, #fff, #f2f6fb);
  color: #26364f;
  font-weight: 800;
  cursor: pointer;
}

.signal-tabs button.active {
  color: #075fcc;
  border-color: rgba(19, 125, 255, .42);
  background: linear-gradient(180deg, #eef6ff, #dfeeff);
  box-shadow: 0 8px 18px rgba(19, 125, 255, .14);
}

.signal-tabs span {
  display: inline-flex;
  margin-left: 8px;
  color: var(--muted);
}

.signal-live {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  color: #536379;
  font-size: 12px;
  font-weight: 850;
}

.signal-live > span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22a85a;
  box-shadow: 0 0 0 0 rgba(34, 168, 90, .42);
  animation: signalLivePulse 1.4s infinite;
}

.signal-live b {
  color: #14683a;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.signal-live small {
  min-width: 64px;
  color: #607087;
}

.push-control {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #c5d2e1;
  border-radius: 7px;
  padding: 3px 8px;
  background: linear-gradient(180deg, #fff, #f2f6fb);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.push-master {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  padding: 0 8px;
  color: #26364f;
  background: transparent;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.push-master.on {
  color: #075fcc;
  background: linear-gradient(180deg, #eef6ff, #dfeeff);
}

.push-master em {
  color: #607087;
  font-style: normal;
  font-size: 11px;
}

.push-categories {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.push-check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #536379;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
}

.push-check input {
  appearance: none;
  width: 15px;
  height: 15px;
  margin: 0;
  border: 1px solid #aebbd0;
  border-radius: 4px;
  background: linear-gradient(180deg, #fff, #e7edf5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82);
}

.push-check input:checked {
  border-color: #0f70df;
  background:
    linear-gradient(135deg, transparent 0 42%, #fff 43% 58%, transparent 59%),
    linear-gradient(180deg, #54a7ff, #116ce7);
}

.push-check.active {
  color: #253247;
}

.squeeze-notify {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(240, 162, 26, .44);
  border-radius: 7px;
  padding: 0 10px;
  color: #75501a;
  background: linear-gradient(180deg, #fffaf0, #f5e6c4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
  font-weight: 850;
  cursor: pointer;
}

.squeeze-notify i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c6a46c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}

.squeeze-notify.on {
  color: #7a3f00;
  border-color: rgba(240, 162, 26, .68);
  background: linear-gradient(180deg, #fff3cf, #ffd878);
}

.squeeze-notify.on i {
  background: #f0332e;
  box-shadow: 0 0 12px rgba(240, 51, 46, .56);
  animation: sirenPulse 1s infinite;
}

.squeeze-notify em {
  color: #7c6b51;
  font-style: normal;
  font-size: 11px;
  font-weight: 750;
}

@keyframes signalLivePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 168, 90, .42);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(34, 168, 90, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 168, 90, 0);
  }
}

.signal-feed {
  display: grid;
  gap: 12px;
}

.signal-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: 0 12px 26px rgba(22, 39, 61, .08);
}

.signal-card.buy {
  border-color: rgba(34, 168, 90, .28);
}

.signal-card.sell {
  border-color: rgba(216, 45, 39, .25);
}

.signal-card.squeeze {
  border-color: rgba(240, 162, 26, .48);
  background: linear-gradient(180deg, #fffaf0, #fff);
  box-shadow: 0 14px 30px rgba(240, 162, 26, .14);
}

.signal-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  color: #0b6edb;
  background: linear-gradient(180deg, #eef6ff, #dfeeff);
  font-size: 24px;
  font-weight: 900;
}

.signal-card.sell .signal-mark {
  color: #c72621;
  background: linear-gradient(180deg, #fff0ef, #ffe3e0);
}

.signal-card.squeeze .signal-mark {
  color: #7a3f00;
  background: linear-gradient(180deg, #ffe7ae, #ffc95c);
}

.signal-content {
  min-width: 0;
}

.signal-content header,
.signal-content footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.signal-content header {
  margin-bottom: 8px;
}

.signal-content strong {
  font-size: 17px;
  color: #172339;
}

.signal-content header span {
  border-radius: 999px;
  padding: 4px 9px;
  color: #536379;
  background: #eef3f8;
  font-size: 12px;
  font-weight: 800;
}

.signal-content p {
  margin: 0;
  color: #26364f;
  line-height: 1.5;
}

.signal-content footer {
  margin-top: 12px;
  color: #607087;
  font-size: 12px;
  font-weight: 700;
}

.siren {
  position: relative;
  width: 26px;
  height: 24px;
  display: inline-block;
  border-radius: 14px 14px 6px 6px;
  background: #f0332e;
  box-shadow: inset 0 4px 0 rgba(255, 255, 255, .35);
  animation: sirenPulse 1s infinite;
}

.siren::before,
.siren::after {
  content: "";
  position: absolute;
  top: 7px;
  width: 12px;
  height: 2px;
  background: #f0332e;
  opacity: .7;
}

.siren::before {
  left: -13px;
  transform: rotate(-28deg);
}

.siren::after {
  right: -13px;
  transform: rotate(28deg);
}

.siren i {
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: -4px;
  height: 5px;
  border-radius: 4px;
  background: #7a3f00;
}

@keyframes sirenPulse {
  0%,
  100% {
    filter: drop-shadow(0 0 0 rgba(240, 51, 46, 0));
    transform: translateY(0);
  }
  50% {
    filter: drop-shadow(0 0 12px rgba(240, 51, 46, .72));
    transform: translateY(-1px);
  }
}

.admin-limit-input {
  width: 88px;
  min-height: 34px;
  border: 1px solid #c5d2e1;
  border-radius: 7px;
  padding: 0 8px;
  margin: 0 4px 4px 0;
  background: #fff;
}

.admin-subtitle {
  margin: 24px 0 12px;
  font-size: 18px;
}

.logic-stats {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.logic-pie-card,
.logic-table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.logic-pie-card {
  padding: 24px;
}

.logic-pie {
  width: 100%;
  display: block;
}

.logic-pie text {
  font-size: 13px;
  fill: var(--muted);
  font-weight: 800;
}

.logic-pie text:last-child {
  font-size: 16px;
}

.green-fill {
  fill: var(--green) !important;
}

.red-fill {
  fill: var(--red) !important;
}

.logic-table-wrap {
  overflow: auto;
}

.logic-dot {
  width: 11px;
  height: 11px;
  display: inline-block;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: -1px;
}

.green {
  color: var(--green);
}

.red {
  color: var(--red);
}

@media (max-width: 1100px) {
  body {
    padding: 14px;
  }

  .site-shell,
  .dashboard-layout {
    min-height: calc(100vh - 28px);
  }

  .site-shell::after,
  .dashboard-layout::after {
    left: 108px;
    right: 18px;
  }

  .topbar,
  .hero {
    padding-inline: 24px;
  }

  .main-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-visual {
    min-height: 500px;
  }

  .hero-image-wrap img {
    width: min(720px, 100%);
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
    position: static;
  }

  .side-nav {
    grid-template-columns: repeat(3, 1fr);
  }

  .sidebar-footer {
    grid-template-columns: repeat(2, 1fr);
  }

  .chart-panel,
  .result-panel,
  .mode-panel,
  .control-panel,
  .limit-panel,
  .help-panel {
    grid-column: 1 / -1;
  }

  .book-grid,
  .ops-grid,
  .settings-columns,
  .strategy-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body {
    padding: 0;
  }

  .site-shell,
  .dashboard-layout {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    min-height: 100vh;
  }

  .site-shell::before,
  .dashboard-layout::before {
    height: 54px;
  }

  .site-shell::after,
  .dashboard-layout::after {
    top: 13px;
    left: 92px;
    right: 12px;
    height: 27px;
    font-size: 12px;
  }

  .site-shell,
  .dashboard-layout {
    padding-top: 54px;
  }

  .topbar {
    flex-wrap: wrap;
    padding-block: 16px;
  }

  .topbar-actions {
    width: 100%;
  }

  .topbar-actions .button {
    flex: 1;
  }

  h1 {
    font-size: 38px;
  }

  .hero-visual {
    min-height: 420px;
  }

  .hero-image-wrap {
    min-height: 320px;
  }

  .hero-image-wrap img {
    width: 112%;
    margin-inline: -6%;
    border-radius: 16px;
  }

  .feature-grid,
  .blog-row,
  .pricing-grid,
  .stats-band,
  .summary-strip {
    grid-template-columns: 1fr;
  }

  .stats-band div,
  .summary-strip div {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
  }

  .summary-strip div {
    border-top-color: var(--line);
  }

  .footer,
  .dashboard-header,
  .dashboard-header > div:first-child {
    flex-direction: column;
    align-items: flex-start;
  }

  .mobile-menu-button {
    display: grid;
    position: fixed;
    top: 66px;
    left: 14px;
    z-index: 90;
  }

  .mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(10, 18, 32, .36);
    backdrop-filter: blur(3px);
  }

  .dashboard-layout.mobile-menu-open .mobile-menu-backdrop {
    display: block;
  }

  .dashboard-layout.mobile-menu-open .mobile-menu-button span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .dashboard-layout.mobile-menu-open .mobile-menu-button span:nth-child(2) {
    opacity: 0;
  }

  .dashboard-layout.mobile-menu-open .mobile-menu-button span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .sidebar {
    position: fixed;
    top: 54px;
    left: 0;
    bottom: 0;
    z-index: 80;
    width: min(316px, 86vw);
    min-height: 0;
    padding: 64px 18px 22px;
    overflow-y: auto;
    border-right: 1px solid rgba(170, 185, 204, .8);
    transform: translateX(-105%);
    transition: transform .24s ease;
    box-shadow: 24px 0 48px rgba(9, 22, 43, .22);
  }

  .dashboard-layout.mobile-menu-open .sidebar {
    transform: translateX(0);
  }

  .side-nav {
    grid-template-columns: 1fr;
  }

  .dashboard-main {
    padding: 74px 14px 24px;
  }

  .dashboard-header {
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 18px;
  }

  .dashboard-header h1 {
    font-size: 25px;
  }

  .profile-actions,
  .user-button {
    width: 100%;
  }

  .user-button {
    justify-content: space-between;
    padding: 8px 10px;
    border: 1px solid #ccd8e6;
    border-radius: 8px;
    background: rgba(255, 255, 255, .62);
  }

  .dashboard-grid {
    gap: 14px;
  }

  .panel {
    padding: 18px;
  }

  .panel-header,
  .panel-title,
  .chart-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .chart-actions select,
  .chart-actions .button {
    width: 100%;
  }

  .dashboard-chart {
    min-height: 260px;
  }

  .dashboard-chart svg {
    height: 260px;
  }

  .mode-switch {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mode-card:first-child,
  .mode-card:last-child {
    border-radius: 8px;
    border: 1px solid #cbd7e6;
  }

  .book-view,
  .signal-monitor {
    min-width: 0;
  }

  .positions-table {
    min-width: 0;
    table-layout: auto;
  }

  .positions-table thead {
    display: none;
  }

  .positions-table,
  .positions-table tbody,
  .positions-table tr,
  .positions-table td {
    display: block;
    width: 100%;
  }

  .positions-table tr {
    margin: 12px;
    padding: 12px;
    border: 1px solid rgba(148, 120, 82, .28);
    border-radius: 8px;
    background: rgba(255, 253, 246, .72);
  }

  .positions-table td {
    min-height: 34px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(157, 126, 82, .18);
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    white-space: normal;
  }

  .positions-table td::before {
    content: attr(data-label);
    color: #775f3f;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
  }

  .positions-table td:last-child {
    border-bottom: 0;
  }

  .book-cover,
  .strategy-hero,
  .book-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .book-cover strong,
  .strategy-hero strong {
    font-size: 24px;
  }
}

.theme-switch {
  min-height: 38px;
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(174, 189, 209, .78);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .84), rgba(229, 237, 247, .84));
  box-shadow: inset 0 1px 2px rgba(17, 32, 54, .08);
}

.theme-switch button {
  min-width: 86px;
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  padding: 0 12px;
  color: #4b5d73;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.theme-switch button.active {
  color: #0f2749;
  background: #fff;
  box-shadow: 0 3px 10px rgba(41, 58, 82, .14), inset 0 1px 0 rgba(255, 255, 255, .8);
}

body.dashboard-theme-compact {
  padding: 0;
  background: #f6f8fb;
}

.dashboard-layout.dashboard-theme-compact {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding-top: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  grid-template-columns: 248px minmax(0, 1fr);
  background: #f6f8fb;
  box-shadow: none;
}

.dashboard-layout.dashboard-theme-compact::before,
.dashboard-layout.dashboard-theme-compact::after {
  display: none;
}

.dashboard-theme-compact .sidebar {
  top: 0;
  min-height: 100vh;
  padding: 22px 16px;
  gap: 22px;
  background: #fff;
  border-right: 1px solid #dfe6ef;
  box-shadow: 8px 0 28px rgba(20, 35, 58, .05);
  backdrop-filter: none;
}

.dashboard-theme-compact .brand {
  font-size: 21px;
}

.dashboard-theme-compact .brand-mark {
  width: 34px;
  height: 34px;
}

.dashboard-theme-compact .side-nav a,
.dashboard-theme-compact .sidebar-footer a {
  min-height: 42px;
  padding: 0 12px;
  gap: 10px;
  color: #405069;
  border-radius: 8px;
  font-size: 14px;
}

.dashboard-theme-compact .side-nav a.active {
  color: #0d5de7;
  background: #eaf2ff;
  box-shadow: none;
}

.dashboard-theme-compact .dashboard-main {
  min-width: 0;
  padding: 22px clamp(16px, 2.3vw, 32px) 28px;
}

.dashboard-theme-compact .dashboard-header {
  min-height: 56px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  gap: 14px;
  border-bottom-color: #dfe6ef;
}

.dashboard-theme-compact .dashboard-header h1 {
  font-size: 25px;
  line-height: 1.15;
}

.dashboard-theme-compact .profile-actions {
  gap: 10px;
}

.dashboard-theme-compact .icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid #d9e2ee;
  border-radius: 8px;
  background: #fff;
  font-size: 22px;
}

.dashboard-theme-compact .user-button {
  min-height: 40px;
  padding: 4px 10px 4px 4px;
  border: 1px solid #d9e2ee;
  border-radius: 8px;
  background: #fff;
}

.dashboard-theme-compact .avatar {
  width: 32px;
  height: 32px;
  font-size: 13px;
}

.dashboard-theme-compact .dashboard-grid {
  gap: 14px;
}

.dashboard-theme-compact .panel,
.dashboard-theme-compact .data-panel {
  padding: 18px;
  border: 1px solid #dfe6ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(29, 45, 68, .06);
  backdrop-filter: none;
}

.dashboard-theme-compact .panel h2 {
  font-size: 16px;
}

.dashboard-theme-compact .panel-header,
.dashboard-theme-compact .panel-title {
  margin-bottom: 14px;
}

.dashboard-theme-compact .button {
  min-height: 40px;
  border-radius: 8px;
  box-shadow: none;
}

.dashboard-theme-compact .button-soft,
.dashboard-theme-compact select,
.dashboard-theme-compact .amount-input {
  background: #fff;
  box-shadow: none;
}

.dashboard-theme-compact .chart-panel {
  grid-column: span 8;
}

.dashboard-theme-compact .result-panel {
  grid-column: span 4;
}

.dashboard-theme-compact .mode-panel,
.dashboard-theme-compact .control-panel {
  grid-column: span 6;
}

.dashboard-theme-compact .limit-panel,
.dashboard-theme-compact .help-panel {
  grid-column: span 4;
}

.dashboard-theme-compact .dashboard-chart {
  min-height: 260px;
}

.dashboard-theme-compact .dashboard-chart svg {
  height: 260px;
}

.dashboard-theme-compact .summary-strip {
  grid-column: 1 / -1;
  border: 1px solid #dfe6ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(29, 45, 68, .06);
}

.dashboard-theme-compact .data-output {
  min-width: 0;
  overflow-x: auto;
}

.dashboard-theme-compact .book-view,
.dashboard-theme-compact .signal-monitor,
.dashboard-theme-compact .positions-sheet,
.dashboard-theme-compact .ledger-sheet {
  min-width: 0;
}

@media (max-width: 1180px) {
  .dashboard-layout.dashboard-theme-compact {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .dashboard-theme-compact .chart-panel,
  .dashboard-theme-compact .result-panel,
  .dashboard-theme-compact .mode-panel,
  .dashboard-theme-compact .control-panel,
  .dashboard-theme-compact .limit-panel,
  .dashboard-theme-compact .help-panel {
    grid-column: span 6;
  }
}

@media (max-width: 900px) {
  .dashboard-layout.dashboard-theme-compact {
    grid-template-columns: 1fr;
  }

  .dashboard-theme-compact .dashboard-main {
    padding: 72px 14px 22px;
  }

  .dashboard-theme-compact .dashboard-header,
  .dashboard-theme-compact .dashboard-header > div:first-child {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-theme-compact .profile-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: stretch;
  }

  .dashboard-theme-compact .theme-switch {
    grid-column: 1 / -1;
    width: 100%;
  }

  .dashboard-theme-compact .theme-switch button {
    min-width: 0;
  }

  .dashboard-theme-compact .user-button {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    justify-content: flex-start;
  }

  .dashboard-theme-compact .profile-actions .icon-button {
    grid-column: 2;
    grid-row: 2;
  }

  .dashboard-theme-compact .mobile-menu-button {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 90;
    display: grid;
    background: #fff;
    box-shadow: 0 8px 24px rgba(29, 45, 68, .12);
  }

  .dashboard-theme-compact .mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(12, 24, 42, .34);
    backdrop-filter: blur(3px);
  }

  .dashboard-theme-compact.mobile-menu-open .mobile-menu-backdrop {
    display: block;
  }

  .dashboard-theme-compact .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 80;
    width: min(300px, 86vw);
    min-height: 0;
    padding: 72px 16px 22px;
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform .24s ease;
  }

  .dashboard-theme-compact.mobile-menu-open .sidebar {
    transform: translateX(0);
  }

  .dashboard-theme-compact .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-theme-compact .chart-panel,
  .dashboard-theme-compact .result-panel,
  .dashboard-theme-compact .mode-panel,
  .dashboard-theme-compact .control-panel,
  .dashboard-theme-compact .limit-panel,
  .dashboard-theme-compact .help-panel,
  .dashboard-theme-compact .summary-strip {
    grid-column: 1 / -1;
  }

  .dashboard-theme-compact .panel {
    padding: 16px;
  }

  .dashboard-theme-compact .panel-header,
  .dashboard-theme-compact .panel-title,
  .dashboard-theme-compact .chart-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-theme-compact .chart-actions select,
  .dashboard-theme-compact .chart-actions .button {
    width: 100%;
  }

  .dashboard-theme-compact .dashboard-chart,
  .dashboard-theme-compact .dashboard-chart svg {
    height: 238px;
    min-height: 238px;
  }

  .dashboard-theme-compact .summary-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .dashboard-theme-compact .dashboard-main {
    padding-inline: 10px;
  }

  .dashboard-theme-compact .dashboard-header h1 {
    font-size: 23px;
  }

  .dashboard-theme-compact .profile-actions {
    grid-template-columns: 1fr;
  }

  .dashboard-theme-compact .icon-button {
    display: none;
  }

  .dashboard-theme-compact .mode-switch,
  .dashboard-theme-compact .amount-input {
    grid-template-columns: 1fr;
  }

  .dashboard-theme-compact .profit-number {
    font-size: 32px;
  }
}

/* Modern concise dashboard theme */
body.dashboard-theme-compact {
  color: #1d1d1f;
  background: #f5f5f7;
  -webkit-font-smoothing: antialiased;
}

.dashboard-layout.dashboard-theme-compact {
  grid-template-columns: 272px minmax(0, 1fr);
  background: #f5f5f7;
}

.dashboard-theme-compact .sidebar {
  padding: 28px 18px;
  background: rgba(255, 255, 255, .82);
  border-right: 1px solid rgba(0, 0, 0, .08);
  box-shadow: none;
  backdrop-filter: blur(24px);
}

.dashboard-theme-compact .brand {
  color: #1d1d1f;
  font-size: 22px;
  letter-spacing: 0;
}

.dashboard-theme-compact .brand-mark {
  color: #0071e3;
}

.dashboard-theme-compact .side-nav {
  gap: 4px;
}

.dashboard-theme-compact .side-nav a,
.dashboard-theme-compact .sidebar-footer a {
  min-height: 44px;
  padding: 0 12px;
  color: #515154;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 650;
}

.dashboard-theme-compact .side-nav a:hover,
.dashboard-theme-compact .sidebar-footer a:hover {
  color: #1d1d1f;
  background: rgba(0, 0, 0, .045);
}

.dashboard-theme-compact .side-nav a.active {
  color: #1d1d1f;
  background: rgba(0, 113, 227, .12);
}

.dashboard-theme-compact .sidebar-footer {
  border-top-color: rgba(0, 0, 0, .08);
}

.dashboard-theme-compact .dashboard-main {
  width: 100%;
  max-width: none;
  padding: 32px clamp(20px, 4vw, 56px) 40px;
}

.dashboard-theme-compact .dashboard-header {
  min-height: auto;
  margin-bottom: 30px;
  padding-bottom: 0;
  border-bottom: 0;
}

.dashboard-theme-compact .dashboard-header h1 {
  color: #1d1d1f;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 800;
  letter-spacing: 0;
}

.dashboard-theme-compact .dashboard-header > div:first-child {
  gap: 16px;
}

.dashboard-theme-compact .theme-switch {
  min-height: 36px;
  padding: 2px;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 999px;
  background: rgba(232, 232, 237, .85);
  box-shadow: none;
}

.dashboard-theme-compact .theme-switch button {
  min-height: 30px;
  min-width: 92px;
  border-radius: 999px;
  color: #6e6e73;
  font-size: 12px;
  font-weight: 700;
}

.dashboard-theme-compact .theme-switch button.active {
  color: #1d1d1f;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .16);
}

.dashboard-theme-compact .icon-button,
.dashboard-theme-compact .user-button {
  border: 0;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}

.dashboard-theme-compact .dashboard-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.dashboard-theme-compact .panel,
.dashboard-theme-compact .data-panel {
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 8px;
  box-shadow: none;
}

.dashboard-theme-compact .panel h2 {
  color: #1d1d1f;
  font-size: 15px;
  font-weight: 750;
}

.dashboard-theme-compact .chart-panel {
  grid-column: 1 / -1;
  padding: clamp(18px, 2.4vw, 30px);
}

.dashboard-theme-compact .result-panel,
.dashboard-theme-compact .mode-panel,
.dashboard-theme-compact .control-panel {
  grid-column: span 4;
}

.dashboard-theme-compact .limit-panel,
.dashboard-theme-compact .help-panel {
  grid-column: span 3;
}

.dashboard-theme-compact .dashboard-chart {
  width: 100%;
  min-width: 0;
  min-height: clamp(280px, 34vw, 520px);
}

.dashboard-theme-compact .dashboard-chart svg {
  display: block;
  width: 100%;
  max-width: none;
  height: clamp(280px, 34vw, 520px);
  overflow: visible;
}

.dashboard-theme-compact .chart-tooltip {
  border: 1px solid rgba(0, 0, 0, .08);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .12);
  color: #1d1d1f;
  backdrop-filter: blur(18px);
}

.dashboard-theme-compact .dash-grid {
  stroke: rgba(0, 0, 0, .08);
  stroke-dasharray: none;
  vector-effect: non-scaling-stroke;
}

.dashboard-theme-compact .dash-line {
  stroke: #34c759;
  stroke-width: 3.2;
  vector-effect: non-scaling-stroke;
}

.dashboard-theme-compact .chart-cursor-line {
  stroke: rgba(0, 113, 227, .34);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.dashboard-theme-compact .chart-cursor-dot {
  stroke: #0071e3;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 4px 10px rgba(0, 113, 227, .26));
}

.dashboard-theme-compact .axis-labels {
  fill: #86868b;
  font-size: 12px;
}

.dashboard-theme-compact .button {
  border-radius: 8px;
  text-shadow: none;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.dashboard-theme-compact .button:hover {
  transform: none;
}

.dashboard-theme-compact .button-primary,
.dashboard-theme-compact .button-success {
  color: #fff;
  border-color: #0071e3;
  background: #0071e3;
}

.dashboard-theme-compact .button-danger {
  color: #fff;
  border-color: #ff3b30;
  background: #ff3b30;
}

.dashboard-theme-compact .button-soft,
.dashboard-theme-compact select,
.dashboard-theme-compact .amount-input {
  border-color: rgba(0, 0, 0, .1);
  background: #fff;
}

.dashboard-theme-compact .mode-card {
  border-color: rgba(0, 0, 0, .08);
  background: #fff;
  box-shadow: none;
}

.dashboard-theme-compact .mode-card.active {
  border-color: #0071e3;
  background: rgba(0, 113, 227, .08);
  box-shadow: inset 0 0 0 1px rgba(0, 113, 227, .25);
}

.dashboard-theme-compact .summary-strip {
  background: rgba(255, 255, 255, .92);
  border-color: rgba(0, 0, 0, .08);
  box-shadow: none;
}

@media (max-width: 1200px) {
  .dashboard-layout.dashboard-theme-compact {
    grid-template-columns: 236px minmax(0, 1fr);
  }

  .dashboard-theme-compact .result-panel,
  .dashboard-theme-compact .mode-panel,
  .dashboard-theme-compact .control-panel,
  .dashboard-theme-compact .limit-panel,
  .dashboard-theme-compact .help-panel {
    grid-column: span 6;
  }
}

@media (max-width: 900px) {
  .dashboard-layout.dashboard-theme-compact {
    grid-template-columns: 1fr;
  }

  .dashboard-theme-compact .dashboard-main {
    padding: 78px 14px 24px;
  }

  .dashboard-theme-compact .dashboard-header h1 {
    font-size: 30px;
  }

  .dashboard-theme-compact .chart-panel,
  .dashboard-theme-compact .result-panel,
  .dashboard-theme-compact .mode-panel,
  .dashboard-theme-compact .control-panel,
  .dashboard-theme-compact .limit-panel,
  .dashboard-theme-compact .help-panel {
    grid-column: 1 / -1;
  }

  .dashboard-theme-compact .dashboard-chart,
  .dashboard-theme-compact .dashboard-chart svg {
    height: clamp(260px, 72vw, 420px);
    min-height: 260px;
  }
}

@media (max-width: 520px) {
  .dashboard-theme-compact .dashboard-main {
    padding-inline: 10px;
  }

  .dashboard-theme-compact .dashboard-header {
    margin-bottom: 20px;
  }

  .dashboard-theme-compact .dashboard-header h1 {
    font-size: 28px;
  }

  .dashboard-theme-compact .chart-panel {
    padding: 14px 10px 14px 12px;
  }

  .dashboard-theme-compact .dashboard-chart,
  .dashboard-theme-compact .dashboard-chart svg {
    height: 300px;
  }
}

/* Compact theme component cleanup */
.dashboard-theme-compact .button,
.dashboard-theme-compact .choice-row button,
.dashboard-theme-compact .signal-tabs button,
.dashboard-theme-compact .push-master,
.dashboard-theme-compact .squeeze-notify,
.dashboard-theme-compact .mini-toggle,
.dashboard-theme-compact .book-switch,
.dashboard-theme-compact .table-link,
.dashboard-theme-compact select,
.dashboard-theme-compact .strategy-hero select,
.dashboard-theme-compact .ops-panel select,
.dashboard-theme-compact .book-field input,
.dashboard-theme-compact .amount-input {
  text-shadow: none;
  box-shadow: none;
}

.dashboard-theme-compact .button,
.dashboard-theme-compact .choice-row button,
.dashboard-theme-compact .signal-tabs button,
.dashboard-theme-compact .push-master,
.dashboard-theme-compact .squeeze-notify,
.dashboard-theme-compact .mini-toggle.switch-toggle,
.dashboard-theme-compact .book-switch {
  border-radius: 999px;
  font-weight: 700;
}

.dashboard-theme-compact .button-soft,
.dashboard-theme-compact .button-ghost,
.dashboard-theme-compact .choice-row button,
.dashboard-theme-compact .signal-tabs button,
.dashboard-theme-compact .push-master,
.dashboard-theme-compact .squeeze-notify {
  color: #1d1d1f;
  border: 1px solid rgba(0, 0, 0, .1);
  background: rgba(255, 255, 255, .78);
}

.dashboard-theme-compact .button-soft:hover,
.dashboard-theme-compact .button-ghost:hover,
.dashboard-theme-compact .choice-row button:hover,
.dashboard-theme-compact .signal-tabs button:hover,
.dashboard-theme-compact .push-master:hover,
.dashboard-theme-compact .squeeze-notify:hover {
  background: #fff;
}

.dashboard-theme-compact .button-primary,
.dashboard-theme-compact .button-success,
.dashboard-theme-compact .choice-row button.active,
.dashboard-theme-compact .signal-tabs button.active,
.dashboard-theme-compact .push-master.on {
  color: #fff;
  border-color: #0071e3;
  background: #0071e3;
}

.dashboard-theme-compact .button-danger {
  color: #fff;
  border-color: #ff3b30;
  background: #ff3b30;
}

.dashboard-theme-compact .button-mini {
  min-height: 30px;
  padding-inline: 12px;
  font-size: 12px;
}

.dashboard-theme-compact select,
.dashboard-theme-compact .strategy-hero select,
.dashboard-theme-compact .ops-panel select,
.dashboard-theme-compact .book-field input,
.dashboard-theme-compact .amount-input {
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .86);
}

.dashboard-theme-compact .amount-input {
  min-height: 48px;
}

.dashboard-theme-compact .amount-input input {
  color: #1d1d1f;
  font-size: 18px;
}

.dashboard-theme-compact .amount-input span {
  color: #6e6e73;
  border-left-color: rgba(0, 0, 0, .08);
}

.dashboard-theme-compact .mode-switch {
  gap: 10px;
}

.dashboard-theme-compact .mode-card,
.dashboard-theme-compact .mode-card:first-child,
.dashboard-theme-compact .mode-card:last-child {
  min-height: 116px;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
  color: #1d1d1f;
}

.dashboard-theme-compact .mode-card:last-child {
  border-left: 1px solid rgba(0, 0, 0, .08);
}

.dashboard-theme-compact .mode-card.active {
  border-color: rgba(0, 113, 227, .48);
  background: rgba(0, 113, 227, .08);
  box-shadow: inset 0 0 0 1px rgba(0, 113, 227, .2);
}

.dashboard-theme-compact .mode-icon {
  color: #0071e3;
  font-size: 26px;
}

.dashboard-theme-compact .mode-card small {
  color: #6e6e73;
}

.dashboard-theme-compact .logic-mode-indicator {
  border-color: rgba(0, 0, 0, .08);
  background: rgba(255, 255, 255, .78);
  box-shadow: none;
}

.dashboard-theme-compact .logic-mode-indicator span,
.dashboard-theme-compact .logic-mode-indicator small,
.dashboard-theme-compact .logic-mode-indicator em,
.dashboard-theme-compact .hint,
.dashboard-theme-compact .limit-panel p,
.dashboard-theme-compact .help-panel p {
  color: #6e6e73;
}

.dashboard-theme-compact .logic-mode-indicator strong {
  color: #1d1d1f;
}

.dashboard-theme-compact .hint {
  border-color: rgba(0, 0, 0, .12);
  background: rgba(255, 255, 255, .7);
}

.dashboard-theme-compact .progress {
  height: 7px;
  background: rgba(0, 0, 0, .08);
}

.dashboard-theme-compact .progress span {
  background: #0071e3;
}

.dashboard-theme-compact .ops-panel,
.dashboard-theme-compact .strategy-card,
.dashboard-theme-compact .strategy-hero,
.dashboard-theme-compact .admin-kpis div,
.dashboard-theme-compact .admin-table-wrap,
.dashboard-theme-compact .signal-card {
  border-color: rgba(0, 0, 0, .08);
  background: rgba(255, 255, 255, .86);
  box-shadow: none;
}

.dashboard-theme-compact .runtime-list div,
.dashboard-theme-compact .data-output th,
.dashboard-theme-compact .data-output td {
  border-bottom-color: rgba(0, 0, 0, .08);
}

.dashboard-theme-compact .data-output th {
  color: #1d1d1f;
  background: #f5f5f7;
}

.dashboard-theme-compact .mini-toggle.switch-toggle,
.dashboard-theme-compact .book-switch {
  position: relative;
  width: 52px;
  min-width: 52px;
  height: 32px;
  min-height: 32px;
  padding: 2px;
  overflow: hidden;
  color: transparent;
  border: 0;
  border-radius: 999px;
  background: #e9e9eb;
  font-size: 0;
  line-height: 0;
  vertical-align: middle;
  transition: background .18s ease;
}

.dashboard-theme-compact .mini-toggle.switch-toggle.on,
.dashboard-theme-compact .book-switch.on {
  background: #34c759;
}

.dashboard-theme-compact .mini-toggle.switch-toggle::before,
.dashboard-theme-compact .book-switch span {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .22), 0 0 0 1px rgba(0, 0, 0, .04);
  transform: translateX(0);
  transition: transform .18s ease;
}

.dashboard-theme-compact .mini-toggle.switch-toggle.on::before,
.dashboard-theme-compact .book-switch.on span {
  transform: translateX(20px);
}

.dashboard-theme-compact .mini-toggle.switch-toggle:focus-visible,
.dashboard-theme-compact .book-switch:focus-visible {
  outline: 3px solid rgba(0, 113, 227, .34);
  outline-offset: 2px;
}

.dashboard-theme-compact .push-control {
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  box-shadow: none;
}

.dashboard-theme-compact .push-master.on em {
  color: rgba(255, 255, 255, .78);
}

.dashboard-theme-compact .push-check {
  color: #6e6e73;
  font-weight: 700;
}

.dashboard-theme-compact .push-check input {
  width: 16px;
  height: 16px;
  border-color: rgba(0, 0, 0, .18);
  border-radius: 5px;
  background: #fff;
  box-shadow: none;
}

.dashboard-theme-compact .push-check input:checked {
  border-color: #0071e3;
  background:
    linear-gradient(135deg, transparent 0 38%, #fff 39% 58%, transparent 59%),
    #0071e3;
}

.dashboard-theme-compact .push-check.active {
  color: #1d1d1f;
}

.dashboard-theme-compact .squeeze-notify.on {
  color: #1d1d1f;
  border-color: rgba(255, 149, 0, .38);
  background: rgba(255, 149, 0, .18);
}

.dashboard-theme-compact .squeeze-notify i {
  background: #8e8e93;
  box-shadow: none;
}

.dashboard-theme-compact .squeeze-notify.on i {
  background: #ff3b30;
}

.dashboard-theme-compact .squeeze-notify em {
  color: #6e6e73;
}

.dashboard-theme-compact .signal-toolbar {
  background: linear-gradient(180deg, rgba(245, 245, 247, .96), rgba(245, 245, 247, .82));
}

.dashboard-theme-compact .signal-tabs span,
.dashboard-theme-compact .signal-live,
.dashboard-theme-compact .signal-live small,
.dashboard-theme-compact .push-master em {
  color: #6e6e73;
}

.dashboard-theme-compact .signal-mark {
  color: #0071e3;
  background: rgba(0, 113, 227, .1);
}

.dashboard-theme-compact .signal-card.sell .signal-mark {
  color: #ff3b30;
  background: rgba(255, 59, 48, .1);
}

.dashboard-theme-compact .signal-card.squeeze .signal-mark {
  color: #ff9500;
  background: rgba(255, 149, 0, .14);
}

@media (max-width: 520px) {
  .dashboard-theme-compact .mode-switch {
    grid-template-columns: 1fr;
  }

  .dashboard-theme-compact .push-control,
  .dashboard-theme-compact .push-categories {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* Compact finance and settings sections */
.dashboard-theme-compact .book-view {
  min-width: 0;
  color: #1d1d1f;
}

.dashboard-theme-compact .finance-book,
.dashboard-theme-compact .settings-desk {
  display: grid;
  gap: 16px;
}

.dashboard-theme-compact .book-cover {
  min-height: 128px;
  padding: 24px;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 14%, rgba(0, 113, 227, .14), transparent 32%),
    rgba(255, 255, 255, .9);
  box-shadow: none;
}

.dashboard-theme-compact .book-cover span,
.dashboard-theme-compact .book-cover small,
.dashboard-theme-compact .book-card span,
.dashboard-theme-compact .book-card small,
.dashboard-theme-compact .book-field,
.dashboard-theme-compact .settings-flags div {
  color: #6e6e73;
  text-shadow: none;
}

.dashboard-theme-compact .book-cover strong,
.dashboard-theme-compact .book-card strong {
  color: #1d1d1f;
  text-shadow: none;
}

.dashboard-theme-compact .book-cover strong {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0;
}

.dashboard-theme-compact .book-stamp {
  align-self: center;
  color: #1d1d1f;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 999px;
  background: #f5f5f7;
  font-size: 12px;
  text-shadow: none;
}

.dashboard-theme-compact .book-grid {
  gap: 16px;
  margin: 0;
}

.dashboard-theme-compact .book-card {
  padding: 18px;
  border-color: rgba(0, 0, 0, .08);
  background: rgba(255, 255, 255, .9);
  box-shadow: none;
}

.dashboard-theme-compact .book-card strong {
  font-size: 24px;
}

.dashboard-theme-compact .ledger-sheet {
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 8px;
  background: rgba(255, 255, 255, .9);
  box-shadow: none;
}

.dashboard-theme-compact .ledger-sheet table {
  border-collapse: separate;
  border-spacing: 0;
}

.dashboard-theme-compact .ledger-sheet th,
.dashboard-theme-compact .ledger-sheet td {
  color: #1d1d1f;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.dashboard-theme-compact .ledger-sheet th {
  color: #6e6e73;
  background: #f5f5f7;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
}

.dashboard-theme-compact .ledger-sheet tbody tr:last-child td {
  border-bottom: 0;
}

.dashboard-theme-compact .settings-columns {
  gap: 16px;
}

.dashboard-theme-compact .settings-desk .ops-panel {
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, .08);
  background: rgba(255, 255, 255, .9);
}

.dashboard-theme-compact .settings-desk .ops-panel h3 {
  color: #1d1d1f;
  font-size: 17px;
  font-weight: 760;
}

.dashboard-theme-compact .book-field {
  gap: 8px;
  font-weight: 700;
}

.dashboard-theme-compact .book-field input,
.dashboard-theme-compact .settings-desk select {
  min-height: 42px;
  color: #1d1d1f;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 8px;
  background: #fff;
}

.dashboard-theme-compact .settings-flags {
  gap: 12px;
}

.dashboard-theme-compact .settings-flags div {
  min-height: 42px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  font-weight: 700;
}

.dashboard-theme-compact .settings-flags div:last-child {
  border-bottom: 0;
}

@media (max-width: 900px) {
  .dashboard-theme-compact .book-cover {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-theme-compact .book-stamp {
    align-self: flex-start;
  }

  .dashboard-theme-compact .book-grid,
  .dashboard-theme-compact .settings-columns {
    grid-template-columns: 1fr;
  }
}

.dashboard-theme-compact .signal-tabs button.active span {
  color: inherit;
}

.profit-number.green,
.profit-percent.green,
.result-list dd.green,
.summary-strip strong.green,
.book-card strong.green,
.book-card small.green,
.ledger-sheet td.green,
.ledger-sheet small.green,
.data-output td.green,
.data-output small.green,
.dashboard-theme-compact .green {
  color: var(--green);
}

.profit-number.red,
.profit-percent.red,
.result-list dd.red,
.summary-strip strong.red,
.book-card strong.red,
.book-card small.red,
.ledger-sheet td.red,
.ledger-sheet small.red,
.data-output td.red,
.data-output small.red,
.dashboard-theme-compact .red {
  color: var(--red);
}

.dashboard-theme-compact .book-card strong.green,
.dashboard-theme-compact .book-card small.green,
.dashboard-theme-compact .ledger-sheet td.green {
  color: var(--green);
}

.dashboard-theme-compact .book-card strong.red,
.dashboard-theme-compact .book-card small.red,
.dashboard-theme-compact .ledger-sheet td.red {
  color: var(--red);
}
