:root {
  --bg: #152238;
  --bg-2: #1b2c4a;
  --card: #1e3358;
  --card-2: #27406a;
  --line: #3a5688;
  --text: #eef3ff;
  --muted: #a9b8d6;
  --green: #1ed760;
  --green-ink: #042;
  --red: #ff4b6e;
  --yellow: #fcd535;
  --shadow: 0 18px 50px rgba(0, 0, 0, .28);
  --radius: 8px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background:
    radial-gradient(900px 480px at 0% -10%, rgba(80, 140, 255, .28), transparent 55%),
    radial-gradient(700px 420px at 100% 0%, rgba(30, 215, 96, .12), transparent 50%),
    #152238;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .35;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
}
.wrap, .auth-card, .app-shell { position: relative; z-index: 1; }
body, .app-shell, .main { max-width: 100%; overflow-x: hidden; }
a { color: var(--green); text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.skip {
  position: absolute; left: -999px; top: 8px;
}
.skip:focus { left: 8px; background: #fff; color: #000; padding: 8px 12px; z-index: 9; }

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; gap: 16px;
}
.nav { display: flex; gap: 18px; align-items: center; color: var(--muted); }
.nav a { color: var(--muted); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: .02em; }
.brand img { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(20, 201, 138, .15); color: var(--green); border: 1px solid rgba(20, 201, 138, .35);
}
.brand img + .brand-mark { display: none; }

.btn, button.btn, .pill-btn, .mini-buy, .mini-sell {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid transparent;
  background: linear-gradient(180deg, #1c2c44, #121c30); color: var(--text); cursor: pointer; font-weight: 700;
  letter-spacing: .01em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 8px 18px rgba(0,0,0,.25);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.btn::after, button.btn::after, .pill-btn::after, .mini-buy::after, .mini-sell::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 28%, rgba(255,255,255,.38) 48%, transparent 68%);
  transform: translateX(-130%);
  animation: sheen 3.2s ease-in-out infinite;
}
.btn:hover, button.btn:hover, .pill-btn:hover { filter: brightness(1.06); }
.btn-primary { background: linear-gradient(180deg, #5dffc4, #12b981 45%, #0b8f68); color: #04281c; box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 12px 28px rgba(20,201,138,.35); }
.btn-ghost { background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border-color: rgba(255,255,255,.16); color: var(--text); }
.btn-buy, .mini-buy { background: #089981; color: #fff; width: 100%; font-size: 16px; letter-spacing: .04em; box-shadow: none; }
.btn-sell, .mini-sell { background: #f23645; color: #fff; width: 100%; font-size: 16px; letter-spacing: .04em; box-shadow: none; }
.btn-buy small, .btn-sell small { display: block; font-size: 11px; font-weight: 650; letter-spacing: 0; opacity: .85; }
.mini-buy, .mini-sell { width: auto; font-size: 13px; }
@keyframes sheen { 0%, 55% { transform: translateX(-130%); } 80%, 100% { transform: translateX(130%); } }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }

.hero { display: block; padding: 12px 0 10px; }
.stage { margin-top: 8px; }
.kicker { color: var(--green); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; margin: 0; letter-spacing: -.03em; }
.hero-slim { padding: 8px 0 4px; }
.hero-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 12px; }
.hero-bar .hero-actions { margin: 0; }
.lede { color: var(--muted); font-size: 18px; max-width: 46ch; }
.hero-actions { display: flex; gap: 12px; margin: 22px 0; flex-wrap: wrap; }
.panel {
  background: linear-gradient(180deg, rgba(20, 201, 138, .08), transparent 28%), var(--card);
  border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 16px;
}
.panel-top, .spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.price-lg { font-size: 28px; font-weight: 750; letter-spacing: -.03em; }
.fake-chart { height: 180px; margin-top: 12px; display: flex; align-items: flex-end; gap: 6px; }
.fake-chart span { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--green), rgba(20,201,138,.15)); min-height: 12px; }
.fake-chart span.down { background: linear-gradient(180deg, var(--red), rgba(255,91,110,.15)); }
.ticks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.tick { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.tick b { display: block; }
.up { color: var(--green); }
.down { color: var(--red); }
.flat { color: var(--muted); }

.features, .cards, .asset-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 28px 0; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card h3 { margin: 0 0 6px; font-size: 16px; }
.card p, .muted { color: var(--muted); }
.section { padding: 18px 0 8px; }
.section h2 { margin-bottom: 8px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 8px 0; }
.faq summary { cursor: pointer; font-weight: 650; }
.site-footer { border-top: 1px solid var(--line); margin-top: 36px; padding: 22px 0 32px; color: var(--muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 14px; flex-wrap: wrap; }

.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: min(440px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px 22px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 30px; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.field span, label { font-size: 14px; color: var(--muted); }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid var(--line);
  background: #0b1424; padding: 10px 12px;
}
textarea { min-height: 120px; resize: vertical; }
.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 72px; }
.pass-toggle { position: absolute; right: 8px; top: 8px; min-height: 32px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.check { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: 14px; margin: 12px 0; }
.check input { margin-top: 3px; }
.form-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.flash { border-radius: 12px; padding: 10px 12px; margin: 10px 0; }
.flash-error { background: rgba(255,91,110,.12); color: #ffd0d6; }
.flash-success { background: rgba(20,201,138,.12); color: #d5ffef; }

.app-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.sidebar { border-right: 1px solid var(--line); padding: 18px 14px; background: #0a1220; }
.side-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 18px; }
.side-nav a, .side-nav button {
  text-align: left; background: transparent; border: 0; color: var(--muted);
  border-radius: 10px; min-height: 42px; padding: 0 10px; display: flex; align-items: center; width: 100%;
}
.side-nav a.is-on, .side-nav a:hover { background: rgba(20,201,138,.1); color: var(--text); }
.main { padding: 18px 18px 32px; min-width: 0; }
.topbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 16px; }
.topbar-lead { display: flex; align-items: center; gap: 8px; min-width: 0; }
.app-back {
  display: inline-flex; align-items: center; justify-content: center; gap: 3px;
  min-height: 40px; padding: 0 12px 0 8px; border-radius: 10px;
  background: linear-gradient(180deg, #243044, #151d2c); color: #f4ecd8;
  border: 1px solid rgba(230, 211, 168, .55);
  box-shadow: inset 0 1px 0 rgba(255, 252, 240, .2), 0 3px 8px rgba(0, 0, 0, .32);
  font-size: 13px; font-weight: 800; letter-spacing: .02em; line-height: 1;
  text-decoration: none; white-space: nowrap;
}
.app-back:hover, .app-back:focus-visible { color: #fff8ea; border-color: rgba(230, 211, 168, .85); }
.pill { border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; color: var(--muted); font-size: 13px; }
.balance { font-weight: 750; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat b { display: block; font-size: 22px; margin-top: 4px; }
.trade-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; }
.chart-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
canvas.chart { width: 100%; height: 460px; display: block; background: #0e1114; border-radius: 12px; border: 1px solid #2b3139; }
.pills, .seg { display: flex; gap: 8px; flex-wrap: wrap; }
.pill-btn { min-height: 40px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text); padding: 0 12px; cursor: pointer; }
.pill-btn.is-on { border-color: var(--green); color: var(--green); }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 8px; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.badge-sim { background: rgba(250, 204, 21, .12); color: #fde68a; }
.order-card .btn + .btn { margin-top: 8px; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; font-size: 13px; }
.asset-list { display: flex; flex-direction: column; gap: 8px; }
.asset-row, .market-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center;
  padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: inherit;
}
.bottom-nav { display: none; }
.chat { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow: auto; padding: 8px 0; }
.bubble { max-width: min(520px, 88%); background: var(--card-2); border-radius: 14px; padding: 10px 12px; }
.bubble.me { margin-left: auto; background: rgba(20,201,138,.15); }
.bubble time { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.empty { padding: 24px; text-align: center; color: var(--muted); }
.pager { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.menu-toggle { display: none; }

.marquee { overflow: hidden; border-block: 1px solid #2b3139; background: #0e1114; margin: 0; }
.marquee-ind { background: #12161c; border-top: 0; }
.marquee-track { display: flex; gap: 22px; width: max-content; padding: 8px 0; animation: ticker 70s linear infinite; }
.marquee-ind .marquee-track { animation-duration: 80s; }
.tape-item { display: inline-flex; align-items: baseline; gap: 8px; padding-right: 22px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.tape-item b { color: var(--text); font-weight: 700; }
.tape-item { display: inline-flex; gap: 8px; align-items: baseline; font-variant-numeric: tabular-nums; }
.tape-item b { font-weight: 700; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.stage { display: grid; grid-template-columns: minmax(0, 1.3fr) 280px; gap: 22px; align-items: center; }
.terminal, .phone-screen { background: rgba(10, 18, 32, .88); border: 1px solid var(--line); box-shadow: var(--shadow); }
.terminal { border-radius: 8px; padding: 10px; min-width: 0; border: 1px solid #2b3139; background: #12161c; }
.terminal-bar { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 12px; margin-bottom: 10px; }
.terminal-bar i { width: 8px; height: 8px; border-radius: 50%; background: #334155; display: block; }
.terminal-bar i:first-child { background: #ff5b6e; }
.terminal-bar i:nth-child(2) { background: #fbbf24; }
.terminal-bar i:nth-child(3) { background: #14c98a; }
#desk-chart, #phone-chart { width: 100%; display: block; background: #0b1424; border-radius: 12px; }
#desk-chart { height: 230px; }
.phone { width: 280px; justify-self: center; padding: 12px; border-radius: 36px; background: linear-gradient(180deg, #1e293b, #0b1220); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 30px 70px rgba(0,0,0,.45); }
.phone-screen { border-radius: 26px; padding: 14px 12px 16px; min-height: 460px; }
.phone-top { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
#phone-chart { height: 250px; }
.phone-price { font-size: 28px; font-weight: 750; letter-spacing: -.03em; margin: 8px 0 2px; }
.phone-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.mini-buy, .mini-sell { display: grid; place-items: center; min-height: 44px; border-radius: 12px; font-weight: 750; }
.mini-buy { background: #089981; color: #fff; }
.mini-sell { background: #f23645; color: #fff; }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(32px, 4vw, 44px); }
.legal-links { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 18px; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 18px; width: 100%; }
.footer-grid a, .footer-grid p { color: var(--muted); display: block; margin: 6px 0; }
.subnav { display: flex; gap: 14px; overflow: auto; padding-bottom: 8px; color: var(--muted); }
.subnav a { color: var(--muted); white-space: nowrap; }

@media (max-width: 980px) {
  .hero, .features, .cards, .asset-grid, .stats, .trade-grid, .stage, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .phone { width: min(320px, 100%); }
  .cards-3 { grid-template-columns: 1fr; }
  .nav { display: none; }
  canvas.chart { height: 240px; }
}
@media (max-width: 860px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .sidebar.is-open { display: block; position: fixed; inset: 0 auto 0 0; width: min(280px, 86vw); z-index: 20; }
  .menu-toggle { display: inline-flex; }
  .main { padding: 14px 14px 96px; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; position: fixed; left: 0; right: 0; bottom: 0;
    background: #152238; z-index: 15; padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  }
  .bottom-nav a {
    color: var(--muted); text-align: center; font-size: 10px; font-weight: 700;
    min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    line-height: 1.1; letter-spacing: .04em;
    border: 1px solid #3a414b; border-radius: 12px; background: #161a1e;
  }
  .bottom-nav svg { width: 18px; height: 18px; display: block; }
  .bottom-nav a.nav-trade svg { width: 22px; height: 22px; overflow: visible; }
  .bottom-nav a.is-on { color: #fff; background: #1e222d; border-color: #2962ff; }
  .topbar { align-items: flex-start; }
}

.auth-body { display: block; padding: 0; background: #07080c; min-height: 100vh; }
#auth-chart { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
.auth-scene { min-height: 100vh; display: grid; place-items: center; position: relative; z-index: 1; padding: 28px 16px; }
.auth-card {
  width: min(460px, 100%);
  background: linear-gradient(180deg, rgba(24, 20, 12, .92), rgba(10, 9, 7, .94));
  border: 1px solid rgba(212, 175, 90, .55);
  border-radius: 22px;
  padding: 32px 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,.55), inset 0 1px 0 rgba(245, 215, 138, .35);
}
.auth-card input, .auth-card select, .auth-card textarea {
  border-color: rgba(212, 175, 90, .45);
  background: #100e0a;
}
.btn-primary {
  background: #2962ff;
  color: #fff;
  box-shadow: none;
}
.auth-card h1 { margin-top: 8px; }
.field input, .field select, .field textarea {
  border-color: rgba(212, 175, 90, .4);
}
.pill-btn, .chip { border-color: #2a2e39; }
.pill-btn.is-on, .pill-btn:has(input:checked), .chip.is-on, .chip:has(input:checked) {
  background: #1e222d;
  color: #d1d4dc;
  border-color: #2962ff;
}
.quote-strip, .margin-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 12px;
}
.quote-strip span, .margin-strip span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.quote-strip i, .margin-strip i {
  font-style: normal;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.quote-strip b, .margin-strip b { font-size: 13px; font-weight: 700; }
.order-card .btn-buy, .order-card .btn-sell { margin-top: 8px; }
@media (max-width: 860px) {
  .trade-grid { grid-template-columns: 1fr; }
  .order-card { margin-bottom: 72px; }
  .quote-strip, .margin-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (orientation: landscape) and (max-height: 520px) {
  .trade-grid { grid-template-columns: minmax(0, 1fr) 280px; align-items: start; }
  canvas.chart { height: calc(100vh - 150px); }
  .bottom-nav { display: none; }
  .main { padding-bottom: 12px; }
}
.showcase { display: grid; grid-template-columns: minmax(0, 1.35fr) 250px 250px; gap: 16px; align-items: stretch; margin-top: 22px; }
.device { position: relative; border-radius: 36px; padding: 12px 10px 14px; background: linear-gradient(180deg, #2a3344, #0b1018); border: 1px solid rgba(255,255,255,.18); box-shadow: 0 28px 50px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.25); }
.device-screen { background: #070d16; border-radius: 26px; min-height: 430px; padding: 28px 12px 14px; border: 1px solid rgba(255,255,255,.06); }
.island { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 86px; height: 22px; border-radius: 20px; background: #000; z-index: 2; }
.hole { position: absolute; top: 22px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #0b0b0b; box-shadow: 0 0 0 3px #1a1a1a; z-index: 2; }
.device-kicker { display: flex; justify-content: space-between; color: #d6deea; font-size: 12px; font-weight: 700; letter-spacing: .04em; margin-bottom: 10px; }
.phone-price.gold { color: #f5d78a; }
#btc-chart, #xau-chart, #desk-chart { width: 100%; height: 150px; }
#desk-chart { height: 220px; }
.showcase-single { grid-template-columns: minmax(0, 1.2fr) 320px; }
.gold-phone {
  width: 320px;
  justify-self: center;
  padding: 12px;
  border-radius: 46px;
  background: linear-gradient(160deg, #4b5160, #1e2329 42%, #0b0e11);
  border: 1px solid #5e6673;
  box-shadow: 0 30px 60px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.25);
}
.gold-phone .device-screen { min-height: 620px; background: #07080c; }
.handset { position: relative; width: min(300px, 92vw); justify-self: center; }
.handset-svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 22px 28px rgba(0,0,0,.5)); }
.handset-screen {
  position: absolute;
  left: 8.4%;
  right: 8.4%;
  top: 3.5%;
  bottom: 3.3%;
  overflow: hidden;
  border-radius: 32px;
  background: #0b0e11;
}
.handset-track { display: flex; height: 100%; width: 300%; transition: transform .9s ease; }
.handset-slide { width: 33.3333%; flex: none; padding: 34px 12px 12px; box-sizing: border-box; }
.slide-chart { width: 100%; height: 250px; display: block; background: transparent; }
.handset .island { top: 8px; width: 72px; height: 18px; }
.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid #2b3139;
  background: #1e2329;
  color: var(--yellow);
  font-size: 22px;
  line-height: 1;
}
.more-sheet {
  position: absolute;
  right: 16px;
  top: 64px;
  z-index: 20;
  min-width: 220px;
  padding: 8px;
  border-radius: 16px;
  background: #14110c;
  border: 1px solid rgba(212,175,90,.45);
  box-shadow: 0 18px 40px rgba(0,0,0,.4);
}
.more-sheet a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--text); }
.link-row { display: flex; gap: 16px; flex-wrap: wrap; margin: 8px 0 14px; }
.link-row a { color: var(--text); font-weight: 700; }
body.trade-mode { overflow: hidden; height: 100dvh; background: #0b1220; }
body.trade-mode .sidebar,
body.trade-mode .topbar,
body.trade-mode .bottom-nav,
body.trade-mode .more-sheet { display: none !important; }
body.trade-mode .app-shell { grid-template-columns: minmax(0, 1fr); }
body.trade-mode .app-shell,
body.trade-mode .main,
body.trade-mode #content { height: 100dvh; min-height: 0; width: 100%; }
body.trade-mode .main { padding: 0; overflow: hidden; }
.term { height: 100dvh; display: flex; flex-direction: column; background: transparent; }
.term-stage { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }
@media (max-width: 799px) {
  body.trade-mode .term { overflow: hidden; }
  body.trade-mode .qx-top,
  body.trade-mode .qx-asset,
  body.trade-mode .qx-hub,
  body.trade-mode .qx .term-dock { flex: 0 0 auto; }
  body.trade-mode .term-stage { flex: 1 1 0%; min-height: 72px; }
  body.trade-mode .qx-facts:not([hidden]) {
    flex: 0 1 auto;
    min-height: 0;
    max-height: 36dvh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}
.term-ind { position: absolute; left: 10px; bottom: 46px; z-index: 2; margin: 0; padding: 0; pointer-events: none; }
.pair-logo { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #f7931a; color: #fff; font-size: 13px; font-weight: 800; flex: none; }
.chart-clock { min-height: 22px; padding: 2px 10px 4px; font-size: 12px; font-weight: 800; letter-spacing: .03em; border-top: 1px solid #3a5688; }
.result-stack { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px; pointer-events: none; }
.result-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: max-content; max-width: calc(100% - 16px); margin: 0; padding: 7px 12px 6px; border-radius: 7px; background: rgba(7, 12, 22, .94); border: 1px solid rgba(186, 206, 232, .34); box-shadow: 0 8px 16px rgba(0, 0, 0, .4); opacity: 1; transition: opacity .45s ease; }
.result-card.is-out { opacity: 0; }
.result-card.is-win { border-color: rgba(120, 255, 190, .48); }
.result-card.is-loss { border-color: rgba(255, 140, 164, .5); }
.result-card.is-push { border-color: rgba(197, 212, 234, .42); }
.result-head { margin: 0; display: flex; align-items: baseline; justify-content: center; gap: 6px; line-height: 1.1; white-space: nowrap; }
.result-word { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .08em; line-height: 1.1; color: #e8eef8; }
.result-amt { margin: 0; font-size: 14px; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; font-variant-numeric: tabular-nums; color: #f4f7fb; white-space: nowrap; }
.result-card.is-win .result-word,
.result-card.is-win .result-amt { color: #3dff9a; }
.result-card.is-loss .result-word,
.result-card.is-loss .result-amt { color: #ff5d7e; }
.result-card.is-push .result-word,
.result-card.is-push .result-amt { color: #d5deea; }
.result-meta { margin: 0; font-size: 10px; font-weight: 600; line-height: 1.15; letter-spacing: .01em; color: #9eb0c6; font-variant-numeric: tabular-nums; white-space: nowrap; }
.result-stake,
.result-dur,
.result-sym { font: inherit; color: inherit; letter-spacing: inherit; }
.result-amt .usd-mark,
.result-stake .usd-mark { font-size: .72em; }
.chart-clock.profit { color: #1ed760; }
.chart-clock.loss { color: #ff4b6e; }
.hist-head { grid-column: 1 / -1; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hist-line { padding: 3px 0; border-bottom: 1px solid #31486b; font-size: 12px; }
.hist-line.buy { color: #1ed760; }
.hist-line.sell { color: #ff4b6e; }
@media (orientation: landscape) and (max-height: 520px) {
  .term { flex-direction: row; }
  .term-top { position: absolute; left: 0; right: 0; z-index: 2; }
  .term-stage { padding-top: 40px; }
  .term-dock { width: min(280px, 38vw); overflow: auto; }
}
.term-top { display: flex; align-items: center; gap: 6px; padding: 6px 8px 2px; }
.term-top a { color: var(--muted); font-weight: 700; }
.term-price { display: flex; align-items: baseline; gap: 8px; padding: 0 10px; }
.term-price .price-lg { font-size: 22px; }
.term-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 4px 10px; }
.term-stats i { display: block; font-style: normal; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.term-stats b { font-size: 12px; }
.term-ind { padding: 0 10px 4px; color: #8ab4ff; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; }
.term-back { width: 32px; height: 32px; display: grid; place-items: center; color: #d1d4dc; font-size: 22px; text-decoration: none; }
.term-bal { flex: none; max-width: 34%; text-align: center; color: #eef3ff; background: #243656; border: 1px solid #3a5688; border-radius: 8px; padding: 4px 7px; font-size: 11px; font-weight: 800; text-decoration: none; white-space: nowrap; overflow: hidden; }
#pair-jump { flex: 1; width: auto; min-width: 0; background: #1c3154; color: #eef3ff; border: 1px solid #3a5688; border-radius: 8px; min-height: 32px; padding: 0 6px; font-weight: 800; font-size: 13px; }
.ticket { display: contents; }
.quote { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: center; padding: 0 10px 2px; }
.quote-main { display: flex; flex-direction: column; min-width: 0; }
.quote-main .price-lg { font-size: 18px; }
.quote-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 8px; font-size: 11px; color: #9fb0c9; }
.quote-grid b { color: #eef3ff; font-weight: 700; }
.term-slots .chip, .term-times .chip { background: #243656; border: 1px solid #3a5688; }
.ticket .dock-label, .ticket .term-slots, .ticket .term-times, .ticket .payoff { grid-column: 1 / -1; }
.hist-btn { grid-column: 1 / -1; min-height: 28px; border-radius: 8px; border: 1px solid #3a5688; background: transparent; color: #d5e4ff; font-size: 12px; font-weight: 700; }
.term-mini { color: var(--muted); font-size: 11px; }
.payoff { grid-column: 1 / -1; margin: 0; text-align: center; color: #d5e4ff; font-size: 12px; font-weight: 700; }
.trade-pill { flex: none; font-size: 11px; padding: 4px 8px; border-radius: 8px; background: #243656; color: #eef3ff; }
.trade-pill.buy { box-shadow: inset 0 0 0 1px #1ed760; }
.trade-pill.sell { box-shadow: inset 0 0 0 1px #ff4b6e; }
.term-more { width: 32px; height: 32px; border-radius: 8px; border: 1px solid #2a2e39; background: #1e222d; color: #d1d4dc; }
.wallet-sheet { position: absolute; right: 8px; top: 44px; z-index: 5; background: #1e222d; border: 1px solid #2a2e39; border-radius: 10px; min-width: 160px; }
.wallet-sheet button, .wallet-sheet a { display: block; width: 100%; text-align: left; background: transparent; color: #d1d4dc; border: 0; padding: 10px 12px; }
.term-mode { color: #787b86; font-size: 12px; }
.chip { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 0 8px; border-radius: 7px; border: 1px solid #2a2e39; background: transparent; color: #d1d4dc; font-size: 12px; font-weight: 650; }
.chip input { accent-color: #2962ff; }
.term-slots { grid-column: 1 / -1; display: flex; gap: 6px; align-items: center; overflow-x: auto; }
.term { position: relative; }
.asset-row { padding: 8px 10px; border-radius: 8px; border-color: #2a2e39; background: #131722; }
.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 14px; }
.action-grid a { display: grid; place-items: center; min-height: 42px; border-radius: 10px; border: 1px solid #2a2e39; background: #1e222d; color: #d1d4dc; font-weight: 700; }
.term-scroll { display: flex; gap: 6px; overflow-x: auto; padding: 4px 8px; flex-wrap: nowrap; }
.term-scroll .pill-btn { flex: none; min-height: 32px; border-radius: 8px; }
.term .chart { position: absolute; inset: 0; width: 100%; height: 100% !important; min-height: 0; border: 0; border-radius: 0; touch-action: none; }
.term-dock { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px 8px calc(6px + env(safe-area-inset-bottom)); flex: none; }
.dock-label { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.term-times { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.term-times .chip { justify-content: center; min-height: 30px; padding: 0 2px; font-size: 12px; }
.term-amt, .term-dock .term-scroll, .term-msg, .term-open { grid-column: 1 / -1; }
.term-amt { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.term-amt input { flex: 1; background: #1e2329; border: 0; border-radius: 8px; min-height: 36px; padding: 0 8px; color: var(--text); }
.term-msg { grid-column: 1 / -1; margin: 0; min-height: 0; font-size: 12px; color: var(--muted); }
.term-open { grid-column: 1 / -1; display: block; max-height: 68px; overflow-y: auto; }
.term-dock .btn-buy { background: #1aa86a; color: #fff; box-shadow: none; min-height: 40px; font-size: 15px; }
.term-dock .btn-sell { background: #e23b52; color: #fff; box-shadow: none; min-height: 40px; font-size: 15px; }
.more-sheet a:hover { background: rgba(212,175,90,.12); }
.topbar { position: relative; }
@media (max-width: 980px) {
  .showcase, .showcase-single { grid-template-columns: 1fr; }
  .device, .gold-phone { width: min(320px, 100%); justify-self: center; }
  canvas.chart { height: 280px; }
}
body.desk-mode .main { padding: 8px 10px 88px; }
body.desk-mode .topbar { padding-bottom: 4px; }
.desk { display: flex; flex-direction: column; gap: 8px; }
.desk-bal, .desk-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #1b2e4e; border: 1px solid #31486b; }
.desk-card { display: block; }
.desk-bal span, .desk-line span { color: var(--muted); font-size: 12px; }
.desk-bal b { display: block; font-size: 22px; }
.desk-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.desk-actions a, .desk-tabs a { display: grid; place-items: center; min-height: 36px; border-radius: 10px; background: #1b2e4e; border: 1px solid #31486b; color: #e8eef8; font-size: 12px; font-weight: 700; text-align: center; text-decoration: none; }
.desk-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.desk-tabs a.is-on { border-color: #2962ff; color: #dbe7ff; }
.desk-book { display: flex; flex-direction: column; gap: 6px; }
.desk-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; min-height: 42px; padding: 0 10px; border-radius: 10px; background: #1b2e4e; border: 1px solid #31486b; color: inherit; text-decoration: none; }
.desk-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.desk-name small { color: #9fb0c9; font-weight: 650; margin-left: 4px; }
.desk-label { margin: 4px 0 0; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: #9fb0c9; }
.desk-empty { margin: 0; padding: 10px; color: var(--muted); }
.desk-line { display: flex; justify-content: space-between; gap: 8px; margin: 6px 0; }
.pair-btn { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 8px; border-radius: 10px; border: 1px solid #3a5688; background: #1c3154; color: #eef3ff; text-align: left; }
.pair-copy { display: flex; flex-direction: column; min-width: 0; }
.pair-copy b, .pair-name { font-size: 13px; line-height: 1.1; }
.pair-copy small { color: #9fb0c9; font-size: 10px; }
.pair-live, .pair-menu em { margin-left: auto; font-style: normal; font-variant-numeric: tabular-nums; color: #d5e4ff; font-size: 12px; }
.pair-menu { position: absolute; left: 8px; right: 8px; top: 48px; z-index: 6; background: #182844; border: 1px solid #3a5688; border-radius: 12px; max-height: 70vh; overflow: auto; }
.pair-menu a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; color: #eef3ff; text-decoration: none; border-bottom: 1px solid #2a4068; }
.pair-logo { width: 22px; height: 22px; background: none; }
.pair-logo svg { width: 22px; height: 22px; display: block; }
.rotate-btn { position: absolute; right: 8px; top: 72px; z-index: 3; width: 32px; height: 32px; border-radius: 8px; border: 1px solid #3a5688; background: #1c3154; color: #eef3ff; }
.term .chart { touch-action: none; }
.chart-zoom { position: absolute; left: 8px; top: 76px; z-index: 4; display: flex; flex-direction: column; gap: 6px; }
.chart-zoom button { width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 1px solid #6d8ec0; background: rgba(20, 28, 43, .9); color: #f8edd4; font-size: 16px; font-weight: 700; line-height: 1; box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 4px 8px rgba(0,0,0,.28); }
.chart-now { position: absolute; right: 76px; bottom: 64px; z-index: 4; min-height: 22px; padding: 0 8px; border-radius: 6px; border: 1px solid #6d8ec0; background: #141c2b; color: #f8edd4; font-size: 11px; font-weight: 800; }
.chart-now[hidden] { display: none; }
.term-open { max-height: 40px; }
.term-dock .btn-buy, .term-dock .btn-sell { min-height: 48px; border-radius: 12px; }
.term-amt input { min-height: 40px; font-size: 16px; }
body.trade-mode.desk-land { overflow: visible; }
body.trade-mode.desk-land .term { position: fixed; top: 0; left: 100vw; width: 100vh; height: 100vw; transform: rotate(90deg); transform-origin: top left; z-index: 80; background: #0b1220; }
.qx { background: #0b1220; }
.qx-top { display: flex; flex-direction: column; gap: 6px; padding: 8px 8px 0; }
.qx-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 0; width: 100%; height: 28px; box-sizing: border-box; align-items: stretch; padding: 0; border: 1px solid #4a5c74; border-radius: 6px; background: linear-gradient(180deg, #1b2636, #121a26); box-shadow: inset 0 1px 0 rgba(255,255,255,.07); }
.qx-tab { width: 100%; height: 100%; border: 1px solid transparent; background: transparent; color: #e4eef8; min-height: 0; padding: 0 6px; border-radius: 5px; font-size: 10px; font-weight: 900; letter-spacing: .06em; line-height: 1; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 5px; box-sizing: border-box; }
.qx-tab i { width: 6px; height: 6px; border-radius: 50%; border: 0; background: transparent; box-sizing: border-box; flex: none; }
.qx-tab.is-on { background: linear-gradient(180deg, #31425c, #1e2c42); color: #f4f8fc; border-color: #e6d3a8; box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.qx-tab.is-on i { background: #e6d3a8; }
.qx-sub { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 36px; }
.qx-sub .qx-back { position: static; }
.term .qx-sub .qx-deposit { position: static; align-self: center; }
.qx-midbal { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; min-width: 0; max-width: none; padding: 0 0 0 12%; box-sizing: border-box; }
.qx-sub .qx-bal { display: flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; flex: none; }
.term .qx-deposit { position: static; display: inline-flex; align-items: center; height: 22px; min-height: 22px; margin: 0; padding: 0 6px; border-radius: 2px; border: 1px solid #3ddc84; background: transparent; color: #3ddc84; font-size: 10px; font-weight: 700; line-height: 1; letter-spacing: 0; text-decoration: none; white-space: nowrap; box-shadow: none; animation: qx-dep 2.2s ease-in-out infinite; }
@keyframes qx-dep { 0%, 100% { border-color: #2a9a62; } 50% { border-color: #9af0c0; } }
.qx-sub .qx-live { position: static; display: inline-flex; align-items: center; gap: 6px; color: #f3ede3; font-size: 11px; font-weight: 800; letter-spacing: .08em; line-height: 1; flex: none; }
.qx-live i { width: 7px; height: 7px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 6px rgba(61, 220, 151, .85); animation: qx-live 1.5s ease-out infinite; }
@keyframes qx-live { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, .7); } 70% { box-shadow: 0 0 8px 5px rgba(61, 220, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); } }
.term-stage .rotate-btn, .term-stage .tool-btn { position: absolute; left: 8px; z-index: 3; }
.term-stage .rotate-btn { top: 8px; }
.term-stage .tool-btn { top: 40px; }
.qx-expect-row { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; height: 30px; min-height: 30px; max-height: 30px; padding: 0 2px 0 8px; box-sizing: border-box; overflow: visible; background: #0c1526; }
.qx-expect { flex: 1 1 auto; align-self: center; min-width: 0; margin: 0; overflow: visible; text-overflow: clip; text-align: center; color: #f4f7fb; font-size: 12.5px; font-weight: 800; line-height: 30px; white-space: nowrap; padding: 0 4px 0 20px; }
.qx-expect b { display: inline; color: #3ddc97; line-height: inherit; overflow: visible; }
.qx-expect #payoff-time { display: inline; white-space: nowrap; line-height: inherit; overflow: visible; }
.qx-icon { width: 28px; height: 28px; display: grid; place-items: center; color: #d5deea; text-decoration: none; font-size: 20px; }
.qx-icon svg { width: 20px; height: 20px; }
.qx-sub .qx-back {
  width: auto; min-width: 58px; height: 28px; min-height: 28px; padding: 0 8px 0 5px;
  display: inline-flex; align-items: center; justify-content: center; gap: 2px;
  border-radius: 6px;
  background: linear-gradient(180deg, #2a3a52, #172233);
  color: #f6efe2;
  border: 1px solid rgba(230, 211, 168, .45);
  box-shadow: inset 0 1px 0 rgba(255, 252, 240, .16);
  font-size: 12px; font-weight: 800; letter-spacing: .02em; line-height: 1; text-decoration: none;
}
.qx-sub .qx-back:hover, .qx-sub .qx-back:focus-visible { color: #fff8ea; border-color: rgba(236, 214, 160, .9); }
.qx-sub .qx-back:active { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(255, 252, 240, .12); }
.qx-profile { border-radius: 8px; background: #1c2a44; color: #d7e4ff; border: 1px solid #3a5688; }
.qx-switch { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 2px; border-radius: 8px; background: #101820; border: 1px solid #3d5c8a; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.qx-switch button { border: 0; background: transparent; color: #9eb6d4; min-height: 22px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.qx-switch button.is-on { background: linear-gradient(180deg, #3d74e0, #2456b0); color: #fff; }
.qx-money { position: relative; min-height: 28px; padding: 0 12px; }
.qx-deposit { display: inline-grid; place-items: center; min-height: 24px; padding: 0 8px; border-radius: 7px; background: transparent; color: #9ddec0; border: 1px solid #2f6b4f; text-decoration: none; font-size: 10px; font-weight: 750; white-space: nowrap; }
.qx-money .qx-deposit { position: absolute; right: 8px; top: 2px; min-height: 22px; padding: 0 8px; border: 0; border-radius: 6px; background: linear-gradient(180deg, #1fa86a, #14784c); color: #f4fff9; box-shadow: inset 0 1px 0 rgba(255,255,255,.28); }
.qx-bal { margin: 0; padding: 0; text-align: center; }
.qx-bal > span { display: none; }
.qx-bal b { color: #ff8c1a; display: inline-flex; align-items: baseline; justify-content: center; max-width: 52vw; overflow: hidden; text-overflow: ellipsis; font-size: 21px; font-weight: 900; letter-spacing: 0; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.qx-bal b .amt-fig { display: inline-flex; align-items: baseline; max-width: 52vw; color: #ff8c1a; font: inherit; line-height: 1; white-space: nowrap; }
.usd-mark { display: inline; width: auto; height: auto; margin-left: 0.08em; vertical-align: baseline; flex: none; align-self: baseline; font-family: "Iowan Old Style", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, "Times New Roman", serif; font-size: 0.9em; font-weight: 700; line-height: 1; color: inherit; -webkit-text-fill-color: currentColor; }
.qx-hub { display: flex; align-items: center; gap: 8px; width: calc(100% - 20px); margin: 2px 10px 0; min-height: 28px; padding: 0 6px 0 8px; border-radius: 8px; border: 1px solid #2c4060; background: #141c2b; color: #d5e2f2; font-size: 12px; }
.qx-hub .price-lg { font-size: 13px; color: #fff; }
.qx-hub i { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-style: normal; color: #e8eef8; background: #141c2b; border: 1px solid #6d8ec0; border-radius: 8px; padding: 4px 8px; font-size: 11px; font-weight: 800; }
.qx-hub i b { font-weight: 800; }
.qx-drop { font-size: 14px; line-height: 1; color: #e8eef8; }
.qx-hub[aria-expanded="true"] i { color: #fff; }
.pair-caret { margin-left: auto; color: #9fb0c9; font-size: 12px; }
.chart-inds { position: absolute; top: 8px; right: 8px; z-index: 2; display: flex; gap: 4px; }
.chart-inds .chip { min-height: 22px; padding: 0 6px; font-size: 10px; background: rgba(12, 21, 38, .78); }
@media (max-width: 799px) {
  .chart-inds { top: 3px; max-height: 22px; flex-wrap: nowrap; }
  .chart-inds .chip { min-height: 20px; height: 20px; }
}
.qx-arrow { font-size: 16px; font-weight: 800; }
.qx-line { display: flex; align-items: baseline; gap: 8px; padding: 0 10px; font-size: 11px; color: #8ea0b8; white-space: nowrap; overflow: hidden; }
.qx-line .price-lg { font-size: 13px; color: #f4f7fb; }
.qx-asset { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: center; padding: 4px 10px 0; }
.qx .term-scroll { display: flex; max-width: 100%; margin: 0; min-width: 0; padding: 0; gap: 2px; overflow-x: auto; scrollbar-width: none; background: transparent; border: 0; border-bottom: 1px solid #2a3a52; border-radius: 0; }
.qx .term-scroll::-webkit-scrollbar { display: none; height: 0; }
.qx .term-scroll .chip { flex: none; min-height: 24px; padding: 0 8px; border-radius: 0; background: transparent; border: 0; border-bottom: 2px solid transparent; color: #8ea0b8; font-size: 11px; font-weight: 800; }
.qx .term-scroll .chip.is-on { color: #f8edd4; background: transparent; border-bottom-color: #e6d3a8; }
.qx .pair-btn { flex: none; width: auto; max-width: 190px; background: #141c2b; border-color: #6d8ec0; min-height: 36px; padding: 0 10px; border-radius: 10px; }
.qx .pair-logo, .qx .pair-logo svg { width: 22px; height: 22px; }
.qx .pair-name { font-size: 14px; font-weight: 800; }
.qx .pair-caret { font-size: 16px; color: #e8eef8; }
.qx-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 10px; height: auto; padding: 6px 12px 4px; overflow: visible; }
.qx-facts[hidden] { display: none; }
.qx-facts .stat { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.qx-facts small { color: #848e9c; font-size: 10px; font-weight: 600; line-height: 1.1; letter-spacing: .02em; }
.qx-facts b { display: block; margin: 0; color: #eaecef; font-size: 12px; font-weight: 650; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qx-facts .up { color: #0ecb81; }
.qx-facts .down { color: #f6465d; }
.qx .term-scroll { max-width: 100%; }
.qx .quote { grid-template-columns: auto minmax(0, 1fr); padding: 2px 12px 0; }
.qx .quote-main .price-lg { font-size: 16px; color: #f4f7fb; }
.qx .quote-grid { font-size: 11px; }
.qx-tools { display: flex; align-items: center; gap: 4px; padding: 0 8px 0; }
.qx-tools .ind-scroll { display: flex; flex: 1; min-width: 0; padding: 0; }
.qx-tools .chip { min-height: 22px; padding: 0 6px; font-size: 10px; }
.qx-tools .rotate-btn { position: static; width: 30px; height: 30px; }
.qx .chart-clock { position: absolute; left: 0; right: 0; bottom: 28px; background: transparent; border: 0; pointer-events: none; }
.qx .term-dock { background: #0b1220; gap: 6px; padding: 6px 8px calc(8px + env(safe-area-inset-bottom)); }
.one-click { flex: none; align-self: center; margin: 0; display: inline-flex; align-items: center; gap: 3px; height: 26px; min-height: 26px; max-height: 26px; padding: 0 2px 0 5px; border-radius: 999px; border: 1.5px solid #e6d3a8; background: rgba(14, 22, 36, .94); color: #fff8ea; font-size: 11px; font-weight: 800; letter-spacing: 0; line-height: 1; white-space: nowrap; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 252, 240, .2); }
.one-click-mark { width: 11px; height: 11px; flex: none; display: block; color: #e6d3a8; }
.one-click-name { line-height: 1; color: #fff8ea; }
.one-click-track { position: relative; width: 24px; height: 14px; flex: none; border-radius: 999px; background: #101826; border: 1px solid #d7c392; box-sizing: border-box; }
.one-click-track i { position: absolute; top: 1px; left: 1px; width: 10px; height: 10px; border-radius: 50%; background: #c5d0de; box-shadow: 0 1px 2px rgba(0, 0, 0, .45); transition: transform .16s ease, background .16s ease; }
.one-click.is-on { border-color: #f0e2b8; background: rgba(22, 34, 54, .96); color: #fffaf0; box-shadow: inset 0 1px 0 rgba(255, 252, 240, .28); }
.one-click.is-on .one-click-mark { color: #f0e2b8; }
.one-click.is-on .one-click-name { color: #fffaf0; }
.one-click.is-on .one-click-track { background: linear-gradient(180deg, #4b86f0, #1d4fb8); border-color: #f0e2b8; box-shadow: inset 0 1px 0 rgba(255, 252, 240, .28); }
.one-click.is-on .one-click-track i { transform: translateX(10px); background: #fff8ea; }
@media (max-width: 360px) {
  .qx-expect-row { height: 30px; min-height: 30px; max-height: 30px; }
  .qx-expect { font-size: 12px; line-height: 30px; padding: 0 4px; }
  .one-click { height: 26px; min-height: 26px; max-height: 26px; gap: 3px; padding: 0 2px 0 4px; }
}
.one-confirm { grid-column: 1 / -1; display: grid; gap: 8px; padding: 8px; border-radius: 10px; background: #141c2b; border: 1px solid rgba(230, 211, 168, .45); }
.one-confirm[hidden] { display: none !important; }
.one-confirm p { margin: 0; text-align: center; color: #f6efe2; font-size: 13px; font-weight: 800; }
.one-confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.one-confirm-actions button { min-height: 36px; border-radius: 8px; font-weight: 800; }
#one-cancel { background: transparent; border: 1px solid #3a4e70; color: #e8eef8; }
#one-go { background: #2f6bff; border: 1px solid #2f6bff; color: #fff; }
#one-go:disabled { opacity: .65; }
.steer { display: grid; grid-template-columns: 36px 1fr 36px; align-items: center; min-height: 32px; border-radius: 8px; background: #141c2b; border: 1px solid #243044; }
.steer button { border: 0; background: transparent; color: #e8eef8; font-size: 18px; font-weight: 800; min-height: 32px; padding: 1px 0; line-height: 1.05; }
.steer small { display: block; color: #8ea0b8; font-size: 11px; font-weight: 800; line-height: 1.05; }
.steer b { font-size: 14px; font-weight: 800; line-height: 1.05; }
.qx-sides { grid-column: 1 / -1; }
.qx-side-row, .qx-flow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qx-side-row { position: relative; align-items: stretch; }
.qx-sell, .qx-buy { min-height: 42px; border-radius: 7px; border: 1px solid rgba(255, 255, 255, .34); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 3px 10px 4px; line-height: 1.05; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -1px 0 rgba(0, 0, 0, .35); }
.qx-sell { background: linear-gradient(180deg, #c81e32 0%, #8d1222 100%); border-color: rgba(255, 186, 194, .55); padding-right: 26px; }
.qx-buy { background: linear-gradient(180deg, #1a4fce 0%, #102f86 100%); border-color: rgba(186, 210, 255, .55); padding-left: 26px; }
.qx-sell:disabled, .qx-buy:disabled { opacity: .65; }
.qx-sell:focus-visible, .qx-buy:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.qx-side-word { font-size: 13px; font-weight: 800; }
.qx-side-price { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.qx-mid { position: absolute; left: 50%; top: auto; bottom: 5px; z-index: 2; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; min-width: 0; width: max-content; height: auto; padding: 1px 5px 1px; border-radius: 4px; background: #f4f7fb; color: #1c2838; line-height: 1; box-shadow: none; }
.qx-mid span { display: block; line-height: 1; }
.qx-mid span:first-child { font-size: 11px; font-weight: 800; }
.qx-mid span:last-child { font-size: 10px; font-weight: 800; }
.qx-flow { margin-top: 6px; }
.qx-flow-col { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.qx-flow-track { display: block; height: 4px; border-radius: 4px; background: #d5dde6; overflow: hidden; }
.qx-flow-track i { display: block; height: 100%; width: 0; border-radius: 4px; }
#flow-sell { width: 37%; background: #ef4454; }
#flow-buy { width: 63%; background: #2b7cff; }
.qx-flow b { text-align: center; font-size: 13px; font-weight: 750; line-height: 1; }
.qx-flow b.is-sell { color: #ef4454; }
.qx-flow b.is-buy { color: #2b7cff; }
@media (max-width: 390px) {
  .qx-sell, .qx-buy { min-height: 40px; }
  .qx-side-word { font-size: 12px; }
  .qx-side-price { font-size: 16px; }
  .qx-mid { min-width: 0; bottom: 4px; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .qx-sell, .qx-buy { min-height: 38px; padding-top: 2px; padding-bottom: 3px; }
  .qx-side-price { font-size: 14px; }
  .qx-side-word { font-size: 11px; }
  .qx-mid { bottom: 3px; }
  .qx-mid span:first-child { font-size: 10px; }
  .qx-mid span:last-child { font-size: 9px; }
  .qx-flow { margin-top: 4px; }
  .qx-flow b { font-size: 11px; }
}
.qx-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #121a2b; border-radius: 18px 18px 0 0; padding: 8px 12px calc(14px + env(safe-area-inset-bottom)); box-shadow: 0 -12px 40px rgba(0,0,0,.35); }
.qx-sheet h2 { margin: 4px 0; text-align: center; font-size: 18px; }
.qx-grab { width: 42px; height: 4px; border-radius: 4px; background: #3a465c; margin: 4px auto 8px; }
.qx-sheet .muted { text-align: center; margin: 0 0 8px; }
#amt-view { display: flex; align-items: baseline; justify-content: center; text-align: center; font-size: 36px; margin: 8px 0; }
.qx-freq button, .steer b { align-items: baseline; }
.qx-freq button { display: flex; justify-content: center; }
.steer b { display: inline-flex; }
.qx-freq, .qx-grid, .qx-pad { display: grid; gap: 8px; margin: 8px 0; }
.qx-freq { grid-template-columns: repeat(4, 1fr); }
.qx-grid, .qx-pad { grid-template-columns: repeat(3, 1fr); }
.qx-freq button, .qx-pad button, .qx-grid .chip, .qx-sheet > button { min-height: 46px; border-radius: 10px; border: 1px solid #2a3a55; background: #1c2740; color: #eef3ff; font-size: 16px; font-weight: 700; }
.qx-grid .chip.is-on, .qx-freq button.is-on { border-color: #3d7eff; background: #243656; }
.qx-apply { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qx-apply button { min-height: 48px; border-radius: 10px; border: 1px solid #3a4e70; background: transparent; color: #e8eef8; font-weight: 800; }
.qx-apply button:last-child { background: #2f6bff; border-color: #2f6bff; color: #fff; }
.hx { background: #152033; border: 1px solid #243044; border-radius: 11px; padding: 6px 9px 5px; }
.hx-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 10px; align-items: start; }
.hx-col { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.hx-col-end { align-items: flex-end; text-align: right; }
.hx-top { display: flex; align-items: center; gap: 6px; width: 100%; min-width: 0; }
.hx .pair-logo, .hx .pair-logo svg { width: 18px; height: 18px; }
.hx-sym { display: block; flex: 1; min-width: 0; }
.hx-sym b { display: block; min-width: 0; overflow: hidden; font-size: 13px; line-height: 1.15; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.hx-sym small { min-width: 0; color: #8ea0b8; font-size: 11px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-px { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 0; max-width: 100%; }
.hx-col-end .hx-px { align-items: flex-end; }
.hx-when { display: block; margin: 0; padding: 0; color: #b7c6da; font-size: 11px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: 0; line-height: 1.2; white-space: nowrap; }
.hx-result { display: inline-flex; flex-direction: row; flex-wrap: nowrap; align-items: baseline; justify-content: flex-end; gap: 5px; max-width: 100%; font-size: 12px; font-weight: 800; letter-spacing: 0; line-height: 1; white-space: nowrap; }
.hx-result.is-profit { color: #12c48b; }
.hx-result.is-loss { color: #f0445a; }
.hx-result.is-even { color: #93a4bf; }
.hx-line { display: flex; align-items: baseline; gap: 6px; margin: 0; min-width: 0; max-width: 100%; line-height: 1.2; white-space: nowrap; }
.hx-side { flex: none; font-size: 11px; font-weight: 800; letter-spacing: .05em; }
.hx-side.is-buy { color: #6ec8ff; }
.hx-side.is-sell { color: #f0b429; }
.hx-stake { flex: none; color: #f3e6c8; font-size: 12px; font-weight: 750; font-variant-numeric: tabular-nums; }
.hx-id { flex: none; align-self: flex-end; margin: 0; color: #d5deea; font-size: 12px; font-weight: 750; letter-spacing: .03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hx-id-label { margin-right: 4px; color: #8ea0b8; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.hx-facts { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1px 8px; margin-top: 4px; padding-top: 4px; border-top: 1px solid rgba(255,255,255,.06); }
.hx-fact { display: flex; align-items: baseline; gap: 4px; min-width: 0; overflow: hidden; white-space: nowrap; line-height: 1.2; font-variant-numeric: tabular-nums; }
.hx-fact em { flex: none; font-style: normal; font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #8ea0b8; }
.hx-fact b { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 12px; font-weight: 750; }
.hx-fact small { flex: none; font-size: 10px; font-weight: 700; }
.hx-broker { justify-content: flex-end; }
.hx-entry b, .hx-entry small { color: #8eb4d6; }
.hx-exit b, .hx-exit small { color: #f5f8ff; }
.hx-profit.up b { color: #12c48b; }
.hx-profit.down b { color: #f0445a; }
.hx-profit.flat b { color: #93a4bf; }
.hx-broker.is-share b { color: #e0c27a; }
.hx-broker.is-kept b { color: #8ea0b8; }
.hx-sum-wrap { position: relative; display: flex; justify-content: flex-end; min-width: 0; max-width: 100%; }
.hx-sum { display: inline-flex; flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: flex-end; gap: 6px; box-sizing: border-box; max-width: 100%; margin: 0; padding: 8px 10px; border: 0; line-height: 1.2; text-align: right; white-space: nowrap; overflow: visible; }
.hx-sum-label { flex: 0 1 auto; min-width: 0; font-size: 10px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; color: #d5e4f6; white-space: nowrap; }
.hx-sum-value { display: inline-flex; flex: none; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: .22em; font-size: clamp(16px, 4.8vw, 20px); font-weight: 800; font-variant-numeric: tabular-nums lining-nums; letter-spacing: 0; line-height: 1.2; white-space: nowrap; word-break: keep-all; overflow: visible; }
.hx-sum-sign, .hx-sum-amt { flex: none; line-height: 1.2; white-space: nowrap; }
.hx-sum-value.up { color: #12c48b; }
.hx-sum-value.down { color: #f0445a; }
.hx-sum-value.flat { color: #93a4bf; }
@media (min-width: 981px) {
  body.trade-mode .qx-asset,
  body.trade-mode .qx-facts { width: min(980px, 100%); margin-left: auto; margin-right: auto; }
  body.trade-mode .qx-hub { width: min(960px, calc(100% - 20px)); margin-left: auto; margin-right: auto; }
  body.trade-mode .qx .term-dock { width: min(760px, 100%); margin-left: auto; margin-right: auto; }
  body.trade-mode .term-stage { min-height: 420px; }
}
.home-card { padding: 14px; border-radius: 16px; background: #1b2e4e; border: 1px solid #31486b; }
.home-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.home-card-top b { display: block; font-size: 15px; }
.home-card-top small { color: #9fb0c9; }
.home-gear { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #31486b; background: #152238; color: #e8eef8; font-size: 18px; }
.home-fx { display: flex; gap: 6px; margin: 12px 0 8px; }
.home-fx button { min-height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid #31486b; background: transparent; color: #c5d4ea; font-size: 12px; font-weight: 800; }
.home-fx button.is-on { background: #243656; border-color: #7eb0ff; color: #fff; }
.home-bals { display: flex; flex-direction: column; gap: 8px; }
.home-bal { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 12px; border-radius: 12px; background: #152238; border: 1px solid #31486b; color: inherit; text-decoration: none; }
.home-bal span { color: #9fb0c9; font-size: 13px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.home-amt { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: 0; line-height: 1.15; color: #f3ede3; font-variant-numeric: tabular-nums; }
.home-acts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 4px 0 2px; }
.home-acts a { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #d5e2f4; text-decoration: none; font-size: 12px; font-weight: 700; }
.home-acts span { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #1b2e4e; border: 1px solid #31486b; color: #d7e4f6; }
.home-acts svg { width: 24px; height: 24px; display: block; }
.home-acts .is-main span { background: #2456b0; border-color: #6d9bff; color: #fff; box-shadow: 0 8px 18px rgba(36, 86, 176, .28); }
.home-sec { display: flex; flex-direction: column; gap: 6px; }
.home-sec .desk-book { display: flex; flex-direction: column; gap: 6px; }
