:root{--bg:#171b29;--panel:#202535;--panel2:#252b3c;--border:#30374a;--text:#f5f6fa;--muted:#8b91a4;--blue:#168bea;--green:#10ad5b;--red:#ed554d;--gold:#ffc247}
.topbar{height:64px;background:#202536;border-bottom:1px solid #2d3447;display:flex;align-items:center;justify-content:space-between;padding:0 10px 0 20px}
.brand-area,.account-tools{display:flex;align-items:center}
.menu-btn{font-size:21px;color:#d7dbe7;background:none;border:0;margin-right:28px}
.brand{font-size:16px;font-weight:700}
.subtitle{color:#647087;font-size:10px;letter-spacing:.4px;font-weight:700;margin-top:2px}
.promo{background:#06a852;border-radius:20px;padding:10px 16px;font-size:11px}
.promo span{background:#236099;border-radius:14px;padding:4px 8px;margin-left:8px;font-weight:bold}
.account-tools{gap:6px}
.icon-btn,.account,.deposit,.withdraw{height:30px;border:0;color:#fff;border-radius:3px}
.icon-btn{background:#2c3447;padding:0 12px}
.icon-btn b{background:#ed554d;border-radius:10px;padding:2px 5px;font-size:9px}
.account{background:#2c3447;display:flex;flex-direction:column;padding:3px 12px;text-align:left}
.account small{font-size:8px;color:#ffbd35;font-weight:bold}
.account strong{font-size:11px}
.deposit{background:#0caf5c;padding:0 14px;font-weight:bold}
.withdraw{background:#68728b;padding:0 12px;font-weight:bold}
.sidebar{background:#1c2130;border-right:1px solid var(--border);display:flex;flex-direction:column;justify-content:space-between}
.nav-item{height:68px;color:#fff;text-decoration:none;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;font-size:9px;font-weight:bold;position:relative}
.nav-item span{font-size:21px;color:#e8ecf3}
.nav-item em{font-style:normal;font-size:9px}
.nav-item.active{background:#087ed9;border-radius:3px;margin:10px 8px;height:58px}
.nav-item i{position:absolute;background:#198fe8;border-radius:10px;padding:2px 5px;font-size:9px;top:9px;right:13px;font-style:normal}
.sidebar-bottom{display:flex;flex-direction:column;align-items:center;gap:13px;padding-bottom:8px;color:#aab2c5;font-size:18px}
.sidebar-bottom button{width:40px;border:0;background:#0caf5c;color:#fff;padding:8px 2px;border-radius:2px;font-size:10px;font-weight:bold}
@media(max-width:900px){.promo{display:none}
}
@media(max-width:700px){.account .account,.withdraw{display:none}
.subtitle{display:none}
}
.brand-logo{width:28px;height:28px;object-fit:contain;margin-right:8px;display:block}
.brand-area{display:flex;align-items:center;white-space:nowrap}
.brand-logo{width:25px!important;height:25px!important;object-fit:contain;margin:0 8px 0 0!important}
.brand-area>div:last-child{display:flex;align-items:center;gap:10px}
.brand{font-size:16px;line-height:1}
.subtitle{margin-top:0!important;font-size:10px}
.account-tools .deposit,.account-tools .withdraw{cursor:pointer;transition:filter .15s}
.account-tools .deposit:hover,.account-tools .withdraw:hover{filter:brightness(1.15)}
.sidebar{position:relative;width:72px;min-width:72px;background:#1d2231}
.sidebar nav{padding-top:2px}
.nav-item{height:68px;width:72px;padding:0;color:#f4f6fb;gap:5px;letter-spacing:-.15px}
.nav-item span{height:23px;display:flex;align-items:center;justify-content:center;font-size:20px;line-height:1;color:#f2f4f8}
.nav-item em{font-size:9px;line-height:10px;text-align:center}
.nav-item.active{width:56px;margin:8px 8px 10px;height:58px;border-radius:3px;gap:4px}
.nav-item.active span{font-size:19px}
.nav-item i{top:7px;right:11px;background:#168bea;color:#fff;min-width:15px;text-align:center;padding:2px 4px}
.sidebar-bottom{position:absolute;left:0;right:0;bottom:7px;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:42px 38px 38px;gap:4px 3px;padding:0 12px;font-size:15px}
.sidebar-bottom>span{grid-row:1;align-self:center;color:#70798e}
.sidebar-bottom>span:first-child{grid-column:1}
.sidebar-bottom>span:nth-child(2){grid-column:2}
.sidebar-bottom button{width:40px;height:38px;padding:0;align-self:end;font-size:10px}
.sidebar-bottom button:nth-of-type(1){grid-column:1 / span 2;justify-self:center;background:#087ed9}
.sidebar-bottom button:nth-of-type(2){grid-column:1 / span 2;justify-self:center;background:#0caf5c}
.promo{cursor:pointer}
.topbar .promo{position:relative;display:flex;align-items:center;gap:5px;height:38px;min-width:286px;padding:0 11px 0 48px;border-radius:22px;background:#08a956;color:#fff;font-size:12px;line-height:1;white-space:nowrap;box-shadow:0 2px 0 #087d46 inset}
.topbar .promo:before{content:'Ys?';position:absolute;left:5px;top:-7px;font-size:38px;line-height:1;filter:drop-shadow(0 2px 1px #075b36)}
.topbar .promo strong{font-size:12px}
.topbar .promo span{margin-left:auto;padding:6px 9px;border-radius:14px;background:#2867a8;color:#fff;font-weight:bold;font-size:11px;box-shadow:inset 0 0 0 1px #ffffff18}
@media(max-width:900px){.topbar .promo{min-width:250px;padding-left:42px}
.topbar .promo:before{font-size:32px}
}
.topbar .brand-area{height:64px;gap:0}
.topbar .menu-btn{width:28px;padding:0;margin:0 20px 0 0;font-size:22px;font-weight:300;line-height:1}
.topbar .brand-logo{width:25px!important;height:25px!important;margin-right:7px!important}
.topbar .brand-area>div:last-child{gap:10px;align-items:center}
.topbar .brand{font-family:Arial,Helvetica,sans-serif;font-size:16px;font-weight:700;letter-spacing:-.3px;color:#f4f6fb}
.topbar .subtitle{font-family:Arial,Helvetica,sans-serif;font-size:11px;font-weight:700;letter-spacing:.25px;color:#68738a;white-space:nowrap}
.account{cursor:pointer}
.sidebar nav{padding-top:0}
.sidebar .nav-item{height:62px;width:72px;gap:5px}
.sidebar .nav-item.active{width:48px;height:48px;margin:0 12px 8px;border-radius:3px}
.sidebar .nav-item span{height:20px;width:20px;font-size:22px}
.sidebar .nav-item svg{width:20px;height:20px;display:block}
.sidebar .nav-item em{font:800 9px/10px Arial,sans-serif;letter-spacing:-.2px}
.sidebar .nav-item i{top:7px;right:15px;font-size:9px;min-width:13px;padding:2px 3px}
.sidebar-bottom{display:flex;flex-direction:column;gap:8px;align-items:center;bottom:8px;padding:0}
.rail-utilities{width:46px;display:grid;grid-template-columns:1fr 1fr;gap:7px;color:#666e7e;font-size:16px;margin-bottom:2px}
.sidebar-bottom .rail-join,.sidebar-bottom .rail-help{display:flex;flex-direction:column;align-items:center;justify-content:center;width:40px;height:38px;border-radius:3px;font:800 9px/11px Arial,sans-serif}
.sidebar-bottom .rail-join{background:#162d43;color:#fff}
.sidebar-bottom .rail-join span{color:#169cf4;font-size:14px}
.sidebar-bottom .rail-help{background:#0caf5c}
.sidebar-bottom .rail-help span{font-size:13px;color:#b6f2d0}
.sidebar{width:72px;min-width:72px}
.sidebar nav{padding-top:2px}
.sidebar .nav-item{height:70px;width:72px;justify-content:center;gap:6px}
.sidebar .nav-item.active{width:56px;height:58px;margin:8px 8px 4px}
.sidebar .nav-item span{width:24px;height:24px;font-size:22px;color:#f4f7fc}
.sidebar .nav-item svg{width:22px;height:22px;filter:drop-shadow(0 1px 1px #0005)}
.sidebar .nav-item em{font-size:9px;line-height:10px;font-weight:800;letter-spacing:0}
.sidebar .nav-item i{top:9px;right:11px;background:#168bea;border:1px solid #65baff;box-shadow:0 1px 2px #0006}
.sidebar-bottom{bottom:8px}
.sidebar .nav-item:nth-child(2) svg{width:24px;height:24px;filter:drop-shadow(0 1px 2px #0008)}
.sidebar .nav-item:nth-child(2) svg path{fill:#f7f8fb}
.sidebar .nav-item:nth-child(2) svg text{fill:#1b2030;font-weight:800}
.support-icon-image{width:24px;height:24px;display:block;object-fit:contain}
.sidebar{font-family:Inter,Segoe UI,Arial,sans-serif;background:#1b2130}
.sidebar .nav-item{height:70px;gap:7px;color:#f7f9fc;text-shadow:0 1px 1px #0006;transition:background .15s,transform .15s}
.sidebar .nav-item:hover:not(.active){background:#252d40}
.sidebar .nav-item.active{background:#087ed9;box-shadow:0 5px 14px #087ed955;transform:translateY(-1px)}
.sidebar .nav-item span{height:25px;width:25px}
.sidebar .nav-item em{font-family:Inter,Segoe UI,Arial,sans-serif;font-size:9px;font-weight:800;line-height:11px;letter-spacing:.15px}
.sidebar .nav-item i{font-family:Arial,sans-serif;font-weight:700}
.support-icon-image{width:25px;height:25px}
.sidebar-bottom .rail-join,.sidebar-bottom .rail-help{font-family:Inter,Segoe UI,Arial,sans-serif;letter-spacing:.1px;line-height:10px}
.sidebar-bottom .rail-join{box-shadow:0 3px 8px #087ed933}
.sidebar-bottom .rail-help{box-shadow:0 3px 8px #0caf5c33}
.sidebar-bottom .rail-utilities{display:none}
.sidebar-bottom{gap:8px;bottom:10px}
.account-tools .icon-btn{position:relative;display:flex;align-items:center;justify-content:center;width:70px;background:#293145;font-size:18px;color:#f5f7fb}
.account-tools .icon-btn b{position:absolute;right:10px;top:8px}
.account-tools .account{min-width:126px;height:38px;padding:5px 12px;background:#293145}
.account-tools .account small{color:#20c779;font-size:10px;letter-spacing:.2px}
.account-tools .account strong{font-size:14px;color:#fff}
.account-tools{gap:8px;height:40px}
.account-tools .icon-btn{width:76px;height:40px;padding:0 11px;background:#293145;border-radius:4px}
.account-tools .icon-btn b{right:10px;top:10px}
.account-tools .account{width:157px;min-width:157px;height:40px;padding:5px 14px;border-radius:4px;background:#293145}
.account-tools .account small{font-size:10px;line-height:11px;color:#1ec779}
.account-tools .account strong{font-size:14px;line-height:15px}
.account-tools .deposit,.account-tools .withdraw{height:40px;border-radius:4px;font-size:14px;padding:0 17px}
.account-tools .deposit{min-width:104px;background:#0caf5c}
.account-tools .withdraw{min-width:105px;background:#69738a}
.topbar .promo{overflow:visible;min-width:286px}
.topbar .promo strong{display:block;white-space:nowrap}
.topbar .promo span{flex:0 0 auto}
.topbar .promo{box-shadow:none;border:0;outline:0;background:#08a956}
.topbar .promo:after{display:none}
.topbar .promo:before{content:"";display:none}
.sidebar{position:relative;min-height:0;overflow:hidden}
.sidebar-bottom{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  padding:0 0 14px;
  margin:0;
  width:auto;
  box-sizing:border-box;
}
.sidebar-bottom .rail-utilities{display:none}
.sidebar-bottom .rail-join,
.sidebar-bottom .rail-help{
  display:flex;
  flex:0 0 38px;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  width:40px;
  height:38px;
  margin:0;
  padding:3px 1px;
  border:0;
  border-radius:4px;
  line-height:11px;
  text-align:center;
  box-sizing:border-box;
  cursor:pointer;
}
.sidebar-bottom .rail-join{background:#087ed9;color:#fff}
.sidebar-bottom .rail-help{background:#0caf5c;color:#fff}
.sidebar-bottom .rail-join:hover,
.sidebar-bottom .rail-help:hover{filter:brightness(1.12)}
@media(max-height:680px){.sidebar .nav-item{height:56px}
.sidebar .nav-item.active{height:50px;margin-top:5px;margin-bottom:3px}
.sidebar-bottom{gap:6px;padding-bottom:10px}
}

/* One fixed shell on every public page; only content scrolls. */
.shared-header,.shared-sidebar,.shared-header *,.shared-sidebar *{box-sizing:border-box}
.shared-header.topbar{position:fixed;inset:0 0 auto;height:64px;z-index:50;font-family:Arial,sans-serif}
.shared-sidebar.sidebar{position:fixed;left:0;top:64px;bottom:0;width:72px;min-width:72px;z-index:45;border-right:1px solid #30374a}
.shared-header .brand-area>div:last-child{display:flex;align-items:center}
.shared-header .promo:before{display:none}
.shared-header .promo{min-width:0;padding:0 16px;height:36px;font-size:11px}
.shared-header .promo strong{font-size:11px}
.shared-header .brand-logo{object-fit:contain}
.shared-sidebar a{text-decoration:none}
body.shared-content{height:100vh;overflow:hidden}
body.shared-content>main{position:fixed;inset:64px 0 0 72px;margin:0;padding:14px 22px 30px;overflow:auto;box-sizing:border-box;min-width:0}
body.shared-content>main>.tabs{position:relative;top:auto;z-index:1}
body.shared-content .shared-header .brand{margin:0}
body.shared-content .shared-header .account{display:flex;flex-direction:column;align-items:flex-start;gap:0;border:0;border-radius:3px;color:white;text-align:left;cursor:pointer}
body.shared-content .shared-header .account small{font-weight:bold}
.shared-header .menu-btn{cursor:pointer}
.shared-shell-menu{position:fixed;top:64px;left:72px;z-index:60;width:210px;background:#252c3e;border:1px solid #414b62;border-radius:0 0 6px 0;padding:8px;box-shadow:0 12px 30px #0005}
.shared-shell-menu[hidden]{display:none}.shared-shell-menu a{display:block;padding:12px;color:#e3eaf5;text-decoration:none;font:12px Arial}.shared-shell-menu a:hover{background:#344159;border-radius:4px}
.terminal{padding-top:64px;box-sizing:border-box}.terminal>.body-grid{height:100%}
@media(max-width:900px){.shared-header .promo{display:none}}
@media(max-width:650px){.shared-header .subtitle{display:none}.shared-header .menu-btn{margin-right:10px}.shared-header .account-tools{gap:4px}.shared-header .account-tools .account{min-width:90px;padding:5px 8px}.shared-header .deposit,.shared-header .withdraw{padding:0 8px}.shared-header.topbar{padding:0 8px}.shared-content>main{padding:12px}.shared-sidebar.sidebar{width:72px;min-width:72px}}
.terminal>.body-grid{grid-template-columns:72px minmax(0,1fr) 176px}.terminal>.body-grid>.workspace{grid-column:2}.terminal>.body-grid>.trade-panel{grid-column:3}.terminal>.body-grid>.shared-sidebar{grid-column:1}
@media(max-width:900px){.terminal>.body-grid{grid-template-columns:72px minmax(0,1fr) 160px}}
@media(max-width:700px){.terminal>.body-grid{grid-template-columns:72px minmax(0,1fr)}}

/* Consistent account navigation, shared by every content page. */
body.shared-content>main>.page-tabs{display:flex;align-items:center;justify-content:flex-start;gap:5px;width:max-content;max-width:100%;min-height:44px;margin:0 0 22px;padding:6px 7px;background:#292e3e;border:1px solid #303649;border-radius:5px;box-shadow:0 1px 2px #10152014;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#515d75 transparent}
body.shared-content>main>.page-tabs>a{display:flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:32px;padding:0 15px;margin:0;border:0;border-radius:3px;background:transparent;color:#e7ebf4;text-decoration:none;white-space:nowrap;font:700 12px/1.2 Arial,sans-serif;letter-spacing:0;transition:background .15s,color .15s;outline-offset:-2px}
body.shared-content>main>.page-tabs>a:hover{background:#343b4e;color:#fff}
body.shared-content>main>.page-tabs>a.selected{background:#414858;color:#fff;box-shadow:0 1px 2px #14192620}
body.shared-content>main>.page-tabs>a:focus-visible{outline:2px solid #259aff;background:#344158;color:#fff}
@media(max-width:700px){body.shared-content>main>.page-tabs{width:100%;gap:3px;padding:5px;min-height:42px}body.shared-content>main>.page-tabs>a{padding:0 12px;font-size:11px}}

/* Center footer actions explicitly; legacy align-self:end pushed them right. */
.shared-sidebar.sidebar{display:flex;flex-direction:column;overflow:hidden}
.shared-sidebar.sidebar>nav{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:none;padding-bottom:12px}
.shared-sidebar.sidebar>nav::-webkit-scrollbar{display:none}
.shared-sidebar .sidebar-bottom{position:static;flex:0 0 auto;display:flex;align-items:center;justify-content:center;gap:10px;width:100%;margin:0;padding:14px 10px 18px;border-top:1px solid #ffffff08;background:#1b2130}
.shared-sidebar .sidebar-bottom .rail-join,.shared-sidebar .sidebar-bottom .rail-help{align-self:center;flex:0 0 44px;width:50px;height:44px;margin:0;padding:6px 2px;gap:4px;border:1px solid #ffffff16;border-radius:7px;font:700 9px/11px Arial,sans-serif;letter-spacing:.15px;text-align:center;box-shadow:0 3px 8px #0002;transition:background .15s,box-shadow .15s,transform .15s}
.shared-sidebar .sidebar-bottom .rail-join{background:#087ed9}
.shared-sidebar .sidebar-bottom .rail-help{background:#0caf69}
.shared-sidebar .sidebar-bottom .rail-join span,.shared-sidebar .sidebar-bottom .rail-help span{display:flex;align-items:center;justify-content:center;width:16px;height:16px;font-size:14px;line-height:1;color:#e7f6ff}
.shared-sidebar .sidebar-bottom button:hover{filter:brightness(1.12);box-shadow:0 4px 12px #0003;transform:translateY(-1px)}
.shared-sidebar .sidebar-bottom button:focus-visible{outline:2px solid #d7edff;outline-offset:3px}
.shared-sidebar .sidebar-bottom button:active{transform:translateY(0)}
@media(max-height:600px){.shared-sidebar .sidebar-bottom{padding-top:10px;padding-bottom:12px;gap:8px}.shared-sidebar .sidebar-bottom .rail-join,.shared-sidebar .sidebar-bottom .rail-help{flex-basis:40px;height:40px}}

/* Same full-height navigation drawer on the terminal and content pages. */
.main-drawer{position:fixed;inset:0 auto 0 0;z-index:100;width:205px;max-width:calc(100vw - 40px);background:#1b2030;color:#f7f8fb;border:0;border-right:1px solid #2b3345;border-radius:0;box-shadow:6px 0 28px #0002;transform:translateX(-105%);transition:transform .24s ease;overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box;font:13px Arial,sans-serif;visibility:hidden}
.main-drawer.open{transform:translateX(0);visibility:visible}
.drawer-scrim{position:fixed;inset:0;z-index:90;background:#1d263dcc;backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}
.drawer-scrim[hidden]{display:none}
.main-drawer .drawer-top{display:flex;align-items:center;height:58px;padding:16px 28px;border-bottom:1px solid #2b3345;box-sizing:border-box}
.main-drawer .drawer-close{display:flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:0;background:transparent;color:#e9edf5;font:26px/1 Arial;cursor:pointer;border-radius:4px}
.main-drawer .drawer-close:hover{background:#30394b}
.main-drawer .drawer-account{display:flex;flex-direction:column;padding:32px 20px 20px;gap:0;margin:0}
.main-drawer .drawer-account small,.main-drawer .drawer-nav{display:none}
.main-drawer .drawer-account a{display:flex;align-items:center;flex:0 0 43px;height:43px;padding:0 10px;border-bottom:1px solid #2b3345;color:#e9edf5;text-decoration:none;font:600 13px Arial,sans-serif;letter-spacing:.05px;cursor:pointer;box-sizing:border-box}
.main-drawer .drawer-account a:hover{background:#252d40;color:#fff;border-radius:3px}
.main-drawer .drawer-account .drawer-gap{margin-top:22px;border-top:1px solid #3a4356}
.main-drawer .drawer-account .logout{margin-top:13px;color:#ed554d;border-bottom:0}
.main-drawer a:focus-visible,.main-drawer button:focus-visible{outline:2px solid #259aff;outline-offset:-2px}
@media(prefers-reduced-motion:reduce){.main-drawer{transition:none}}

/* Inline support artwork avoids image loading and MIME-type failures. */
.shared-sidebar .nav-item .support-symbol{display:block;width:23px;height:23px;flex-shrink:0;color:#f4f7fc;filter:none}
.shared-sidebar .nav-item:nth-child(2) .support-symbol path{fill:currentColor}
.shared-sidebar .nav-item:nth-child(2) .support-symbol path[fill="none"]{fill:none}

.shared-header .brand-home{display:flex;align-items:center;gap:0;color:inherit;text-decoration:none;cursor:pointer;border-radius:4px;min-width:0}
.shared-header .brand-home>div{display:flex;align-items:center;gap:10px}
.shared-header .brand-home:focus-visible{outline:2px solid #259aff;outline-offset:5px}

/* Keep the support panel above the shared blurred backdrop (layer 90). */
.support-drawer{z-index:100;max-width:calc(100vw - 24px);overflow-y:auto;overscroll-behavior:contain;visibility:hidden}
.support-drawer.open{visibility:visible;transform:translateX(0)}
.support-drawer .support-close{cursor:pointer}

/* Shared Help panel on all public pages. */
.support-drawer{position:fixed;z-index:50;left:0;top:0;bottom:0;width:330px;background:#202535;box-shadow:8px 0 28px #0006;transform:translateX(-102%);transition:transform .22s ease;color:#fff}.support-drawer.open{transform:translateX(0)}.support-head{height:64px;display:flex;align-items:center;gap:48px;padding:0 28px;border-bottom:1px solid #30384b}.support-head b{font-size:20px}.support-close{border:0;background:none;color:#cbd1df;font-size:25px;cursor:pointer}.support-content{padding:26px 32px}.support-card{height:170px;border-bottom:1px solid #485064;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px}.support-card span{font-size:28px;color:#168bea}.support-card b{font-size:15px}.support-card small{color:#788397}.support-contact{text-align:center;padding-top:54px}.support-contact>span{display:inline-flex;width:26px;height:26px;align-items:center;justify-content:center;border-radius:50%;background:#b60044;font-weight:bold}.support-contact p{font-size:13px;line-height:18px;margin:12px 0 4px}.support-contact a{display:block;color:#168bea;text-decoration:none;font-weight:bold;font-size:13px;margin-top:7px}.support-contact a:hover{text-decoration:underline}
.support-drawer{z-index:100;max-width:calc(100vw - 24px);overflow-y:auto;overscroll-behavior:contain;visibility:hidden;font:14px Arial,sans-serif}.support-drawer.open{visibility:visible}.support-card svg{display:block;width:29px;height:29px}.support-drawer button:focus-visible,.support-drawer a:focus-visible{outline:2px solid #329cf4;outline-offset:4px}

.support-drawer .support-telegram{color:#fff;text-decoration:none;transition:background .15s}.support-drawer .support-telegram:hover{background:#278ff50c}.support-drawer .support-telegram:focus-visible{outline:2px solid #329cf4;outline-offset:3px}
