﻿:root{
  --bg: #0b0f14;
  --card: rgba(255,255,255,0.06);
  --card2: rgba(255,255,255,0.08);
  --text: #e9eef5;
  --muted: rgba(233,238,245,0.72);
  --line: rgba(255,255,255,0.12);
  --shadow: 0 18px 50px rgba(0,0,0,0.35);
  --accent: #8b5cf6;
  --accent2: #4da3ff;
  --danger: #ff4d4d;
  --warn: #ffcc66;
  --ok: #8b5cf6;
  --focus: rgba(77,163,255,0.2);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 14px;
  --space-4: 18px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --side-nav-w: 232px;
  --side-nav-w-collapsed: 74px;
}

html[data-theme="light"]{
  --bg: #f6f8fb;
  --card: rgba(0,0,0,0.04);
  --card2: rgba(0,0,0,0.06);
  --text: #101827;
  --muted: rgba(16,24,39,0.66);
  --line: rgba(0,0,0,0.12);
  --shadow: 0 18px 50px rgba(0,0,0,0.12);
}

*{ box-sizing: border-box; }
body{
  margin:0;
  font-family: var(--sans);
  background:
    radial-gradient(1200px 450px at 20% 0%, rgba(77,163,255,0.25), transparent 60%),
    radial-gradient(900px 500px at 85% 10%, rgba(139,92,246,0.20), transparent 55%),
    radial-gradient(900px 700px at 50% 90%, rgba(255,204,102,0.10), transparent 60%),
    var(--bg);
  color: var(--text);
}

.top{
  position: sticky;
  top:0;
  z-index: 5;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  background: rgba(0,0,0,0.18);
}

html[data-theme="light"] .top{ background: rgba(255,255,255,0.65); }

.brand{ display:flex; align-items:center; gap:12px; min-width: 220px; }
.brand-home-link{ cursor: pointer; }
.brand-home-link:focus-visible{
  outline: 2px solid rgba(139,92,246,0.9);
  outline-offset: 3px;
  border-radius: 10px;
}
.logo{
  width:38px;height:38px;border-radius:12px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  display:grid;place-items:center;
  font-weight:900;
  color: #001014;
}
.name{ font-weight:800; letter-spacing:0.2px; }
.sub{ color: var(--muted); font-size:12px; margin-top:2px; line-height: 1.35; }
.right{ display:flex; align-items:center; gap: var(--space-2); flex-wrap:wrap; justify-content:flex-end; }
/* Keep language selector, hide its "Lang/РЇР·С‹Рє" caption in top bar */
.top .right label.row:not(.dev-only) > span.muted{ display:none; }
.top .right [data-i18n="app.lang"]{ display:none; }

body.side-nav-enabled .top .right .private-link{
  display:none !important;
}
body.side-nav-enabled .top .right a.btn[href="/"]{
  display:none !important;
}

body.home-landing .top{
  align-items: center;
}
body.home-landing .top .right{
  flex: 1 1 auto;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
}
body.home-landing .home-center-nav{
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: var(--space-2);
  min-width: 0;
}
body.home-landing .home-center-nav .btn{
  min-height: 40px;
  height: 40px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
body.home-landing #btnLogout,
body.home-landing .bell-wrap{
  display: none !important;
}
body.home-landing .top .right > .row{
  margin: 0;
  align-items: center;
}
body.home-landing #lang.in,
body.home-landing .lang-select{
  width: 66px;
  min-width: 66px;
  max-width: 66px;
  height: 40px;
}
body.home-landing #btnTheme.theme-toggle-btn{
  width: 108px;
  min-width: 108px;
  min-height: 40px;
  height: 40px;
}
body.home-landing #btnTheme .theme-toggle-track{
  height: 40px;
}
body.home-landing #btnTheme .theme-toggle-side{
  width: 45px;
  height: 45px;
}

.side-nav{
  position: fixed;
  left: 12px;
  top: 84px;
  bottom: 14px;
  width: var(--side-nav-w);
  border: 1px solid rgba(139,92,246,0.35);
  background:
    linear-gradient(180deg, rgba(139,92,246,0.18), rgba(139,92,246,0.06) 55%, rgba(255,255,255,0.02)),
    rgba(11,15,22,0.78);
  backdrop-filter: blur(14px) saturate(1.15);
  border-radius: 18px;
  box-shadow: 0 20px 46px rgba(0,0,0,0.38);
  padding: 12px 10px 12px;
  display: none;
  z-index: 6;
  overflow: hidden;
  transition: width .18s ease, left .18s ease;
}

body.side-nav-enabled .side-nav{
  display: block;
}

html[data-theme="light"] .side-nav{
  border: 1px solid rgba(76, 86, 110, 0.22);
  background:
    linear-gradient(180deg, rgba(111, 76, 255, 0.10), rgba(111, 76, 255, 0.04) 45%, rgba(255,255,255,0.94)),
    rgba(249,251,255,0.95);
  box-shadow: 0 14px 26px rgba(35, 45, 70, 0.12);
}

.side-nav-toggle{
  width: 100%;
  min-height: 34px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.08);
  color: var(--text);
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 10px;
}

.side-nav-toggle:hover{ filter: brightness(1.08); }

html[data-theme="light"] .side-nav-toggle{
  border-color: rgba(76, 86, 110, 0.22);
  background: rgba(236,241,251,0.92);
  color: #223047;
}

.side-nav-links{
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
}

.side-nav-bottom{
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.side-nav-bottom .btn,
.side-nav-bottom .row{
  width: 100%;
}
.side-nav-bottom .row{
  margin: 0;
  gap: 0;
}
.side-nav-bottom .row > span{
  display: none;
  min-width: 0;
}
.side-nav-bottom #lang.in,
.side-nav-bottom .lang-select{
  max-width: none;
  width: 100%;
}
.side-nav-bottom .bell-wrap{
  width: 100%;
}
.side-nav-bottom .bell-btn{
  width: 100%;
}
.side-nav-bottom .bell-panel{
  left: 0;
  right: auto;
  top: -366px;
}

.side-link{
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.2px;
  white-space: nowrap;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.side-link-badge{
  margin-left: 8px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(139,92,246,0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}
html[data-theme="light"] .side-link-badge{
  border-color: rgba(76,86,110,0.28);
  background: rgba(111,76,255,0.88);
}

.side-link:hover{
  transform: translateX(2px);
  border-color: rgba(139,92,246,0.55);
  background: rgba(139,92,246,0.12);
}

.side-link.active{
  border-color: rgba(139,92,246,0.75);
  background: rgba(139,92,246,0.25);
  box-shadow: inset 0 0 0 1px rgba(139,92,246,0.25);
}

html[data-theme="light"] .side-link{
  border-color: rgba(76, 86, 110, 0.20);
  background: rgba(230,236,248,0.80);
  color: #152033;
}
html[data-theme="light"] .side-link:hover{
  border-color: rgba(111,76,255,0.45);
  background: rgba(139,92,246,0.18);
}
html[data-theme="light"] .side-link.active{
  border-color: rgba(111,76,255,0.68);
  background: rgba(111,76,255,0.34);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(124,58,237,0.26);
}

body.side-nav-enabled .grid{
  max-width: none;
  margin: var(--space-4) 14px 48px;
  padding-left: calc(var(--side-nav-w) + 18px);
}

body.side-nav-collapsed .side-nav{
  width: var(--side-nav-w-collapsed);
}

body.side-nav-collapsed .side-link{
  justify-content: center;
  padding-left: 8px;
  padding-right: 8px;
  overflow: hidden;
  text-overflow: clip;
}

body.side-nav-collapsed .side-nav-bottom{
  left: 6px;
  right: 6px;
}

body.side-nav-collapsed .side-nav-bottom .btn,
body.side-nav-collapsed .side-nav-bottom .row,
body.side-nav-collapsed .side-nav-bottom .bell-wrap{
  overflow: hidden;
}

body.side-nav-collapsed .side-link:hover{
  transform: none;
}

.grid{
  max-width: 1180px;
  margin: var(--space-4) auto 48px;
  padding: 0 var(--space-4);
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.card{
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--card), transparent 140%);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
}

h2{ margin: 4px 0 10px; font-size: 16px; letter-spacing:0.2px; }
h3{ margin: 10px 0 8px; font-size: 13px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing:0.9px; }

.cols{ display:grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 920px){
  .cols{ grid-template-columns: 1fr 1fr; }
}

.row{ display:flex; align-items:center; gap: var(--space-2); margin: 8px 0; flex-wrap:wrap; }
.row span{ min-width: 120px; color: var(--muted); font-size: 13px; }

.in{
  flex:1;
  min-width: 220px;
  height: 40px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--card2);
  color: var(--text);
  outline: none;
}
.in:focus{ border-color: rgba(77,163,255,0.8); box-shadow: 0 0 0 3px var(--focus); }
textarea.in{
  height: auto;
  min-height: 72px;
  line-height: 1.35;
  resize: none;
  overflow-y: hidden;
}

select.in{
  appearance: auto;
  color: var(--text);
  background-color: rgba(36,43,56,0.92);
}
select.in option{
  color: #e9eef5;
  background: #1b2432;
}
html[data-theme="light"] select.in{
  color: #101827;
  background-color: rgba(255,255,255,0.9);
}
html[data-theme="light"] select.in option{
  color: #101827;
  background: #ffffff;
}

#lang.in,
.lang-select{
  min-width: 78px;
  max-width: 88px;
  width: 88px;
  flex: 0 0 auto;
  border-color: rgba(139,92,246,0.65);
  background: rgba(139,92,246,0.16);
  border-radius: 12px;
}
#lang.in:focus,
.lang-select:focus{
  border-color: rgba(139,92,246,0.85);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.22);
}
#lang.in option,
.lang-select option{
  color: #efe7ff;
  background: #281c45;
}
html[data-theme="light"] #lang.in,
html[data-theme="light"] .lang-select{
  border-color: rgba(111,76,255,0.55);
  background: rgba(111,76,255,0.12);
}
html[data-theme="light"] #lang.in option,
html[data-theme="light"] .lang-select option{
  color: #1f1737;
  background: #f1ecff;
}

.btn{
  min-height: 40px;
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--card2);
  color: var(--text);
  cursor:pointer;
  font-weight: 700;
}
.btn.primary{ border-color: rgba(139,92,246,0.55); background: rgba(139,92,246,0.16); }
.btn.danger{ border-color: rgba(255,77,77,0.55); background: rgba(255,77,77,0.12); }

.rich-table-wrap{ overflow:auto; border:1px solid var(--line); border-radius:10px; }
.rich-table th, .rich-table td{ white-space:nowrap; vertical-align:top; }
.kv-grid{ display:grid; grid-template-columns: 180px 1fr; gap:6px 10px; }
.kv-grid .k{ color: var(--muted); font-weight:700; }
.kv-grid .v{ color: var(--text); }
.kv-list{ margin:0; padding-left: 16px; }

.support-chat{ display:grid; grid-template-columns: 300px 1fr; gap:12px; margin-top: 10px; }
.support-chat-left, .support-chat-right{ border:1px solid var(--line); border-radius:12px; padding:10px; background:rgba(255,255,255,0.03); }
.chat-list{ display:flex; flex-direction:column; gap:8px; max-height:520px; overflow:auto; }
.chat-item{ width:100%; text-align:left; border:1px solid var(--line); background:rgba(255,255,255,0.04); color:var(--text); border-radius:10px; padding:9px; cursor:pointer; }
.chat-item.active{ border-color: rgba(139,92,246,0.6); background: rgba(139,92,246,0.16); }
.chat-title{ font-weight:800; font-size:13px; }
.chat-sub{ font-size:12px; color:var(--muted); margin-top:3px; }
.chat-meta{ margin-top:6px; font-size:11px; color:var(--muted); }
.badge{ display:inline-block; min-width:18px; height:18px; border-radius:999px; padding:0 6px; background:rgba(139,92,246,0.2); border:1px solid rgba(139,92,246,0.65); color:#d7c7ff; line-height:16px; text-align:center; font-size:11px; }
.chat-messages{ min-height:320px; max-height:520px; overflow:auto; display:flex; flex-direction:column; gap:8px; padding:8px; border:1px solid var(--line); border-radius:10px; background:rgba(0,0,0,0.15); }
.chat-bubble{ max-width:78%; padding:8px 10px; border-radius:10px; border:1px solid var(--line); }
.chat-bubble.mine{ align-self:flex-end; background:rgba(139,92,246,0.18); border-color: rgba(139,92,246,0.55); }
.chat-bubble.peer{ align-self:flex-start; background:rgba(255,255,255,0.06); }
.chat-time{ margin-top:4px; font-size:11px; color:var(--muted); }
.chat-text{ white-space:pre-wrap; word-break:break-word; }

.bell-wrap{ position:relative; }
.bell-btn{
  position:relative;
  min-width:50px;
  min-height:50px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  border-radius:10px;
}
.bell-icon{
  width:48px;
  height:48px;
  object-fit:contain;
  display:block;
}
.bell-badge{ position:absolute; right:3px; top:2px; font-size:10px; font-weight:800; background:#8b5cf6; color:#fff; border-radius:999px; padding:1px 5px; border:1px solid rgba(255,255,255,0.35); }
.bell-panel{ position:absolute; right:0; top:46px; width:320px; max-height:360px; overflow:auto; border:1px solid var(--line); border-radius:12px; background:rgba(8,12,19,0.97); padding:8px; z-index:20; box-shadow: var(--shadow); }
.bell-item{ display:block; border:1px solid var(--line); border-radius:10px; padding:8px; margin-bottom:8px; text-decoration:none; color:var(--text); background:rgba(255,255,255,0.03); }
.bell-title{ font-weight:800; font-size:13px; }
.bell-sub{ margin-top:3px; color:var(--muted); font-size:12px; }
.bell-time{ margin-top:5px; color:var(--muted); font-size:11px; }
.bell-empty{
  border:1px solid var(--line);
  border-radius:10px;
  padding:10px;
  color:var(--muted);
  background:rgba(255,255,255,0.03);
}
.bell-all{
  display:block;
  text-align:center;
  border:1px solid rgba(139,92,246,0.55);
  border-radius:10px;
  padding:8px;
  margin-top:4px;
  color:var(--text);
  text-decoration:none;
  background:rgba(139,92,246,0.14);
  font-weight:700;
}
html[data-theme="light"] .bell-btn{
  border-color: rgba(76, 86, 110, 0.24);
  background: rgba(236,241,251,0.92);
}
html[data-theme="light"] .bell-panel{
  border-color: rgba(76, 86, 110, 0.24);
  background: rgba(248,251,255,0.98);
  box-shadow: 0 14px 26px rgba(35, 45, 70, 0.15);
}
html[data-theme="light"] .bell-item{
  border-color: rgba(76, 86, 110, 0.20);
  background: rgba(233,239,249,0.85);
  color: #152033;
}
html[data-theme="light"] .bell-title{ color:#101a2c; }
html[data-theme="light"] .bell-sub{ color: #34425d; }
html[data-theme="light"] .bell-time{ color: #4c5973; }
html[data-theme="light"] .bell-empty{
  border-color: rgba(76, 86, 110, 0.20);
  background: rgba(233,239,249,0.72);
  color: #34425d;
}

@media (max-width: 980px){
  .support-chat{ grid-template-columns: 1fr; }
}
.btn:hover{ filter: brightness(1.05); }
.btn:focus-visible{ outline: none; box-shadow: 0 0 0 3px var(--focus); }

.mini{ font-size: 12px; margin-top: 6px; }
.muted{ color: var(--muted); }
.theme-toggle-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-width:0;
  padding:0;
  border:0;
  background:transparent;
  min-height:56px;
}
.theme-toggle-track{
  width:100%;
  height:56px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,0.06);
  display:grid;
  grid-template-columns: 1fr 1fr;
  padding:0;
  position:relative;
  overflow:hidden;
}
html[data-theme="light"] .theme-toggle-track{
  border-color: rgba(15,23,42,0.16);
  background: rgba(255,255,255,0.78);
}
.theme-toggle-half{
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:center;
}
.theme-toggle-side{
  width:54px;
  height:54px;
  object-fit:contain;
  opacity:0.9;
}
.theme-toggle-active{
  position:absolute;
  top:0;
  left:0;
  width:50%;
  height:100%;
  background:rgba(5,8,14,0.56);
  border-right:1px solid rgba(255,255,255,0.12);
  z-index:1;
  transition:left .18s ease;
}
html[data-theme="light"] .theme-toggle-active{
  background: rgba(15,23,42,0.16);
  border-right:1px solid rgba(15,23,42,0.14);
}
.theme-toggle-track.dark .theme-toggle-active{ left:50%; border-right:0; border-left:1px solid rgba(255,255,255,0.12); }
html[data-theme="light"] .theme-toggle-track.dark .theme-toggle-active{
  border-left:1px solid rgba(15,23,42,0.14);
}

.auth-switch{
  margin-bottom: 12px;
}

.auth-tab{
  min-width: 140px;
}

.auth-tab.active{
  border-color: rgba(139,92,246,0.55);
  background: rgba(139,92,246,0.16);
}

.auth-pane{
  display: none;
}

.auth-pane.active{
  display: block;
}

.symbol-picker-wrap{
  margin-top: 8px;
}

.symbol-picker{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.symbol-chip{
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.symbol-chip:hover{ filter: brightness(1.06); }

.symbol-chip.on{
  border-color: rgba(139,92,246,0.65);
  background: rgba(139,92,246,0.22);
  color: var(--text);
}

.symbol-chip.off{
  border-color: rgba(255,255,255,0.2);
  background: rgba(120,128,145,0.16);
  color: var(--muted);
}

.out{
  margin: 10px 0 0;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.18);
  overflow:auto;
  max-height: 260px;
  font-family: var(--mono);
  font-size: 12px;
}
html[data-theme="light"] .out{ background: rgba(255,255,255,0.7); }
.out.out-ok{ border-color: rgba(139,92,246,0.55); background: rgba(139,92,246,0.08); color: var(--text); }
.out.out-error{ border-color: rgba(255,77,77,0.6); background: rgba(255,77,77,0.08); color: var(--text); }
.out.out-empty{ border-color: rgba(77,163,255,0.55); background: rgba(77,163,255,0.08); color: var(--muted); }
.out .tbl, .out .kv-grid, .out .kv-list{ font-family: var(--sans); font-size: 12px; }
.trade-run-badge{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.22);
  background:rgba(255,255,255,0.06);
  color:var(--text);
  font-weight:700;
}
.trade-run-badge.running{
  border-color:rgba(139,92,246,0.8);
  background:rgba(139,92,246,0.18);
}
.trade-run-badge.warn{
  border-color:rgba(255,193,7,0.8);
  background:rgba(255,193,7,0.16);
}
.trade-run-badge.off{
  border-color:rgba(255,77,77,0.8);
  background:rgba(255,77,77,0.15);
}

.bybit-page .trade-status-actions{
  display:grid;
  --trade-status-w: 320px;
  grid-template-columns: var(--trade-status-w) var(--trade-status-w);
  gap: 10px;
  width: max-content;
  max-width:100%;
  justify-content: start;
}
.bybit-page .trade-status-actions #tradeRunBadge,
.bybit-page .trade-status-actions #btnTradeRuntimeRefresh{
  width: var(--trade-status-w);
  min-width: var(--trade-status-w);
  max-width: var(--trade-status-w);
  justify-content:center;
  text-align:center;
}
.bybit-page .trade-status-actions #btnTradeRuntimeRefresh{
  display:inline-flex;
  align-items:center;
}
@media (max-width: 760px){
  .bybit-page .trade-status-actions{
    --trade-status-w: min(100%, 320px);
    grid-template-columns: 1fr;
    width:100%;
  }
  .bybit-page .trade-status-actions #tradeRunBadge,
  .bybit-page .trade-status-actions #btnTradeRuntimeRefresh{
    width:100%;
    min-width:0;
    max-width:none;
  }
}

.bybit-page .in.auto-mode-field{
  font-weight: 700;
  color: var(--text);
  background: rgba(255,255,255,0.04);
}

.tbl{
  width:100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 13px;
}
.tbl th, .tbl td{
  border-bottom: 1px solid var(--line);
  padding: 8px 8px;
  vertical-align: top;
}
.tbl th{ color: var(--muted); font-weight: 800; text-align:left; }
.tbl .num{ text-align:right; font-family: var(--mono); }

.kv{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
}
@media (min-width: 920px){
  .kv{ grid-template-columns: repeat(4, 1fr); }
}
.k{
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  background: rgba(255,255,255,0.04);
}
.k .kk{ font-size: 12px; color: var(--muted); }
.k .vv{ margin-top: 6px; font-weight: 900; font-family: var(--mono); font-size: 14px; }

.chartWrap{
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow:hidden;
  background: rgba(0,0,0,0.18);
}
html[data-theme="light"] .chartWrap{ background: rgba(255,255,255,0.7); }
#equityChart{ width: 100%; height: 160px; display:block; }

.hero h1{
  margin: 4px 0 10px;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.08;
  letter-spacing: 0.2px;
}

.feature-grid{
  grid-template-columns: 1fr;
}

.pricing-grid{
  display:grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

@media (min-width: 920px){
  .pricing-grid{
    grid-template-columns: 1fr 1fr;
  }
}

.plan{
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(180deg, var(--card2), rgba(255,255,255,0.02));
}

.plan h3{
  margin: 0 0 8px;
}

.plan-price{
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 8px;
}

.bybit-page .trade-main-card,
.bybit-page .trade-status-card{
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

@media (min-width: 920px){
  .bybit-page .cols{
    grid-template-columns: minmax(520px, 620px) minmax(280px, 360px);
    justify-content: center;
    column-gap: 28px;
  }
  .bybit-page .compact-form .row .in{
    flex: 0 1 320px;
    max-width: 320px;
    min-width: 180px;
  }
  .bybit-page .compact-form .row span{
    min-width: 180px;
  }
}

@media (max-width: 1024px){
  body.side-nav-enabled .grid{
    padding-left: calc(var(--side-nav-w) + 10px);
  }
  .top{
    position: sticky;
    align-items: flex-start;
    gap: var(--space-2);
  }
  .right{
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 780px){
  body.side-nav-enabled .side-nav{
    display: none;
  }
  body.side-nav-enabled .top .right .private-link{
    display: inline-flex !important;
  }
  body.side-nav-enabled .grid{
    margin-top: 12px;
    padding-left: 12px;
  }
  .top{
    padding: 12px;
  }
  .right{
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 2px;
  }
  .right .btn,
  .right .row{
    flex: 0 0 auto;
  }
  .grid{
    margin-top: 12px;
    padding: 0 12px;
  }
  .card{
    padding: 12px;
    border-radius: var(--radius-md);
  }
  .row span{
    min-width: 92px;
  }
  .in{
    min-width: 150px;
  }
}

