* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
:root {
  --bg: #e9eef4;
  --card: #fff;
  --text: #1c2430;
  --text-strong: #111;
  --muted: #667085;
  --faint: #8b95a5;
  --faint-2: #98a2b3;
  --line: #eef1f5;
  --line-2: #e7edf3;
  --line-3: #eef2f6;
  --line-4: #e6ebf1;
  --soft: #f6f8fa;
  --soft-2: #f2f4f7;
  --input: #f8fafc;
  --nav: #eef1f5;
  --nav-active: #fff;
  --nav-muted: #8a93a3;
  --icon: #f2f4f7;
  --icon-fg: #6b7380;
  --icon-hover: #e8ecf1;
  --row-hover: #f7f9fb;
  --row-on: #f3f8f5;
  --row-ring: #d8f3e4;
  --pills: #eef2f6;
  --ticket: #f3f5f8;
  --green-soft: #e7f8ee;
  --sell-bg: #fdecef;
  --warn-bg: #fff8e8;
  --warn-fg: #b45309;
  --warn-line: #f3e6c4;
  --hold-bg: #fff7ed;
  --dep-on: #f0fdf4;
  --track: #d0d5dd;
  --placeholder: #b0b7c3;
  --header-ring: #fff;
  --knob: #fff;
  --shadow: rgba(16, 24, 40, .16);
  --nav-shadow: 0 1px 2px rgba(16, 24, 40, .08);
  --elev: 0 12px 40px rgba(16, 24, 40, .16);
  --scrim: rgba(16, 24, 40, .28);
  --chip-bg: #eaf2ff;
}
html.dark,
body.dark {
  color-scheme: dark;
  --bg: #12161c;
  --card: #1b222c;
  --text: #e8eef5;
  --text-strong: #f3f6fa;
  --muted: #9aa3b2;
  --faint: #9aa3b2;
  --faint-2: #8b95a5;
  --line: #2a3340;
  --line-2: #2a3340;
  --line-3: #2a3340;
  --line-4: #2a3340;
  --soft: #232b36;
  --soft-2: #232b36;
  --input: #161b22;
  --nav: #232b36;
  --nav-active: #161b22;
  --nav-muted: #9aa3b2;
  --icon: #232b36;
  --icon-fg: #c5ccd6;
  --icon-hover: #2a3340;
  --row-hover: #232b36;
  --row-on: #163224;
  --row-ring: #1d4a32;
  --pills: #232b36;
  --ticket: #161b22;
  --green-soft: #163224;
  --sell-bg: #3a1c24;
  --warn-bg: #3a2e14;
  --warn-fg: #fbbf24;
  --warn-line: #5b4a1e;
  --hold-bg: #3a2e14;
  --dep-on: #163224;
  --track: #3a4452;
  --placeholder: #7d8796;
  --header-ring: #1b222c;
  --knob: #fff;
  --shadow: rgba(0, 0, 0, .45);
  --nav-shadow: none;
  --elev: 0 12px 40px rgba(0, 0, 0, .45);
  --scrim: rgba(0, 0, 0, .45);
  --chip-bg: #1e2a44;
}
body {
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
}
button, input, select { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; padding: 0; }
a { text-decoration: none; color: inherit; }
.ctrl { position: absolute; opacity: 0; pointer-events: none; }

.app { height: 100%; display: flex; flex-direction: column; }

.top {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 16px 0 14px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 25;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.logo .mark { width: 28px; height: 28px; flex: none; }
.logo .word {
  font-weight: 800;
  letter-spacing: .03em;
  font-size: 17px;
  color: var(--text-strong);
  line-height: 1;
}
.logo .word span { color: #5adf2a; }

.acct {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 4px 0 0;
  background: none;
  color: var(--text);
  cursor: pointer;
}
.acct-demo, .acct-live {
  color: #16c15a;
  background: var(--green-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 4px 7px;
  border-radius: 6px;
}
.acct-live { display: none; }
.acct-id { font-size: 13px; font-weight: 650; }
.id-b, .id-c { display: none; }
#acc-b:checked ~ .app .id-a { display: none; }
#acc-b:checked ~ .app .id-b { display: inline; }
#acc-c:checked ~ .app .id-a,
#acc-c:checked ~ .app .id-b { display: none; }
#acc-c:checked ~ .app .id-c { display: inline; }
#acc-c:checked ~ .app .acct > .acct-demo { display: none; }
#acc-c:checked ~ .app .acct > .acct-live { display: inline; }
.chev { width: 12px; height: 12px; color: var(--faint-2); flex: none; transition: transform .15s; }
#hdr-acct:checked ~ .app .acct .chev,
#hdr-profit:checked ~ .app .profit .chev { transform: rotate(180deg); }

.nav {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 3px;
  margin-left: 4px;
  gap: 0;
  border-radius: 999px;
  background: var(--nav);
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--nav-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.nav-link svg { width: 15px; height: 15px; }
#page-home:checked ~ .app .nav-link[for="page-home"],
#page-trade:checked ~ .app .nav-link[for="page-trade"],
#page-stake:checked ~ .app .nav-link[for="page-stake"],
#page-analytics:checked ~ .app .nav-link[for="page-analytics"],
#page-explore:checked ~ .app .nav-link[for="page-explore"] {
  background: var(--nav-active);
  color: var(--text);
  box-shadow: var(--nav-shadow);
}
#page-home:checked ~ .app .nav-link[for="page-home"] svg,
#page-trade:checked ~ .app .nav-link[for="page-trade"] svg,
#page-stake:checked ~ .app .nav-link[for="page-stake"] svg,
#page-analytics:checked ~ .app .nav-link[for="page-analytics"] svg,
#page-explore:checked ~ .app .nav-link[for="page-explore"] svg {
  color: #16c15a;
}

.top-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.profit {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 8px;
  color: var(--text);
  cursor: pointer;
}
.profit-text { display: flex; align-items: flex-end; }
.metric { display: none; flex-direction: column; align-items: flex-end; line-height: 1.15; }
#m-profit:checked ~ .app .met-profit,
#m-balance:checked ~ .app .met-balance,
#m-equity:checked ~ .app .met-equity,
#m-free:checked ~ .app .met-free,
#m-margin:checked ~ .app .met-margin,
#m-level:checked ~ .app .met-level { display: flex; }
.metric small { color: var(--muted); font-size: 11px; font-weight: 500; }
.metric b { font-size: 13px; font-weight: 650; }

.icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--icon-fg);
  background: var(--icon);
  position: relative;
}
.icon svg { width: 18px; height: 18px; }
.icon:hover, .draw button:hover { background: var(--icon-hover); }
.icon.sm { width: 28px; height: 28px; background: none; }
.wifi::after {
  content: "";
  position: absolute;
  right: 6px;
  bottom: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e11d48;
  box-shadow: 0 0 0 2px var(--header-ring);
}
.icon { cursor: pointer; }
.menu-bg {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 24;
}
#hdr-acct:checked ~ .menu-bg,
#hdr-profit:checked ~ .menu-bg,
#hdr-wifi:checked ~ .menu-bg,
#hdr-bell:checked ~ .menu-bg,
#hdr-menu:checked ~ .menu-bg { display: block; }
.hdr-wrap, .profile-wrap { position: relative; }
.drop-menu, .profile-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--elev);
  z-index: 26;
  padding: 8px;
}
.profile-menu { right: 0; width: 268px; max-height: min(78vh, 640px); overflow: auto; }
.profile-menu.lang-open .menu-main { display: none; }
.profile-menu .lang-panel { display: none; }
.profile-menu.lang-open .lang-panel { display: block; }
.lang-head {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 10px;
  color: var(--text);
  font-weight: 650;
}
.lang-head svg { width: 18px; height: 18px; color: var(--faint); }
.lang-opt {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
}
.lang-opt:hover { background: var(--soft); }
.lang-opt .tick { margin-left: auto; opacity: 0; color: #16c15a; width: 16px; height: 16px; }
.lang-opt.on .tick { opacity: 1; }
.profile-menu .lang-opt .tick { color: #16c15a; }
.lang-flag {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  overflow: hidden;
  flex: none;
  box-shadow: 0 0 0 1px rgba(16,24,40,.08);
}
.lang-flag svg { width: 100%; height: 100%; display: block; }
#set-lang-list { display: none; padding-top: 4px; }
#set-lang-list.open { display: block; }
#set-lang-list .lang-opt { padding: 0 8px; border-radius: 10px; color: var(--text); }
.set-row#set-lang-open {
  width: 100%;
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  font: inherit;
  text-align: left;
}
.acct-menu { left: 0; width: 280px; }
.profit-menu { right: 0; width: 260px; }
.wifi-menu { right: 0; width: 260px; }
.bell-menu { right: 0; width: 260px; }
#hdr-acct:checked ~ .app .acct-menu,
#hdr-profit:checked ~ .app .profit-menu,
#hdr-wifi:checked ~ .app .wifi-menu,
#hdr-bell:checked ~ .app .bell-menu,
#hdr-menu:checked ~ .app .profile-menu { display: block; }
.drop-kicker {
  margin: 4px 10px 8px;
  color: var(--faint-2);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.acct-card {
  display: grid;
  grid-template-columns: auto 1fr 16px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
}
.acct-card:hover { background: var(--soft); }
.acct-card span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.acct-card b { font-size: 13px; }
.acct-card small { color: var(--faint-2); font-size: 11px; }
.tick { width: 16px; height: 16px; color: #16c15a; opacity: 0; }
#acc-a:checked ~ .app .acct-card[for="acc-a"] .tick,
#acc-b:checked ~ .app .acct-card[for="acc-b"] .tick,
#acc-c:checked ~ .app .acct-card[for="acc-c"] .tick,
#m-profit:checked ~ .app .drop-item[for="m-profit"] .tick,
#m-balance:checked ~ .app .drop-item[for="m-balance"] .tick,
#m-equity:checked ~ .app .drop-item[for="m-equity"] .tick,
#m-free:checked ~ .app .drop-item[for="m-free"] .tick,
#m-margin:checked ~ .app .drop-item[for="m-margin"] .tick,
#m-level:checked ~ .app .drop-item[for="m-level"] .tick { opacity: 1; }
#acc-a:checked ~ .app .acct-card[for="acc-a"],
#acc-b:checked ~ .app .acct-card[for="acc-b"],
#acc-c:checked ~ .app .acct-card[for="acc-c"] { background: var(--soft); }
.acct-card-c { display: none; }
html.has-live .acct-card-c { display: grid; }
.acct-card .acct-live { display: inline; }
.drop-cta {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  color: #16c15a;
  font-weight: 650;
  text-align: left;
  padding: 0 10px;
}
.drop-cta:hover { background: var(--soft); }

.oa-bg {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(16, 24, 40, .38);
}
.oa-modal {
  display: none;
  position: fixed;
  z-index: 51;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(540px, calc(100vw - 32px));
  padding: 40px 40px 32px;
  background: #fff;
  color: #1c2430;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(16, 24, 40, .22);
}
#acct-open:checked ~ .oa-bg,
#acct-open:checked ~ .oa-modal { display: block; }
.oa-modal h2 {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #101828;
  line-height: 1.2;
}
.oa-copy {
  margin: 0 0 24px;
  color: #667085;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}
.oa-field {
  display: block;
  margin-bottom: 18px;
}
.oa-field > span:first-child {
  display: block;
  margin: 0 0 8px 4px;
  color: #667085;
  font-size: 12px;
  font-weight: 500;
}
.oa-select {
  position: relative;
  display: block;
}
.oa-select select {
  width: 100%;
  height: 46px;
  padding: 0 40px 0 16px;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  background: #fff;
  color: #101828;
  font-size: 14px;
  font-weight: 600;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
}
.oa-select select:focus { border-color: #98a2b3; }
.oa-select svg {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 12px;
  height: 12px;
  color: #98a2b3;
  pointer-events: none;
  transform: translateY(-50%);
}
.oa-meta {
  display: grid;
  gap: 8px;
  margin: 6px 0 28px;
}
.oa-meta div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 22px;
  padding: 0 2px;
}
.oa-meta span {
  color: #667085;
  font-size: 13px;
  font-weight: 500;
}
.oa-meta b {
  color: #101828;
  font-size: 14px;
  font-weight: 650;
}
.oa-submit {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  background: #16c15a;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.oa-submit:hover { background: #14b351; }
body.dark .oa-bg { background: rgba(0, 0, 0, .55); }
body.dark .oa-modal {
  background: var(--card);
  color: var(--text);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .5);
}
body.dark .oa-modal h2 { color: var(--text-strong); }
body.dark .oa-copy,
body.dark .oa-field > span:first-child,
body.dark .oa-meta span { color: var(--muted); }
body.dark .oa-select select {
  background: var(--input);
  border-color: var(--line-2);
  color: var(--text-strong);
}
body.dark .oa-meta b { color: var(--text-strong); }
.drop-item {
  display: grid;
  grid-template-columns: 1fr auto 16px;
  gap: 10px;
  align-items: center;
  min-height: 40px;
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--muted);
}
.drop-item:hover { background: var(--soft); }
.drop-item span { font-size: 13px; }
.drop-item b { font-size: 12px; color: var(--text); font-weight: 650; }
.conn-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-weight: 650;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16c15a;
}
.dot.bad { background: #e11d48; }
.drop-note {
  margin: 0 10px 8px;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.45;
}
.note-empty {
  padding: 28px 12px;
  text-align: center;
  color: var(--faint);
}
.note-dot {
  position: absolute;
  right: 6px;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16c15a;
  box-shadow: 0 0 0 2px var(--header-ring);
}
.note-dot[hidden] { display: none !important; }
.bell-menu { width: 300px; max-height: min(72vh, 480px); overflow: auto; }
.note-list { display: none; padding: 0 4px 6px; }
.bell-menu.has-notes .note-empty { display: none; }
.bell-menu.has-notes .note-list { display: block; }
.note-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 10px;
  border-radius: 12px;
  color: var(--text);
}
.note-item:hover { background: var(--soft); }
.note-item b {
  display: block;
  font-size: 13px;
  font-weight: 700;
}
.note-item span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}
.note-item small {
  display: block;
  margin-top: 4px;
  color: var(--faint);
  font-size: 11px;
}

.toast-stack {
  position: fixed;
  top: 64px;
  right: 14px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  width: min(360px, calc(100vw - 24px));
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  width: 100%;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 28px;
  gap: 10px;
  align-items: start;
  padding: 12px 10px 12px 12px;
  border-radius: 16px;
  background: var(--card);
  color: var(--text);
  box-shadow: var(--elev);
  border: 1px solid var(--line);
  transform: translateX(120%);
  opacity: 0;
  transition: transform .32s cubic-bezier(.2, .8, .2, 1), opacity .24s ease;
}
.toast.in {
  transform: translateX(0);
  opacity: 1;
}
.toast.out {
  transform: translateX(120%);
  opacity: 0;
}
.toast-ico {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: #16c15a;
  flex: none;
}
.toast-ico svg { width: 18px; height: 18px; }
.toast.warn .toast-ico { background: var(--warn-bg); color: var(--warn-fg); }
.toast-copy b {
  display: block;
  font-size: 13px;
  font-weight: 750;
  color: var(--text-strong);
}
.toast-copy span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}
.toast-x {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--faint);
  border-radius: 8px;
}
.toast-x:hover { color: var(--text); background: var(--icon); }
.toast-x svg { width: 14px; height: 14px; }
@media (max-width: 900px) {
  .toast-stack {
    top: calc(60px + env(safe-area-inset-top, 0px));
    right: 10px;
    width: min(360px, calc(100vw - 20px));
  }
}
.live {
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: #16c15a;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  margin-left: 2px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.menu-email {
  padding: 10px 12px;
  margin-bottom: 4px;
  border-radius: 10px;
  background: var(--soft-2);
  color: var(--faint);
  font-size: 13px;
  font-weight: 500;
}
.profile-menu button,
.profile-menu .menu-go {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.profile-menu button:hover,
.profile-menu .menu-go:hover { background: var(--soft); }
.profile-menu button svg,
.profile-menu .menu-go svg {
  width: 18px;
  height: 18px;
  color: var(--faint);
  flex: none;
}
.menu-sep {
  height: 1px;
  background: var(--line);
  margin: 6px 8px;
}
.menu-lang {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--faint-2);
  font-size: 12px;
  font-weight: 600;
}
.menu-lang img {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(16,24,40,.08);
}
.toggle {
  width: 22px;
  height: 13px;
  border-radius: 99px;
  background: var(--track);
  position: relative;
  flex: none;
  transition: background .15s;
}
.toggle::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  top: 2px;
  left: 2px;
  transition: left .15s;
}
#mode-light:checked ~ .app .toggle {
  background: #16c15a;
}
#mode-light:checked ~ .app .toggle::after { left: 11px; }

/* Theme switcher — sun when dark (click for light), moon when light (click for dark) */
.theme-switch {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
  color: var(--icon-fg, #6b7380);
  background: var(--icon, #f2f4f7);
  border: 1px solid var(--line, #eef1f5);
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .12s ease;
}
.theme-switch:hover {
  background: var(--icon-hover, #e8ecf1);
  color: var(--text-strong, #111);
}
.theme-switch svg { width: 18px; height: 18px; display: block; }
.theme-switch__sun { display: none; }
.theme-switch__moon { display: inline-flex; }
html.dark .theme-switch__sun,
body.dark .theme-switch__sun { display: inline-flex; }
html.dark .theme-switch__moon,
body.dark .theme-switch__moon { display: none; }
.theme-switch--header {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.gate .theme-switch {
  background: rgba(255,255,255,.72);
  border-color: rgba(16,24,40,.08);
  color: #334155;
  backdrop-filter: blur(8px);
}
html.dark .gate .theme-switch,
body.dark .gate .theme-switch {
  background: rgba(27,34,44,.88);
  border-color: rgba(255,255,255,.08);
  color: #e8eef5;
}
.logo img,
.gate-brand img,
.gate-form-brand img {
  height: 28px;
  width: auto;
  max-width: 148px;
  object-fit: contain;
  display: block;
}
.gate-form-brand img { height: 34px; max-width: 168px; }

.logout { color: #e11d48 !important; }
.logout svg { color: #e11d48 !important; }

.workspace {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 378px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 8px;
  padding: 8px;
  overflow: hidden;
}
.left {
  grid-column: 1;
  grid-row: 1;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1.42fr) 14px minmax(220px, .86fr);
  gap: 0;
}
.main {
  display: none;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  flex-direction: column;
  padding: 0;
  background: var(--bg);
}
#page-trade:checked ~ .app .main { display: flex; }
#page-trade:checked ~ .app .workspace {
  grid-template-rows: minmax(0, 1fr) 236px;
  padding: 8px 0 0 8px;
  gap: 8px;
}
#page-trade:checked ~ .app .left {
  grid-row: 1 / -1;
  margin: 0 8px 8px 0;
}
#page-trade:checked ~ .app .blotter { display: flex; }
#page-stake:checked ~ .app .workspace {
  grid-template-rows: minmax(0, 1fr) 236px;
  padding: 8px 0 0 8px;
  gap: 8px;
}
#page-stake:checked ~ .app .left {
  grid-row: 1 / -1;
  margin: 0 8px 8px 0;
}
#page-stake:checked ~ .app .st-blotter { display: flex; }
#page-stake:checked ~ .app .staking-page {
  padding: 12px 20px 6px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  overflow: hidden;
  height: 100%;
  max-height: 100%;
  min-height: 0;
}
#page-stake:checked ~ .app .staking-page .steps {
  margin-bottom: 10px;
}
#page-stake:checked ~ .app .staking-page .an-kpi {
  padding: 12px 16px 12px;
}
#page-stake:checked ~ .app .staking-page .an-kpi b {
  margin-top: 4px;
  font-size: 20px;
}
#page-home:checked ~ .app .home { display: flex; }
#page-deposit:checked ~ .app .deposit-page { display: flex; }
#page-account:checked ~ .app .account-page { display: flex; }
#page-settings:checked ~ .app .settings-page { display: flex; }
#page-stake:checked ~ .app .staking-page,
#page-analytics:checked ~ .app .analytics-page,
#page-explore:checked ~ .app .explore-page { display: flex; }

.home,
.placeholder-page,
.deposit-page,
.account-page,
.settings-page,
.analytics-page,
.staking-page,
.explore-page {
  display: none;
  grid-column: 2;
  grid-row: 1;
  min-height: 0;
  overflow: auto;
  justify-content: center;
  padding: 24px 48px 32px;
}
.placeholder-page .hcard {
  width: min(100%, 720px);
  padding: 22px 24px;
}

.hcard {
  background: var(--card);
  border-radius: 18px;
  box-shadow: 0 1px 0 rgba(16,24,40,.04);
}
.home-wrap {
  width: min(100%, 1040px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.verify {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 360px);
  gap: 24px;
  align-items: center;
  padding: 28px 28px 28px 32px;
}
.steps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--track);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}
.step.done {
  background: #16c15a;
  border-color: #16c15a;
}
.step svg { width: 14px; height: 14px; }
.steps i {
  width: 16px;
  height: 1.5px;
  background: var(--track);
}
.verify-copy h1 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -.02em;
  font-weight: 750;
}
.verify-copy p {
  margin: 0 0 22px;
  max-width: 420px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 500;
}
.verify-btn {
  height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  background: #16c15a;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
}
.verify-video { min-width: 0; }
.video-art {
  position: relative;
  height: 168px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(90deg, #0b1220 0 46%, #1a2333 46% 100%);
  color: #fff;
}
.v-logo {
  position: absolute;
  left: 16px;
  top: 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  color: #7CFF3A;
}
.video-art h2 {
  position: absolute;
  left: 16px;
  top: 52px;
  margin: 0;
  font-size: 22px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.02em;
}
.video-art h2 em {
  font-style: normal;
  color: #7CFF3A;
  font-size: 24px;
}
.play-btn {
  position: absolute;
  left: 46%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  z-index: 2;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.play-btn svg { width: 22px; height: 22px; }
.portrait {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 118px;
  height: 132px;
}
.frame {
  position: absolute;
  inset: 0;
  border: 3px solid #7CFF3A;
  border-radius: 4px;
  clip-path: polygon(0 0, 100% 0, 100% 18%, 82% 18%, 82% 100%, 0 100%);
}
.face {
  position: absolute;
  right: 10px;
  bottom: 8px;
  width: 78px;
  height: 92px;
  border-radius: 40px 40px 18px 18px;
  background: linear-gradient(#f0c7a8, #d9a07a);
}
.hair {
  position: absolute;
  right: 6px;
  top: 8px;
  width: 90px;
  height: 70px;
  border-radius: 40px 30px 20px 40px;
  background: #3a2418;
}

.home-split {
  display: grid;
  grid-template-columns: 1.2fr .9fr;
  gap: 16px;
  align-items: start;
}
.home-col { display: flex; flex-direction: column; gap: 16px; }

.tori {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 12px;
  padding: 22px 22px 20px;
  position: relative;
}
.tori-x {
  position: absolute;
  top: 14px;
  right: 16px;
  color: var(--faint-2);
  font-size: 18px;
}
.tori-text h3 { margin: 0 0 8px; font-size: 18px; }
.tori-text p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.45;
  max-width: 420px;
}
.learn { color: #16c15a; font-weight: 650; }
.learn span { font-size: 16px; }

.cube {
  width: 92px;
  height: 92px;
  margin: 10px 8px 0 auto;
  position: relative;
  transform: rotateX(12deg);
}
.cube-top, .cube-left, .cube-right {
  position: absolute;
  width: 56px;
  height: 56px;
}
.cube-top {
  left: 18px;
  top: 4px;
  background: #d9efe3;
  transform: rotate(45deg) skew(12deg, 12deg);
  border-radius: 8px;
}
.cube-left {
  left: 8px;
  top: 28px;
  background: #b7e3cc;
  transform: skewY(18deg);
  border-radius: 8px;
}
.cube-right {
  left: 36px;
  top: 28px;
  background: #8fd6b0;
  transform: skewY(-18deg);
  border-radius: 8px;
}
.cube-top::after, .cube-left::after, .cube-right::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 3px solid #16c15a;
  border-radius: 4px;
  opacity: .55;
}

.composer { padding: 18px 20px 14px; }
.composer-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.uae {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  box-shadow: 0 0 0 1px var(--line-4);
}
.uae svg { width: 100%; height: 100%; display: block; }
.composer-row input {
  flex: 1;
  border: 0;
  outline: 0;
  font-size: 15px;
  background: none;
}
.composer-row input::placeholder { color: var(--faint-2); }
.composer-actions { display: flex; gap: 18px; padding-top: 12px; }
.composer-actions button {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-weight: 600;
}
.composer-actions svg { width: 16px; height: 16px; }

.movers { padding: 20px 20px 16px; }
.movers-head { display: flex; justify-content: space-between; align-items: flex-start; }
.movers h3 { margin: 0 0 4px; font-size: 18px; }
.movers p { margin: 0; color: var(--muted); }
.info-i {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--track);
  font-size: 10px;
  color: var(--faint-2);
  vertical-align: middle;
}
.bars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 16px;
}
.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.pct { font-size: 12px; font-weight: 700; min-height: 16px; }
.pct.down { color: #e11d48; }
.pct.up { color: #16c15a; }
.track {
  width: 46px;
  height: 128px;
  display: flex;
  align-items: flex-end;
}
.fill {
  width: 46px;
  border-radius: 6px 6px 3px 3px;
  background: #e11d48;
}
.fill.up { background: #16c15a; }
.empty-fill {
  width: 42px;
  height: 62%;
  border-radius: 6px 6px 3px 3px;
  background: var(--line);
}
.coin {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}
.coin.eth { background: #111; }
.coin.xrp { background: #111; }
.coin.ada { background: #3b82f6; }
.coin.zlab { background: #0f766e; }
.coin.zcld { background: #3b82f6; }
.coin.znxt { background: #7c3aed; }
.coin.empty { background: var(--line); }
.bar-col b { font-size: 12px; color: var(--text); }
.spacer-card { min-height: 72px; }

@media (max-width: 980px) {
  .verify, .home-split, .tori { grid-template-columns: 1fr; }
  .cube { margin: 0 auto 8px; }
}
.card {
  background: var(--card);
  border-radius: 16px;
  min-height: 0;
  overflow: hidden;
}

.watch, .lower { display: flex; flex-direction: column; }
.watch-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px 4px;
}
.lower-tabs {
  display: flex;
  align-items: center;
  padding: 10px 10px 0;
}
.tab-pills {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  height: 40px;
  padding: 3px;
  background: var(--pills);
  border-radius: 999px;
}
.tab-pills label {
  flex: 1;
  min-width: 0;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--faint);
  font-weight: 650;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 999px;
}
.tab-pills label svg { width: 14px; height: 14px; flex: none; }
.search-fab {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #16c15a;
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
}
#tab-fav:checked ~ .app label[for="tab-fav"],
#tab-movers:checked ~ .app label[for="tab-movers"] {
  color: var(--text);
}
#low-cal:checked ~ .app label[for="low-cal"],
#low-mkt:checked ~ .app label[for="low-mkt"],
#low-info:checked ~ .app label[for="low-info"] {
  color: #16c15a;
}
.blotter-tabs {
  display: flex;
  align-items: stretch;
  gap: 2px;
  flex: none;
  height: 42px;
  margin: 0;
  padding: 0 10px 0 8px;
  border-radius: 0;
  background: var(--pills);
  box-sizing: border-box;
}
.blotter-tabs label {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 12px;
  border-radius: 0;
  color: var(--muted);
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  background: none;
  box-shadow: none;
}
.blotter-tabs label svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--nav-muted);
}
.blot-count {
  color: var(--faint-2);
  font-style: normal;
  font-weight: 600;
  font-size: 12px;
  margin-left: 2px;
}
.blot-count:empty { display: none; }
#btab-pos:checked ~ .app label[for="btab-pos"],
#btab-pend:checked ~ .app label[for="btab-pend"],
#btab-closed:checked ~ .app label[for="btab-closed"],
#btab-fin:checked ~ .app label[for="btab-fin"],
#stab-open:checked ~ .app label[for="stab-open"],
#stab-closed:checked ~ .app label[for="stab-closed"] {
  background: none;
  color: var(--text-strong);
  font-weight: 600;
  box-shadow: none;
}
#btab-pos:checked ~ .app label[for="btab-pos"] svg,
#btab-pend:checked ~ .app label[for="btab-pend"] svg,
#btab-closed:checked ~ .app label[for="btab-closed"] svg,
#btab-fin:checked ~ .app label[for="btab-fin"] svg,
#stab-open:checked ~ .app label[for="stab-open"] svg,
#stab-closed:checked ~ .app label[for="stab-closed"] svg {
  color: #16c15a;
}
#btab-pos:checked ~ .app label[for="btab-pos"]::after,
#btab-pend:checked ~ .app label[for="btab-pend"]::after,
#btab-closed:checked ~ .app label[for="btab-closed"]::after,
#btab-fin:checked ~ .app label[for="btab-fin"]::after,
#stab-open:checked ~ .app label[for="stab-open"]::after,
#stab-closed:checked ~ .app label[for="stab-closed"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  background: #16c15a;
  border-radius: 0;
}

.split-grip {
  display: grid;
  place-items: center;
}
.split-grip::before {
  content: "";
  width: 7px;
  height: 7px;
  background: #16c15a;
  transform: rotate(45deg);
  border-radius: 1px;
}

.search {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--input);
}
.search input { border: 0; outline: 0; width: 100%; background: none; }
.search input::placeholder { color: var(--placeholder); }
.watch-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 12px 6px;
}
.live-tag {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--green-soft);
  color: #16c15a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  flex: none;
}
.live-tag i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16c15a;
  box-shadow: 0 0 0 0 rgba(22, 193, 90, .7);
  animation: livePulse 1.6s ease-out infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(22, 193, 90, .55); }
  70% { box-shadow: 0 0 0 6px rgba(22, 193, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 193, 90, 0); }
}
.cols,
.row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1.15fr) 72px 64px 16px;
  gap: 8px;
  align-items: center;
}
.cols {
  padding: 4px 20px 6px;
  color: var(--faint-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.rows { flex: 1; overflow: auto; padding-bottom: 6px; }
.rows::-webkit-scrollbar { width: 6px; }
.rows::-webkit-scrollbar-thumb { background: var(--track); border-radius: 99px; }
.row {
  padding: 8px 10px;
  min-height: 56px;
  margin: 2px 8px;
  border-radius: 12px;
  cursor: pointer;
  width: calc(100% - 16px);
  text-align: left;
  background: transparent;
  font: inherit;
  color: inherit;
}
.row:hover { background: var(--row-hover); }
.row.active {
  background: var(--row-on);
  box-shadow: inset 0 0 0 1px var(--row-ring);
}
.sicon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  flex: none;
}
.sicon.zynx { background: #111; color: #7CFF3A; }
.sicon.zpay { background: #16c15a; }
.sicon.zcld { background: #3b82f6; }
.sicon.znxt { background: #7c3aed; }
.sicon.zlab { background: #0f766e; }
.sicon.znrg { background: #f59e0b; }
.sicon.ada { background: #3b82f6; }
.sicon.xrp { background: #111; font-size: 10px; }
.sicon.nvda { background: #76b900; }
.sicon.eth { background: #627eea; }
.sicon.btc { background: #f7931a; }
.sicon.usdt { background: #26a17b; }
.sicon.empty { background: var(--line); color: transparent; }
.flag-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.flag-stack small {
  font-size: 8px;
  letter-spacing: .04em;
  color: var(--faint-2);
  font-weight: 700;
}
.meta { display: flex; flex-direction: column; min-width: 0; }
.meta b { font-size: 13px; font-weight: 700; letter-spacing: .01em; }
.meta small {
  color: var(--faint-2);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.spark { width: 72px; height: 28px; display: block; overflow: visible; }
.spark-line { fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.spark-fill { opacity: .16; }
.spark.up .spark-line { stroke: #16c15a; }
.spark.up .spark-fill { fill: #16c15a; }
.spark.down .spark-line { stroke: #e11d48; }
.spark.down .spark-fill { fill: #e11d48; }
.quote {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}
.px {
  min-width: 58px;
  padding: 2px 5px;
  border-radius: 6px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
}
.quote .chg { font-size: 11px; font-weight: 700; }
.px.flash-up { animation: pxUp .55s ease; }
.px.flash-down { animation: pxDown .55s ease; }
@keyframes pxUp {
  0% { background: rgba(22, 193, 90, .28); color: #15803d; }
  100% { background: transparent; color: inherit; }
}
@keyframes pxDown {
  0% { background: rgba(225, 29, 72, .22); color: #be123c; }
  100% { background: transparent; color: inherit; }
}
.star {
  width: 16px;
  height: 16px;
  color: var(--track);
}
.star svg { width: 16px; height: 16px; display: block; fill: none; stroke: currentColor; stroke-width: 1.6; }
.star.on { color: #16c15a; }
.star.on svg { fill: currentColor; stroke: none; }

.buy-card .inv-terms { margin: 0 0 12px; }
.buy-card .st-amt-row {
  margin-bottom: 8px;
  padding-bottom: 10px;
}

.flag {
  width: 18px;
  height: 13px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(16,24,40,.08);
}
.flag img { width: 100%; height: 100%; object-fit: cover; display: block; }

.fav-pane, .movers-pane { display: none; flex-direction: column; min-height: 0; flex: 1; }
#tab-fav:checked ~ .app .fav-pane,
#tab-movers:checked ~ .app .movers-pane { display: flex; }
.mover {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--line-3);
}
.chg.up { color: #16c15a; font-weight: 650; }
.chg.down { color: #e11d48; font-weight: 650; }
.chg.hold { color: #f59e0b; font-weight: 650; }

.lower-body { display: none; flex: 1; min-height: 0; overflow: auto; }
#low-cal:checked ~ .app .lower-body.cal,
#low-mkt:checked ~ .app .lower-body.mkt,
#low-info:checked ~ .app .lower-body.info {
  display: flex;
  flex-direction: column;
}
#low-cal:checked ~ .app .lower-body.cal {
  overflow: hidden;
}
.lower-body.cal .cols { padding: 8px 20px 4px; }
.lower-body.cal .rows { padding-bottom: 8px; }

.empty {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-weight: 700;
}
.empty p { margin: 0; font-size: 16px; color: var(--text-strong); }
.bubble {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--green-soft);
  display: grid;
  place-items: center;
}
.info-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-3);
  color: var(--faint);
}
.info-line b { color: var(--text); font-weight: 650; }
.sent { padding: 14px; }
.sent .bar {
  height: 6px;
  margin: 8px 0;
  border-radius: 99px;
  background: var(--sell-bg);
  overflow: hidden;
}
.sent .bar i { display: block; height: 100%; background: #16c15a; }
.sent span { color: var(--faint); font-size: 12px; }

.chart { display: flex; flex-direction: column; }
.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 0 14px;
}
.sym { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.tools { display: flex; align-items: center; gap: 2px; color: var(--muted); }
.tf { padding: 0 8px; font-weight: 700; font-size: 12px; }
.tv { display: flex; align-items: center; gap: 6px; margin: 0 8px; color: var(--text); font-size: 12px; font-weight: 800; }
.switch {
  width: 30px;
  height: 16px;
  border-radius: 99px;
  background: #16c15a;
  position: relative;
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
}
.clock { font-size: 12px; color: var(--faint); }
.ohlc { padding: 2px 14px 4px 50px; color: var(--faint-2); font-size: 12px; }

.chart-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 40px 1fr;
}
.draw {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 6px 0;
  color: var(--muted);
}
.draw button {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.draw button.on { background: var(--soft); color: var(--text); }
.draw .danger { color: #e11d48; }

.stage { position: relative; min-width: 0; min-height: 0; }
.plot { width: 100%; height: 100%; display: block; object-fit: fill; }
.tv-logo {
  position: absolute;
  left: 10px;
  bottom: 28px;
  width: 22px;
  height: 16px;
  border-radius: 3px;
  background: #131722;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  display: grid;
  place-items: center;
  letter-spacing: .02em;
}
.yaxis {
  position: absolute;
  right: 10px;
  top: 6px;
  bottom: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 11px;
  color: var(--faint-2);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.px-tags {
  position: absolute;
  right: 8px;
  top: 42.4%;
  transform: translateY(-42%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  pointer-events: none;
}
.px-tags span {
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  font-variant-numeric: tabular-nums;
}
.px-tags .ask { background: #16c15a; }
.px-tags .bid { background: var(--faint-2); }

.blotter,
.st-blotter {
  display: none;
  flex-direction: column;
  grid-column: 2;
  grid-row: 2;
  height: 236px;
  min-height: 236px;
  max-height: 236px;
  flex-shrink: 0;
  min-width: 0;
  z-index: 2;
  position: relative;
  background: var(--card);
  border-radius: 14px 0 0 0;
  overflow: hidden;
}
.blotter-actions { margin-left: auto; display: flex; align-items: center; gap: 0; }
.blotter-actions button {
  width: 36px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border-radius: 0;
  background: none;
}
.blotter-actions button:hover { color: var(--text); background: none; }
.blotter-actions svg { width: 16px; height: 16px; }
.blotter-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
}
.blotter-empty {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
}
.blot-ico {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--green-soft);
  display: grid;
  place-items: center;
  flex: none;
}
.blot-ico svg { width: 36px; height: 36px; display: block; }
.blotter-empty h3 { margin: 14px 0 4px; font-size: 15px; font-weight: 700; color: var(--text-strong); }
.blotter-empty p { margin: 0; max-width: 280px; color: var(--faint); font-weight: 500; line-height: 1.4; }
#btab-pos:checked ~ .app .blotter-empty.pos,
#btab-pend:checked ~ .app .blotter-empty.pend,
#btab-closed:checked ~ .app .blotter-empty.closed,
#btab-fin:checked ~ .app .blotter-empty.fin { display: flex; }
#btab-pos:checked ~ .app .blotter.has-open .blotter-empty.pos,
#btab-closed:checked ~ .app .blotter.has-closed .blotter-empty.closed { display: none; }
#stab-open:checked ~ .app .st-blotter .blotter-empty.st-open,
#stab-closed:checked ~ .app .st-blotter .blotter-empty.st-closed { display: flex; }
#stab-open:checked ~ .app .st-blotter.has-open .blotter-empty.st-open,
#stab-closed:checked ~ .app .st-blotter.has-closed .blotter-empty.st-closed { display: none; }
.blotter-table {
  display: none;
  height: 100%;
  min-height: 0;
  overflow: auto;
  width: 100%;
  background: var(--card);
}
#btab-pos:checked ~ .app .blotter.has-open .blotter-table.open,
#btab-closed:checked ~ .app .blotter.has-closed .blotter-table.closed,
#stab-open:checked ~ .app .st-blotter.has-open .blotter-table.open,
#stab-closed:checked ~ .app .st-blotter.has-closed .blotter-table.closed { display: block; }
.mt-table {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.mt-c-sym { width: 138px; }
.mt-c-type { width: 70px; }
.mt-c-vol { width: 78px; }
.mt-c-open { width: 88px; }
.mt-c-cur { width: 96px; }
.mt-c-tp { width: 52px; }
.mt-c-sl { width: 80px; }
.mt-c-pos { width: 96px; }
.mt-c-swap { width: 64px; }
.mt-c-pnl { width: 70px; }
.mt-c-acts { width: 52px; }
.st-c-pool { width: 138px; }
.st-c-term { width: 78px; }
.st-c-prin { width: 92px; }
.st-c-apy { width: 64px; }
.st-c-earned { width: 76px; }
.st-c-pos { width: 108px; }
.st-c-status { width: 128px; }
.st-c-acts { width: 92px; }
.mt-table th,
.mt-table td {
  padding: 0 8px;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
  box-sizing: border-box;
  font-variant-numeric: tabular-nums;
}
.mt-table th:first-child,
.mt-table td:first-child { padding-left: 16px; }
.mt-table th:last-child,
.mt-table td:last-child { padding-right: 10px; padding-left: 0; }
.mt-table thead th {
  height: 40px;
  color: var(--faint-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--pills);
  border-bottom: 0;
  position: sticky;
  top: 0;
  z-index: 1;
}
.mt-table tbody td {
  height: 52px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  background: var(--card);
  border-bottom: 0;
}
.mt-table tbody tr:hover td { background: var(--row-hover); }
.mt-h2 {
  line-height: 1.15;
  font-weight: 700;
  white-space: normal;
}
.mt-h2 i { font-style: normal; font-weight: 700; display: block; }
.mt-sym {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 700;
}
.mt-sym .sicon { width: 28px; height: 28px; }
.mt-type {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 500;
}
.mt-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
.mt-dot.sell { background: #e11d48; }
.mt-dot.buy { background: #3b82f6; }
.mt-lot,
.mt-add {
  color: var(--text);
  font-weight: 500;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  text-decoration-color: #c5ced8;
}
.mt-add { color: var(--faint-2); font-weight: 600; }
.mt-add.is-set {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}
.mt-add:hover { color: var(--text); }
.mt-add:disabled { opacity: .35; pointer-events: none; }
.mt-ticket { letter-spacing: .02em; }
.mt-pnl {
  font-weight: 600;
}
.mt-pnl.up { color: #16c15a; }
.mt-pnl.down { color: #e11d48; }
.mt-pnl.flat { color: #e11d48; }
.mt-acts {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2px;
}
.mt-ico {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--faint-2);
  border-radius: 50%;
}
.mt-ico:hover { color: var(--text); }
.mt-ico svg { width: 15px; height: 15px; display: block; }
.mt-ico.danger:hover { color: #e11d48; }

.stock-tabs {
  flex: none;
  height: 56px;
  display: flex;
  justify-content: center;
  gap: 6px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.stock-tabs label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 0 18px;
  color: var(--faint-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.stock-tabs svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
}
.stock-tabs label::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: transparent;
}
#st-over:checked ~ .app .stock-tabs [for="st-over"],
#st-chart:checked ~ .app .stock-tabs [for="st-chart"],
#st-anal:checked ~ .app .stock-tabs [for="st-anal"],
#st-news:checked ~ .app .stock-tabs [for="st-news"],
#st-fins:checked ~ .app .stock-tabs [for="st-fins"] {
  color: var(--text);
}
#st-over:checked ~ .app .stock-tabs [for="st-over"]::after,
#st-chart:checked ~ .app .stock-tabs [for="st-chart"]::after,
#st-anal:checked ~ .app .stock-tabs [for="st-anal"]::after,
#st-news:checked ~ .app .stock-tabs [for="st-news"]::after,
#st-fins:checked ~ .app .stock-tabs [for="st-fins"]::after {
  background: var(--text-strong);
}

.stock-overview,
.stock-chart,
.stock-panel { display: none; flex: 1; min-height: 0; overflow: auto; padding: 16px 18px 20px; }
#st-over:checked ~ .app .stock-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: start;
}
#st-chart:checked ~ .app .stock-chart {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  background: var(--card);
}
#st-anal:checked ~ .app .stock-anal,
#st-news:checked ~ .app .stock-news {
  display: block;
  position: relative;
  overflow: auto;
  padding: 16px 18px 20px;
  background: var(--bg);
}
#st-fins:checked ~ .app .stock-fins { display: block; }

.stock-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.perf-card { padding: 22px 24px 18px; }
.perf-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.perf-kicker { font-size: 15px; font-weight: 700; }
.perf-move { margin-top: 6px; font-size: 13px; color: var(--faint-2); }
.perf-move .chg.down::before { content: "▾ "; }
.perf-move .chg.up::before { content: "▴ "; }
.ghost-btn {
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-4);
  border-radius: 999px;
  background: var(--card);
  font-weight: 650;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.ghost-btn svg { width: 14px; height: 14px; }
.perf-stage {
  position: relative;
  height: 248px;
  margin: 6px 0 0;
}
.perf-stage.tall { height: 360px; }
.perf-stage svg { width: 100%; height: 100%; display: block; }
.perf-stage .spark-line { fill: none; stroke-width: 1.55; }
.perf-stage .spark-fill { opacity: .08; }
.perf-y {
  position: absolute;
  right: 0;
  top: 10px;
  bottom: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--placeholder);
  font-size: 11px;
  pointer-events: none;
}
.tf-row {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin: 8px 0 22px;
}
.tf-row button {
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--faint-2);
  font-weight: 650;
}
.tf-row button.on { background: var(--soft-2); color: var(--text); }
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 40px;
}
.stat-grid > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; }
.stat-grid span { color: var(--faint); display: inline-flex; align-items: center; gap: 6px; }
.stat-grid b { font-weight: 700; }
.tip {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--faint-2);
  display: inline-grid;
  place-items: center;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  color: var(--faint-2);
  line-height: 1;
}
.range {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.range b { font-variant-numeric: tabular-nums; font-size: 12px; }
.range-track {
  position: relative;
  width: 72px;
  height: 3px;
  border-radius: 99px;
  background: var(--track);
}
.range-track i {
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: var(--text-strong);
}
.range-track .caret {
  width: 0;
  height: 0;
  margin: 1px 0 0 -5px;
  background: none;
  border-radius: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--text-strong);
}

.alert-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 18px 20px;
  cursor: pointer;
}
.alert-card svg { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.alert-card strong { display: block; font-size: 14px; }
.alert-card p { margin: 4px 0 0; color: var(--faint); font-size: 12px; }
.alert-box { display: none; gap: 8px; padding: 0 20px 16px; }
#alert-open:checked ~ .app .alert-box { display: flex; }
.alert-box input {
  width: 130px;
  height: 36px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 0 10px;
  background: var(--card);
}
.alert-box button {
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  background: #111;
  color: #fff;
  font-weight: 650;
}

.stock-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.side-card, .buy-card { padding: 18px 18px 16px; }
.buy-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.buy-head .sym { display: flex; align-items: center; gap: 8px; }
.buy-head small { display: block; color: var(--faint); font-size: 12px; }
.buy-head .px { font-size: 18px; font-weight: 750; }
.buy-field { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; color: var(--muted); }
.share-step {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 4px;
}
.share-step button { width: 28px; height: 28px; border-radius: 8px; background: var(--soft-2); font-size: 16px; }
.share-step strong { min-width: 18px; text-align: center; }
.buy-meta { display: flex; justify-content: space-between; gap: 12px; margin: 8px 0; color: var(--faint); }
.buy-meta b { color: var(--text); }
.buy-cta {
  width: 100%;
  height: 44px;
  margin-top: 10px;
  border-radius: 12px;
  background: #16c15a;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.buy-cta:disabled { opacity: .4; cursor: not-allowed; }
.buy-note.err { color: #e11d48; }
.side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.side-head h3 { margin: 0; font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.side-head > span { color: var(--faint-2); font-size: 18px; line-height: 1; }
.event { display: flex; gap: 14px; align-items: center; }
.event-date {
  width: 52px;
  text-align: center;
  line-height: 1;
}
.event-date b { display: block; font-size: 32px; font-weight: 750; letter-spacing: -.03em; }
.event-date small { display: block; margin-top: 4px; color: var(--faint); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.event-copy p { margin: 4px 0 0; font-size: 13px; }
#event-q { color: var(--text); font-weight: 650; }
#event-session { color: var(--faint); }
.chip {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--chip-bg);
  color: #3b82f6;
  font-size: 11px;
  font-weight: 700;
}
.bell {
  margin-left: auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--faint-2);
  display: grid;
  place-items: center;
}
.bell svg { width: 18px; height: 18px; }
.side-note { margin: 0; color: var(--faint); font-size: 12px; line-height: 1.45; }
.copiers { text-align: right; font-weight: 700; color: var(--text); }
.copiers small { display: block; font-weight: 500; color: var(--faint-2); }
.forecast {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.forecast small { display: block; color: var(--faint); margin-bottom: 6px; }
.forecast b { font-size: 22px; font-weight: 750; }
.forecast-right {
  padding-left: 16px;
  border-left: 1px solid var(--line);
  text-align: right;
}
.investor {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}
.investor b { display: flex; align-items: center; gap: 4px; }
.mini-star { width: 12px; height: 12px; fill: #16c15a; }
.ava {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.ava.pic {
  background-size: cover;
  background-position: center;
}
.ava.p1 {
  background-image: radial-gradient(circle at 35% 32%, #f3d2b5 0 18%, transparent 19%),
    radial-gradient(circle at 50% 78%, #1f2937 0 42%, transparent 43%),
    linear-gradient(#3f3f46, #3f3f46);
}
.ava.p2 {
  background-image: radial-gradient(circle at 50% 34%, #e8b89a 0 20%, transparent 21%),
    radial-gradient(circle at 50% 84%, #7c2d12 0 38%, transparent 39%),
    linear-gradient(#d6d3d1, #a8a29e);
}
.fin-card { padding: 22px 28px 18px; }
.fin-card h3 { margin: 0 0 18px; font-size: 15px; }
.fin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 64px;
}
.fin-item { padding: 0 0 16px; }
.fin-item small { display: block; color: var(--muted); font-size: 13px; font-weight: 700; }
.fin-item b { display: block; margin-top: 5px; color: var(--muted); font-weight: 500; font-size: 14px; }
.fin-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-top: 18px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
}
.fin-meta div { display: grid; grid-template-columns: 28px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: start; }
.fin-meta svg {
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--faint-2);
  stroke-width: 1.6;
}
.fin-meta small { color: var(--faint-2); font-size: 12px; }
.fin-meta b { color: var(--text); font-size: 13px; }
.fin-meta .link { color: #2f6fed; }

.tv-board {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
}
.tv-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 0 10px;
  border-right: 1px solid var(--line);
}
.tv-rail button {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  color: var(--muted);
  display: grid;
  place-items: center;
}
.tv-rail button.on { background: var(--line-3); color: var(--text); }
.tv-rail svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.tv-logo {
  margin: auto 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--text);
}
.tv-main { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.tv-top {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
}
.tv-tf {
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line-4);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 650;
}
.tv-tf svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.tv-pro {
  margin-left: auto;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--warn-line);
  border-radius: 999px;
  background: var(--warn-bg);
  color: var(--warn-fg);
  font-weight: 700;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
}
.tv-sb {
  height: 30px;
  padding: 0 10px;
  border: 1px solid #b7ebc8;
  border-radius: 999px;
  color: #16c15a;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tv-sb.on { background: var(--green-soft); }
.tv-icons { display: flex; gap: 2px; margin-left: 6px; }
.tv-icons button {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: var(--muted);
  display: grid;
  place-items: center;
}
.tv-icons svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.tv-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.tv-stage svg { width: 100%; height: 100%; display: block; }
.tv-y {
  position: absolute;
  right: 8px;
  top: 14px;
  bottom: 118px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--faint-2);
  font-size: 11px;
  text-align: right;
  pointer-events: none;
  z-index: 2;
}
.tv-x {
  position: absolute;
  left: 10px;
  right: 58px;
  bottom: 4px;
  display: flex;
  justify-content: space-between;
  color: var(--faint-2);
  font-size: 11px;
  pointer-events: none;
  z-index: 2;
}
.tv-legend {
  position: absolute;
  left: 12px;
  top: 8px;
  z-index: 2;
  font-size: 12px;
  color: var(--muted);
  pointer-events: none;
}
.tv-legend b { font-weight: 700; margin-right: 2px; }
.tv-legend span { margin-right: 8px; color: var(--text); }
.tv-vol-line { margin-top: 4px; }
.tv-vol-line .chev { font-size: 10px; margin: 0 4px; }
.tv-last {
  position: absolute;
  right: 8px;
  top: 42%;
  transform: translateY(-50%);
  text-align: right;
  z-index: 2;
  pointer-events: none;
}
.tv-last small { display: block; background: #e11d48; color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 2px 2px 0 0; }
.tv-last.up small, .tv-last.up b { background: #16c15a; }
.tv-note { margin: 0; height: 28px; display: grid; place-items: center; color: var(--faint-2); font-size: 11px; }

.research-bg {
  display: grid;
  grid-template-columns: .9fr 1.2fr;
  gap: 16px;
  align-items: start;
}
.news-bg {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  grid-template-rows: auto auto;
  gap: 16px;
}
.anal-card, .news-card, .news-side {
  padding: 20px 22px;
}
.anal-card h3, .news-side h3 { margin: 0 0 16px; font-size: 15px; }
.anal-split { display: flex; align-items: center; gap: 24px; }
.donut {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: conic-gradient(#7dcf3a 0 58%, #f0c14b 58% 78%, #f08a8a 78% 100%);
  mask: radial-gradient(transparent 48%, #000 50%);
  -webkit-mask: radial-gradient(transparent 48%, #000 50%);
  flex: none;
}
.anal-keys { display: flex; flex-direction: column; gap: 10px; color: var(--muted); }
.anal-keys div { display: flex; align-items: center; gap: 8px; }
.anal-keys b { margin-left: auto; color: var(--text); }
.k { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.k.g { background: #7dcf3a; }
.k.y { background: #f0c14b; }
.k.r { background: #f08a8a; }
.pill {
  display: inline-grid;
  place-items: center;
  margin-top: 16px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--green-soft);
  color: #16c15a;
  font-weight: 700;
}
.pill.hold {
  background: var(--hold-bg);
  color: #f59e0b;
}
.target-line { width: 100%; height: 120px; stroke: #7dd3fc; fill: none; stroke-width: 3; }
.target-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 8px;
}
.target-row small { display: block; color: var(--faint); margin-bottom: 4px; }
.target-row b { font-size: 18px; }
.news-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  align-items: center;
}
.news-bg .news-side { grid-column: 2; grid-row: 1 / span 2; }
.thumb { height: 92px; border-radius: 12px; }
.thumb.t1 { background: linear-gradient(135deg, #123 20%, #2dd4bf 80%); }
.thumb.t2 { background: linear-gradient(135deg, #334 10%, #94a3b8 90%); }
.news-card small { display: block; margin: 6px 0; color: var(--faint-2); }
.tag { font-style: normal; font-size: 11px; font-weight: 700; }
.tag.pos { color: #16c15a; }
.tag.neu { color: #f59e0b; }

@media (max-width: 1180px) {
  #st-over:checked ~ .app .stock-overview { grid-template-columns: 1fr; }
  .research-bg, .news-bg { grid-template-columns: 1fr; }
  .news-bg .news-side { grid-column: auto; grid-row: auto; }
  .fin-grid, .fin-meta { grid-template-columns: 1fr 1fr; }
}

.coin.btc { background: #f7931a; }
.coin.usdt { background: #26a17b; }
.coin.eth { background: #627eea; }
.coin.trx { background: #ef0027; }
.coin.usdc { background: #2775ca; }
.coin.sol { background: #9945ff; }
.coin.bnb { background: #f3ba2f; color: #111; }
.coin.ltc { background: #345d9d; }

.deposit-page [hidden] { display: none !important; }
.verify-btn:disabled { opacity: .4; cursor: not-allowed; }
label.verify-btn {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.composer-row .dep-logo { flex: none; }
.composer-row b {
  color: var(--faint-2);
  font-size: 13px;
  flex: none;
}
.composer-row #dep-addr {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  word-break: break-all;
  font-weight: 650;
}
.amt-err {
  margin: 8px 0 0;
  color: #e11d48;
  font-size: 12px;
}
.dep-coins { padding: 20px 20px 16px; }
.dep-coins h3 { margin: 0 0 4px; font-size: 18px; }
.dep-coins p { margin: 0; color: var(--muted); }
.dep-pick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.dep-pick-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: left;
}
.dep-pick-btn:hover { background: var(--input); }
.dep-pick-btn.on {
  border-color: #16c15a;
  background: var(--dep-on);
}
.dep-logo {
  width: 36px;
  height: 36px;
  flex: none;
}
.dep-logo.empty {
  border-radius: 50%;
  background: var(--line);
}
.dep-logo svg,
.dep-pick-btn .dep-logo svg {
  width: 36px;
  height: 36px;
  display: block;
}
.dep-pick-btn b { font-size: 14px; }
.dep-pick-btn small { display: block; color: var(--faint); margin-top: 2px; font-weight: 500; }
.composer .verify-btn {
  display: inline-flex;
  align-items: center;
  width: 100%;
  margin-top: 14px;
  justify-content: center;
}
.cube .qr-wrap {
  position: absolute;
  inset: 0;
  width: 92px;
  height: 92px;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}
.cube .qr-wrap svg { width: 100%; height: 100%; display: block; }
#dep-qr { fill: var(--text-strong); }
.cube .pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 50%;
  border: 3px solid #d1fae5;
  border-top-color: #16c15a;
  animation: spin .8s linear infinite;
}
.cube .pulse.ok {
  animation: none;
  border: 0;
  background: #16c15a;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
}
@keyframes spin { to { transform: rotate(360deg); } }
.conf-bar {
  height: 8px;
  margin: 16px 0 8px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
}
.conf-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: #16c15a;
}
.done-amt { font-size: 22px; font-weight: 750; color: #16c15a; margin: 8px 0 0; }

.set-card { padding: 20px 20px 16px; }
.set-card h3 { margin: 0 0 4px; font-size: 18px; }
.set-card > p { margin: 0 0 14px; color: var(--muted); }
.set-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
}
.set-row b { color: var(--text); font-weight: 650; }
.set-card .acct-card { margin: 0 -8px; }
.set-card .verify-btn { margin-top: 12px; }
.set-switch {
  appearance: none;
  width: 22px;
  height: 13px;
  border-radius: 99px;
  background: var(--track);
  position: relative;
  flex: none;
  cursor: pointer;
}
.set-switch::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--knob);
  top: 2px;
  left: 2px;
  transition: left .15s;
}
.set-switch:checked { background: #16c15a; }
.set-switch:checked::after { left: 11px; }

.an-wrap {
  width: min(100%, 1120px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  min-height: 0;
  max-height: 100%;
}
.an-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 4px 2px;
  flex: none;
}
.an-head h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -.02em;
  font-weight: 750;
}
.an-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.an-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  flex: none;
}
.an-kpi {
  padding: 16px 20px 18px;
  border-right: 1px solid var(--line);
  min-width: 0;
}
.an-kpi:last-child { border-right: 0; }
.an-kpi small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.an-kpi b {
  display: block;
  margin-top: 8px;
  font-size: 22px;
  letter-spacing: -.02em;
  font-weight: 750;
  color: var(--text-strong);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.an-kpi b.chg { font-size: 22px; }
.an-kpi b.chg.up { color: #16c15a; }
.an-kpi b.chg.down { color: #e11d48; }
.an-chart-card, .an-table-card, .an-side-card { padding: 18px 20px 14px; }
.an-table-card h3 { margin: 0 0 4px; font-size: 16px; }
.an-table-card .movers-head p { margin: 0; color: var(--muted); }
.an-chart-card .perf-top { align-items: flex-end; }
.an-note {
  margin: 0;
  max-width: 240px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  text-align: right;
}
.an-stage { height: 228px; padding-right: 52px; }
.an-chart-card .tf-row { margin: 4px 0 2px; }
.an-split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .85fr);
  gap: 14px;
  align-items: start;
}
.an-side { display: flex; flex-direction: column; gap: 14px; }
.an-side-card h3 { margin: 0 0 14px; font-size: 16px; }
.an-side-card .side-note { margin-top: 14px; }
.an-row:last-child { border-bottom: 0; }
.an-side-card .anal-split { margin-top: 4px; }
.an-side-card .donut { width: 118px; height: 118px; }
.an-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.an-stat b { color: var(--text); font-weight: 650; }
.an-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 76px 88px 92px;
  gap: 10px;
  padding: 14px 4px 8px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.an-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 76px 88px 92px;
  gap: 10px;
  align-items: center;
  padding: 10px 4px;
  border-top: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  text-align: left;
}
.an-row:hover { background: var(--row-hover); }
.an-sym {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.an-sym b { display: block; font-size: 14px; }
.an-sym small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.an-row .spark { width: 76px; height: 28px; }
.an-row .quote { display: flex; flex-direction: column; align-items: flex-end; }
.an-row .px { font-size: 13px; font-weight: 700; }
.an-contrib {
  text-align: right;
  font-size: 13px;
  font-weight: 700;
}

.staking-page [hidden] { display: none !important; }
.st-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 14px;
  align-items: stretch;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.st-pools, .st-form {
  padding: 12px 0 10px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.st-pools {
  display: flex;
  flex-direction: column;
}
.st-form {
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.st-form h3, .st-pools h3 { margin: 0 0 4px; font-size: 18px; }
.st-form > p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.4;
  font-size: 13px;
}
.st-pools-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 20px 8px;
  flex: none;
}
.st-pools-top p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.st-cols,
.st-line {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 76px 72px 18px;
  gap: 8px;
  align-items: center;
  width: 100%;
}
.st-cols {
  padding: 0 16px 6px;
  color: var(--faint-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  flex: none;
}
.st-lines {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0 8px 8px;
}
.st-line {
  padding: 8px 8px;
  min-height: 56px;
  border-radius: 12px;
  text-align: left;
  background: transparent;
  font: inherit;
  color: inherit;
}
.st-line:hover { background: var(--row-hover); }
.st-line.active {
  background: var(--row-on);
  box-shadow: inset 0 0 0 1px var(--row-ring);
}
.st-line .sicon,
.st-pos .sicon { justify-self: center; }
.st-line .quote,
.st-pos .quote {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 0;
}
.st-line .spark,
.st-pos .spark { width: 76px; height: 28px; display: block; overflow: hidden; }
.st-selected {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  margin: 0 0 10px;
  padding: 6px 10px;
  border-radius: 12px;
  background: var(--soft);
  flex: none;
}
.st-selected .quote { align-items: flex-end; }
.st-selected .px { font-size: 13px; font-weight: 700; }
.st-selected.on {
  background: var(--row-on);
  box-shadow: inset 0 0 0 1px var(--row-ring);
}
.st-terms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
  flex: none;
}
.st-terms button {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
  color: var(--muted);
  font-weight: 650;
}
.st-terms button b { color: var(--text); font-size: 15px; }
.st-terms button.on {
  border-color: #16c15a;
  background: var(--dep-on);
  color: var(--text);
}
.st-form .steps,
.st-form h3,
.st-form > p,
.st-amt-row,
.st-form .composer-actions,
.st-form .amt-err {
  flex: none;
}
.st-amt-row { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.st-form .composer-actions {
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}
.st-form .verify-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.st-form-actions {
  margin-top: 12px;
  flex: none;
}
.st-form.is-confirm .st-form-actions {
  margin-top: auto;
  padding-top: 8px;
}
.st-back {
  width: 100%;
  height: 32px;
  margin-top: 2px;
  color: var(--muted);
  font-weight: 650;
}
.st-review {
  margin-top: 0;
  min-height: 0;
}
.st-rev-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.st-rev-row:first-child { border-top: 0; }
.st-rev-row b { color: var(--text-strong); font-weight: 700; }
.st-review .side-note {
  margin: 8px 0 0;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.35;
}
.st-empty {
  margin: 8px 20px 12px;
  color: var(--muted);
}
.st-pos .mt-add.claim { color: #16c15a; }
.st-bar { display: none; }
.st-bar i { display: block; height: 100%; background: #16c15a; width: 0; }
.st-lock {
  display: none;
}

@media (max-width: 980px) {
  .st-split, .st-terms { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .an-kpis { grid-template-columns: 1fr 1fr; }
  .an-kpi { border-right: 0; border-bottom: 1px solid var(--line); }
  .an-kpi:nth-child(odd) { border-right: 1px solid var(--line); }
  .an-kpi:nth-last-child(-n+2) { border-bottom: 0; }
  .an-split { grid-template-columns: 1fr; }
  .an-chart-card .perf-top { align-items: flex-start; flex-direction: column; }
  .an-note { text-align: left; max-width: none; }
}

body.dark .menu-bg { background: var(--scrim); }
body.dark ::-webkit-scrollbar-thumb { background: var(--track); }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-thumb { background: var(--track); border-radius: 8px; }

/* —— Login gate —— */
.gate { display: none; }
html:not(.authed) { background: #f7fbf8; }
html:not(.authed) body {
  overflow: auto;
  background: #f7fbf8;
}
html:not(.authed) .app,
html:not(.authed) .drawer,
html:not(.authed) .drawer-bg,
html:not(.authed) .menu-bg { display: none !important; }
html:not(.authed) .gate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #1c2430;
  background: #f7fbf8;
}
html.authed .gate { display: none !important; }

/* Unauth dark theme */
html.dark:not(.authed),
html.dark:not(.authed) body,
html:not(.authed) body.dark {
  background: #0f141a !important;
}
html.dark:not(.authed) .gate,
html:not(.authed) body.dark .gate {
  color: #e8eef5 !important;
  background: #0f141a !important;
}
html.dark:not(.authed) .gate-blob-a,
html:not(.authed) body.dark .gate-blob-a {
  background: radial-gradient(ellipse at center, rgba(1, 153, 112, .18), rgba(1, 153, 112, 0) 70%);
}
html.dark:not(.authed) .gate-blob-b,
html:not(.authed) body.dark .gate-blob-b {
  background: radial-gradient(ellipse at 40% 42%, rgba(1, 153, 112, .28), rgba(15, 20, 26, .2) 46%, rgba(15, 20, 26, 0) 74%);
}
html.dark:not(.authed) .gate-ask,
html:not(.authed) body.dark .gate-ask { color: #8b95a5; }
html.dark:not(.authed) .gate-chip,
html:not(.authed) body.dark .gate-chip {
  background: #1b222c;
  color: #e8eef5;
  border-color: #2a3340;
  box-shadow: none;
}
html.dark:not(.authed) .gate-chip:hover,
html:not(.authed) body.dark .gate-chip:hover { background: #232b36; }
html.dark:not(.authed) .gate-lang-btn,
html:not(.authed) body.dark .gate-lang-btn { color: #9aa3b2; }
html.dark:not(.authed) .gate-lang-menu,
html:not(.authed) body.dark .gate-lang-menu {
  background: #1b222c;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
  border: 1px solid #2a3340;
}
html.dark:not(.authed) .gate .lang-opt,
html:not(.authed) body.dark .gate .lang-opt { color: #e8eef5; }
html.dark:not(.authed) .gate .lang-opt:hover,
html:not(.authed) body.dark .gate .lang-opt:hover { background: #232b36; }
html.dark:not(.authed) .gate-form h1,
html:not(.authed) body.dark .gate-form h1 { color: #f3f6fa; }
html.dark:not(.authed) .gate-reset-copy,
html.dark:not(.authed) .gate-note,
html.dark:not(.authed) .gate-hint,
html:not(.authed) body.dark .gate-reset-copy,
html:not(.authed) body.dark .gate-note,
html:not(.authed) body.dark .gate-hint { color: #9aa3b2; }
html.dark:not(.authed) .gate-field > span:not(.gate-pass),
html.dark:not(.authed) .gate-forgot,
html.dark:not(.authed) .gate-back,
html:not(.authed) body.dark .gate-field > span:not(.gate-pass),
html:not(.authed) body.dark .gate-forgot,
html:not(.authed) body.dark .gate-back { color: #8b95a5; }
html.dark:not(.authed) .gate-forgot:hover,
html.dark:not(.authed) .gate-back:hover,
html:not(.authed) body.dark .gate-forgot:hover,
html:not(.authed) body.dark .gate-back:hover { color: #e8eef5; }
html.dark:not(.authed) .gate-field input,
html:not(.authed) body.dark .gate-field input {
  background: #161b22;
  color: #e8eef5;
  border-color: #2a3340;
}
html.dark:not(.authed) .gate-field input::placeholder,
html:not(.authed) body.dark .gate-field input::placeholder { color: #6b7380; }
html.dark:not(.authed) .gate-field input:focus,
html:not(.authed) body.dark .gate-field input:focus { border-color: #019970; }
html.dark:not(.authed) .gate-eye,
html:not(.authed) body.dark .gate-eye { color: #8b95a5; }
html.dark:not(.authed) .gate-eye:hover,
html.dark:not(.authed) .gate-eye.on,
html:not(.authed) body.dark .gate-eye:hover,
html:not(.authed) body.dark .gate-eye.on { color: #c5ccd6; }
html.dark:not(.authed) .gate-submit,
html:not(.authed) body.dark .gate-submit {
  background: #232b36;
  color: #6b7380;
}
html.dark:not(.authed) .gate-submit:not(:disabled),
html:not(.authed) body.dark .gate-submit:not(:disabled) {
  background: #019970;
  color: #fff;
}
html.dark:not(.authed) .gate-submit:not(:disabled):hover,
html:not(.authed) body.dark .gate-submit:not(:disabled):hover { background: #017a5a; }
html.dark:not(.authed) .gate-try,
html:not(.authed) body.dark .gate-try {
  background: #1b222c;
  border-color: #2a3340;
  color: #9aa3b2;
}
html.dark:not(.authed) .gate-qr-card,
html:not(.authed) body.dark .gate-qr-card {
  background: #1b222c;
  border-color: #2a3340;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .35);
}
html.dark:not(.authed) .gate-qr-card h2,
html:not(.authed) body.dark .gate-qr-card h2 { color: #f3f6fa; }
html.dark:not(.authed) .gate-qr,
html:not(.authed) body.dark .gate-qr {
  background: #fff;
}
html.dark:not(.authed) .gate-step p,
html:not(.authed) body.dark .gate-step p { color: #9aa3b2; }
html.dark:not(.authed) .gate-step-n,
html:not(.authed) body.dark .gate-step-n {
  background: #232b36;
  color: #e8eef5;
}
.gate-blob {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  filter: blur(8px);
}
.gate-blob-a {
  width: 62%;
  height: 58%;
  left: -10%;
  top: -22%;
  background: radial-gradient(ellipse at center, rgba(156, 236, 170, .32), rgba(156, 236, 170, 0) 70%);
}
.gate-blob-b {
  width: 88%;
  height: 100%;
  right: -18%;
  top: -8%;
  background: radial-gradient(ellipse at 40% 42%, rgba(110, 224, 140, .62), rgba(170, 238, 184, .22) 46%, rgba(247, 251, 248, 0) 74%);
}

.gate-left, .gate-right { position: relative; z-index: 1; min-width: 0; }
.gate-left {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.gate-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px 0 28px;
  flex: none;
}
.gate-brand, .gate-form-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gate-brand .mark, .gate-form-brand .mark { width: 28px; height: 28px; flex: none; }
.gate-form-brand .mark { width: 36px; height: 36px; }
.gate-brand .word, .gate-form-brand .word {
  font-weight: 800;
  letter-spacing: .03em;
  font-size: 17px;
  color: #111;
  line-height: 1;
}
html.dark .gate-brand .word,
html.dark .gate-form-brand .word,
body.dark .gate-brand .word,
body.dark .gate-form-brand .word { color: #f3f6fa; }
.gate-form-brand .word { font-size: 20px; }
.gate-brand .word span, .gate-form-brand .word span { color: #5adf2a; }

.gate-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.gate-ask {
  color: #98a2b3;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.gate-chip {
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  background: #fff;
  color: #1c2430;
  border: 1px solid #e6ebf1;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  font-size: 13px;
  font-weight: 600;
}
.gate-chip:hover { background: #f8fafc; }

.gate-lang { position: relative; }
.gate-lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 4px 0 8px;
  color: #667085;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .02em;
}
.gate-lang-btn .lang-flag { width: 18px; height: 12px; }
.gate-lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  width: 220px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(16, 24, 40, .16);
  padding: 8px;
  z-index: 5;
}
.gate-lang.open .gate-lang-menu { display: block; }
.gate .lang-opt { color: #1c2430; }
.gate .lang-opt:hover { background: #f6f8fa; }

.gate-form-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 24px 12px;
}
.gate-form {
  width: 100%;
  max-width: 360px;
}
.gate-form-brand { margin-bottom: 18px; }
.gate-form h1 {
  margin: 0 0 22px;
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -.03em;
  color: #1a1f28;
}
.gate-reset-copy {
  margin: -8px 0 18px;
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
}
.gate-field { display: block; margin-bottom: 12px; }
.gate-field > span:not(.gate-pass) {
  display: block;
  margin-bottom: 6px;
  color: #8b93a3;
  font-size: 12px;
  font-weight: 500;
}
.gate-field input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  background: #fff;
  color: #1c2430;
  font-size: 13px;
  outline: none;
}
.gate-field input::placeholder { color: #b0b7c3; font-weight: 500; }
.gate-field input:focus { border-color: #98a2b3; }
.gate-pass {
  position: relative;
  display: block;
  width: 100%;
  height: 42px;
  border: 0;
  background: transparent;
}
.gate-pass input { padding-inline-end: 42px; }
.gate-eye {
  position: absolute;
  inset-inline-end: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #98a2b3;
  flex: none;
  border-radius: 8px;
}
.gate-eye svg { width: 18px; height: 18px; }
.gate-eye:hover, .gate-eye.on { color: #667085; }
.gate-forgot {
  display: block;
  width: 100%;
  margin: 2px 0 16px;
  text-align: end;
  color: #8b93a3;
  font-size: 12px;
  font-weight: 500;
}
.gate-forgot:hover { color: #667085; }
.gate-submit {
  width: 100%;
  height: 42px;
  border-radius: 8px;
  background: #e8eef3;
  color: #b7c0cc;
  font-size: 14px;
  font-weight: 600;
  cursor: default;
}
.gate-submit:not(:disabled) {
  background: #111;
  color: #fff;
  cursor: pointer;
}
.gate-submit:not(:disabled):hover { background: #222; }
.gate-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: #667085;
  font-weight: 500;
}
.gate-note.err { color: #e11d48; }
.gate-back {
  display: block;
  width: 100%;
  margin-top: 12px;
  color: #8b93a3;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}
.gate-back:hover { color: #1c2430; }

.gate-try {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 28px 28px;
  padding: 14px 16px 14px 18px;
  background: #f3f6f9;
  border: 1px solid #eef2f6;
  border-radius: 12px;
  color: #667085;
  font-size: 13px;
  font-weight: 500;
}
.gate-try .gate-chip { flex: none; }

.gate-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
}
.gate-qr-card {
  width: min(100%, 400px);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(16, 24, 40, .08);
  padding: 28px 32px 24px;
  text-align: center;
}
.gate-qr-card h2 {
  margin: 0 0 22px;
  font-size: 18px;
  font-weight: 650;
  color: #1a1f28;
  letter-spacing: -.02em;
}
.gate-qr {
  width: 228px;
  height: 228px;
  margin: 0 auto 26px;
  padding: 6px;
  background: #fff;
}
.gate-qr svg { width: 100%; height: 100%; display: block; }
.gate-steps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 16px 8px 10px;
  background: #f6f8fa;
  border-radius: 14px;
}
.gate-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 6px 4px;
}
.gate-step-n {
  position: absolute;
  top: 2px;
  inset-inline-start: 18%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #16c15a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  z-index: 1;
}
.gate-phone { width: 48px; height: 56px; }
.gate-phone-wrap { position: relative; display: grid; place-items: center; }
.gate-qr-badge {
  position: absolute;
  right: 2px;
  bottom: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(16, 24, 40, .16);
  display: grid;
  place-items: center;
}
.gate-qr-badge svg { width: 16px; height: 16px; }
.gate-step p {
  margin: 0;
  color: #667085;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 500;
  max-width: 110px;
}

.gate[data-view="signin"] .only-signup:not(.only-signin),
.gate[data-view="signin"] .only-reset:not(.only-signin),
.gate[data-view="signin"] .only-otp:not(.only-signin),
.gate[data-view="signup"] .only-signin:not(.only-signup),
.gate[data-view="signup"] .only-reset:not(.only-signup),
.gate[data-view="signup"] .only-otp:not(.only-signup),
.gate[data-view="reset"] .only-signin:not(.only-reset),
.gate[data-view="reset"] .only-signup:not(.only-reset),
.gate[data-view="reset"] .only-otp:not(.only-reset),
.gate[data-view="otp"] .only-signin:not(.only-otp),
.gate[data-view="otp"] .only-signup:not(.only-otp),
.gate[data-view="otp"] .only-reset:not(.only-otp) { display: none !important; }

@media (max-width: 980px) {
  html:not(.authed) .gate { grid-template-columns: 1fr; }
  .gate-right { display: none; }
  .gate-blob-b { opacity: .55; }
  .gate-try { flex-direction: column; align-items: stretch; text-align: center; }
}

@media (max-width: 640px) {
  .gate-top { padding: 16px 16px 0; flex-wrap: wrap; }
  .gate-ask { display: none; }
  .gate-form { max-width: 100%; }
  .gate-try { margin: 8px 16px 16px; overflow-wrap: anywhere; }
  .gate-forgot { text-align: right; }
  .gate-form-wrap { overflow-x: hidden; }
}

#page-explore:checked ~ .app .explore-page {
  padding: 18px 28px 28px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  overflow: auto;
}
.pf-wrap { width: min(100%, 1180px); }
.pf-split {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(248px, .62fr);
  gap: 14px;
  align-items: start;
}
.pf-table-card {
  padding: 0;
  overflow: hidden;
  min-width: 0;
}
.pf-table-card .movers-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px 12px;
}
.pf-table-card .movers-head h3 { margin: 0 0 4px; font-size: 16px; }
.pf-table-card .movers-head p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.pf-count {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--green-soft);
  color: #0f9d4a;
  font-size: 12px;
  font-weight: 750;
}
.pf-count[hidden] { display: none !important; }
.pf-empty {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px 56px;
}
.pf-empty .blot-ico { margin-bottom: 4px; }
.pf-empty h3 {
  margin: 14px 0 4px;
  font-size: 16px;
  font-weight: 700;
}
.pf-empty p {
  margin: 0;
  max-width: 320px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.pf-go {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: #16c15a;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.pf-go:hover { filter: brightness(.96); }
.pf-table-wrap { display: none; overflow-x: auto; }
.pf-table-card.has-rows .pf-empty { display: none; }
.pf-table-card.has-rows .pf-table-wrap { display: block; }
.pf-table-card:not(.has-rows) .pf-empty { display: flex; }
.pf-c-asset { width: auto; }
.pf-c-kind { width: 72px; }
.pf-c-amt { width: 88px; }
.pf-c-term { width: 78px; }
.pf-c-yield { width: 58px; }
.pf-c-earned { width: 74px; }
.pf-c-value { width: 86px; }
.pf-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}
.pf-meta b { font-size: 13px; font-weight: 700; }
.pf-meta small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pf-meta small.ready { color: #16c15a; font-weight: 650; }
.pf-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}
.pf-pill.invest { background: rgba(22, 193, 90, .12); color: #0f9d4a; }
.pf-pill.stake { background: rgba(59, 130, 246, .12); color: #2563eb; }
.pf-status {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.pf-status.ready { color: #16c15a; }
.explore-page .an-side-card .side-note {
  margin: -6px 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.pf-alloc {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pf-alloc-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.pf-alloc-row b {
  color: var(--text);
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.pf-track {
  height: 8px;
  border-radius: 999px;
  background: var(--pills);
  overflow: hidden;
}
.pf-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  transition: width .25s ease;
}
.pf-fill.cash { background: #94a3b8; }
.pf-fill.invest { background: #16c15a; }
.pf-fill.stake { background: #3b82f6; }
.mt-row.pf-row { cursor: pointer; }
@media (max-width: 1100px) {
  .pf-split { grid-template-columns: 1fr; }
}

#page-home:checked ~ .app .home {
  position: relative;
  padding: 18px 28px 32px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  overflow: auto;
  background:
    radial-gradient(920px 420px at 8% -8%, rgba(124, 255, 58, .16), transparent 58%),
    radial-gradient(640px 360px at 96% 6%, rgba(22, 193, 90, .12), transparent 52%),
    radial-gradient(520px 380px at 78% 92%, rgba(59, 130, 246, .1), transparent 58%);
}
.dash-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.dash-orbs .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
}
.dash-orbs .o1 {
  width: 280px;
  height: 280px;
  left: -70px;
  top: 80px;
  background: radial-gradient(circle, rgba(124, 255, 58, .28), transparent 68%);
}
.dash-orbs .o2 {
  width: 360px;
  height: 360px;
  right: -90px;
  top: -40px;
  background: radial-gradient(circle, rgba(22, 193, 90, .2), transparent 70%);
}
.dash-orbs .o3 {
  width: 240px;
  height: 240px;
  right: 18%;
  bottom: 8%;
  background: radial-gradient(circle, rgba(96, 165, 250, .18), transparent 70%);
}
.dash-wrap {
  position: relative;
  z-index: 1;
  width: min(100%, 1180px);
  flex: none;
  max-height: none;
  min-height: 0;
  overflow: visible;
}
.home [hidden] { display: none !important; }
.dash-glass {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .5));
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .72);
  box-shadow:
    0 18px 50px rgba(16, 24, 40, .08),
    0 1px 0 rgba(255, 255, 255, .9) inset,
    0 -18px 40px rgba(22, 193, 90, .04) inset;
  overflow: hidden;
  isolation: isolate;
}
.dash-glass::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .95), transparent);
  pointer-events: none;
}
.pf-pill.open { background: rgba(245, 158, 11, .18); color: #d97706; }
.pf-pill.answered { background: rgba(22, 193, 90, .16); color: #0f9d4a; }
.pf-pill.closed { background: rgba(148, 163, 184, .16); color: var(--muted); }
.dash-head { align-items: center; }
.dash-head h1 {
  background: linear-gradient(90deg, var(--text-strong) 0%, #1a8f4a 140%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dash-head-acts {
  display: flex;
  gap: 8px;
  flex: none;
}
.dash-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #22d16a, #12b454);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 0;
  box-shadow: 0 8px 20px rgba(22, 193, 90, .28), 0 1px 0 rgba(255, 255, 255, .35) inset;
}
.dash-btn:hover { filter: brightness(1.04); }
.dash-btn.ghost {
  background: rgba(255, 255, 255, .42);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 6px 16px rgba(16, 24, 40, .06), 0 1px 0 rgba(255, 255, 255, .8) inset;
  backdrop-filter: blur(12px);
}
.dash-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
}
.home .an-stat { border-color: rgba(255, 255, 255, .35); }
.home .an-stat b {
  max-width: 58%;
  text-align: right;
  line-height: 1.3;
  white-space: normal;
}
.dash-btn-full { width: 100%; margin-top: 14px; }
.dash-bal {
  padding: 24px 24px 16px;
  flex: none;
}
.dash-sheen {
  position: absolute;
  inset: 0 auto auto 0;
  width: 70%;
  height: 120px;
  z-index: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, .4), transparent 58%, rgba(124, 255, 58, .1) 100%);
  pointer-events: none;
}
.dash-bal-top {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  z-index: 2;
}
.dash-bal-top small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.dash-bal-top b {
  display: block;
  margin-top: 6px;
  font-size: 34px;
  letter-spacing: -.04em;
  font-weight: 750;
  line-height: 1.08;
  color: var(--text-strong);
}
.dash-bal-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 20px;
}
.dash-bal-grid div {
  min-width: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .38);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset;
}
.dash-bal-grid small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.dash-bal-grid b {
  display: block;
  margin-top: 6px;
  font-size: 16px;
  font-weight: 750;
}
.home .dash-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: none;
  border: 0;
  box-shadow: none;
  overflow: visible;
}
.home .dash-kpis .an-kpi {
  padding: 16px 18px 18px;
  border: 0;
  border-radius: 18px;
}
.home .dash-kpis .an-kpi small {
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 11px;
}
.dash-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dash-card { padding: 0; }
.dash-card .movers-head { padding: 16px 18px 12px; }
.dash-card .movers-head h3 { margin: 0 0 4px; font-size: 16px; }
.dash-card .movers-head p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.dash-empty {
  padding: 8px 18px 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.dash-empty p { margin: 0; }
.dash-act { display: flex; flex-direction: column; padding: 0 10px 12px; gap: 6px; }
.dash-act-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .32);
  border: 1px solid rgba(255, 255, 255, .55);
  text-align: left;
  color: var(--text);
  cursor: pointer;
}
.dash-act-row:hover {
  background: rgba(255, 255, 255, .55);
  transform: translateY(-1px);
}
.dash-act-row .sicon { width: 32px; height: 32px; }
.dash-act-row b { display: block; font-size: 13px; }
.dash-act-row small { display: block; color: var(--muted); font-size: 12px; }
.dash-act-row .amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.dash-tickets { display: flex; flex-direction: column; padding: 0 10px 8px; gap: 6px; }
.dash-ticket {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .32);
  border: 1px solid rgba(255, 255, 255, .55);
}
.dash-t-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
  box-shadow: 0 0 0 4px rgba(148, 163, 184, .16);
}
.dash-t-dot.open { background: #f59e0b; box-shadow: 0 0 0 4px rgba(245, 158, 11, .16); }
.dash-t-dot.answered { background: #16c15a; box-shadow: 0 0 0 4px rgba(22, 193, 90, .16); }
.dash-t-dot.closed { background: #94a3b8; }
.dash-ticket b { display: block; font-size: 13px; }
.dash-ticket small { display: block; color: var(--muted); font-size: 12px; }
.dash-ticket-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 6px 10px 12px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .28);
  border: 1px solid rgba(255, 255, 255, .55);
}
.dash-ticket-form input,
.dash-ticket-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 12px;
  background: rgba(255, 255, 255, .55);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
  resize: vertical;
  backdrop-filter: blur(10px);
}
.dash-ticket-form input:focus,
.dash-ticket-form textarea:focus {
  outline: none;
  border-color: rgba(22, 193, 90, .55);
  box-shadow: 0 0 0 3px rgba(22, 193, 90, .12);
}
.dash-ticket-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dash-ticket-bar .buy-note { margin: 0; }
.dash-quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}
.dash-quick label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .36);
  border: 1px solid rgba(255, 255, 255, .65);
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset;
  transition: transform .15s, background .15s;
}
.dash-quick label:hover {
  background: rgba(255, 255, 255, .62);
  transform: translateY(-1px);
}
.home .an-side-card .side-note {
  margin: -6px 0 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.dash-kyc {
  background:
    linear-gradient(180deg, rgba(255, 248, 232, .72), rgba(255, 255, 255, .48));
}
body.dark .home {
  background:
    radial-gradient(920px 420px at 8% -8%, rgba(124, 255, 58, .12), transparent 58%),
    radial-gradient(640px 360px at 96% 6%, rgba(22, 193, 90, .1), transparent 52%),
    radial-gradient(520px 380px at 78% 92%, rgba(59, 130, 246, .1), transparent 58%);
}
body.dark .dash-glass {
  background: linear-gradient(180deg, rgba(36, 46, 60, .72), rgba(22, 28, 38, .48));
  border-color: rgba(255, 255, 255, .08);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, .28),
    0 1px 0 rgba(255, 255, 255, .07) inset;
}
body.dark .dash-glass::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .16), transparent); }
body.dark .dash-head h1 {
  background: linear-gradient(90deg, #f3f6fa 0%, #7CFF3A 160%);
  -webkit-background-clip: text;
  background-clip: text;
}
body.dark .dash-btn.ghost {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .1);
  color: var(--text);
  box-shadow: none;
}
body.dark .dash-bal-grid div,
body.dark .dash-act-row,
body.dark .dash-ticket,
body.dark .dash-ticket-form,
body.dark .dash-quick label {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .08);
  box-shadow: none;
}
body.dark .dash-act-row:hover,
body.dark .dash-quick label:hover { background: rgba(255, 255, 255, .08); }
body.dark .dash-ticket-form input,
body.dark .dash-ticket-form textarea {
  background: rgba(16, 20, 28, .55);
  border-color: rgba(255, 255, 255, .1);
}
body.dark .dash-kyc {
  background: linear-gradient(180deg, rgba(58, 46, 20, .55), rgba(22, 28, 38, .48));
}
body.dark .home .an-stat { border-color: rgba(255, 255, 255, .08); }
@media (max-width: 1100px) {
  .dash-split { grid-template-columns: 1fr; }
  .dash-bal-grid, .home .dash-kpis { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .dash-bal-top, .dash-head { flex-direction: column; align-items: flex-start; }
  .home .dash-kpis { grid-template-columns: 1fr; }
}

.m-nav { display: none; }
.m-watch-btn,
.m-watch-bg,
.m-sheet-head { display: none; }

@media (max-width: 900px) {
  html, body, html.authed .app {
    height: 100%;
    height: 100dvh;
  }
  html.authed body { overflow: hidden; }
  html.authed .app {
    padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px));
  }

  .top {
    gap: 8px;
    padding: 0 10px;
    padding-top: env(safe-area-inset-top, 0px);
    height: calc(52px + env(safe-area-inset-top, 0px));
    z-index: 50;
    overflow: visible;
  }
  .profile-wrap, .hdr-wrap { overflow: visible; }
  .logo, .acct, .profile-wrap, .m-watch-btn { flex: none; }
  .logo .word { font-size: 15px; }
  .acct { min-width: 0; }
  .acct-id { font-size: 12px; }
  .top-right { gap: 6px; flex: none; }
  .top-right > .hdr-wrap:not(.profile-wrap):not(.hdr-bell-wrap) { display: none; }
  .live { display: none; }
  .icon { width: 32px; height: 32px; }

  .top .nav { display: none !important; }
  .m-nav {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    width: 100vw;
    max-width: 100vw;
    height: auto;
    margin: 0;
    padding: 6px 0 calc(8px + env(safe-area-inset-bottom, 0px));
    background: var(--card);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(16, 24, 40, .08);
    overflow: visible;
  }
  .m-nav .nav-link {
    width: auto;
    max-width: none;
    min-width: 0;
    height: auto;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    padding: 6px 2px 4px;
    border-radius: 12px;
    font-size: 9px;
    font-weight: 650;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--nav-muted);
    box-sizing: border-box;
  }
  .m-nav .nav-link span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .m-nav .nav-link svg { width: 18px; height: 18px; }
  #page-home:checked ~ .app .nav-link[for="page-home"],
  #page-trade:checked ~ .app .nav-link[for="page-trade"],
  #page-stake:checked ~ .app .nav-link[for="page-stake"],
  #page-analytics:checked ~ .app .nav-link[for="page-analytics"],
  #page-explore:checked ~ .app .nav-link[for="page-explore"] {
    color: #16c15a;
    background: var(--green-soft) !important;
  }
  #page-home:checked ~ .app .nav-link[for="page-home"] svg,
  #page-trade:checked ~ .app .nav-link[for="page-trade"] svg,
  #page-stake:checked ~ .app .nav-link[for="page-stake"] svg,
  #page-analytics:checked ~ .app .nav-link[for="page-analytics"] svg,
  #page-explore:checked ~ .app .nav-link[for="page-explore"] svg {
    color: #16c15a;
  }

  .m-watch-btn { display: none; }
  #page-trade:checked ~ .app .m-watch-btn,
  #page-stake:checked ~ .app .m-watch-btn { display: grid; }
  #m-watch:checked ~ .app .m-watch-btn {
    color: #16c15a;
    background: var(--green-soft);
  }

  .m-watch-bg {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: calc(52px + env(safe-area-inset-top, 0px));
    bottom: calc(58px + env(safe-area-inset-bottom, 0px));
    z-index: 34;
    background: var(--scrim);
  }
  #m-watch:checked ~ .app .m-watch-bg { display: block; }

  .workspace {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    padding: 0 !important;
    gap: 0 !important;
    overflow: hidden;
  }

  .left {
    position: fixed;
    left: 0;
    right: 0;
    top: auto;
    bottom: calc(58px + env(safe-area-inset-bottom, 0px));
    width: 100%;
    height: min(78vh, calc(100dvh - 52px - 58px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
    z-index: 36;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    grid-column: 1;
    grid-row: auto;
    transform: translateY(110%);
    visibility: hidden;
    pointer-events: none;
    transition: transform .28s ease, visibility .28s;
    background: var(--card);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -16px 48px rgba(16, 24, 40, .2);
    overflow: hidden;
  }
  #page-trade:checked ~ .app .left,
  #page-stake:checked ~ .app .left,
  .left {
    position: fixed;
    margin: 0 !important;
  }
  #m-watch:checked ~ .app .left {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }
  .m-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: relative;
    flex: none;
    padding: 16px 16px 10px;
    border-bottom: 1px solid var(--line);
  }
  .m-sheet-grip {
    position: absolute;
    left: 50%;
    top: 7px;
    width: 36px;
    height: 4px;
    margin-left: -18px;
    border-radius: 99px;
    background: var(--track);
  }
  .m-sheet-head b {
    font-size: 14px;
    font-weight: 750;
    color: var(--text-strong);
  }
  .m-sheet-close {
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
  }
  .left .watch { flex: 1.2; min-height: 0; }
  .left .lower { flex: .8; min-height: 140px; }
  .left .split-grip { display: none; }

  .home,
  .placeholder-page,
  .deposit-page,
  .account-page,
  .settings-page,
  .analytics-page,
  .staking-page,
  .explore-page,
  .main,
  .blotter,
  .st-blotter {
    grid-column: 1 !important;
  }

  .home,
  .placeholder-page,
  .deposit-page,
  .account-page,
  .settings-page,
  .analytics-page,
  .explore-page {
    padding: 14px 14px 22px !important;
  }
  #page-home:checked ~ .app .home { padding: 12px 12px 20px !important; }
  #page-explore:checked ~ .app .explore-page { padding: 12px 12px 20px !important; }
  #page-stake:checked ~ .app .staking-page {
    padding: 10px 12px 8px !important;
    align-items: stretch;
  }
  .analytics-page .an-wrap,
  .explore-page .an-wrap,
  .dash-wrap { max-height: none; }
  .an-head { align-items: stretch; flex-direction: column; }
  .dash-head, .dash-bal-top { align-items: stretch; }
  .an-head h1 { font-size: 20px; }
  .dash-head-acts {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .dash-head-acts .dash-btn {
    flex: 0 0 calc(50% - 4px);
    width: calc(50% - 4px);
    min-width: 0;
    padding: 0 8px;
  }
  .dash-bal-top { width: 100%; }
  .home .dash-kpis { grid-template-columns: 1fr 1fr !important; }
  .home .dash-kpis .an-kpi { padding: 12px; }
  .home .dash-kpis .an-kpi small { white-space: normal; }
  .an-kpi b, .dash-bal-grid b {
    white-space: normal;
    font-size: 16px;
    overflow: visible;
    text-overflow: unset;
  }
  .an-head p, .verify-copy p, .deposit-page p, .explore-page p { overflow-wrap: anywhere; }
  .deposit-page .home-split { display: flex; flex-direction: column; }
  .deposit-page .home-split .home-col:last-child { order: -1; }
  .dash-ticket-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .dash-ticket-bar .dash-btn { width: 100%; }

  #page-trade:checked ~ .app .workspace,
  #page-stake:checked ~ .app .workspace {
    display: flex !important;
    flex-direction: column;
    overflow: auto !important;
    grid-template-rows: none !important;
  }
  #page-trade:checked ~ .app .main {
    display: flex;
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
    overflow: visible;
  }
  #page-stake:checked ~ .app .staking-page {
    flex: 0 0 auto;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
  #page-trade:checked ~ .app .stock-overview,
  #page-trade:checked ~ .app .stock-panel,
  #page-trade:checked ~ .app .stock-anal,
  #page-trade:checked ~ .app .stock-news,
  #page-trade:checked ~ .app .stock-fins {
    flex: none;
    height: auto;
    overflow: visible;
  }
  #page-trade:checked ~ .app .blotter,
  #page-stake:checked ~ .app .st-blotter {
    display: flex;
    flex: 0 0 auto;
    height: auto !important;
    min-height: 210px !important;
    max-height: none !important;
    border-radius: 0 !important;
  }
  #page-trade:checked ~ #st-chart:checked ~ .app .workspace {
    overflow: hidden !important;
  }
  #page-trade:checked ~ #st-chart:checked ~ .app .main {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }
  #page-trade:checked ~ #st-chart:checked ~ .app .stock-chart {
    flex: 1;
    min-height: 240px;
  }
  #page-trade:checked ~ #st-chart:checked ~ .app .blotter {
    flex: 0 0 200px;
    min-height: 180px !important;
    max-height: 200px !important;
  }

  .stock-tabs {
    height: 48px;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .stock-tabs label {
    flex: none;
    padding: 0 12px;
    font-size: 12px;
    gap: 6px;
  }
  #st-over:checked ~ .app .stock-overview {
    display: flex;
    flex-direction: column;
  }
  .stock-side { order: -1; }
  .perf-card { padding: 16px 14px 14px; }
  .perf-stage { height: 180px; }
  .perf-top { flex-direction: column; }
  .side-card, .buy-card { padding: 14px; }
  .chart-body { grid-template-columns: 1fr; }
  .draw { display: none; }
  .ohlc { padding-left: 14px; }
  .chart-head { padding: 8px 10px 0; gap: 8px; flex-wrap: wrap; }
  .tools { overflow-x: auto; max-width: 100%; }

  .blotter-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 4px;
  }
  .blotter-tabs label { padding: 0 10px; font-size: 12px; }
  .blotter-actions { flex: none; }
  .mt-table {
    min-width: 720px;
    table-layout: auto;
  }
  .pf-table-wrap { overflow-x: auto; }
  .an-row .spark,
  .an-cols span:nth-child(2) { display: none; }
  .an-cols,
  .an-row { grid-template-columns: minmax(0, 1.4fr) 88px 92px; }

  .st-split, .st-terms, .an-split, .pf-split, .home-split, .verify { grid-template-columns: 1fr; }
  .dep-pick { grid-template-columns: 1fr 1fr; }
  .composer-row { flex-wrap: wrap; }
  .profile-menu {
    right: 0;
    width: min(268px, calc(100vw - 16px));
  }
  .bell-menu {
    position: fixed;
    top: calc(52px + env(safe-area-inset-top, 0px) + 8px);
    right: 10px;
    z-index: 70;
    width: min(300px, calc(100vw - 20px));
  }
  #hdr-bell:checked ~ .menu-bg { z-index: 65; }

  button, .nav-link, .dash-btn, .live, .acct, label {
    touch-action: manipulation;
  }
}

@media (max-width: 640px) {
  .logo .word { display: none; }
  .gate-form-wrap { padding: 16px 16px 8px; }
  .gate-form h1 { font-size: 22px; }
  .an-kpis { grid-template-columns: 1fr 1fr; }
  .fin-grid, .fin-meta { grid-template-columns: 1fr; }
  .stock-tabs label span { display: none; }
  .stock-tabs label { padding: 0 16px; }
  .stock-tabs svg { width: 18px; height: 18px; }
}

@media (max-width: 420px) {
  .dash-bal-grid { grid-template-columns: 1fr; }
  .dep-pick { grid-template-columns: 1fr; }
  .acct-demo, .acct-live { display: none; }
  #acc-c:checked ~ .app .acct > .acct-live { display: none; }
}

body.dark .m-nav { box-shadow: 0 -8px 24px rgba(0, 0, 0, .35); }
body.dark .left { box-shadow: 0 -16px 48px rgba(0, 0, 0, .5); }


/* KYC upload form */
.kyc-form {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}
.kyc-field {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted, #64748b);
}
.kyc-field select,
.kyc-field input[type="file"] {
  width: 100%;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 10px;
  background: var(--card, #fff);
  color: var(--text, #0f172a);
  font: inherit;
  font-weight: 650;
  padding: 10px 12px;
}
.kyc-field input[type="file"] {
  padding: 8px 10px;
}
.kyc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.kyc-form .buy-note {
  margin: 0;
  min-height: 1.2em;
}
.kyc-form .buy-note.err { color: #b91c1c; font-weight: 700; }
.kyc-form .buy-note.ok { color: #047857; font-weight: 700; }

/* Support ticket thread */
.dash-ticket { cursor: pointer; }
.dash-ticket:hover { background: rgba(1,153,112,.06); }
.dash-ticket-form input[type="file"] {
  width: 100%;
  border: 1px dashed var(--line, #dbe3ee);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  font-size: 12px;
  background: var(--card, #fff);
  color: var(--muted, #64748b);
}
.dash-ticket-thread {
  margin: 0 0 14px;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 12px;
  padding: 12px;
  background: rgba(248,250,252,.8);
}
.dash-ticket-thread__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.dash-ticket-thread__head b { display: block; font-size: 14px; }
.dash-ticket-thread__head small { color: var(--muted, #64748b); font-weight: 700; }
.dash-ticket-msgs {
  display: grid;
  gap: 10px;
  max-height: 320px;
  overflow: auto;
  margin-bottom: 12px;
}
.dash-ticket-msg {
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
}
.dash-ticket-msg.is-staff { border-color: rgba(1,153,112,.35); background: #f0fdf4; }
.dash-ticket-msg__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  font-weight: 750;
  color: #64748b;
  margin-bottom: 6px;
}
.dash-ticket-msg__body {
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  color: var(--text, #0f172a);
}
.dash-ticket-atts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.dash-ticket-atts button,
.dash-ticket-atts a {
  border: 0;
  background: #ecfdf5;
  color: #047857;
  border-radius: 7px;
  padding: 5px 8px;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
body.dark .dash-ticket-thread { background: rgba(15,23,42,.35); }
body.dark .dash-ticket-msg { background: #0f172a; border-color: #1e293b; }
body.dark .dash-ticket-msg.is-staff { background: rgba(1,153,112,.12); }
