:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --panel: #ffffff;
  --panel-2: #f9fbff;
  --text: #172033;
  --muted: #687386;
  --line: #dde4ef;
  --brand: #1667ff;
  --brand-2: #0f9f6e;
  --danger: #d94141;
  --warn: #d99016;
  --shadow: 0 12px 32px rgba(26, 40, 68, 0.08);
  --pair-drawer-width: clamp(118px, 32vw, 136px);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 14px;
}

button,
input,
select {
  font: inherit;
}

.h5-body input,
.h5-body select,
.h5-body textarea {
  font-size: 16px;
}

.h5-body {
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}

button {
  border: 0;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease, background .15s ease;
}

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

button.secondary {
  background: #eef3ff;
  color: var(--brand);
}

button.good {
  background: var(--brand-2);
}

button.bad {
  background: var(--danger);
}

button.ghost {
  background: transparent;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  outline: none;
}

input,
select {
  height: 38px;
  padding: 0 12px;
}

textarea {
  min-height: 96px;
  resize: vertical;
  padding: 10px 12px;
  line-height: 1.6;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(22, 103, 255, .1);
}

a {
  color: var(--brand);
  text-decoration: none;
}

.app-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  background: #101829;
  color: #fff;
  padding: 22px 16px;
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  font-size: 18px;
  font-weight: 700;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--brand);
}

.nav {
  display: grid;
  gap: 6px;
}

.nav button {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: transparent;
  color: #b8c2d6;
  border-radius: 6px;
}

.nav button.active,
.nav button:hover {
  background: rgba(255, 255, 255, .09);
  color: #fff;
  transform: none;
}

.admin-menu {
  gap: 14px;
}

.menu-group {
  display: grid;
  gap: 5px;
}

.menu-parent {
  display: flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  color: #7584a1;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
}

.menu-parent:hover {
  color: #d4ddf1;
}

.admin-menu .menu-group button {
  height: 36px;
  padding-left: 18px;
  font-size: 13px;
}

.admin-menu .menu-toggle {
  justify-content: space-between;
  padding-left: 12px;
  color: #d4ddf1;
  font-weight: 700;
}

.admin-menu .menu-toggle.active-parent,
.admin-menu .menu-toggle:hover {
  background: rgba(255, 255, 255, .07);
  color: #fff;
}

.menu-arrow {
  margin-left: auto;
  color: #7584a1;
  transition: transform .15s ease;
}

.menu-open .menu-arrow {
  transform: rotate(180deg);
}

.menu-children {
  display: none;
  gap: 4px;
}

.menu-open .menu-children {
  display: grid;
}

.admin-menu .menu-children button {
  height: 34px;
  padding-left: 28px;
  color: #a9b5cc;
  font-size: 13px;
}

.admin-menu .menu-children button.active {
  background: rgba(22, 103, 255, .22);
  color: #fff;
}

.main {
  min-width: 0;
  padding: 22px;
}

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

.topbar h1 {
  margin: 0;
  font-size: 22px;
}

.user-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.admin-load-status {
  min-width: 92px;
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.admin-load-status.loading {
  color: #1667ff;
}

.admin-refresh-btn {
  min-width: 70px;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.grid.market-layout {
  grid-template-columns: minmax(260px, .9fr) minmax(520px, 1.55fr) minmax(300px, .86fr);
  align-items: start;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.card-head {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.card-head h2,
.card-head h3 {
  margin: 0;
  font-size: 16px;
}

.card-body {
  padding: 16px;
}

.soft-panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-2);
}

.soft-panel-head {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.soft-panel-head h3 {
  margin: 0;
  font-size: 15px;
}

.soft-panel-body {
  padding: 14px;
}

.period-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 14px 0;
  border-top: 1px solid var(--line);
}

.period-tabs button {
  min-width: 44px;
  height: 30px;
  padding: 0 10px;
  background: #eef3ff;
  color: var(--muted);
}

.period-tabs button.active {
  background: var(--brand);
  color: #fff;
}

.metric {
  padding: 14px;
}

.metric .label {
  color: var(--muted);
  margin-bottom: 8px;
}

.metric .value {
  font-size: 24px;
  font-weight: 800;
}

.market-list {
  display: grid;
}

.market-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.market-row:last-child {
  border-bottom: 0;
}

.market-row.active {
  background: #eef5ff;
}

.market-symbol {
  font-weight: 700;
}

.market-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.price {
  text-align: right;
  font-weight: 800;
}

.up {
  color: var(--brand-2);
}

.down {
  color: var(--danger);
}

.chart-wrap {
  height: 420px;
  padding: 10px;
  touch-action: none;
  user-select: none;
}

canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

canvas:active {
  cursor: grabbing;
}

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

.mobile-mode-select-row {
  display: none;
}

.tabs button,
.segmented button {
  height: 34px;
  padding: 0 12px;
  background: #eef2f8;
  color: var(--muted);
}

.tabs button.active,
.segmented button.active {
  background: var(--brand);
  color: #fff;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-row {
  display: grid;
  gap: 6px;
}

.form-row label {
  color: var(--muted);
  font-size: 13px;
}

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

.actions button {
  min-height: 36px;
  padding: 0 14px;
}

.kyc-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 150px;
}

.kyc-links a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--brand);
  background: rgba(22, 103, 255, .08);
  white-space: nowrap;
}

.kyc-links span {
  color: var(--muted);
  font-size: 12px;
}

.review-info {
  display: grid;
  gap: 2px;
  min-width: 150px;
  max-width: 240px;
  white-space: normal;
  line-height: 1.45;
}

.review-info strong {
  color: var(--text);
  font-weight: 600;
}

.review-info span {
  color: var(--muted);
  font-size: 12px;
}

.symbol-checks {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 260px;
}

.symbol-checks label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  background: rgba(255, 255, 255, .03);
  white-space: nowrap;
}

.symbol-checks input {
  width: auto;
  height: auto;
}

.table-wrap {
  overflow: auto;
}

.wallet-admin-body #depositsTable,
.wallet-admin-body #withdrawalsTable,
.wallet-admin-body #paymentOrdersTable,
.wallet-admin-body #addressTable,
.wallet-admin-body #collectLogs,
.wallet-admin-body #reconcileLogs,
.wallet-admin-body #walletEvents,
.wallet-admin-body #taskLogs,
.wallet-admin-body #logsTable {
  max-height: 360px;
  overflow: auto;
}

.chain-readiness {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #293653;
  border-radius: 4px;
  background: #0d1524;
}

.wallet-chain-alert {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid rgba(240, 185, 11, .36);
  border-radius: 4px;
  background: rgba(240, 185, 11, .08);
}

.wallet-chain-alert strong {
  color: #f0b90b;
}

.wallet-chain-alert span {
  color: #c8d2ea;
  line-height: 1.55;
}

.wallet-chain-alert.connected {
  border-color: rgba(0, 192, 135, .36);
  background: rgba(0, 192, 135, .08);
}

.wallet-chain-alert.connected strong {
  color: #00c087;
}

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

.chain-rehearsal-actions button {
  min-height: 34px;
}

.chain-readiness-head,
.chain-readiness-grid div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chain-readiness-head strong {
  color: #edf3ff;
}

.chain-readiness-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.chain-readiness-grid div {
  min-height: 34px;
  padding: 7px 9px;
  border-radius: 4px;
  background: #101827;
}

.chain-readiness-grid span {
  color: #8fa0bf;
  font-size: 12px;
}

.chain-go-live {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid #293653;
  border-radius: 4px;
  background: #0d1524;
}

.chain-go-live-head {
  display: grid;
  gap: 4px;
}

.chain-go-live-head strong {
  color: #edf3ff;
}

.chain-go-live-head span {
  color: #8fa0bf;
  font-size: 12px;
}

.chain-go-live-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.chain-go-live-list div {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 4px;
  background: #101827;
}

.chain-go-live-list b {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(246, 70, 93, .14);
  font-size: 12px;
}

.chain-go-live-list b.up {
  background: rgba(0, 192, 135, .14);
}

.chain-go-live-list span {
  color: #b8c6e4;
  font-size: 12px;
}

.admin-readiness-panel {
  grid-column: 1 / -1;
}

.readiness-missing {
  padding: 9px 10px;
  border: 1px solid rgba(246, 70, 93, .22);
  border-radius: 4px;
  background: rgba(246, 70, 93, .08);
  color: #ffb6bf;
  font-size: 12px;
  line-height: 1.5;
}

.chain-readiness-grid strong.up,
.chain-go-live-list b.up {
  color: #00c087;
}

.chain-readiness-grid strong.down,
.chain-go-live-list b.down {
  color: #f6465d;
}

@media (max-width: 1180px) {
  .chain-readiness-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chain-go-live-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

#orderBook table {
  min-width: 0;
}

#orderBook th,
#orderBook td {
  padding: 9px 5px;
  font-size: 12px;
}

.depth-chart-panel {
  display: grid;
  gap: 8px;
  padding: 10px 0 14px;
}

.depth-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.depth-meta strong {
  color: var(--text);
  font-size: 13px;
}

.depth-chart {
  width: 100%;
  height: 120px;
  display: block;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0d1728;
}

.depth-chart line {
  stroke: #25324a;
  stroke-width: 1;
}

.depth-chart polygon,
.depth-chart polyline {
  vector-effect: non-scaling-stroke;
}

.depth-chart .bid-area {
  fill: rgba(0, 192, 135, .18);
}

.depth-chart .ask-area {
  fill: rgba(246, 70, 93, .18);
}

.depth-chart .bid-line {
  fill: none;
  stroke: var(--brand-2);
  stroke-width: 2;
}

.depth-chart .ask-line {
  fill: none;
  stroke: var(--danger);
  stroke-width: 2;
}

.depth-cell {
  position: relative;
  overflow: hidden;
}

.depth-cell::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  width: var(--depth, 0%);
  opacity: .14;
  pointer-events: none;
}

.depth-cell.bid {
  color: var(--brand-2);
}

.depth-cell.ask {
  color: var(--danger);
}

.depth-cell.bid::before {
  right: 0;
  background: var(--brand-2);
}

.depth-cell.ask::before {
  left: 0;
  background: var(--danger);
}

.depth-cell span {
  position: relative;
  z-index: 1;
}

.mobile-depth-book {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  min-width: 0;
}

.mobile-depth-col {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.mobile-depth-head,
.mobile-depth-row {
  display: grid;
  align-items: center;
  min-width: 0;
  font-size: 11px;
}

.mobile-depth-head {
  color: var(--muted);
  padding-bottom: 4px;
}

.mobile-depth-row {
  position: relative;
  overflow: hidden;
  min-height: 24px;
  padding: 3px 4px;
  border-bottom: 1px solid rgba(41, 54, 83, .65);
  white-space: nowrap;
  grid-template-columns: minmax(0, 1fr) minmax(52px, auto);
  column-gap: 6px;
}

.mobile-depth-row::before {
  content: "";
  position: absolute;
  inset: 3px 0;
  width: var(--depth, 0%);
  opacity: .18;
  pointer-events: none;
}

.mobile-depth-row.bid {
  color: var(--brand-2);
}

.mobile-depth-row.ask {
  color: var(--danger);
}

.mobile-depth-row.bid::before {
  right: 0;
  left: auto;
  background: var(--brand-2);
}

.mobile-depth-row.ask::before {
  left: 0;
  background: var(--danger);
}

.mobile-depth-row span,
.mobile-depth-row strong {
  position: relative;
  z-index: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-depth-row strong {
  margin-top: 0;
  color: #7f8da8;
  font-size: 10px;
  font-weight: 600;
  text-align: right;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

th {
  color: var(--muted);
  background: var(--panel-2);
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef2f8;
  color: var(--muted);
  font-size: 12px;
}

.badge.good {
  background: #e5f8ef;
  color: #08784e;
}

.badge.bad {
  background: #fdecec;
  color: var(--danger);
}

.badge.warn {
  background: #fff4df;
  color: var(--warn);
}

.product-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.product-card .product-cover,
.product-card .product-info {
  cursor: pointer;
}

.product-coupon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 30px;
  padding: 6px 8px;
  border: 1px dashed rgba(240, 185, 11, .45);
  border-radius: 4px;
  background: rgba(240, 185, 11, .08);
}

.product-coupon span {
  color: var(--warn);
  font-size: 12px;
  font-weight: 700;
}

.product-coupon strong {
  color: #f8fafc;
  font-size: 12px;
  font-weight: 700;
}

.product-shop-actions {
  display: grid;
  grid-template-columns: minmax(112px, 1fr) minmax(92px, auto);
  gap: 8px;
  align-items: center;
}

.add-cart-btn {
  min-height: 34px;
  white-space: nowrap;
}

.product-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eef5ff;
  color: var(--brand);
  font-size: 24px;
  font-weight: 900;
}

.product-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.product-title h3 {
  margin: 0;
  font-size: 16px;
}

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

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    linear-gradient(160deg, rgba(0, 192, 135, .16), transparent 34%),
    linear-gradient(340deg, rgba(246, 70, 93, .10), transparent 32%),
    #050a12;
}

.auth-shell {
  width: min(940px, 100%);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 430px);
  gap: 18px;
  align-items: stretch;
}

.auth-brand-panel,
.auth-card {
  border: 1px solid #1e2a42;
  border-radius: 8px;
  background: rgba(12, 18, 31, .94);
  box-shadow: 0 22px 80px rgba(0, 0, 0, .34);
}

.auth-brand-panel {
  min-height: 430px;
  display: grid;
  align-content: space-between;
  gap: 22px;
  padding: 28px;
  overflow: hidden;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #edf5ff;
  font-weight: 900;
}

.auth-brand-panel h1 {
  max-width: 420px;
  margin: 0;
  color: #f7fbff;
  font-size: 30px;
  line-height: 1.18;
}

.auth-brand-panel p,
.auth-help {
  margin: 0;
  color: #8fa0bd;
  line-height: 1.7;
}

.auth-market-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #22314e;
  border-radius: 6px;
  background: #0a1220;
}

.auth-market-strip span {
  min-width: 0;
  color: #8fa0bd;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-market-strip strong {
  min-width: 0;
  color: #f7fbff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-market-strip b {
  color: #00c087;
}

.auth-card {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border: 1px solid #22314e;
  border-radius: 6px;
  background: #080f1b;
}

.auth-tabs button {
  min-height: 38px;
  height: 48px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #8fa0bd;
}

.auth-tabs button.active {
  background: #00c087;
  color: #04130f;
  font-weight: 900;
}

.auth-panel .form-grid {
  gap: 13px;
}

.auth-card .form-row label {
  color: #aab8d1;
}

.auth-card input {
  border-color: #263653;
  background: #0a1220;
  color: #edf5ff;
}

.auth-card input:focus {
  border-color: #00c087;
  box-shadow: 0 0 0 2px rgba(0, 192, 135, .16);
}

.auth-panel button:not(.ghost):not(.secondary) {
  width: 100%;
  min-height: 44px;
}

.required-dot {
  color: #f6465d;
  margin-left: 4px;
}

.notice-list {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
}

#view-messages .notice-list {
  max-height: none;
  overflow: visible;
}

.notice-toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 4px 0 8px;
  background: var(--panel);
}

.notice {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  overflow: visible;
  word-break: break-word;
}

.notice[data-notice-open] {
  cursor: pointer;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.notice[data-notice-open]:hover {
  border-color: rgba(22, 103, 255, .45);
  box-shadow: 0 10px 22px rgba(22, 103, 255, .1);
  transform: translateY(-1px);
}

.notice.unread {
  border-color: rgba(22, 103, 255, .4);
  background: #f1f6ff;
}

.notice-top,
.notice-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.notice-foot {
  margin-top: 8px;
}

.notice strong {
  display: block;
  margin-bottom: 4px;
  white-space: normal;
}

.notice div {
  white-space: normal;
  overflow: visible;
}

.notice-top {
  align-items: flex-start;
}

.notice-top strong {
  min-width: 0;
  line-height: 1.45;
}

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

.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  line-height: 1;
}

.icon-btn {
  position: relative;
}

.icon-btn .nav-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  margin: 0;
  padding: 0 4px;
  font-size: 10px;
}

.header-bell-icon {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: #edf3ff;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: grid;
  gap: 8px;
}

.toast-item {
  width: min(340px, calc(100vw - 36px));
  padding: 12px 14px;
  border-radius: 8px;
  background: #101829;
  color: #fff;
  box-shadow: var(--shadow);
}

.hidden {
  display: none !important;
}

.h5-body {
  background: #090f1c;
  overflow-x: hidden;
}

.h5-app {
  min-height: 100vh;
  width: min(100vw, 430px);
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  background: #090f1c;
  border: 0;
}

.h5-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
}

.h5-menu-btn {
  width: 38px;
  height: 38px;
  min-height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  flex: 0 0 auto;
  background: #eef3ff;
  color: var(--brand);
}

.h5-title-block {
  min-width: 0;
  margin-right: auto;
}

.h5-header .user-strip {
  min-width: 0;
  max-width: 46%;
  justify-content: flex-end;
}

.h5-header .user-strip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.h5-header strong {
  display: block;
  font-size: 18px;
}

.h5-main {
  padding: 14px 12px 84px;
  min-width: 0;
}

.bottom-tabs {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 15;
  width: min(100vw, 430px);
  max-width: 430px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .98);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 24px rgba(26, 40, 68, .08);
}

.bottom-tabs button {
  height: 50px;
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}

.bottom-tabs button span {
  font-size: 18px;
  line-height: 18px;
}

.bottom-tabs button.active {
  background: #eef5ff;
  color: var(--brand);
}

.h5-drawer {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
}

.drawer-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .48);
  opacity: 0;
  transition: opacity .2s ease;
}

.drawer-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(78vw, 320px);
  padding: 22px 16px;
  background: var(--panel);
  border-right: 1px solid var(--line);
  transform: translateX(-100%);
  transition: transform .22s ease;
  box-shadow: 18px 0 40px rgba(0, 0, 0, .22);
}

.h5-drawer.open {
  pointer-events: auto;
}

.h5-drawer.open .drawer-mask {
  opacity: 1;
}

.h5-drawer.open .drawer-panel {
  transform: translateX(0);
}

.drawer-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.drawer-avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}

.drawer-user-id {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-section {
  display: grid;
  gap: 10px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.drawer-section button,
.drawer-section a {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 6px;
  background: var(--panel-2);
  color: var(--text);
  box-shadow: none;
}

.drawer-section label {
  color: var(--muted);
  font-size: 13px;
}

.drawer-quick,
.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.quick-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quick-actions button,
.drawer-quick button {
  min-height: 44px;
  justify-content: center;
}

.drawer-logout {
  width: 100%;
  margin-top: 18px;
}

.home-carousel {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(22, 103, 255, .18), rgba(15, 159, 110, .12)),
    var(--panel);
  box-shadow: var(--shadow);
}

.home-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 22px;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity .3s ease, transform .3s ease;
}

.home-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.home-slide-bg + span,
.home-slide-bg ~ strong,
.home-slide-bg ~ small {
  position: relative;
  z-index: 1;
  max-width: 72%;
  text-shadow: 0 1px 12px rgba(5, 10, 20, .28);
}

.home-slide.has-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(9, 15, 28, .74), rgba(9, 15, 28, .12));
}

.home-slide.active {
  opacity: 1;
  transform: translateX(0);
}

.home-slide span {
  color: var(--brand-2);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
}

.home-slide strong {
  color: var(--text);
  font-size: 24px;
  line-height: 1.15;
}

.home-slide small {
  color: var(--muted);
  font-size: 13px;
}

.home-notice-strip {
  min-height: 38px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.home-notice-strip:hover {
  border-color: rgba(22, 103, 255, .38);
  box-shadow: 0 10px 22px rgba(22, 103, 255, .1);
  transform: translateY(-1px);
}

.home-notice-strip span {
  color: var(--warn);
  font-weight: 700;
}

.home-notice-strip[data-home-ticker="notification"] span {
  color: #f0b90b;
}

.home-notice-strip div {
  min-width: 0;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-notice-chevron {
  color: var(--warn);
  font-size: 20px;
  line-height: 1;
}

.home-product-list {
  display: grid;
  gap: 8px;
}

.home-market-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.home-market-item {
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  cursor: pointer;
  text-align: center;
}

.home-market-item strong {
  color: var(--text);
}

.home-market-item span {
  min-width: 0;
  text-align: center;
  font-weight: 700;
}

.home-market-item em {
  min-width: 0;
  color: var(--text);
  text-align: center;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.home-section-head h2 {
  margin: 0;
  font-size: 17px;
}

.home-product-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  cursor: pointer;
}

.home-product-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-product-card {
  grid-template-columns: 1fr;
  align-content: start;
  min-height: 126px;
}

.home-product-card strong,
.home-product-card span {
  display: block;
}

.home-product-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.home-product-card em {
  color: var(--brand-2);
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.home-site-name {
  display: grid;
  place-items: center;
  min-height: 48px;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

.trade-summary-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.trade-summary-left {
  display: grid;
  gap: 4px;
}

.trade-summary-left button {
  justify-self: start;
  padding: 0;
  color: var(--text);
  font-weight: 800;
}

.trade-summary-left strong {
  font-size: 26px;
  line-height: 1.1;
}

.trade-summary-stats {
  min-width: 132px;
  display: grid;
  gap: 4px;
  font-size: 12px;
}

.trade-summary-stats div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.trade-summary-stats span {
  color: var(--muted);
}

.trade-bottom-actions {
  position: sticky;
  bottom: 70px;
  z-index: 9;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
}

.page-head {
  min-height: 48px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.page-head h2 {
  margin: 0;
  text-align: center;
  font-size: 17px;
}

#backBtn {
  visibility: hidden;
}

#backBtn.visible {
  visibility: visible;
}

.cart-strip {
  display: grid;
  gap: 8px;
  min-height: 42px;
  margin-bottom: 12px;
  overflow: visible;
}

.cart-pill {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-2);
  color: var(--text);
}

.cart-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid #263452;
  border-radius: 6px;
  background: #101827;
}

.cart-dock {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 9px;
  border: 1px solid #263452;
  border-radius: 7px;
  background: #101827;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}

.cart-basket {
  position: relative;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  border-radius: 7px;
  background: linear-gradient(135deg, #f0b90b, #1667ff);
  color: #fff;
}

.cart-basket::before {
  content: "";
  width: 20px;
  height: 15px;
  display: block;
  margin: 13px auto 0;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 5px 5px;
}

.cart-basket::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 10px;
  width: 14px;
  height: 8px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.cart-basket span {
  position: absolute;
  right: -5px;
  top: -6px;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border-radius: 999px;
  background: #f6465d;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.cart-dock-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.cart-dock-main span {
  color: var(--muted);
  font-size: 12px;
}

.cart-dock-main strong {
  min-width: 0;
  overflow: hidden;
  color: #edf3ff;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-summary div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.cart-summary span,
.cart-empty {
  color: var(--muted);
  font-size: 12px;
}

.cart-summary strong {
  color: #edf3ff;
  font-size: 15px;
}

.cart-items {
  display: grid;
  gap: 6px;
}

.cart-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 6px;
  background: #0d1524;
}

.cart-line span {
  min-width: 0;
  overflow: hidden;
  color: #edf3ff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-line b {
  color: #f0b90b;
  font-size: 12px;
  white-space: nowrap;
}

.qty-stepper {
  display: grid;
  grid-template-columns: 32px minmax(38px, 1fr) 32px;
  align-items: center;
  overflow: hidden;
  border: 1px solid #293653;
  border-radius: 4px;
  background: #0d1524;
}

.qty-stepper button {
  min-height: 32px;
  height: 32px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #edf3ff;
  box-shadow: none;
}

.qty-stepper input,
.qty-stepper strong {
  width: 100%;
  min-width: 0;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-left: 1px solid #293653;
  border-right: 1px solid #293653;
  border-radius: 0;
  background: #111b2c;
  color: #edf3ff;
  text-align: center;
}

.qty-stepper.mini {
  grid-template-columns: 28px 34px 28px;
}

.qty-stepper.mini button,
.qty-stepper.mini strong {
  height: 28px;
  min-height: 28px;
}

.asset-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.asset-owner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: rgba(237, 243, 255, .72);
  font-size: 12px;
}

.asset-owner-row b {
  color: rgba(237, 243, 255, .9);
  font-weight: 700;
}

.asset-summary-grid div {
  padding: 10px;
  border-radius: 6px;
  background: var(--panel-2);
}

.asset-summary-grid span,
.asset-summary-grid strong {
  display: block;
}

.asset-summary-grid span {
  color: var(--muted);
  font-size: 12px;
}

.asset-summary-grid strong {
  margin-top: 4px;
  color: var(--text);
}

.agent-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.agent-rule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.agent-rule-grid div {
  display: grid;
  gap: 6px;
  min-height: 76px;
  align-content: center;
  padding: 12px;
  border-radius: 6px;
  background: var(--panel-2);
}

.agent-rule-grid span {
  color: var(--muted);
  font-size: 12px;
}

.agent-rule-grid strong {
  color: var(--text);
  font-size: 18px;
}

.agent-level-grid {
  align-items: stretch;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.agent-level-card {
  overflow: hidden;
}

.agent-level-list {
  display: grid;
  gap: 10px;
  align-content: start;
}

.agent-user-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-2);
}

.agent-user-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.agent-user-top strong {
  min-width: 0;
  color: var(--text);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.agent-user-name {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.agent-user-metrics {
  display: grid;
  grid-template-columns: minmax(120px, .45fr) minmax(0, 1fr);
  gap: 8px;
}

.agent-user-metrics div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px 10px;
  border-radius: 5px;
  background: rgba(90, 123, 239, .08);
}

.agent-user-metrics span {
  color: var(--muted);
  font-size: 12px;
}

.agent-user-metrics b {
  color: var(--text);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.agent-table-card .table-wrap {
  overflow-x: auto;
}

.agent-table-card table {
  min-width: 640px;
}

#commissionsTable table,
#usersTable table {
  min-width: 860px;
}

.empty-state {
  padding: 12px;
  border-radius: 6px;
  background: var(--panel-2);
}

.risk-ops-strip {
  display: grid;
  grid-template-columns: 1fr 1.4fr .8fr;
  gap: 12px;
}

.risk-ops-strip div {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.risk-ops-strip span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
}

.risk-ops-strip strong {
  color: var(--text);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.risk-stat-grid {
  margin-bottom: 14px;
}

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

.risk-market-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-2);
}

.risk-market-head,
.risk-price-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.risk-market-head strong {
  display: block;
  color: var(--text);
  font-size: 16px;
  overflow-wrap: anywhere;
}

.risk-market-head span,
.risk-price-line span,
.risk-metric-grid span {
  color: var(--muted);
  font-size: 12px;
}

.risk-price-line strong {
  color: var(--text);
  font-size: 24px;
}

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

.risk-metric-grid div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px 10px;
  border-radius: 5px;
  background: rgba(90, 123, 239, .08);
}

.risk-metric-grid b {
  color: var(--text);
  overflow-wrap: anywhere;
}

.risk-control-actions,
.risk-custom-control {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.risk-control-actions button,
.risk-custom-control button {
  min-height: 34px;
  padding: 0 8px;
  white-space: nowrap;
}

.risk-custom-control {
  grid-template-columns: minmax(0, 1fr) 96px;
}

.risk-control-actions {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.announcement-page-card div {
  line-height: 1.7;
  color: var(--text);
}

.product-detail-card,
.address-panel,
.bank-box,
.profile-box {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.product-detail-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.product-detail-hero p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.product-detail-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.product-detail-strip div,
.detail-rule-box {
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(9, 15, 28, .58);
}

.product-detail-strip span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.product-detail-strip strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 16px;
}

.detail-notes {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.detail-rule-box {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.detail-rule-box strong {
  color: var(--text);
}

.detail-rule-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 13px;
}

.address-panel {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 14px;
  align-items: center;
}

.address-panel strong {
  display: block;
  overflow-wrap: anywhere;
  margin: 6px 0;
}

.qr-box {
  width: 108px;
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 2px;
  padding: 8px;
  border-radius: 6px;
  background: #fff;
}

.qr-box i {
  border-radius: 1px;
  background: #d9dfeb;
}

.qr-box i.on {
  background: #111827;
}

.bank-box {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.bank-box div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.bank-box strong {
  text-align: right;
  overflow-wrap: anywhere;
}

.profile-box {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.icon-btn {
  min-width: 44px;
  padding: 0 10px;
}

.order-card-list {
  display: grid;
  gap: 12px;
}

.order-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  cursor: pointer;
}

.order-card-head,
.order-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.order-card-head strong,
.order-card-head span {
  display: block;
}

.order-card-head span,
.order-card-foot {
  color: var(--muted);
  font-size: 12px;
}

.order-card-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.order-card-metrics div {
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px;
  border-radius: 6px;
  background: var(--panel-2);
}

.order-card-metrics label {
  color: var(--muted);
  font-size: 12px;
}

.order-card-metrics strong {
  color: var(--brand-2);
  font-size: 17px;
}

.live-number {
  animation: numberPulse 1.2s ease-in-out infinite;
}

.token-log {
  max-height: 160px;
  overflow: hidden;
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #050b14;
  color: #48f2a7;
  font-family: Consolas, monospace;
  font-size: 12px;
}

.token-line {
  animation: tokenGlow 1.4s ease-in-out infinite;
}

.hashrate-dashboard,
.hashrate-order-panel,
.hashrate-detail-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #263452;
  border-radius: 6px;
  background: #1e293b;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .18);
}

.hashrate-dashboard {
  margin-bottom: 14px;
}

.hashrate-panel-title,
.hashrate-detail-title {
  color: #f8fafc;
  font-size: 17px;
  font-weight: 800;
}

.hashrate-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hashrate-stat-item {
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 12px;
  border-radius: 6px;
  background: #334155;
}

.hashrate-stat-item.wide {
  grid-column: auto;
}

.hashrate-stat-item span,
.hashrate-order-head span,
.hashrate-order-row span,
.hashrate-order-bottom,
.hashrate-info-grid span,
.hardware-grid span,
.daily-revenue-grid span,
.hashrate-detail-meta {
  color: #94a3b8;
  font-size: 12px;
}

.hashrate-stat-item strong {
  color: #f8fafc;
  font-size: 18px;
}

.hashrate-order-list {
  display: grid;
  gap: 12px;
}

.hashrate-order-item {
  width: 100%;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #334155;
  border-radius: 6px;
  background: #0f172a;
  color: inherit;
  text-align: left;
  box-shadow: none;
}

.hashrate-order-item:hover {
  transform: none;
  border-color: #5a7bef;
  background: #111b2c;
}

.hashrate-order-head,
.hashrate-order-bottom,
.hashrate-detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hashrate-order-head strong {
  display: block;
  color: #f8fafc;
  font-size: 16px;
}

.hashrate-order-head em {
  flex: 0 0 auto;
  color: #94a3b8;
  font-size: 12px;
  font-style: normal;
}

.hashrate-order-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.hashrate-order-row div {
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 10px;
  border-radius: 6px;
  background: #334155;
}

.hashrate-order-row strong,
.hashrate-order-bottom strong {
  color: #f8fafc;
  font-size: 13px;
}

.hashrate-order-bottom i {
  min-width: 72px;
  padding: 7px 10px;
  border-radius: 4px;
  background: #5a7bef;
  color: #fff;
  font-size: 12px;
  font-style: normal;
  text-align: center;
}

.hashrate-empty {
  padding: 24px 12px;
  border-radius: 6px;
  background: #0f172a;
  color: #94a3b8;
  text-align: center;
}

.order-detail-card .card-head {
  position: sticky;
  top: 0;
  z-index: 2;
}

.hashrate-detail-top h2 {
  flex: 1;
  margin: 0;
  text-align: center;
}

.back-icon-only {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  font-size: 24px;
  line-height: 1;
}

.detail-record-btn {
  min-width: 78px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #334155;
  border-radius: 4px;
  color: #dbe5ff;
  font-size: 12px;
}

.hashrate-info-grid,
.hardware-grid,
.daily-revenue-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

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

.daily-revenue-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hashrate-info-grid div,
.hardware-grid div,
.daily-revenue-grid div {
  min-height: 68px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 11px 12px;
  border-radius: 6px;
  background: #334155;
}

.hashrate-info-grid strong,
.hardware-grid strong,
.daily-revenue-grid strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #f8fafc;
  font-size: 14px;
}

.token-log-box {
  max-height: 260px;
  overflow: hidden;
  display: flex;
  flex-direction: column-reverse;
  gap: 5px;
  padding: 14px;
  border: 1px solid #0f172a;
  border-radius: 6px;
  background: #020617;
  color: #48f2a7;
  font-family: Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
}

.hashrate-detail-meta {
  display: grid;
  gap: 6px;
  padding: 0 2px;
}

.orders-list-card > .card-body {
  overflow: visible;
}

@keyframes numberPulse {
  0%, 100% { opacity: .82; }
  50% { opacity: 1; }
}

@keyframes tokenGlow {
  0%, 100% { color: #48f2a7; }
  50% { color: #b8ffd9; }
}

.market-list.compact {
  max-height: 236px;
  overflow: auto;
}

.h5-app table {
  min-width: 0;
}

.h5-app .table-wrap {
  width: 100%;
  overflow-x: hidden;
}

.h5-app th,
.h5-app td {
  padding: 9px 8px;
  font-size: 12px;
}

.h5-app #openOrders table,
.h5-app #positionsTable table {
  min-width: 560px;
}

.h5-app #openOrders,
.h5-app #positionsTable {
  overflow-x: auto;
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

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

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

  .grid.market-layout,
  .grid.cols-4,
  .grid.cols-3,
  .grid.cols-2,
  .agent-level-grid,
  .risk-ops-strip {
    grid-template-columns: 1fr;
  }

  .risk-market-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .h5-app {
    width: min(100vw, 430px);
    max-width: 430px;
    overflow-x: hidden;
  }

  .main {
    padding: 14px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bottom-tabs {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(100vw, 430px);
    max-width: 430px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .h5-main,
  .h5-app .view,
  .h5-app .trade-shell,
  .h5-app .trade-summary-panel,
  .h5-app .trade-grid,
  .h5-app .trade-history-grid,
  .h5-app .card,
  .h5-app .card-body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .bottom-tabs button {
    width: auto;
    justify-content: center;
  }

  .chart-wrap {
    height: 300px;
  }

  .h5-app .trade-head {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .h5-app .trade-head .tabs {
    display: none;
  }

  .h5-app .mobile-mode-select-row {
    display: block;
    padding: 0 16px 12px;
    background: rgba(20, 31, 49, .5);
    border-bottom: 1px solid var(--line);
  }

  .h5-app .mobile-mode-select-row select {
    height: 34px;
    background: #1a263c;
    border-color: #293653;
    color: #edf3ff;
  }
}

/* Exchange style refresh inspired by the referenced 16-market source. */
:root {
  color-scheme: dark;
  --bg: #090f1c;
  --panel: #101827;
  --panel-2: #141f31;
  --panel-3: #0d1524;
  --text: #edf3ff;
  --muted: #7f8da8;
  --line: #202c43;
  --brand: #5a7bef;
  --brand-2: #00c087;
  --danger: #f6465d;
  --warn: #f0b90b;
  --shadow: 0 20px 50px rgba(0, 0, 0, .34);
}

body {
  background:
    radial-gradient(circle at 18% -10%, rgba(90, 123, 239, .24), transparent 30%),
    radial-gradient(circle at 90% 8%, rgba(0, 192, 135, .1), transparent 28%),
    var(--bg);
  color: var(--text);
}

button {
  min-height: 34px;
  border-radius: 4px;
  background: var(--brand);
  box-shadow: 0 8px 20px rgba(90, 123, 239, .22);
}

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

button.secondary {
  background: #1b2740;
  color: #d8e1ff;
  box-shadow: none;
}

button.good {
  background: var(--brand-2);
  color: #04140f;
}

button.bad {
  background: var(--danger);
}

button.ghost {
  background: transparent;
  color: #9eaaca;
  box-shadow: none;
}

input,
select,
textarea {
  border-color: #293653;
  background: #0b1322;
  color: var(--text);
}

input::placeholder,
textarea::placeholder {
  color: #52617d;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(90, 123, 239, .16);
}

a {
  color: #8ba2ff;
}

.app-shell {
  background: var(--bg);
}

.sidebar {
  background: linear-gradient(180deg, #0b1220 0%, #060b14 100%);
  border-right: 1px solid var(--line);
  box-shadow: 12px 0 34px rgba(0, 0, 0, .2);
}

.brand {
  color: #fff;
}

.brand-mark {
  border-radius: 4px;
  background: linear-gradient(135deg, #5a7bef, #1989fa);
  box-shadow: 0 10px 28px rgba(90, 123, 239, .35);
}

.nav button {
  color: #8b98b6;
}

.nav button.active,
.nav button:hover {
  background: rgba(90, 123, 239, .16);
  color: #fff;
}

.main {
  background:
    linear-gradient(180deg, rgba(20, 31, 49, .72), rgba(9, 15, 28, 0) 260px),
    var(--bg);
}

.topbar {
  color: var(--text);
}

.topbar h1,
.h5-header strong {
  letter-spacing: 0;
}

.card {
  background: linear-gradient(180deg, #111b2c 0%, #0f1828 100%);
  border-color: var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.card-head {
  min-height: 48px;
  border-bottom-color: var(--line);
  background: rgba(20, 31, 49, .5);
}

.card-head h2,
.card-head h3 {
  color: #f4f7ff;
}

.soft-panel,
.notice {
  background: #0d1524;
  border-color: var(--line);
  border-radius: 4px;
}

.notice-toolbar {
  background: #0d1524;
}

.notice.unread {
  background: rgba(90, 123, 239, .12);
  border-color: rgba(90, 123, 239, .42);
}

.soft-panel-head {
  border-bottom-color: var(--line);
}

.metric {
  background: linear-gradient(180deg, rgba(90, 123, 239, .08), rgba(90, 123, 239, 0));
}

.metric .label,
.muted,
.form-row label,
.market-meta {
  color: var(--muted);
}

.metric .value {
  color: #fff;
}

.market-row {
  border-bottom-color: var(--line);
  background: transparent;
}

.market-row:hover,
.market-row.active {
  background: #17243a;
}

.market-symbol,
.price {
  color: #f7faff;
}

.up {
  color: var(--brand-2);
}

.down {
  color: var(--danger);
}

.chart-wrap {
  background: #101827;
}

.period-tabs {
  border-top-color: var(--line);
  background: #111b2c;
}

.period-tabs button,
.tabs button,
.segmented button {
  background: #1a263c;
  color: #9eadc9;
  box-shadow: none;
}

.period-tabs button.active,
.tabs button.active,
.segmented button.active {
  background: var(--brand);
  color: #fff;
}

table {
  color: #dde7ff;
}

th,
td {
  border-bottom-color: var(--line);
}

th {
  background: #111b2c;
  color: #8190ae;
}

tbody tr:hover {
  background: rgba(90, 123, 239, .07);
}

.badge {
  border-radius: 4px;
  background: #1b2740;
  color: #9eacc8;
}

.badge.good {
  background: rgba(0, 192, 135, .14);
  color: var(--brand-2);
}

.badge.bad {
  background: rgba(246, 70, 93, .14);
  color: var(--danger);
}

.badge.warn {
  background: rgba(240, 185, 11, .14);
  color: var(--warn);
}

.product-card {
  background:
    linear-gradient(135deg, rgba(90, 123, 239, .12), rgba(0, 192, 135, .04)),
    var(--panel);
}

.product-icon {
  border-radius: 4px;
  background: #1a263c;
  color: #8ba2ff;
}

.notice.unread {
  border-color: rgba(90, 123, 239, .55);
  background: rgba(90, 123, 239, .1);
}

.toast-item {
  border: 1px solid #293653;
  background: #111b2c;
}

.h5-body {
  background: #050a12;
}

.h5-app {
  background: #090f1c;
  border-color: #1d2940;
}

.h5-header {
  background: rgba(9, 15, 28, .96);
  border-bottom-color: var(--line);
  backdrop-filter: blur(12px);
}

.h5-menu-btn {
  background: #17243a;
  color: #dbe5ff;
  box-shadow: none;
}

.h5-main {
  background:
    radial-gradient(circle at 20% 0, rgba(90, 123, 239, .18), transparent 36%),
    #090f1c;
}

.bottom-tabs {
  background: rgba(8, 13, 24, .98);
  border-top-color: var(--line);
  box-shadow: 0 -14px 30px rgba(0, 0, 0, .36);
}

.bottom-tabs button {
  border-radius: 4px;
  color: #7f8da8;
  box-shadow: none;
}

.bottom-tabs button.active {
  background: rgba(90, 123, 239, .18);
  color: #8ba2ff;
}

.drawer-panel {
  background: #0b1220;
  border-right-color: var(--line);
}

.drawer-avatar {
  border-radius: 4px;
  background: linear-gradient(135deg, #5a7bef, #1989fa);
}

.brand-mark.image-brand,
.drawer-avatar.image-avatar {
  overflow: hidden;
  padding: 0;
}

.brand-mark.image-brand img,
.drawer-avatar.image-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.drawer-section button,
.drawer-section a {
  background: #121d30;
  color: #edf3ff;
}

.home-carousel {
  border-color: rgba(90, 123, 239, .28);
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(90, 123, 239, .26), rgba(0, 192, 135, .08)),
    #101827;
}

.home-slide strong {
  color: #f7faff;
}

.home-notice-strip,
.home-market-item,
.home-product-card {
  border-color: var(--line);
  border-radius: 4px;
  background: #101827;
}

.home-market-item:hover,
.home-product-card:hover {
  background: #17243a;
}

.asset-hero {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(90, 123, 239, .24);
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(90, 123, 239, .28), rgba(176, 136, 177, .12) 48%, rgba(0, 192, 135, .1)),
    #101827;
  box-shadow: var(--shadow);
}

.asset-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.asset-value {
  margin-top: 6px;
  color: #fff;
  font-size: 30px;
  font-weight: 800;
}

.asset-estimate {
  margin-top: 4px;
  color: #b8c4df;
  font-size: 13px;
}

.asset-value span {
  color: #b8c4df;
  font-size: 14px;
  font-weight: 600;
}

.asset-user-chip {
  align-self: start;
  max-width: 210px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 4px;
  background: rgba(9, 15, 28, .45);
  color: #dfe8fb;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.asset-actions button {
  min-width: 74px;
}

.asset-coins {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.asset-coin {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 4px;
  background: rgba(9, 15, 28, .58);
}

.asset-coin strong {
  color: #f3f7ff;
}

.asset-coin span {
  color: #9eacc8;
  font-size: 12px;
}

.asset-coin-shell {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.asset-coin-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

@media (max-width: 1120px) {
  .sidebar {
    background: #080d18;
  }
}

@media (max-width: 640px) {
  .card {
    border-radius: 4px;
  }

  .grid {
    gap: 12px;
  }

  .asset-total {
    display: grid;
  }

  .asset-coins {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-detail-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Reference-aligned H5 layout overrides */
.h5-app {
  max-width: 430px;
  border: 0;
}

.h5-header {
  min-height: 50px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  padding: 6px 12px;
  background: #090f1c;
}

.h5-title-block {
  grid-column: 1 / -1;
  grid-row: 1;
  margin: 0;
  padding: 0 92px;
  text-align: center;
  justify-self: stretch;
  pointer-events: none;
}

.h5-title-block .muted {
  display: none;
}

.h5-header strong {
  overflow: hidden;
  font-size: 16px;
  line-height: 38px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.h5-header .user-strip {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  min-width: 78px;
}

.h5-menu-btn {
  grid-column: 1;
  grid-row: 1;
  width: 34px;
  height: 34px;
  min-height: 34px;
  background: transparent;
  color: #edf3ff;
  font-size: 22px;
}

.h5-header.home-only #backBtn {
  display: none;
}

.h5-header.home-only #openUserDrawer {
  display: grid;
}

.h5-header.home-only {
  grid-template-columns: 42px minmax(0, 1fr) 82px;
}

.h5-header.home-only .user-strip {
  display: flex;
}

.h5-header .user-strip .icon-btn {
  display: none;
  min-width: 34px;
  height: 34px;
  padding: 0;
}

.h5-header .user-strip .icon-btn.visible {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 22px;
}

.header-star {
  line-height: 1;
  font-size: 22px;
}

.h5-lang-btn {
  display: none;
  min-width: 34px;
  height: 34px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid #263452;
  border-radius: 4px;
  background: #121d30;
  color: #edf3ff;
  box-shadow: none;
  font-size: 13px;
  font-weight: 700;
}

.h5-header.home-only .h5-lang-btn {
  display: inline-flex;
}

.h5-header:not(.home-only) .h5-lang-btn {
  display: none;
}

.h5-header.home-only .user-strip .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #263452;
  border-radius: 4px;
  background: #121d30;
}

.h5-header:not(.home-only) #openUserDrawer {
  display: none;
}

.h5-header:not(.home-only) {
  grid-template-columns: 42px 1fr 42px;
}

.h5-header:not(.home-only) .h5-title-block {
  text-align: center;
}

.h5-app:not(.home-view) .h5-header {
  display: none;
}

.h5-app:not(.home-view) .h5-main {
  padding-top: 10px;
}

.h5-app.sub-view:not(.main-tab-view) .bottom-tabs {
  display: none;
}

.h5-app.sub-view:not(.main-tab-view) .h5-main {
  padding-bottom: 24px;
}

.h5-main {
  padding: 12px 12px 112px;
  background: #090f1c;
}

.h5-app.main-tab-view .view,
.h5-app.home-view .view {
  padding-bottom: 88px;
}

.home-carousel {
  min-height: 150px;
  border: 0;
  border-radius: 6px;
  background: url("/ref-img/bgb4.png") center / cover no-repeat, #101827;
}

.home-slide {
  padding: 24px 20px;
}

.home-slide span {
  color: #b088b1;
}

.home-slide strong {
  font-size: 22px;
}

.home-notice-strip {
  min-height: 36px;
  border-radius: 4px;
  background: #101827;
}

.quick-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 4px 0 2px;
}

.quick-actions button {
  min-height: 72px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  background: transparent;
  color: #edf3ff;
  box-shadow: none;
}

.quick-actions img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.quick-actions span,
.nav-label {
  font-size: 12px;
}

.home-market-preview {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 10px 6px;
  border: 0;
  border-radius: 5px;
  background: #101827;
  box-shadow: var(--shadow);
}

.home-market-item {
  min-height: 76px;
  padding: 8px 6px;
  border: 0;
  border-right: 1px solid #202c43;
  background: transparent;
}

.home-market-item:last-child {
  border-right: 0;
}

.home-product-list {
  grid-template-columns: 1fr;
}

.bottom-tabs {
  max-width: 430px;
  height: 58px;
  padding: 5px 4px calc(5px + env(safe-area-inset-bottom));
  background: #0b1220;
}

.bottom-tabs button {
  height: 48px;
  gap: 3px;
  color: #8b98b6;
  border-radius: 0;
}

.bottom-tabs button.active {
  background: transparent;
  color: #5a7bef;
}

.nav-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.trade-shell {
  display: grid;
  gap: 10px;
  width: 100%;
  min-width: 0;
  position: relative;
}

.trade-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(90, 123, 239, .28);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(25, 137, 250, .18), rgba(0, 192, 135, .1)), #101827;
}

.trade-mode-tabs button {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: rgba(255, 255, 255, .04);
  color: #b9c7e4;
  box-shadow: none;
  font-size: 15px;
  font-weight: 700;
}

.trade-mode-tabs button.active {
  background: linear-gradient(135deg, #f6c343, #00c087);
  color: #07110f;
  box-shadow: 0 10px 24px rgba(0, 192, 135, .22);
}

.trade-symbol-bar {
  min-height: 36px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 2px 2px 4px;
  color: #edf3ff;
}

.trade-symbol-picker {
  justify-self: start;
  min-height: 34px;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 8px 0 0;
  background: transparent;
  color: #edf3ff;
  box-shadow: none;
  font-size: 18px;
  font-weight: 800;
  overflow: hidden;
}

.trade-symbol-picker span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trade-symbol-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.trade-symbol-icon {
  width: 34px;
  height: 34px;
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9ba8c4;
  box-shadow: none;
  font-size: 22px;
  line-height: 1;
}

.trade-symbol-icon.active,
.trade-symbol-icon:hover {
  color: #bf5fc1;
}

.trade-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
}

.trade-summary-panel,
.kline-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px;
  border: 0;
  border-radius: 4px;
  background: #101827;
  box-shadow: var(--shadow);
  min-width: 0;
}

.trade-summary-panel {
  padding: 4px 0 6px;
  background: transparent;
  box-shadow: none;
}

.trade-summary-left strong,
.kline-summary strong {
  font-size: 24px;
}

.trade-summary-left {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.trade-summary-left button,
.kline-pair-btn {
  min-height: 0;
  padding: 0;
  background: transparent;
  color: #edf3ff;
  box-shadow: none;
  font-size: 17px;
  font-weight: 700;
}

.trade-summary-stats {
  min-width: 118px;
}

.h5-app #view-market .trade-summary-left strong {
  font-size: 22px;
}

.h5-app #view-market .trade-summary-stats {
  min-width: 108px;
}

.h5-app #view-market .trade-summary-stats strong {
  font-size: 14px;
}

.market-row {
  min-height: 54px;
  padding: 9px 10px;
}

.h5-app #view-market .card {
  border-radius: 4px;
  min-width: 0;
}

.h5-app #view-market .card-head {
  min-height: 42px;
  padding: 10px 12px;
}

.h5-app #view-market .card-body {
  padding: 12px;
}

.h5-app #view-market .grid {
  gap: 10px;
  min-width: 0;
}

.market-row .price {
  text-align: right;
}

.chart-wrap {
  height: 380px;
  border-radius: 0;
}

.h5-app #view-kline .card:first-of-type {
  border: 0;
  background: #101827;
}

.h5-app #view-kline .card:first-of-type .card-head,
.h5-app #view-kline .mobile-mode-select-row {
  display: none;
}

.h5-app #view-kline .card:first-of-type .card-head {
  min-height: 42px;
  padding: 10px 12px;
}

.h5-app #view-kline .period-tabs {
  overflow-x: auto;
  flex-wrap: nowrap;
  padding-bottom: 8px;
}

.h5-app .kline-pair-icon {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #edf3ff;
  background: transparent;
  box-shadow: none;
  font-size: 22px;
  line-height: 1;
}

.page-head {
  min-height: 44px;
  margin-bottom: 10px;
  color: #edf3ff;
}

.page-head button {
  min-height: 34px;
  background: transparent;
  color: #edf3ff;
  box-shadow: none;
}

.page-head .back-icon-only {
  width: 34px;
  min-width: 34px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
}

.h5-app .page-head h2 {
  color: #edf3ff;
  font-size: 17px;
  font-weight: 800;
}

.h5-app .page-head span:last-child {
  min-width: 34px;
}

.kline-summary {
  margin-bottom: 12px;
}

.kline-info-grid {
  display: grid;
  gap: 10px;
}

.kline-info-grid div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.kline-info-grid strong {
  color: #edf3ff;
}

.kline-tabs-card {
  overflow: hidden;
}

.kline-info-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid #24314c;
  background: #101827;
}

.kline-info-tabs button {
  min-height: 44px;
  border-radius: 0;
  background: transparent;
  color: #9ba8c4;
  box-shadow: none;
  font-weight: 700;
}

.kline-info-tabs button.active {
  color: #bf5fc1;
}

.kline-info-tabs button.active::after {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  margin: 4px auto 0;
  border-radius: 999px;
  background: #bf5fc1;
}

.kline-info-panel {
  min-height: 150px;
}

.trade-bottom-actions {
  position: sticky;
  bottom: 68px;
  border: 0;
  border-radius: 4px;
  background: #0d1524;
}

.h5-app.view-kline .trade-bottom-actions {
  bottom: 10px;
}

.asset-hero {
  padding: 14px 14px 12px;
  background: url("/ref-img/bgb3.png") center / cover no-repeat, #101827;
}

.asset-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  margin-top: 8px;
}

.asset-actions button {
  min-height: 48px;
  display: grid;
  justify-items: center;
  gap: 5px;
  background: rgba(9, 15, 28, .35);
  color: #edf3ff;
  box-shadow: none;
}

.asset-actions img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.asset-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.h5-app .asset-summary-grid div {
  padding: 8px;
}

.wallet-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid #24314c;
  border-radius: 4px;
  background: #101827;
}

.wallet-tabs button {
  height: 38px;
  border-radius: 0;
  background: transparent;
  color: #8f9dba;
  box-shadow: none;
}

.wallet-tabs button.active {
  background: rgba(90, 123, 239, .22);
  color: #edf3ff;
}

.deposit-mobile-page {
  display: grid;
  gap: 14px;
}

.deposit-selector-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.deposit-selector-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.deposit-chain-tips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.deposit-chain-tips div {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #24314c;
  border-radius: 4px;
  background: #0d1524;
}

.deposit-chain-tips span {
  display: block;
  color: #8f9dba;
  font-size: 12px;
}

.deposit-chain-tips strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: #edf3ff;
}

.deposit-auto-hint {
  margin: 0;
  color: #8f9dba;
  font-size: 12px;
  line-height: 1.55;
}

.wallet-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.wallet-zero-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.wallet-zero-toggle input {
  width: auto;
  height: auto;
}

.wallet-search input {
  height: 34px;
  border-radius: 4px;
  background: #121d30;
}

.wallet-coin-list {
  display: grid;
  gap: 8px;
  padding-bottom: 124px;
}

.wallet-coin-row {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 4px;
  background: #0d1524;
  box-shadow: var(--shadow);
}

.wallet-coin-head,
.wallet-coin-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.wallet-coin-head strong {
  color: #edf3ff;
  font-size: 16px;
}

.wallet-coin-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.coin-avatar {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #5a7bef, #00c087);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.wallet-coin-head span,
.wallet-coin-metrics label {
  color: var(--muted);
  font-size: 12px;
}

.wallet-coin-metrics div {
  flex: 1;
}

.wallet-coin-metrics strong {
  display: block;
  margin-top: 3px;
  color: #edf3ff;
  font-size: 12px;
}

.invite-card {
  border-radius: 4px;
}

.invite-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 14px;
  align-items: center;
}

.invite-qrcode .qr-box,
.invite-qrcode {
  width: 96px;
}

.invite-strip {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.invite-strip div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 4px;
  background: #0d1524;
}

.invite-strip span {
  color: var(--muted);
  font-size: 12px;
}

.invite-link {
  word-break: break-all;
}

.invite-actions {
  margin-top: 14px;
}

.contract-asset-box {
  display: grid;
  gap: 8px;
}

.contract-asset-box div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.percent-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.percent-row button {
  min-height: 28px;
  padding: 0 4px;
  border: 1px solid #293653;
  background: #121d30;
  color: #8f9dba;
  box-shadow: none;
  font-size: 12px;
}

.percent-row button.active {
  border-color: #5a7bef;
  background: rgba(90, 123, 239, .2);
  color: #edf3ff;
}

.trade-total-row,
.wallet-available-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.trade-total-row strong,
.wallet-available-line strong {
  color: #edf3ff;
}

.h5-app .page-view,
.h5-app .view,
.h5-app .card,
.h5-app .card-body,
.h5-app .grid,
.h5-app .trade-shell,
.h5-app .trade-grid,
.h5-app .trade-history-grid,
.h5-app .wallet-tabs,
.h5-app .wallet-coin-list,
.h5-app .notice-list,
.h5-app .home-market-preview,
.h5-app .home-product-list,
.h5-app .asset-summary-grid,
.h5-app .asset-actions,
.h5-app .product-grid,
.h5-app .percent-row {
  min-width: 0;
}

.wallet-form-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #101827;
  box-shadow: var(--shadow);
}

.wallet-form-title {
  color: #edf3ff;
  font-size: 16px;
  font-weight: 800;
}

.wallet-record-list {
  display: grid;
  gap: 10px;
}

.wallet-record-item {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #24314c;
  border-radius: 4px;
  background: #0d1524;
}

.wallet-record-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.wallet-record-head strong {
  color: #edf3ff;
}

.wallet-record-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.wallet-record-grid div {
  min-width: 0;
  padding: 8px;
  border-radius: 4px;
  background: #101827;
}

.wallet-record-grid span,
.wallet-record-time {
  color: #8f9dba;
  font-size: 12px;
}

.wallet-record-grid b {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: #edf3ff;
  font-size: 13px;
}

.record-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 2px 0 12px;
}

.record-summary-strip div {
  min-width: 0;
  padding: 10px;
  border: 1px solid #202c43;
  border-radius: 4px;
  background: #0d1524;
}

.record-summary-strip span {
  display: block;
  color: #8f9dba;
  font-size: 11px;
}

.record-summary-strip strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: #edf3ff;
  font-size: 13px;
}

.h5-body .wallet-record-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.h5-body .record-summary-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.order-empty-state {
  min-height: 430px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 26px 12px;
  color: #8f9dba;
  text-align: center;
}

.order-empty-state img {
  width: min(156px, 52vw);
  height: auto;
  opacity: .88;
}

.order-empty-state strong {
  color: #edf3ff;
  font-size: 16px;
}

.order-empty-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.order-empty-grid div,
.order-empty-products button {
  min-width: 0;
  padding: 9px;
  border: 1px solid #202c43;
  border-radius: 4px;
  background: #101827;
}

.order-empty-grid b,
.order-empty-grid small {
  display: block;
  overflow-wrap: anywhere;
}

.order-empty-grid b {
  color: #8f9dba;
  font-size: 11px;
}

.order-empty-grid small {
  margin-top: 4px;
  color: #edf3ff;
}

.order-empty-products {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.order-empty-products button {
  display: grid;
  gap: 5px;
  justify-items: center;
  min-height: 114px;
  color: #edf3ff;
  box-shadow: none;
}

.order-empty-products img {
  width: 100%;
  max-width: 82px;
  aspect-ratio: 1.35;
  border-radius: 4px;
  object-fit: cover;
}

.order-empty-products span {
  max-width: 100%;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-empty-products b {
  color: #f0b90b;
  font-size: 11px;
}

.wallet-empty-state {
  min-height: 540px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 34px 14px;
  color: #8f9dba;
  text-align: center;
}

.wallet-empty-state img {
  width: min(178px, 58vw);
  height: auto;
  object-fit: contain;
  opacity: .86;
}

.wallet-empty-state strong {
  color: #edf3ff;
  font-size: 16px;
}

.wallet-empty-state span {
  font-size: 13px;
}

.wallet-empty-state button {
  min-width: 138px;
}

.wallet-empty-tips {
  width: 100%;
  display: grid;
  gap: 8px;
  margin: 4px 0 2px;
}

.wallet-empty-tips div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #202c43;
  border-radius: 4px;
  background: #101827;
  text-align: left;
}

.wallet-empty-tips b {
  color: #edf3ff;
  font-size: 12px;
}

.wallet-empty-tips span {
  max-width: 58%;
  overflow-wrap: anywhere;
  text-align: right;
  color: #8f9dba;
}

.bank-box.embedded {
  margin-bottom: 0;
  border: 0;
  background: #0d1524;
  box-shadow: none;
}

.actions.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.withdraw-mobile-page {
  display: grid;
  gap: 14px;
}

.withdraw-address-toolbar,
.withdraw-selected-address,
.withdraw-address-filter,
.withdraw-address-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #24314c;
  border-radius: 4px;
  background: #0d1524;
}

.withdraw-address-toolbar > div,
.withdraw-selected-address,
.withdraw-address-main {
  min-width: 0;
}

.withdraw-address-toolbar strong,
.withdraw-selected-address strong,
.withdraw-address-main strong {
  display: block;
  color: #edf3ff;
}

.withdraw-address-toolbar span,
.withdraw-selected-address span,
.withdraw-selected-address small,
.withdraw-address-main span,
.withdraw-address-main small,
.withdraw-address-filter span {
  display: block;
  overflow-wrap: anywhere;
  color: #8f9dba;
  font-size: 12px;
}

.withdraw-selected-address {
  display: grid;
  justify-content: stretch;
}

.save-address-toggle {
  justify-content: flex-start;
}

.withdraw-address-page,
.withdraw-address-list {
  display: grid;
  gap: 12px;
}

.withdraw-address-card {
  align-items: flex-start;
}

.withdraw-address-card.active {
  border-color: var(--accent);
}

.withdraw-address-main {
  display: grid;
  gap: 4px;
}

.withdraw-address-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.actions.compact {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.bad-text {
  color: #ff7681;
}

.mini {
  min-height: 32px;
  padding: 7px 10px;
  font-size: 12px;
}

@media (max-width: 640px) {
  .withdraw-address-toolbar,
  .withdraw-address-card {
    display: grid;
  }

  .withdraw-address-actions,
  .actions.compact {
    justify-content: stretch;
  }

  .withdraw-address-actions .mini,
  .actions.compact .mini {
    width: 100%;
  }
}

.market-pair-card {
  order: 4;
}

.order-depth-grid {
  order: 1;
}

.trade-history-grid {
  order: 2;
}

#view-market > .trade-shell > .card:not(.market-pair-card),
#view-market > .trade-shell > .grid,
#view-market > .trade-shell > .trade-summary-panel {
  order: 0;
}

#view-market > .trade-shell > .trade-symbol-bar {
  order: 0;
}

#view-wallet {
  padding-bottom: 140px;
}

.h5-app #view-market .trade-summary-panel {
  display: none;
}

.h5-app #view-market .market-pair-card,
.h5-app #view-market .trade-history-grid,
.h5-app #view-market .trade-shell > .card:last-child {
  display: none;
}

.h5-app #view-market.market-pairs-open .market-pair-card {
  display: block;
  position: fixed;
  z-index: 20;
  top: 64px;
  bottom: 118px;
  left: max(calc((100vw - 430px) / 2), 0px);
  width: var(--pair-drawer-width);
  max-height: none;
  overflow: auto;
  border: 1px solid #263452;
  border-radius: 0 8px 8px 0;
  background: #101827;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .5);
}

.h5-app #view-market .pair-overlay,
.h5-app #view-kline .pair-overlay {
  position: fixed;
  z-index: 19;
  top: 0;
  right: max(calc((100vw - 430px) / 2), 0px);
  bottom: 0;
  left: calc(max(calc((100vw - 430px) / 2), 0px) + var(--pair-drawer-width));
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(0, 0, 0, .44);
  box-shadow: none;
}

.h5-app #view-kline .kline-pair-drawer {
  display: none;
}

.h5-app #view-kline.market-pairs-open .kline-pair-drawer {
  display: block;
  position: fixed;
  z-index: 20;
  top: 64px;
  bottom: 118px;
  left: max(calc((100vw - 430px) / 2), 0px);
  width: var(--pair-drawer-width);
  max-height: none;
  overflow: auto;
  transform: none;
  border: 1px solid #263452;
  border-radius: 0 8px 8px 0;
  background: #101827;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .5);
}

.h5-app #view-kline .pair-overlay {
  left: calc(max(calc((100vw - 430px) / 2), 0px) + var(--pair-drawer-width));
}

.h5-app #view-market .trade-shell {
  gap: 8px;
  padding-bottom: 92px;
}

.h5-app #view-market .depth-chart-panel {
  display: none;
}

.h5-app #view-market #orderBook table {
  table-layout: fixed;
}

body:not(.h5-body) #view-market.market-layout {
  display: grid;
  grid-template-areas:
    "pairs chart order"
    "pairs chart order"
    "book trades open"
    "positions trades open";
  grid-template-columns: minmax(250px, 320px) minmax(480px, 1fr) minmax(282px, 320px);
  gap: 14px;
  align-items: start;
}

body:not(.h5-body) #view-market.market-layout > .card {
  min-width: 0;
}

body:not(.h5-body) #view-market.market-layout > .card:nth-child(1) {
  grid-area: pairs;
}

body:not(.h5-body) #view-market.market-layout > .card:nth-child(2) {
  grid-area: chart;
}

body:not(.h5-body) #view-market.market-layout > .card:nth-child(3) {
  grid-area: order;
  position: sticky;
  top: 18px;
}

body:not(.h5-body) #view-market.market-layout > .card:nth-child(4) {
  grid-area: book;
}

body:not(.h5-body) #view-market.market-layout > .card:nth-child(5) {
  grid-area: trades;
}

body:not(.h5-body) #view-market.market-layout > .card:nth-child(6) {
  grid-area: open;
}

body:not(.h5-body) #view-market.market-layout > .card:nth-child(7) {
  grid-area: positions;
}

body:not(.h5-body) #view-market #marketList {
  max-height: 760px;
  overflow: auto;
}

body:not(.h5-body) #view-market .chart-wrap {
  height: 448px;
}

body:not(.h5-body) #view-market #orderBook,
body:not(.h5-body) #view-market #recentTrades,
body:not(.h5-body) #view-market #openOrders,
body:not(.h5-body) #view-market #positionsTable {
  max-height: 520px;
  overflow: auto;
}

body:not(.h5-body) #view-market #orderBook table,
body:not(.h5-body) #view-market #recentTrades table,
body:not(.h5-body) #view-market #openOrders table,
body:not(.h5-body) #view-market #positionsTable table {
  min-width: 100%;
}

.wallet-coin-settings {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 21, 36, .45);
}

.wallet-coin-setting-row {
  display: grid;
  grid-template-columns: 80px minmax(220px, 1fr) minmax(120px, .32fr) minmax(90px, .25fr);
  gap: 10px;
  align-items: center;
}

.wallet-coin-setting-row strong,
.wallet-coin-setting-head span {
  color: #edf3ff;
  font-size: 13px;
}

.wallet-coin-setting-head span {
  color: var(--muted);
}

.wallet-coin-setting-row input {
  min-width: 0;
}

body:not(.h5-body) #view-wallet .fund-account-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(96px, 1fr));
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(13, 21, 36, .72);
}

body:not(.h5-body) #view-wallet .fund-account-actions button {
  min-height: 62px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  padding: 0 8px;
  background: #17243a;
  color: #edf3ff;
  box-shadow: none;
  overflow: hidden;
}

body:not(.h5-body) #view-wallet .fund-account-actions img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

body:not(.h5-body) #view-wallet .fund-account-actions span {
  font-size: 12px;
  line-height: 1.1;
}

body:not(.h5-body) #view-wallet .wallet-coin-list {
  padding-bottom: 16px;
}

body:not(.h5-body) #view-wallet .wallet-coin-row {
  grid-template-columns: minmax(180px, .8fr) minmax(360px, 1fr);
  align-items: center;
  padding: 14px;
}

body:not(.h5-body) #view-wallet .wallet-coin-metrics {
  justify-content: flex-end;
}

body:not(.h5-body) #view-wallet .asset-hero {
  min-height: 150px;
}

@media (max-width: 640px) {
  .h5-app {
    width: min(100vw, 430px);
    max-width: 430px;
  }

  .bottom-tabs {
    width: min(100vw, 430px);
    max-width: 430px;
  }

  .trade-grid,
  .grid.cols-2 {
    grid-template-columns: 1fr;
  }

  .h5-app #view-market .order-depth-grid {
    grid-template-columns: minmax(0, 1fr) minmax(178px, .96fr);
    align-items: start;
    gap: 8px;
  }

  .h5-app #view-market .order-depth-grid .card:first-child {
    min-height: 0;
  }

  .h5-app #view-market .order-depth-grid .card:nth-child(2) .card-head {
    display: none;
  }

  .h5-app #view-market .order-depth-grid .card {
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .h5-app #view-market .order-depth-grid .card-body {
    padding: 0;
  }

  .h5-app #view-market .order-depth-grid .form-grid {
    gap: 6px;
  }

  .h5-app #view-market .order-depth-grid .form-row {
    gap: 4px;
  }

  .h5-app #view-market .order-depth-grid label {
    font-size: 11px;
  }

  .h5-app #view-market .order-depth-grid input,
  .h5-app #view-market .order-depth-grid select {
    height: 34px;
    min-height: 34px;
    padding: 0 9px;
    border-radius: 4px;
  }

  .h5-app #view-market .order-depth-grid .segmented {
    min-height: 34px;
  }

  .h5-app #view-market .order-depth-grid .segmented button {
    min-height: 32px;
  }

  .h5-app #view-market .order-depth-grid #tradeBtn {
    min-height: 36px;
  }

  .h5-app #view-market .order-depth-grid .percent-row {
    gap: 4px;
  }

  .h5-app #view-market .order-depth-grid .percent-row button {
    min-height: 26px;
    font-size: 11px;
  }

  .h5-app #view-market #orderBook th,
  .h5-app #view-market #orderBook td {
    padding: 6px 4px;
    font-size: 11px;
  }

  .h5-app #view-market #orderBook {
    overflow: hidden;
  }

  .h5-app #view-market #orderBook .mobile-depth-book {
    min-height: 0;
    max-height: 500px;
    overflow: hidden;
  }

  .h5-app #view-market #orderBook table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  .h5-app #view-market .mobile-depth-row {
    min-height: 25px;
    padding: 0 5px;
    font-size: 11.5px;
  }

  .h5-app #view-market .mobile-depth-row span,
  .h5-app #view-market .mobile-depth-row strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .h5-app #view-market .mobile-depth-head {
    display: none;
  }

  .h5-app #view-market .mobile-depth-last {
    min-height: 42px;
    display: grid;
    place-items: center;
    margin: 4px 0;
    border-top: 1px solid rgba(41, 54, 83, .6);
    border-bottom: 1px solid rgba(41, 54, 83, .6);
    color: #edf3ff;
    font-size: 23px;
    font-weight: 800;
    white-space: nowrap;
  }

.h5-app .page-view {
  padding-bottom: 100px;
}

  .h5-app #view-market .market-pair-card {
    order: 5;
  }

  .h5-app #view-market .trade-mobile-tabs {
    display: grid;
    gap: 8px;
    margin-top: 4px;
    padding-bottom: 86px;
  }

  .h5-app #view-market .trade-tab-head {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  .h5-app #view-market .trade-tab-head button {
    min-height: 36px;
    border-radius: 0;
    background: transparent;
    color: #8f9dba;
    box-shadow: none;
    font-size: 14px;
  }

  .h5-app #view-market .trade-tab-head button.active {
    color: #bf5fc1;
  }

  .h5-app #view-market .trade-tab-head button.active::after {
    content: "";
    display: block;
    width: 6px;
    height: 6px;
    margin: 4px auto 0;
    border-radius: 999px;
    background: #bf5fc1;
  }

  .h5-app #view-market .trade-tab-panel {
    max-height: 420px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 0;
    background: transparent;
  }

  .h5-app #view-market .trade-tab-panel.contract-history-panel,
  .h5-app #view-market .trade-tab-panel:has(.contract-history-list) {
    overflow-x: hidden;
  }

  .h5-app #view-market .contract-history-list {
    display: grid;
    gap: 8px;
    min-width: 0;
  }

  .h5-app #view-market .contract-history-card {
    display: grid;
    gap: 8px;
    max-width: 100%;
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(143, 157, 186, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
  }

  .h5-app #view-market .contract-history-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
  }

  .h5-app #view-market .contract-history-top > span {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .h5-app #view-market .contract-history-top strong,
  .h5-app #view-market .contract-history-top small {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .h5-app #view-market .contract-history-card > button {
    width: 100%;
  }

  .h5-app #view-market .contract-history-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .h5-app #view-market .contract-history-grid div {
    min-width: 0;
    padding: 8px;
    border-radius: 8px;
    background: rgba(12, 18, 32, 0.34);
  }

  .h5-app #view-market .contract-history-grid span {
    display: block;
    color: #8f9dba;
    font-size: 11px;
  }

  .h5-app #view-market .contract-history-grid b {
    display: block;
    min-width: 0;
    margin-top: 3px;
    overflow-wrap: anywhere;
    font-size: 12px;
  }

  body.light-ui .h5-app #view-market .contract-history-card {
    border-color: #e7edf6;
    background: #ffffff;
  }

  body.light-ui .h5-app #view-market .contract-history-grid div {
    background: #f7f9fc;
  }

  .h5-app #view-market .trade-tab-panel.contract-active-panel {
    max-height: none;
    overflow: visible;
  }

  .h5-app #view-market .trade-tab-panel th,
  .h5-app #view-market .trade-tab-panel td {
    padding: 8px 7px;
    font-size: 11px;
  }

  .trade-summary-panel,
  .kline-summary {
    grid-template-columns: 1fr;
  }

.h5-app #view-kline .kline-summary {
  grid-template-columns: minmax(0, 1fr) minmax(112px, auto);
  gap: 8px;
  align-items: start;
}

.h5-app #view-kline .trade-summary-left {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

.h5-app #view-kline .trade-summary-left strong {
  font-size: 23px;
  line-height: 1.08;
}

.h5-app #view-kline .trade-summary-stats {
  min-width: 112px;
  gap: 5px;
  font-size: 11px;
}

.h5-app #view-kline .trade-summary-stats div {
  gap: 8px;
}

.h5-app #view-kline .trade-summary-stats strong {
  font-size: 13px;
  text-align: right;
  word-break: keep-all;
}

  .h5-app #view-kline .kline-summary .trade-summary-left {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
  }

  .h5-app #view-kline .kline-summary .trade-summary-left strong {
    font-size: 23px;
    line-height: 1.08;
  }

  .h5-app #view-kline .kline-summary .trade-summary-stats {
    min-width: 112px;
    gap: 5px;
    font-size: 11px;
  }

  .h5-app #view-kline .kline-summary .trade-summary-stats div {
    gap: 8px;
  }

  .h5-app #view-kline .kline-summary .trade-summary-stats strong {
    font-size: 13px;
    text-align: right;
    word-break: keep-all;
  }

  .chart-wrap {
    height: 360px;
  }

  .asset-actions,
  .asset-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .h5-app #view-wallet .fund-account-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 12px;
    padding: 12px 10px;
    border-radius: 6px;
    background: #101827;
  }

  .h5-app #view-wallet .fund-account-actions button {
    min-width: 0;
    min-height: 48px;
    padding: 0 4px;
    background: transparent;
    color: #edf3ff;
    box-shadow: none;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 6px;
    overflow: hidden;
  }

  .h5-app #view-wallet .fund-account-actions img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    max-width: 22px;
    max-height: 22px;
  }

  .h5-app #view-wallet .fund-account-actions span {
    max-width: 100%;
    overflow: hidden;
    color: #edf3ff;
    font-size: 12px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .asset-value {
    font-size: 25px;
  }

  .asset-coins {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #view-wallet > .card {
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  #view-wallet > .card > .card-head {
    min-height: 36px;
    padding: 4px 0 8px;
    border: 0;
    background: transparent;
  }

  #view-wallet > .card > .card-body {
    padding: 0;
  }

  #view-deposit > .card,
  #view-withdraw > .card,
  #view-kyc > .card,
  #view-profile > .card,
  #view-support > .card {
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  #view-deposit > .card > .card-body,
  #view-withdraw > .card > .card-body,
  #view-kyc > .card > .card-body,
  #view-profile > .card > .card-body,
  #view-support > .card > .card-body {
    padding: 0;
  }

  .deposit-selector-row {
    grid-template-columns: 1fr;
  }

  .address-panel {
    grid-template-columns: 96px 1fr;
  }

  .qr-box {
    width: 96px;
  }
}

@media (max-width: 380px) {
  .asset-actions,
  .asset-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Final H5 tightening */
.h5-header strong {
  display: block;
}

.trade-shell {
  gap: 8px;
}

.trade-summary-panel,
.kline-summary {
  gap: 8px;
  padding: 10px 12px;
}

.h5-app #view-market .trade-shell {
  padding-bottom: 92px;
}

.h5-app #view-market .trade-bottom-actions,
.h5-app #view-kline .trade-bottom-actions {
  border-top: 1px solid #202c43;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .28);
}

.h5-app #view-kline .period-tabs {
  padding: 8px 12px;
}

.h5-app #view-kline .chart-wrap {
  border-radius: 4px;
}

.kline-summary {
  margin-bottom: 10px;
}

.wallet-form-card,
.wallet-history-card {
  gap: 10px;
}

.h5-app #view-deposit .wallet-form-card,
.h5-app #view-withdraw .wallet-form-card,
.h5-app #view-deposit-history .wallet-form-card {
  border: 0;
  background: #101827;
}

.h5-app #view-deposit-history .wallet-history-card {
  margin-bottom: 0;
}

.h5-app #view-deposit .page-head,
.h5-app #view-withdraw .page-head,
.h5-app #view-deposit-history .page-head {
  margin-bottom: 8px;
}

.h5-app #view-wallet .asset-hero {
  border: 0;
  background: url("/ref-img/bgb3.png") center / cover no-repeat, #101827;
}

.h5-app #view-wallet {
  display: grid;
  gap: 12px;
}

.h5-app #view-wallet .asset-owner-row {
  margin-bottom: 2px;
}

.h5-app #view-wallet .asset-owner-row span {
  color: rgba(237, 243, 255, .78);
}

.h5-app #view-wallet .asset-owner-row b {
  color: #b088b1;
}

.h5-app #view-wallet .asset-total {
  min-height: 74px;
  align-items: end;
}

.h5-app #view-wallet .asset-value {
  font-size: 28px;
  line-height: 1.08;
}

.h5-app #view-wallet .asset-estimate {
  color: rgba(237, 243, 255, .7);
}

.h5-app #view-wallet #walletFundCard {
  display: grid;
  gap: 12px;
}

.h5-app #view-wallet #walletFundCard.hidden {
  display: none !important;
}

.h5-app #view-wallet #walletFundCard .card-head h2 {
  font-size: 15px;
}

.h5-app #view-wallet .wallet-tabs {
  border: 0;
}

.h5-app #view-wallet .wallet-tabs button {
  min-height: 38px;
}

.h5-app #view-wallet .asset-summary-grid {
  gap: 6px;
}

.h5-app #view-wallet .wallet-toolbar {
  justify-content: space-between;
  min-height: 40px;
  padding: 0 2px;
}

.h5-app #view-wallet .wallet-search input {
  height: 38px;
  background: #17243a;
}

.h5-app #view-wallet .wallet-coin-row {
  gap: 10px;
  padding: 12px 2px;
  border-bottom: 1px solid #202c43;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.h5-app #view-wallet .wallet-coin-row:last-child {
  border-bottom: 0;
}

.h5-app #view-wallet .wallet-coin-head > span {
  color: #edf3ff;
  font-size: 15px;
  font-weight: 700;
}

.h5-app #view-wallet .wallet-coin-metrics {
  gap: 8px;
}

.h5-app #view-wallet .wallet-coin-metrics div {
  min-width: 0;
}

.h5-app #view-wallet .wallet-coin-metrics strong {
  overflow-wrap: anywhere;
}

/* Reference layout pass: H5 exchange, chart, and assets */
.h5-body,
.h5-app {
  --brand: #bf5fc1;
  --brand-2: #00c087;
}

.h5-app #view-market .trade-mode-tabs {
  margin-bottom: 4px;
  border-color: rgba(240, 185, 11, .3);
  background: linear-gradient(135deg, rgba(240, 185, 11, .16), rgba(0, 192, 135, .12), rgba(22, 103, 255, .1)), #101827;
}

.h5-app #view-market .trade-mode-tabs button {
  min-height: 38px;
  border-color: rgba(255, 255, 255, .08);
  background: #0b1322;
  color: #d6e2f6;
}

.h5-app #view-market .trade-mode-tabs button[data-mode="spot"].active {
  background: linear-gradient(135deg, #f0b90b 0%, #00c087 100%);
  color: #07110f;
}

.h5-app #view-market .trade-mode-tabs button[data-mode="contract"].active {
  background: linear-gradient(135deg, #16a3ff 0%, #7c5cff 54%, #f0b90b 100%);
  color: #ffffff;
}

.h5-app #view-market .trade-symbol-bar {
  padding: 6px 0 8px;
}

.h5-app #view-market .trade-symbol-picker {
  font-size: 18px;
}

.h5-app #view-market .trade-symbol-icon {
  color: #9fb0d2;
}

.h5-app #view-market .order-depth-grid {
  grid-template-columns: minmax(0, .98fr) minmax(170px, .88fr);
  gap: 8px;
  align-items: start;
}

.h5-app #view-market .order-depth-grid .card:first-child .card-head {
  min-height: 32px;
  padding: 4px 0 8px;
  background: transparent;
}

.h5-app #view-market .order-depth-grid .card:first-child .card-head h2 {
  font-size: 18px;
}

.h5-app #view-market .order-depth-grid .card:first-child .badge {
  min-width: 40px;
  text-align: center;
}

.h5-app #view-market .order-depth-grid .segmented {
  gap: 0;
  overflow: hidden;
  border-radius: 4px;
}

.h5-app #view-market .order-depth-grid .segmented button {
  border-radius: 0;
}

.h5-app #view-market .order-depth-grid input,
.h5-app #view-market .order-depth-grid select {
  background: #0c1524;
}

.h5-app #view-market .order-depth-grid .form-grid {
  gap: 5px;
}

.h5-app #view-market .order-depth-grid input,
.h5-app #view-market .order-depth-grid select {
  height: 32px;
  min-height: 32px;
}

.h5-app #view-market .order-depth-grid .percent-row button {
  min-height: 24px;
}

.h5-app #view-market .order-depth-grid .trade-total-row {
  font-size: 11px;
}

.h5-app #view-market .mobile-depth-book {
  height: 100%;
  align-content: stretch;
  gap: 2px;
  padding-top: 1px;
}

.h5-app #view-market .mobile-depth-row {
  grid-template-columns: minmax(0, 1fr) minmax(58px, auto);
}

.h5-app #view-market .mobile-depth-last {
  letter-spacing: 0;
  min-height: 56px;
  margin: 5px 0;
  font-size: 26px;
}

.h5-app #view-market .order-depth-grid {
  align-items: stretch;
}

.h5-app #view-market .order-depth-grid > .card:nth-child(2),
.h5-app #view-market .order-depth-grid > .card:nth-child(2) > .card-body,
.h5-app #view-market #orderBook {
  height: 100%;
  min-height: 0;
}

.h5-app #view-market .trade-tab-panel {
  border-top: 1px solid #202c43;
}

.h5-app #view-market .contract-order-list {
  gap: 8px;
}

.h5-app #view-market .contract-order-card {
  padding: 10px;
}

.h5-app #view-market .contract-order-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.h5-app #view-kline .page-head {
  margin-bottom: 8px;
}

.h5-app #view-kline .kline-summary {
  border: 0;
  border-radius: 4px;
  background: #101827;
}

.h5-app #view-kline .kline-summary .kline-pair-btn {
  pointer-events: none;
}

.h5-app #view-kline .period-tabs {
  border-top: 1px solid #202c43;
  border-bottom: 1px solid #202c43;
  background: #111b2c;
}

.h5-app #view-kline .period-tabs button {
  min-width: 44px;
  border-radius: 4px;
}

.h5-app #view-kline .chart-wrap {
  height: 410px;
  padding: 8px;
}

.h5-app #view-kline .kline-tabs-card {
  border: 1px solid #202c43;
  background: #101827;
}

.h5-app #view-kline.market-pairs-open .kline-pair-drawer {
  width: var(--pair-drawer-width);
}

.h5-app #view-kline.market-pairs-open .kline-pair-drawer .card-head {
  display: flex;
  min-height: 44px;
  padding: 10px 12px;
  background: #101827;
}

.h5-app #view-kline.market-pairs-open #klineMarketList .market-row {
  min-height: 58px;
  padding: 10px 12px;
}

.h5-app #view-wallet {
  gap: 10px;
}

.wallet-page-title {
  display: none;
}

.h5-app #view-wallet .wallet-page-title {
  display: block;
  min-height: 38px;
  padding: 6px 0 2px;
  color: #edf3ff;
  font-size: 18px;
  font-weight: 800;
  line-height: 30px;
  text-align: center;
}

.h5-app #view-wallet .asset-hero {
  padding: 14px;
}

.h5-app #view-wallet .asset-total {
  min-height: 58px;
}

.h5-app #view-wallet .fund-account-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
  padding: 12px 8px;
  border-radius: 4px;
  background: #101827;
}

.h5-app #view-wallet .fund-account-actions button {
  min-width: 0;
  min-height: 48px;
  padding: 0 3px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  background: transparent;
  color: #edf3ff;
  box-shadow: none;
}

.h5-app #view-wallet .fund-account-actions img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.h5-app #view-wallet .fund-account-actions span {
  max-width: 100%;
  overflow: hidden;
  color: #edf3ff;
  font-size: 12px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.h5-app #view-wallet #walletFundCard .card-head {
  align-items: center;
  padding-top: 8px;
}

.h5-app #view-wallet .wallet-toolbar {
  margin-bottom: 6px;
}

.h5-app #view-wallet .wallet-search {
  margin-bottom: 4px;
}

.chain-mode-card {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid #263452;
  border-radius: 4px;
  background: #101827;
  box-shadow: var(--shadow);
}

.chain-mode-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chain-mode-card span {
  color: var(--muted);
  font-size: 12px;
}

.chain-mode-card strong {
  color: #edf3ff;
}

.chain-mode-card p {
  margin: 0;
  color: #8f9dba;
  line-height: 1.6;
  font-size: 12px;
}

.chain-mode-card.connected {
  border-color: rgba(0, 192, 135, .42);
}

.chain-mode-card.connected strong {
  color: #00c087;
}

.chain-mode-card.simulated {
  border-color: rgba(240, 185, 11, .38);
}

.chain-mode-card.simulated strong {
  color: #f0b90b;
}

.h5-app #view-orders {
  display: grid;
  gap: 12px;
}

.h5-app #view-orders .orders-list-card,
.h5-app #view-orders .order-detail-card {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.h5-app #view-orders .orders-list-card > .card-head {
  display: none;
}

.h5-app #view-orders .orders-list-card > .card-body,
.h5-app #view-orders .order-detail-card > .card-body {
  padding: 0;
}

.h5-app #view-orders.detail-active .orders-list-card {
  display: none;
}

.h5-app.main-tab-view #view-orders.detail-active {
  padding-bottom: 18px;
}

.h5-app #view-orders .hashrate-dashboard,
.h5-app #view-orders .hashrate-order-panel,
.h5-app #view-orders .orders-contract-panel,
.h5-app #view-orders .hashrate-detail-section {
  padding: 14px;
  border-color: #202c43;
  border-radius: 6px;
  background: #1e293b;
}

.h5-app #view-orders .hashrate-stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.h5-app #view-orders .hashrate-stat-item {
  min-height: 68px;
  padding: 10px;
}

.h5-app #view-orders .hashrate-stat-item.wide {
  grid-column: span 2;
}

.h5-app #view-orders .hashrate-order-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.h5-app #view-orders .hashrate-order-row div,
.h5-app #view-orders .hashrate-info-grid div,
.h5-app #view-orders .hardware-grid div,
.h5-app #view-orders .daily-revenue-grid div {
  min-height: 58px;
  padding: 9px 10px;
}

.h5-app #view-orders .hashrate-info-grid,
.h5-app #view-orders .hardware-grid,
.h5-app #view-orders .daily-revenue-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.h5-app #view-orders .hashrate-detail-section:nth-child(2) .hashrate-info-grid,
.h5-app #view-orders .hashrate-detail-section:nth-child(3) .daily-revenue-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.h5-app #view-orders .hashrate-order-item {
  padding: 13px;
}

.h5-app #view-orders .hashrate-order-bottom {
  align-items: flex-end;
}

.h5-app #view-orders .order-detail-card > .card-head {
  min-height: 46px;
  margin: -2px -2px 12px;
  padding: 6px 0;
  border: 0;
  background: #090f1c;
}

.h5-app #view-orders .hashrate-detail-top h2 {
  color: #f8fafc;
  font-size: 16px;
}

.h5-app #view-orders .detail-record-btn {
  border-color: transparent;
  color: #dbe5ff;
}

.h5-app #view-orders .hashrate-info-grid strong,
.h5-app #view-orders .hardware-grid strong,
.h5-app #view-orders .daily-revenue-grid strong {
  font-size: 13px;
}

.h5-app #view-orders .token-log-box {
  max-height: 230px;
}

@media (max-width: 380px) {
  .h5-app #view-market .order-depth-grid {
    grid-template-columns: minmax(0, 1fr) minmax(152px, .78fr);
  }

  .h5-app #view-market .mobile-depth-last {
    font-size: 20px;
  }

  .h5-app #view-orders .hashrate-order-row,
  .h5-app #view-orders .hashrate-info-grid,
  .h5-app #view-orders .hardware-grid,
  .h5-app #view-orders .daily-revenue-grid {
    grid-template-columns: 1fr;
  }
}

/* Platform 4 layout refinement */
.product-cover {
  position: relative;
  aspect-ratio: 1.55;
  overflow: hidden;
  border-radius: 4px;
  background: #0d1524;
}

.product-cover img,
.home-product-card img,
.product-detail-hero img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.product-cover .badge {
  position: absolute;
  top: 8px;
  right: 8px;
}

.product-info h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.product-price {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.product-price span,
.trade-total-row small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.home-product-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.home-product-card {
  grid-template-columns: 1fr;
  align-content: start;
  gap: 7px;
  min-height: 142px;
  padding: 8px;
}

.home-product-card img {
  aspect-ratio: 1.48;
  border-radius: 4px;
}

.home-product-card strong {
  min-height: 36px;
  font-size: 13px;
  line-height: 1.35;
}

.h5-app #view-products #productGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.h5-app #view-products .product-card {
  grid-template-columns: 1fr;
  grid-template-areas:
    "cover"
    "info"
    "price"
    "coupon"
    "actions";
  gap: 7px;
  padding: 8px;
  border-radius: 6px;
  background: #101827;
}

.h5-app #view-products .product-cover {
  grid-area: cover;
  align-self: stretch;
  min-height: 0;
  aspect-ratio: 1.18;
}

.h5-app #view-products .product-cover .badge {
  top: 6px;
  right: 6px;
  height: 20px;
  padding: 0 6px;
  font-size: 11px;
}

.h5-app #view-products .product-info {
  grid-area: info;
  min-width: 0;
}

.h5-app #view-products .product-info h3 {
  min-width: 0;
  margin: 0 0 3px;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.35;
}

.h5-app #view-products .product-info .muted {
  font-size: 11px;
}

.h5-app #view-products .product-price {
  grid-area: price;
  align-items: center;
}

.h5-app #view-products .product-price strong {
  color: #00c087;
  font-size: 13px;
}

.h5-app #view-products .product-price span {
  font-size: 10px;
  text-align: right;
}

.h5-app #view-products .product-coupon {
  grid-area: coupon;
  min-height: 26px;
  padding: 5px 7px;
}

.h5-app #view-products .product-shop-actions {
  grid-area: actions;
  grid-template-columns: 1fr;
  gap: 7px;
}

.h5-app #view-products .add-cart-btn {
  width: 100%;
  min-width: 0;
  padding: 0 10px;
}

.h5-app #view-products .qty-stepper {
  grid-template-columns: 28px minmax(0, 1fr) 28px;
}

.h5-app #view-products {
  padding-bottom: 94px;
}

.h5-app #view-products .cart-strip {
  position: fixed;
  left: max(calc((100vw - 430px) / 2), 0px);
  right: max(calc((100vw - 430px) / 2), 0px);
  bottom: calc(70px + env(safe-area-inset-bottom));
  z-index: 35;
  display: block;
  min-height: 0;
  margin: 0;
  padding: 0 12px;
  pointer-events: none;
}

.h5-app #view-products .cart-strip:not(.has-items) {
  position: static;
  padding: 0;
  pointer-events: auto;
}

.h5-app #view-products .cart-strip.has-items .cart-dock,
.h5-app #view-products .cart-strip.has-items .cart-items {
  pointer-events: auto;
}

.h5-app #view-products .cart-dock {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 7px;
  padding: 8px;
  border-color: rgba(240, 185, 11, .34);
  background: rgba(10, 18, 32, .98);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .42);
}

.h5-app #view-products .cart-dock #clearCartBtn {
  display: none;
}

.h5-app #view-products .cart-dock #checkoutCartBtn {
  min-height: 40px;
  padding: 0 12px;
  white-space: nowrap;
}

.h5-app #view-products .cart-basket {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
}

.h5-app #view-products .cart-basket::before {
  margin-top: 12px;
}

.h5-app #view-products .cart-basket::after {
  left: 12px;
  top: 9px;
}

.h5-app #view-products .cart-items {
  max-height: 108px;
  overflow: auto;
  margin-top: 6px;
  padding: 6px;
  border: 1px solid rgba(38, 52, 82, .92);
  border-radius: 7px;
  background: rgba(9, 15, 28, .96);
}

.h5-app #view-products .cart-line {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 7px 8px;
}

.h5-app #view-products .cart-line b {
  display: none;
}

.h5-app #view-products .cart-empty {
  display: none;
}

.h5-app .checkout-line {
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
}

.h5-app .checkout-line b {
  grid-column: 2;
  justify-self: start;
}

.h5-app .checkout-methods {
  grid-template-columns: 1fr;
}

.h5-app .checkout-pay-box img {
  justify-self: center;
  width: 156px;
  height: 156px;
}

.product-detail-hero {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: stretch;
}

.product-detail-image {
  min-width: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #0d1524;
}

.product-detail-image img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: block;
  object-fit: cover;
}

.product-detail-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 10px;
}

.product-detail-copy h2 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: clamp(20px, 5vw, 30px);
  line-height: 1.18;
}

.product-detail-copy p {
  margin: 0;
}

.product-detail-copy > strong {
  color: #00c087;
  font-size: 18px;
}

.product-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-detail-badges span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 4px;
  background: #121d30;
  color: #9fb0d2;
  font-size: 12px;
}

.h5-app .product-detail-card {
  padding: 0;
}

.h5-app .product-detail-hero {
  grid-template-columns: 1fr;
}

.h5-app .product-detail-image img {
  min-height: 260px;
  max-height: 348px;
}

.h5-app .product-detail-copy h2 {
  font-size: 24px;
}

.trade-side-block,
.leverage-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.trade-side-block button,
.leverage-options button {
  min-height: 34px;
  border: 1px solid #293653;
  border-radius: 4px;
  background: #121d30;
  color: #9fb0d2;
  box-shadow: none;
}

.trade-side-block button.active,
.leverage-options button.active {
  border-color: #5a7bef;
  background: rgba(90, 123, 239, .22);
  color: #edf3ff;
}

.trade-side-block button.good.active {
  border-color: rgba(0, 192, 135, .8);
  background: rgba(0, 192, 135, .18);
}

.trade-side-block button.bad.active {
  border-color: rgba(246, 70, 93, .8);
  background: rgba(246, 70, 93, .18);
}

.leverage-options {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.market-pair-head {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.market-pair-head h2 {
  margin: 0;
}

.market-pair-count {
  color: var(--muted);
  font-size: 11px;
}

.market-pair-body {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.market-pair-tools {
  display: grid;
  gap: 8px;
}

.market-pair-tools input {
  height: 34px;
  border-radius: 4px;
  background: #0d1524;
}

.market-pair-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #24314c;
  border-radius: 4px;
  background: #0d1524;
}

.market-pair-filters button {
  min-height: 32px;
  border-radius: 0;
  background: transparent;
  color: #8f9dba;
  box-shadow: none;
  font-size: 12px;
}

.market-pair-filters button.active {
  background: rgba(191, 95, 193, .18);
  color: #edf3ff;
}

.market-list-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(82px, .86fr) 32px;
  gap: 8px;
  padding: 5px 10px 7px;
  color: #7f8da8;
  font-size: 11px;
}

.pair-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(82px, .86fr) 32px;
  gap: 8px;
  align-items: center;
}

.market-pair-name {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.market-coin-badge {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(191, 95, 193, .35);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .18), transparent 34%), #1c2840;
  color: #f5f7ff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0;
}

.pair-list-row .market-symbol span {
  color: #7f8da8;
  font-size: 12px;
}

.market-pair-price {
  min-width: 0;
  display: grid;
  justify-items: end;
  gap: 2px;
}

.market-pair-price strong {
  overflow: hidden;
  max-width: 100%;
  color: #edf3ff;
  font-size: 13px;
  text-overflow: ellipsis;
}

.market-pair-price small {
  font-size: 12px;
}

.market-fav-toggle {
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #7f8da8;
  box-shadow: none;
  font-size: 18px;
  line-height: 1;
}

.market-fav-toggle.active {
  color: #bf5fc1;
}

.market-empty {
  padding: 20px 10px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.h5-app #view-market.market-pairs-open .market-list-head,
.h5-app #view-kline.market-pairs-open .market-list-head {
  display: none;
}

.h5-app #view-market.market-pairs-open .pair-list-row,
.h5-app #view-kline.market-pairs-open .pair-list-row {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  align-items: start;
  padding: 9px 8px;
}

.h5-app #view-market.market-pairs-open .market-pair-name,
.h5-app #view-kline.market-pairs-open .market-pair-name {
  gap: 7px;
  padding-right: 24px;
}

.h5-app #view-market.market-pairs-open .market-coin-badge,
.h5-app #view-kline.market-pairs-open .market-coin-badge {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
  font-size: 8px;
}

.h5-app #view-market.market-pairs-open .market-symbol,
.h5-app #view-kline.market-pairs-open .market-symbol {
  font-size: 13px;
  line-height: 1.1;
}

.h5-app #view-market.market-pairs-open .market-symbol span,
.h5-app #view-kline.market-pairs-open .market-symbol span {
  display: inline;
  font-size: 10px;
}

.h5-app #view-market.market-pairs-open .market-meta,
.h5-app #view-kline.market-pairs-open .market-meta {
  display: none;
}

.h5-app #view-market.market-pairs-open .market-pair-price,
.h5-app #view-kline.market-pairs-open .market-pair-price {
  justify-items: start;
  padding-left: 31px;
}

.h5-app #view-market.market-pairs-open .market-pair-price strong,
.h5-app #view-kline.market-pairs-open .market-pair-price strong {
  font-size: 12px;
}

.h5-app #view-market.market-pairs-open .market-pair-price small,
.h5-app #view-kline.market-pairs-open .market-pair-price small {
  font-size: 11px;
}

.h5-app #view-market.market-pairs-open .market-fav-toggle,
.h5-app #view-kline.market-pairs-open .market-fav-toggle {
  position: absolute;
  top: 7px;
  right: 5px;
  width: 24px;
  min-width: 24px;
  height: 24px;
  min-height: 24px;
  font-size: 15px;
}

.h5-app #view-market.market-pairs-open .market-pair-card,
.h5-app #view-kline.market-pairs-open .kline-pair-drawer {
  bottom: 96px;
  max-width: var(--pair-drawer-width);
}

.h5-app #view-market.market-pairs-open .pair-list-row,
.h5-app #view-kline.market-pairs-open .pair-list-row {
  min-height: 44px;
  padding: 8px 7px;
}

.h5-app #view-market.market-pairs-open .market-pair-price,
.h5-app #view-kline.market-pairs-open .market-pair-price {
  display: none;
}

.h5-app #view-market.market-pairs-open .market-symbol span,
.h5-app #view-kline.market-pairs-open .market-symbol span {
  display: block;
  margin-top: 2px;
}

.h5-app #view-market .pair-overlay,
.h5-app #view-kline .pair-overlay {
  background: rgba(0, 0, 0, .18);
}

.trade-ticket-body {
  gap: 8px;
}

.deposit-operate-panel {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.deposit-selected-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.deposit-selected-meta.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.deposit-selected-meta span {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #253552;
  border-radius: 4px;
  background: #0d1524;
  color: #dce7fb;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deposit-qr-card {
  display: grid;
  justify-items: center;
  width: 100%;
  max-width: 220px;
  padding: 9px;
  border-radius: 4px;
  background: #fff;
  color: #0f172a;
  text-align: center;
}

.deposit-qr-card strong {
  color: #0f172a;
  font-size: 13px;
}

.deposit-qr-card img {
  width: min(176px, 100%);
  height: auto;
  aspect-ratio: 1 / 1;
}

.deposit-qr-card span,
.deposit-qr-card small {
  color: #475569;
  line-height: 1.35;
}

.deposit-qr-card img.qr-error {
  display: none;
}

.deposit-qr-card .qr-fallback {
  max-width: 112px;
  color: #b91c1c;
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
}

.deposit-address-info {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.deposit-address-info > span {
  color: #8f9dba;
  font-size: 12px;
}

.deposit-address-info > small {
  color: #8f9dba;
  font-size: 12px;
  line-height: 1.55;
}

.deposit-flow-title {
  color: #edf3ff;
  font-size: 18px;
  font-weight: 900;
}

.deposit-network-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 8px;
}

.deposit-network-buttons button {
  min-height: 42px;
  border: 1px solid #263653;
  border-radius: 6px;
  background: #0d1524;
  color: #b8c6df;
  font-weight: 900;
}

.deposit-network-buttons button.active {
  border-color: rgba(35, 209, 139, .72);
  background: linear-gradient(135deg, rgba(35, 209, 139, .18), rgba(22, 163, 255, .14));
  color: #23d18b;
  box-shadow: inset 0 2px 0 #23d18b;
}

.deposit-address-copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.deposit-address-copy {
  max-width: 100%;
  min-height: 44px;
  justify-content: flex-start;
  padding: 9px 10px;
  border: 1px solid #263653;
  border-radius: 4px;
  background: #0d1524;
  color: #edf3ff;
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
  word-break: break-all;
  white-space: normal;
}

.deposit-address-copy-row .mini {
  min-width: 84px;
  min-height: 44px;
}

.deposit-address-info strong {
  padding: 10px;
  border-radius: 4px;
  background: #0d1524;
  color: #edf3ff;
  word-break: break-all;
}

.deposit-proof-panel {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #24314c;
  border-radius: 4px;
  background: #0d1524;
}

.deposit-proof-panel input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.deposit-upload-control {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid #31425f;
  border-radius: 4px;
  background: #101a2b;
  cursor: pointer;
}

.deposit-upload-control:hover {
  border-color: #5a7bef;
  background: #14213a;
}

.deposit-upload-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 4px;
  background: #1d2d4a;
  color: #dfe8ff;
  font-size: 22px;
  font-weight: 700;
}

.deposit-upload-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.deposit-upload-text strong,
.deposit-upload-text small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deposit-upload-text strong {
  color: #eef4ff;
  font-size: 13px;
}

.deposit-proof-panel small {
  color: #8f9dba;
  line-height: 1.55;
}

.deposit-proof-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.deposit-proof-actions button {
  min-width: 0;
}

.proof-thumb-link {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.proof-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.proof-name {
  display: inline-block;
  max-width: 120px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.withdraw-estimate-grid div {
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 10px;
  border-radius: 4px;
  background: #0d1524;
}

.withdraw-estimate-grid span {
  color: var(--muted);
  font-size: 12px;
}

.withdraw-estimate-grid strong {
  color: #edf3ff;
  font-size: 13px;
  word-break: break-word;
}

.wallet-transfer-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid #263452;
  border-radius: 4px;
  background: #0d1524;
}

.wallet-transfer-flow div:not(.wallet-transfer-arrow) {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.wallet-transfer-flow span {
  color: var(--muted);
  font-size: 12px;
}

.wallet-transfer-flow strong {
  overflow: hidden;
  color: #edf3ff;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-transfer-arrow {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: rgba(192, 91, 200, .18);
  color: #f05df2;
  font-weight: 800;
}

.invite-stat-grid div,
.invite-level-card {
  padding: 10px;
  border-radius: 4px;
  background: #0d1524;
}

.invite-stat-grid span,
.invite-level-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.invite-qrcode img {
  width: 96px;
  height: 96px;
  border-radius: 4px;
  background: #fff;
}

.invite-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.invite-level-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.invite-level-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.kyc-form-grid,
.kyc-upload-grid {
  display: grid;
  gap: 12px;
}

.kyc-upload-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kyc-upload-card {
  min-height: 148px;
  display: grid;
  cursor: pointer;
}

.kyc-upload-card input {
  display: none;
}

.kyc-upload-empty,
.kyc-upload-preview {
  min-height: 148px;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 10px;
  border: 1px dashed #334155;
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(90, 123, 239, .14), rgba(191, 95, 193, .08)),
    #0d1524;
  color: #edf3ff;
  text-align: center;
}

.kyc-upload-card:hover .kyc-upload-empty,
.kyc-upload-card:hover .kyc-upload-preview {
  border-color: rgba(191, 95, 193, .72);
}

.kyc-upload-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(191, 95, 193, .16);
  color: #bf5fc1;
}

.kyc-upload-icon svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.kyc-upload-empty span,
.kyc-upload-preview span {
  color: #edf3ff;
  font-weight: 700;
}

.kyc-upload-empty small,
.kyc-upload-preview small {
  min-height: 26px;
  display: inline-grid;
  place-items: center;
  padding: 0 10px;
  border-radius: 4px;
  background: rgba(191, 95, 193, .18);
  color: #e7b9ef;
  font-size: 12px;
}

.kyc-upload-preview img {
  width: 100%;
  height: 112px;
  object-fit: cover;
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .9), rgba(210, 221, 246, .78)),
    #dbe6ff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
}

.phone-input-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 8px;
}

.phone-input-row span {
  min-height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #293653;
  border-radius: 4px;
  background: #0d1524;
  color: #edf3ff;
}

.profile-info-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.profile-info-grid div {
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 8px;
  background: rgba(15, 23, 42, .42);
}

.profile-info-grid span {
  color: var(--muted);
  font-size: 12px;
}

.profile-info-grid strong {
  color: var(--text);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.position-card-list,
.contract-order-list {
  display: grid;
  gap: 10px;
}

body:not(.h5-body) #view-market .contract-order-list {
  grid-template-columns: 1fr;
}

.position-card,
.contract-order-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #293653;
  border-radius: 4px;
  background: #0d1524;
}

.position-card-head,
.contract-order-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.contract-order-top small {
  display: block;
  margin-top: 4px;
  color: #8f9dba;
  font-size: 11px;
}

.position-card-grid,
.contract-order-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.position-card-grid div,
.contract-order-grid div {
  padding: 8px;
  border-radius: 4px;
  background: #101827;
}

.position-card-grid span,
.contract-order-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.kyc-preview-links a {
  min-height: 82px;
  display: grid;
  justify-items: center;
  gap: 5px;
}

.kyc-thumb {
  width: 78px;
  height: 52px;
  object-fit: cover;
  border-radius: 4px;
}

.h5-app #view-market.market-pairs-open .market-pair-card,
.h5-app #view-kline.market-pairs-open .kline-pair-drawer {
  width: var(--pair-drawer-width);
  border-color: #263452;
  background: #101827;
}

.h5-app #view-market .pair-overlay,
.h5-app #view-kline .pair-overlay {
  left: calc(max(calc((100vw - 430px) / 2), 0px) + var(--pair-drawer-width));
}

.h5-app .market-pair-card .card-head,
.h5-app #view-kline.market-pairs-open .kline-pair-drawer .card-head {
  min-height: 50px;
  padding: 11px 12px;
  background: #101827;
}

.h5-app .market-pair-body {
  padding: 0 0 18px;
}

.h5-app .market-pair-tools {
  position: sticky;
  top: 50px;
  z-index: 1;
  padding: 10px 12px;
  border-bottom: 1px solid #202c43;
  background: #101827;
}

.h5-app .market-list.compact {
  max-height: none;
}

.h5-app .market-list-head {
  position: static;
  background: #101827;
}

.h5-app .pair-list-row {
  min-height: 62px;
  padding: 8px 10px;
  border-bottom: 1px solid #202c43;
}

.h5-app .pair-list-row.active {
  background: #17243a;
}

.h5-app #view-market .trade-ticket-card {
  padding-top: 0;
}

.h5-app #view-market .trade-ticket-card .card-head {
  display: flex;
}

.h5-app #view-market .trade-ticket-card .card-body {
  padding: 8px;
}

.h5-app #view-market .order-depth-grid {
  align-items: start !important;
}

.h5-app #view-market .trade-ticket-card {
  align-self: start;
}

.h5-app #view-market .trade-ticket-body {
  gap: 8px;
}

.h5-app #view-market .trade-ticket-card .form-row {
  gap: 5px;
}

.h5-app #view-market .trade-ticket-card .form-row label {
  font-size: 11px;
}

.h5-app #view-market .trade-ticket-card input,
.h5-app #view-market .trade-ticket-card select {
  min-height: 32px;
  height: 32px;
  padding: 0 8px;
}

.h5-app #view-market .trade-side-block {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid #24314c;
  border-radius: 4px;
  background: #0d1524;
}

.h5-app #view-market .trade-side-block button {
  min-height: 32px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #9fb0d2;
}

.h5-app #view-market .trade-side-block button.good.active {
  background: rgba(0, 192, 135, .22);
  color: #00c087;
}

.h5-app #view-market .trade-side-block button.bad.active {
  background: rgba(246, 70, 93, .2);
  color: #f6465d;
}

.h5-app #view-market #tradeBtn.good {
  background: #00c087;
  color: #02150f;
}

.h5-app #view-market #tradeBtn.bad {
  background: #f6465d;
  color: #fff;
}

@media (max-width: 640px) {
  .home-product-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .deposit-operate-panel,
  .kyc-upload-grid {
    grid-template-columns: 1fr;
  }

  .deposit-qr-card {
    max-width: none;
  }

  .deposit-proof-actions {
    grid-template-columns: 1fr;
  }

  .invite-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wallet-coin-setting-row {
    grid-template-columns: 1fr;
  }

  .wallet-coin-setting-head {
    display: none;
  }

  .invite-stat-grid div:last-child {
    grid-column: span 2;
  }

  .leverage-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Reference project alignment: compact dark H5 exchange home */
.h5-app.home-view .h5-main,
.h5-app.main-tab-view .h5-main {
  background: #080d18;
}

.h5-header {
  border-bottom: 1px solid rgba(32, 44, 67, .72);
}

.h5-header strong {
  color: #f3f7ff;
  letter-spacing: 0;
}

.h5-app.home-view #view-overview {
  gap: 10px;
}

.h5-app.home-view #homeSiteName {
  display: none !important;
}

.h5-app.home-view .home-carousel {
  min-height: 142px;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  background: url("/ref-img/bgb.png") center / cover no-repeat, #101827;
  box-shadow: none;
}

.h5-app.home-view .home-slide {
  min-height: 142px;
  padding: 22px 18px;
  background: linear-gradient(90deg, rgba(8, 13, 24, .84), rgba(8, 13, 24, .18) 66%, rgba(8, 13, 24, .04));
}

.h5-app.home-view .home-slide span {
  color: #f0b90b;
  font-size: 12px;
}

.h5-app.home-view .home-slide strong {
  max-width: 230px;
  font-size: 21px;
  line-height: 1.28;
}

.h5-app.home-view .home-slide small {
  max-width: 230px;
  color: rgba(237, 243, 255, .72);
}

.h5-app.home-view .home-notice-strip {
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 4px;
  background: #101827;
}

.h5-app.home-view .home-notice-strip > span {
  color: #f0b90b;
}

.h5-app.home-view .quick-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 8px 0 4px;
  border-radius: 4px;
  background: #101827;
}

.h5-app.home-view .quick-actions button {
  min-height: 64px;
  gap: 5px;
}

.h5-app.home-view .quick-actions img {
  width: 30px;
  height: 30px;
}

.h5-app.home-view .home-market-preview {
  padding: 0;
  border-radius: 4px;
  background: #101827;
  box-shadow: none;
}

.h5-app.home-view .home-market-item {
  min-height: 74px;
  padding: 10px 8px;
  border-right: 1px solid #202c43;
}

.h5-app.home-view .home-market-item strong {
  font-size: 13px;
}

.h5-app.home-view .home-market-item em {
  margin-top: 5px;
  color: #edf3ff;
  font-size: 15px;
}

.h5-app.home-view .home-market-item span {
  font-size: 12px;
}

.h5-app.home-view .home-section-head {
  min-height: 30px;
  margin-top: 2px;
}

.h5-app.home-view .home-section-head h2 {
  color: #edf3ff;
  font-size: 16px;
}

.h5-app.home-view .home-section-head button {
  min-height: 28px;
  color: #8f9dba;
}

.h5-app.home-view .home-product-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.h5-app.home-view .home-product-card {
  min-height: 148px;
  align-content: start;
  gap: 7px;
  padding: 10px;
  border: 1px solid #202c43;
  border-radius: 4px;
  background: #101827;
  box-shadow: none;
}

.h5-app.home-view .home-product-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.58;
  border-radius: 4px;
  object-fit: cover;
  background: #0b1220;
}

.h5-app.home-view .home-product-card strong {
  min-height: 34px;
  color: #edf3ff;
  font-size: 13px;
  line-height: 1.32;
}

.h5-app.home-view .home-product-card span {
  color: #8f9dba;
  font-size: 11px;
}

.h5-app.home-view .home-product-card em {
  color: #f0b90b;
  font-size: 15px;
}

.h5-app #view-wallet .asset-hero {
  background: url("/ref-img/bgb2.png") center / cover no-repeat, #101827;
  border: 0;
  box-shadow: none;
}

.h5-app #view-wallet .asset-owner-row b {
  color: #f0b90b;
}

.h5-app #view-wallet .fund-account-actions,
.h5-app #view-wallet #walletFundCard,
.h5-app #view-wallet .wallet-tabs,
.h5-app #view-wallet .wallet-search input {
  border-color: #202c43;
  background: #101827;
  box-shadow: none;
}

.h5-app #view-wallet .wallet-tabs button.active {
  color: #f0b90b;
}

.bottom-tabs {
  border-top: 1px solid #202c43;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .24);
}

.bottom-tabs button.active {
  color: #f0b90b;
}

/* Operational UI refinements */
.tabs {
  padding: 3px;
  border: 1px solid rgba(60, 92, 178, .24);
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fbff, #eef5ff);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .72);
}

.tabs button {
  min-width: 96px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #526070;
  font-weight: 700;
}

.tabs button.active {
  background: linear-gradient(135deg, #19c7a1, #3d78ff);
  color: #fff;
  box-shadow: 0 8px 18px rgba(61, 120, 255, .25);
}

.trade-mode-tabs,
#view-market .tabs {
  gap: 8px;
  padding: 5px;
  border-color: rgba(22, 103, 255, .22);
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fbff, #eef6ff);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .86), 0 10px 24px rgba(22, 103, 255, .08);
}

.trade-mode-tabs button,
#view-market .tabs button {
  min-height: 40px;
  border: 1px solid rgba(22, 103, 255, .08);
  border-radius: 6px;
  background: #ffffff;
  color: #3b4c63;
  box-shadow: none;
  font-size: 14px;
  font-weight: 700;
}

.trade-mode-tabs button.active,
#view-market .tabs button.active {
  border-color: transparent;
  background: linear-gradient(135deg, #16a3ff 0%, #23d18b 58%, #f0b90b 100%);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(22, 103, 255, .26);
}

.trade-mode-tabs button[data-mode="contract"].active,
#view-market .tabs button[data-mode="contract"].active {
  background: linear-gradient(135deg, #7c5cff 0%, #16a3ff 50%, #f0b90b 100%);
}

.limit-price-row.hidden {
  display: none !important;
}

.form-row small {
  color: var(--muted);
  font-size: 11px;
}

.trade-ticket-card .trade-ticket-body {
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(22, 103, 255, .12);
  background: linear-gradient(180deg, #ffffff, #f6f9ff);
}

.trade-side-block {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #dde7f6;
  background: #eef4ff;
}

.trade-side-block button {
  min-height: 40px;
  border: 0;
  border-radius: 0;
  color: #4b5b72;
  font-weight: 800;
}

.trade-side-block button.good.active {
  background: linear-gradient(135deg, #00c087, #16b66f);
  color: #ffffff;
}

.trade-side-block button.bad.active {
  background: linear-gradient(135deg, #f6465d, #f15887);
  color: #ffffff;
}

.trade-ticket-card .form-row {
  gap: 7px;
}

.trade-ticket-card .form-row label {
  color: #435168;
  font-weight: 700;
}

.trade-ticket-card input,
.trade-ticket-card select {
  border-color: #d8e2f1;
  background: #ffffff;
  color: #162033;
}

.trade-ticket-card .contract-margin-readonly {
  display: none !important;
}

.trade-ticket-card .percent-row button {
  border-color: #d8e2f1;
  background: #ffffff;
  color: #58687f;
}

.trade-ticket-card .percent-row button.active {
  border-color: #16a3ff;
  background: rgba(22, 163, 255, .12);
  color: #0b73c8;
}

.leverage-options button.active {
  border-color: rgba(240, 185, 11, .75);
  background: rgba(240, 185, 11, .18);
  color: #f7c94b;
}

#tradeBtn.good {
  background: #00c087;
  color: #02150f;
}

#tradeBtn.bad {
  background: #f6465d;
  color: #ffffff;
}

.h5-app #view-kline.page-view {
  padding: 0 0 88px;
}

.h5-app .kline-screen {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.h5-app .kline-topbar {
  min-height: 42px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  color: #edf3ff;
}

.h5-app .kline-symbol-main {
  justify-self: center;
  min-width: 0;
  max-width: 220px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 8px;
  background: transparent;
  color: #edf3ff;
  box-shadow: none;
  font-size: 18px;
  font-weight: 800;
}

.h5-app .kline-symbol-main span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.h5-app .kline-symbol-main small {
  color: #8d9ab8;
  font-size: 14px;
}

.h5-app .kline-top-actions {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}

.h5-app .kline-tool-btn,
.h5-app .kline-side-toolbar button {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #24314c;
  border-radius: 4px;
  background: #111b2c;
  color: #a9b5ce;
  box-shadow: none;
  font-size: 15px;
  line-height: 1;
}

.h5-app .kline-tool-btn.active,
.h5-app .kline-side-toolbar button.active {
  border-color: rgba(191, 95, 193, .72);
  color: #f3c8f4;
  background: rgba(191, 95, 193, .16);
}

.h5-app #view-kline .kline-summary {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin: 0;
  padding: 10px 0 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.h5-app #view-kline .kline-summary .trade-summary-left {
  display: grid;
  grid-template-columns: minmax(0, auto) auto;
  justify-content: start;
  align-items: baseline;
}

.h5-app #view-kline .kline-summary .kline-pair-btn {
  display: none;
}

.h5-app #view-kline .kline-summary strong {
  color: #edf3ff;
  font-size: 25px;
  line-height: 1;
}

.h5-app #view-kline .kline-summary .trade-summary-stats {
  min-width: 118px;
  display: grid;
  gap: 2px;
  font-size: 11px;
}

.h5-app #view-kline .kline-chart-card {
  overflow: hidden;
  border: 1px solid #202c43;
  border-radius: 4px;
  background: #080d18;
}

.h5-app #view-kline .kline-chart-tools {
  display: grid;
  gap: 0;
  border-bottom: 1px solid #202c43;
  background: #0b1322;
}

.h5-app #view-kline .kline-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 4px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(135deg, rgba(240, 185, 11, .12), rgba(22, 103, 255, .12)), #101827;
  box-shadow: none;
}

.h5-app #view-kline .kline-mode-tabs button {
  min-width: 0;
  min-height: 34px;
  border-radius: 4px;
  color: #8f9dba;
  border: 1px solid rgba(255, 255, 255, .08);
  background: #0b1322;
  box-shadow: none;
  font-size: 13px;
}

.h5-app #view-kline .kline-mode-tabs button.active {
  color: #fff;
  background: linear-gradient(135deg, #f0b90b, #16a3ff 48%, #19c7a1);
  box-shadow: 0 8px 18px rgba(0, 192, 135, .15);
}

.h5-app #view-kline .period-tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(50px, 1fr);
  gap: 0;
  overflow-x: auto;
  padding: 0 2px;
  border: 0;
  background: #0b1322;
}

.h5-app #view-kline .period-tabs button {
  min-width: 50px;
  min-height: 38px;
  border-radius: 0;
  color: #8d9ab8;
  background: transparent;
  box-shadow: none;
  font-size: 12px;
}

.h5-app #view-kline .period-tabs button.active {
  color: #f3c8f4;
  background: transparent;
  box-shadow: inset 0 -2px 0 #bf5fc1;
}

.h5-app #view-kline .kline-chart-stage {
  position: relative;
  min-height: 396px;
  background: #080d18;
}

.h5-app #view-kline .chart-wrap {
  height: 396px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #080d18;
}

.h5-app #view-kline .chart-wrap canvas {
  width: 100%;
  height: 100%;
  touch-action: none;
  user-select: none;
}

.h5-app .kline-side-toolbar {
  position: absolute;
  top: 10px;
  left: 8px;
  display: grid;
  gap: 6px;
}

.h5-app .kline-bottom-pairs {
  display: grid;
  gap: 8px;
  overflow: hidden;
  border: 1px solid #202c43;
  border-radius: 4px;
  background: #0b1322;
}

.h5-app .kline-bottom-strip-head {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  color: #667797;
  font-size: 11px;
}

.h5-app .kline-bottom-strip-head button {
  min-height: 24px;
  padding: 0;
  background: transparent;
  color: #9eabc5;
  box-shadow: none;
  font-size: 11px;
}

.h5-app .kline-bottom-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(112px, 34%);
  gap: 8px;
  overflow-x: auto;
  padding: 0 10px 10px;
  scroll-snap-type: x proximity;
}

.h5-app .kline-bottom-strip::-webkit-scrollbar {
  display: none;
}

.h5-app .kline-bottom-pair {
  min-width: 0;
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 10px;
  border: 1px solid #17243a;
  border-radius: 4px;
  background: #101827;
  color: #667797;
  box-shadow: none;
  text-align: left;
  scroll-snap-align: start;
}

.h5-app .kline-bottom-pair.active {
  border-color: rgba(191, 95, 193, .64);
  background: linear-gradient(180deg, rgba(191, 95, 193, .16), rgba(16, 24, 39, .96));
  box-shadow: inset 0 2px 0 #bf5fc1;
}

.h5-app .kline-bottom-pair span,
.h5-app .kline-bottom-pair strong,
.h5-app .kline-bottom-pair em {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
}

.h5-app .kline-bottom-pair span {
  color: #edf3ff;
  font-size: 12px;
  font-weight: 800;
}

.h5-app .kline-bottom-pair small {
  color: #7282a0;
  font-size: 11px;
  font-weight: 700;
}

.h5-app .kline-bottom-pair strong {
  justify-self: start;
  color: #edf3ff;
  font-size: 13px;
}

.h5-app .kline-bottom-pair em {
  justify-self: start;
  font-size: 11px;
}

.h5-app #view-kline.kline-focus-mode .kline-summary,
.h5-app #view-kline.kline-focus-mode .kline-bottom-pairs,
.h5-app #view-kline.kline-focus-mode .kline-tabs-card {
  display: none;
}

.h5-app #view-kline.kline-focus-mode .kline-chart-stage,
.h5-app #view-kline.kline-focus-mode .chart-wrap {
  min-height: calc(100svh - 236px);
  height: calc(100svh - 236px);
}

.h5-app #view-kline .kline-tabs-card {
  overflow: hidden;
  border: 1px solid #202c43;
  border-radius: 4px;
  background: #101827;
}

.h5-app #view-kline .kline-info-tabs {
  background: #0b1322;
}

.h5-app #view-kline .trade-bottom-actions {
  bottom: 10px;
  z-index: 12;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 8px 0 0;
  background: linear-gradient(180deg, rgba(9, 15, 28, 0), #090f1c 30%);
}

.h5-app #view-market.market-pairs-open .market-pair-card,
.h5-app #view-kline.market-pairs-open .kline-pair-drawer {
  width: var(--pair-drawer-width);
}

.h5-app #view-market .pair-overlay,
.h5-app #view-kline .pair-overlay {
  left: calc(max(calc((100vw - 430px) / 2), 0px) + var(--pair-drawer-width));
}

.app-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 18px;
}

.market-coin-badge.image {
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.market-coin-badge.image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.coin-icon-preview {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  background: #eef2ff;
  color: #1d4ed8;
  font-weight: 800;
}

.coin-icon-preview.image {
  padding: 0;
  width: 34px;
  overflow: hidden;
}

.coin-icon-preview.image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-upload-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.admin-upload-file {
  display: none;
}

.admin-upload-preview {
  min-width: 42px;
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-upload-preview img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--line);
  object-fit: cover;
  background: #fff;
}

.admin-upload-preview span {
  color: var(--muted);
  font-size: 12px;
}

.admin-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-subtabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #f4f7fb;
  color: #526070;
  box-shadow: none;
  font-weight: 700;
}

.subtab-count {
  min-width: 22px;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, .08);
  color: #334155;
  font-size: 12px;
  line-height: 1;
}

.admin-subtabs button.active {
  border-color: rgba(22, 103, 255, .28);
  background: linear-gradient(135deg, #1667ff, #18b38b);
  color: #fff;
}

.admin-subtabs button.active .subtab-count {
  background: rgba(255, 255, 255, .22);
  color: #fff;
}

.admin-modal-panel {
  width: min(920px, 100%);
}

.admin-modal-form .grid {
  gap: 12px;
}

.admin-user-panel.hidden,
.admin-order-panel.hidden,
.admin-wallet-panel.hidden,
.admin-log-panel.hidden,
.wallet-review-panel.hidden,
.wallet-reconcile-panel.hidden,
.wallet-log-panel.hidden {
  display: none !important;
}

.app-modal-mask {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.45);
}

.app-modal-panel {
  position: relative;
  width: min(560px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
}

.app-modal-head,
.app-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #e5e7eb;
}

.app-modal-foot {
  justify-content: flex-end;
  border-top: 1px solid #e5e7eb;
  border-bottom: 0;
}

.app-modal-head strong {
  font-size: 17px;
  color: #0f172a;
}

.app-modal-close {
  min-width: 36px;
}

.app-modal-body {
  padding: 18px;
}

.checkout-line-list,
.contract-detail-grid {
  display: grid;
  gap: 10px;
}

.checkout-line,
.checkout-total {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
}

.checkout-line img {
  width: 54px;
  height: 54px;
  border-radius: 6px;
  object-fit: cover;
  background: #e2e8f0;
}

.checkout-line span,
.checkout-total span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
}

.checkout-total {
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 12px 0;
  background: #fff7ed;
  border-color: #fed7aa;
}

.checkout-total strong {
  color: #ea580c;
  font-size: 18px;
}

.checkout-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.checkout-methods button {
  min-height: 72px;
  text-align: left;
  border: 1px solid #dbe3ef;
  background: #fff;
  color: #0f172a;
}

.checkout-methods button.active {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.checkout-methods span,
.checkout-pay-box small {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 12px;
}

.checkout-pay-result {
  margin-top: 14px;
}

.checkout-pay-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
}

.checkout-pay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checkout-pay-head span {
  color: #64748b;
  font-size: 12px;
}

.checkout-pay-head strong {
  color: #1d4ed8;
  font-size: 20px;
}

.checkout-pay-box img {
  width: 132px;
  height: 132px;
  border-radius: 8px;
  background: #fff;
}

.checkout-address-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #fff;
}

.checkout-address-row button {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: left;
}

.checkout-address-row small {
  margin: 0;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 800;
}

.checkout-proof-box {
  display: grid;
  gap: 10px;
  margin-top: 6px;
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
}

.checkout-proof-box input[type="file"] {
  height: auto;
  min-height: 42px;
  padding: 9px 10px;
}

.checkout-proof-box button {
  width: 100%;
}

.checkout-bank-lines {
  display: grid;
  gap: 8px;
}

.checkout-bank-lines div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #fff;
}

.checkout-bank-lines span {
  color: #64748b;
  font-size: 12px;
}

.checkout-bank-lines b,
.checkout-bank-lines button {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  text-align: left;
}

.link-like {
  border: 0;
  padding: 0;
  background: transparent;
  color: #2563eb;
  text-align: left;
  word-break: break-all;
  cursor: pointer;
}

.pay-success {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 8px;
  background: #ecfdf5;
  color: #065f46;
}

.pay-success.pay-failed {
  background: #fef2f2;
  color: #991b1b;
}

.deposit-address-copy {
  width: 100%;
  padding: 10px 12px;
  font-weight: 700;
}

.contract-order-actions {
  display: grid;
  grid-template-columns: auto minmax(96px, 1fr) auto auto auto;
  gap: 8px;
  margin-top: 12px;
}

.contract-order-actions input {
  min-width: 0;
}

.contract-order-actions button {
  min-height: 36px;
  padding-inline: 10px;
  white-space: nowrap;
}

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

.contract-detail-head strong {
  font-size: 18px;
}

.contract-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contract-detail-grid div {
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
}

.contract-detail-grid span {
  display: block;
  margin-bottom: 6px;
  color: #64748b;
  font-size: 12px;
}

/* Production auth surface */
.auth-page {
  min-height: 100vh;
  padding: 28px;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(9, 15, 28, .84), rgba(9, 15, 28, .96)),
    url("/ref-img/bgb5.png") center / cover no-repeat,
    #090f1c;
}

.auth-shell {
  width: min(1040px, 100%);
  min-height: 620px;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 440px);
  gap: 0;
  border: 1px solid rgba(159, 166, 181, .18);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(8, 15, 27, .88);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .48);
}

.auth-brand-panel,
.auth-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.auth-brand-panel {
  min-height: 620px;
  padding: 34px;
  background:
    linear-gradient(140deg, rgba(90, 123, 239, .22), transparent 48%),
    linear-gradient(28deg, rgba(0, 192, 135, .14), transparent 42%),
    rgba(13, 21, 36, .54);
}

.auth-brand {
  min-height: 44px;
  font-size: 16px;
}

.auth-brand .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f0b90b, #bf5fc1);
  color: #fff;
}

.auth-kicker {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(240, 185, 11, .35);
  border-radius: 4px;
  color: #f0b90b;
  font-size: 12px;
  font-weight: 800;
}

.auth-copy {
  display: grid;
  gap: 14px;
  align-self: center;
}

.auth-copy h1,
.auth-brand-panel h1 {
  max-width: 520px;
  font-size: 42px;
  letter-spacing: 0;
}

.auth-copy p {
  max-width: 420px;
  color: #a7b4cc;
  font-size: 15px;
}

.auth-market-strip {
  min-height: 58px;
  padding: 0 14px;
  border-color: rgba(159, 166, 181, .16);
  background: rgba(9, 15, 28, .72);
}

.auth-market-strip.auth-market-live {
  grid-template-columns: minmax(0, 1.2fr) auto auto auto;
}

.auth-market-strip strong {
  font-size: 18px;
}

.auth-market-strip em {
  min-width: 42px;
  color: #7f8da8;
  font-size: 11px;
  font-style: normal;
  text-align: right;
  text-transform: uppercase;
}

.auth-market-strip b.down {
  color: #f6465d;
}

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

.auth-proof-grid div {
  display: grid;
  gap: 5px;
  min-height: 74px;
  padding: 12px;
  border: 1px solid rgba(159, 166, 181, .14);
  border-radius: 6px;
  background: rgba(9, 15, 28, .58);
}

.auth-proof-grid strong {
  color: #edf3ff;
  font-size: 13px;
}

.auth-proof-grid span {
  color: #7f8da8;
  font-size: 12px;
  line-height: 1.45;
}

.auth-card {
  align-content: center;
  gap: 16px;
  padding: 34px;
  background: rgba(9, 15, 28, .92);
}

.auth-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-card-head span {
  color: #7f8da8;
  font-size: 12px;
}

.auth-card-head strong {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 4px;
  background: rgba(0, 192, 135, .12);
  color: #00c087;
  font-size: 12px;
}

.auth-tabs {
  gap: 4px;
  padding: 4px;
  border-color: rgba(159, 166, 181, .16);
  border-radius: 8px;
  background: #111827;
}

.auth-tabs button {
  height: 40px;
  min-height: 40px;
  border-radius: 6px;
  font-weight: 800;
}

.auth-tabs button.active {
  background: linear-gradient(135deg, #f0b90b, #bf5fc1);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(191, 95, 193, .28);
}

.auth-panel .form-grid {
  gap: 12px;
}

.auth-panel {
  min-height: 0;
  max-height: min(48vh, 440px);
  overflow: auto;
  padding-right: 2px;
}

.auth-panel::-webkit-scrollbar {
  width: 4px;
}

.auth-panel::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(159, 166, 181, .28);
}

.auth-card .form-row {
  gap: 7px;
}

.auth-card .form-row label {
  color: #c6d1e4;
  font-size: 12px;
}

.auth-card input {
  height: 44px;
  border-color: rgba(159, 166, 181, .2);
  border-radius: 6px;
  background: #0d1524;
}

.auth-card input::placeholder {
  color: #56647a;
}

.auth-card #loginBtn,
.auth-card #registerSubmitBtn,
.auth-card #forgotBtn {
  min-height: 44px;
  border-radius: 6px;
  font-weight: 900;
}

.auth-safe-note {
  padding-top: 2px;
  color: #7f8da8;
  font-size: 12px;
  line-height: 1.55;
}

.mini {
  min-height: 30px;
  padding: 6px 9px;
  font-size: 12px;
}

@media (max-width: 640px) {
  .auth-page {
    padding: 16px;
    align-items: start;
  }

  .auth-shell {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .auth-brand-panel {
    min-height: 210px;
    padding: 20px;
  }

  .auth-brand-panel h1 {
    font-size: 23px;
  }

  .auth-card {
    padding: 18px;
  }

  .app-modal {
    align-items: end;
    padding: 0;
  }

  .app-modal-panel {
    width: 100%;
    max-height: 88vh;
    border-radius: 8px 8px 0 0;
  }

  .checkout-methods,
  .contract-detail-grid,
  .contract-order-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .auth-page {
    min-height: 100svh;
    align-items: stretch;
    padding: 0;
    background:
      linear-gradient(180deg, rgba(9, 15, 28, .74), rgba(9, 15, 28, .98)),
      url("/ref-img/bgb4.png") center top / cover no-repeat,
      #090f1c;
  }

  .auth-shell {
    width: 100%;
    min-height: 100svh;
    grid-template-columns: 1fr;
    border: 0;
    border-radius: 0;
  }

  .auth-brand-panel {
    min-height: 275px;
    padding: 22px 18px 16px;
  }

  .auth-copy {
    gap: 9px;
  }

  .auth-copy h1,
  .auth-brand-panel h1 {
    font-size: 28px;
  }

  .auth-copy p {
    font-size: 13px;
  }

  .auth-market-strip {
    min-height: 48px;
  }

  .auth-proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-proof-grid div {
    min-height: 62px;
    padding: 9px;
  }

  .auth-card {
    align-content: start;
    padding: 20px 18px 24px;
    border-top: 1px solid rgba(159, 166, 181, .14);
  }

  .auth-panel {
    max-height: none;
    overflow: visible;
  }

.auth-tabs button {
    min-height: 38px;
    height: 38px;
    font-size: 13px;
  }
}

/* Final trading UX pass: compact pair drawer and simplified order ticket. */
.h5-body {
  --pair-drawer-width: clamp(118px, 32vw, 136px);
}

@media (max-width: 380px) {
  .h5-body {
    --pair-drawer-width: 118px;
  }
}

.h5-app #view-market.market-pairs-open .market-pair-card,
.h5-app #view-kline.market-pairs-open .kline-pair-drawer {
  width: var(--pair-drawer-width) !important;
  max-width: var(--pair-drawer-width) !important;
  top: 54px;
  bottom: 78px;
  border-radius: 0 7px 7px 0;
}

.h5-app #view-market .pair-overlay,
.h5-app #view-kline .pair-overlay {
  left: calc(max(calc((100vw - 430px) / 2), 0px) + var(--pair-drawer-width)) !important;
  background: rgba(0, 0, 0, .1) !important;
}

.h5-app #view-market.market-pairs-open .market-pair-card .card-head,
.h5-app #view-kline.market-pairs-open .kline-pair-drawer .card-head {
  min-height: 44px;
  padding: 10px;
}

.h5-app #view-market.market-pairs-open .market-pair-head h2,
.h5-app #view-kline.market-pairs-open .market-pair-head h2 {
  font-size: 13px;
}

.h5-app #view-market.market-pairs-open .market-pair-count,
.h5-app #view-kline.market-pairs-open .market-pair-count,
.h5-app #view-market.market-pairs-open .market-pair-card .badge,
.h5-app #view-kline.market-pairs-open .kline-pair-drawer .badge {
  display: none;
}

.h5-app #view-market.market-pairs-open .market-pair-tools,
.h5-app #view-kline.market-pairs-open .market-pair-tools {
  top: 44px;
  padding: 8px 10px;
}

.h5-app #view-market.market-pairs-open .market-pair-tools input,
.h5-app #view-kline.market-pairs-open .market-pair-tools input {
  height: 32px;
  padding: 0 8px;
  font-size: 12px;
}

.h5-app #view-market.market-pairs-open .market-pair-filters button,
.h5-app #view-kline.market-pairs-open .market-pair-filters button {
  min-height: 28px;
  font-size: 11px;
  white-space: nowrap;
}

.h5-app #view-market.market-pairs-open .pair-list-row,
.h5-app #view-kline.market-pairs-open .pair-list-row {
  min-height: 48px;
  padding: 8px 9px;
}

.h5-app #view-market.market-pairs-open .market-pair-name,
.h5-app #view-kline.market-pairs-open .market-pair-name {
  gap: 8px;
  padding-right: 24px;
}

.h5-app #view-market.market-pairs-open .market-coin-badge,
.h5-app #view-kline.market-pairs-open .market-coin-badge {
  width: 26px;
  height: 26px;
  flex-basis: 26px;
  font-size: 8px;
}

.h5-app #view-market.market-pairs-open .market-symbol,
.h5-app #view-kline.market-pairs-open .market-symbol {
  font-size: 13px;
}

.h5-app #view-market.market-pairs-open .market-symbol span,
.h5-app #view-kline.market-pairs-open .market-symbol span {
  font-size: 10px;
}

.trade-ticket-card .trade-ticket-body {
  grid-template-columns: minmax(0, 1fr);
}

.trade-ticket-card #tradeBtn {
  min-height: 44px;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 900;
}

.trade-ticket-card .form-row small {
  justify-self: end;
  margin-top: -4px;
  color: #6b7a92;
  font-weight: 700;
}

.trade-ticket-card .percent-row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.trade-ticket-card .percent-row button {
  min-height: 34px;
  padding: 0 4px;
  font-size: 12px;
  font-weight: 800;
}

.h5-app #view-market .trade-ticket-card .card-body {
  padding: 9px;
}

.h5-app #view-market .trade-ticket-card select,
.h5-app #view-market .trade-ticket-card input {
  font-size: 16px;
}

/* Final K-line pass: compact exchange-like tools and bottom ticker strip. */
.h5-app .kline-top-actions {
  gap: 4px;
}

.h5-app .kline-tool-btn {
  width: 31px;
  min-width: 31px;
  height: 31px;
  min-height: 31px;
  border-color: #263653;
  background: linear-gradient(180deg, #17243a, #101827);
  color: #d8e2f8;
  font-size: 14px;
}

.h5-app .kline-tool-btn.active,
.h5-app .kline-tool-btn:hover {
  border-color: rgba(22, 163, 255, .62);
  background: linear-gradient(135deg, rgba(22, 163, 255, .24), rgba(35, 209, 139, .14));
  color: #ffffff;
}

.h5-app #view-kline .kline-chart-stage {
  min-height: min(396px, calc(100svh - 448px));
}

.h5-app #view-kline .chart-wrap {
  height: min(396px, calc(100svh - 448px));
  min-height: 318px;
}

.h5-app .kline-bottom-pairs {
  gap: 0;
  border: 0;
  background: transparent;
}

.h5-app .kline-bottom-strip-head {
  display: none;
}

.h5-app .kline-bottom-strip {
  grid-auto-columns: minmax(82px, 23%);
  gap: 6px;
  padding: 1px 0 4px;
}

.h5-app .kline-bottom-pair {
  height: 56px;
  min-height: 56px;
  max-height: 56px;
  gap: 1px;
  padding: 6px 7px;
  border-color: #202c43;
  background: linear-gradient(180deg, #101827, #0d1524);
  overflow: hidden;
}

.h5-app .kline-bottom-pair.active {
  border-color: rgba(35, 209, 139, .56);
  background: linear-gradient(180deg, rgba(35, 209, 139, .16), #101827);
  box-shadow: inset 0 2px 0 #23d18b;
}

.h5-app .kline-bottom-pair span {
  font-size: 11px;
}

.h5-app .kline-bottom-pair small {
  display: inline;
  margin: 0 0 0 1px;
  font-size: 9px;
}

.h5-app .kline-bottom-pair strong {
  font-size: 11px;
}

.h5-app .kline-bottom-pair em {
  font-size: 10px;
}

.h5-app .kline-bottom-more {
  justify-items: center;
  align-content: center;
  text-align: center;
  color: #9fb2d8;
  font-weight: 800;
}

html {
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
}

@media (max-width: 900px) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* 2026062141 trading refinement */
#view-market .tabs,
.trade-mode-tabs {
  border: 1px solid rgba(255, 255, 255, .12);
  background:
    linear-gradient(135deg, rgba(240, 185, 11, .2), rgba(22, 163, 255, .2) 45%, rgba(35, 209, 139, .18)),
    #111b2c;
}

#view-market .tabs button,
.trade-mode-tabs button {
  color: #d6e1f6;
  background: rgba(9, 15, 28, .72);
  border-color: rgba(255, 255, 255, .08);
}

#view-market .tabs button[data-mode="spot"].active,
.trade-mode-tabs button[data-mode="spot"].active {
  background: linear-gradient(135deg, #f0b90b, #16a3ff 46%, #23d18b);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(22, 163, 255, .22);
}

#view-market .tabs button[data-mode="contract"].active,
.trade-mode-tabs button[data-mode="contract"].active {
  background: linear-gradient(135deg, #7c5cff, #16a3ff 52%, #f0b90b);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(124, 92, 255, .24);
}

.trade-ticket-card .trade-ticket-body {
  border-color: rgba(35, 209, 139, .18);
  background:
    linear-gradient(180deg, rgba(17, 27, 44, .98), rgba(13, 21, 36, .98)),
    #101827;
}

.trade-ticket-card .form-row label {
  color: #93a5c4;
}

.trade-ticket-card input,
.trade-ticket-card select {
  border-color: #293653;
  background: #0b1322;
  color: #edf3ff;
}

.trade-ticket-card .form-row small {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-self: end;
  padding: 0 8px;
  border-radius: 4px;
  background: rgba(240, 185, 11, .14);
  color: #f0b90b;
}

.trade-ticket-card .percent-row button {
  border-color: #253653;
  background: #111b2c;
  color: #a9b8d4;
}

.trade-ticket-card .percent-row button.active {
  border-color: rgba(35, 209, 139, .7);
  background: rgba(35, 209, 139, .16);
  color: #23d18b;
}

.trade-ticket-card #tradeBtn.good {
  background: linear-gradient(135deg, #00c087, #23d18b);
  color: #04140f;
}

.trade-ticket-card #tradeBtn.bad {
  background: linear-gradient(135deg, #f6465d, #ff7a45);
  color: #ffffff;
}

.h5-app #view-market.market-pairs-open .market-pair-card,
.h5-app #view-kline.market-pairs-open .kline-pair-drawer {
  width: var(--pair-drawer-width) !important;
  max-width: var(--pair-drawer-width) !important;
}

.h5-app #view-market.market-pairs-open .market-symbol,
.h5-app #view-kline.market-pairs-open .market-symbol {
  font-size: 12px;
}

.h5-app #view-market.market-pairs-open .market-coin-badge,
.h5-app #view-kline.market-pairs-open .market-coin-badge {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
}

/* 2026062149 auth entrance: reference app style, compact form first. */
.auth-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(8, 14, 26, .72), rgba(8, 14, 26, .9)),
    url("/ref-img/bgb5.png") center / cover no-repeat,
    #080e1a;
}

.auth-shell {
  width: min(900px, 100%);
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(360px, 400px);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 8px;
  background: rgba(10, 17, 30, .92);
  box-shadow: 0 24px 68px rgba(0, 0, 0, .38);
}

.auth-brand-panel {
  min-height: 560px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  padding: 32px;
  background: linear-gradient(145deg, rgba(240, 185, 11, .16), transparent 45%), rgba(12, 20, 36, .62);
}

.auth-brand {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
}

.auth-brand .brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: #f0b90b;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
}

.auth-copy {
  align-self: center;
  display: grid;
  gap: 10px;
}

.auth-kicker {
  width: fit-content;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 4px;
  background: rgba(240, 185, 11, .14);
  color: #f0b90b;
  font-size: 12px;
  font-weight: 900;
}

.auth-copy h1,
.auth-brand-panel h1 {
  margin: 0;
  color: #fff;
  font-size: 34px;
  line-height: 1.16;
  letter-spacing: 0;
}

.auth-copy p {
  max-width: 360px;
  margin: 0;
  color: #a9b5c9;
  font-size: 14px;
  line-height: 1.7;
}

.auth-market-strip {
  min-height: 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 6px;
  background: rgba(9, 15, 28, .68);
}

.auth-market-strip span,
.auth-market-strip strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-market-strip span {
  color: #9fb0ca;
  font-size: 12px;
  font-weight: 800;
}

.auth-market-strip strong {
  color: #fff;
  font-size: 17px;
}

.auth-market-strip b {
  color: #16c784;
  font-size: 12px;
}

.auth-market-strip b.down {
  color: #ea3943;
}

.auth-proof-grid {
  display: none;
}

.auth-card {
  display: grid;
  align-content: center;
  gap: 15px;
  padding: 34px 30px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.auth-card-head {
  display: none;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #edf0f4;
  border-radius: 0;
  background: transparent;
}

.auth-tabs button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #7b8797;
  font-size: 15px;
  font-weight: 900;
  position: relative;
}

.auth-tabs button.active {
  background: transparent;
  color: #111827;
  box-shadow: none;
}

.auth-tabs button.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: #f05319;
  transform: translateX(-50%);
}

.auth-panel {
  min-height: 0;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.auth-panel .form-grid {
  display: grid;
  gap: 15px;
}

.auth-method-head {
  display: grid;
  gap: 4px;
}

.auth-method-title {
  min-height: 26px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
}

.auth-method-icon {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(240, 83, 25, .1);
  color: #f05319;
  font-size: 13px;
}

.auth-method-head p {
  margin: 0;
  color: #8b96a7;
  font-size: 12px;
  line-height: 1.45;
}

.auth-method-label {
  display: none;
}

.auth-method-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.auth-method-tabs button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #e6eaf0;
  border-radius: 6px;
  background: #f8fafc;
  color: #5f6b7a;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.auth-method-tabs button.active {
  border-color: rgba(240, 83, 25, .42);
  background: rgba(240, 83, 25, .09);
  color: #f05319;
  box-shadow: none;
}

.auth-card .form-row {
  display: grid;
  gap: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid #edf0f4;
}

.auth-card .form-row label {
  color: #172033;
  font-size: 13px;
  font-weight: 900;
}

.required-dot {
  margin-left: 3px;
  color: #f05319;
  font-style: normal;
}

.auth-card input {
  width: 100%;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111827;
  font-size: 15px;
}

.auth-card input::placeholder {
  color: #a3adbb;
}

.auth-card input:focus {
  border-color: transparent;
  box-shadow: none;
}

.auth-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 8px;
  align-items: center;
}

.auth-card .auth-code-btn.secondary {
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid rgba(240, 83, 25, .3);
  border-radius: 6px;
  background: rgba(240, 83, 25, .08);
  color: #f05319;
  font-size: 12px;
  font-weight: 900;
}

.auth-card .auth-code-btn.secondary:disabled {
  border-color: #e6eaf0;
  background: #f4f6f8;
  color: #9aa4b2;
}

.auth-card #loginBtn,
.auth-card #registerSubmitBtn,
.auth-card #forgotBtn {
  min-height: 44px;
  margin-top: 2px;
  border: 0;
  border-radius: 6px;
  background: #1f6feb;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(31, 111, 235, .22);
}

.auth-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: #8b96a7;
  font-size: 12px;
  line-height: 1.5;
}

.auth-form-foot small {
  flex-basis: 100%;
  color: #9aa4b2;
  font-size: 12px;
  text-align: left;
}

.auth-form-foot .ghost {
  min-height: auto !important;
  padding: 0;
  border: 0;
  background: transparent !important;
  color: #f05319 !important;
  font-size: 12px;
  font-weight: 900;
  box-shadow: none !important;
}

.auth-safe-note {
  color: #9aa4b2;
  font-size: 12px;
  line-height: 1.55;
}

@media (min-width: 761px) {
  .pc-auth-shell {
    min-height: min(620px, calc(100svh - 56px));
  }
}

@media (max-width: 760px) {
  .auth-page {
    align-items: start;
    place-items: start center;
    padding: env(safe-area-inset-top) 16px 18px;
    background:
      linear-gradient(180deg, rgba(248, 250, 252, .82), rgba(248, 250, 252, .98)),
      url("/ref-img/bgb4.png") center top / cover no-repeat,
      #f8fafc;
  }

  .auth-shell {
    width: 100%;
    min-height: 100svh;
    max-width: 430px;
    display: block;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .auth-brand-panel {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 34px 2px 20px;
    background: transparent;
  }

  .auth-brand {
    min-height: 84px;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    color: #111827;
    text-align: center;
    font-size: 18px;
  }

  .auth-brand .brand-mark {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: #f0b90b;
    color: #111827;
    font-size: 24px;
  }

  .auth-copy,
  .auth-market-strip,
  .auth-proof-grid {
    display: none;
  }

  .auth-card {
    align-content: start;
    min-height: 0;
    gap: 15px;
    margin: 0 0 18px;
    padding: 18px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
  }

  .auth-tabs button {
    min-height: 40px;
    font-size: 15px;
  }

  .auth-panel .form-grid {
    gap: 14px;
  }

  .auth-method-title {
    min-height: 24px;
    font-size: 17px;
  }

  .auth-method-head p {
    font-size: 11px;
  }

  .auth-card input {
    height: 34px;
    font-size: 16px;
  }

  .auth-code-row {
    grid-template-columns: minmax(0, 1fr) 96px;
  }

  .auth-card .auth-code-btn.secondary {
    padding: 0 6px;
  }
}

/* 2026062142 auth refinement: reference-style production entrance. */
.auth-page {
  display: grid;
  min-height: 100svh;
  padding: 28px;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(9, 15, 28, .78), rgba(9, 15, 28, .97)),
    url("/ref-img/bgb5.png") center / cover no-repeat,
    #090f1c;
}

.auth-shell {
  width: min(980px, 100%);
  min-height: 590px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(372px, 420px);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 8px;
  background: rgba(8, 15, 27, .9);
  box-shadow: 0 24px 72px rgba(0, 0, 0, .44);
}

.auth-brand-panel {
  min-height: 590px;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 18px;
  padding: 32px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(150deg, rgba(240, 185, 11, .2), transparent 44%),
    linear-gradient(32deg, rgba(22, 163, 255, .18), transparent 40%),
    rgba(13, 21, 36, .56);
}

.auth-brand {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #f8fbff;
  font-size: 16px;
  font-weight: 900;
}

.auth-brand .brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #f0b90b, #16a3ff);
  color: #ffffff;
}

.auth-copy {
  align-self: center;
  display: grid;
  gap: 12px;
}

.auth-kicker {
  width: fit-content;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(240, 185, 11, .35);
  border-radius: 4px;
  color: #f0b90b;
  font-size: 12px;
  font-weight: 900;
}

.auth-copy h1,
.auth-brand-panel h1 {
  max-width: 480px;
  margin: 0;
  color: #ffffff;
  font-size: 38px;
  line-height: 1.14;
  letter-spacing: 0;
}

.auth-copy p {
  max-width: 380px;
  margin: 0;
  color: #a7b4cc;
  font-size: 14px;
  line-height: 1.7;
}

.auth-market-strip {
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 6px;
  background: rgba(9, 15, 28, .72);
}

.auth-market-strip span {
  color: #9fb2d8;
  font-size: 12px;
  font-weight: 800;
}

.auth-market-strip strong {
  color: #ffffff;
  font-size: 17px;
}

.auth-market-strip b {
  color: #23d18b;
  font-size: 12px;
}

.auth-market-strip b.down {
  color: #f6465d;
}

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

.auth-proof-grid div {
  min-height: 66px;
  display: grid;
  gap: 4px;
  padding: 11px;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 6px;
  background: rgba(9, 15, 28, .56);
}

.auth-proof-grid strong {
  color: #edf3ff;
  font-size: 13px;
}

.auth-proof-grid span {
  color: #8090ad;
  font-size: 12px;
  line-height: 1.45;
}

.auth-card {
  align-content: center;
  display: grid;
  gap: 14px;
  padding: 32px;
  border: 0;
  border-radius: 0;
  background: rgba(9, 15, 28, .94);
  box-shadow: none;
}

.auth-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-card-head span {
  color: #7f8da8;
  font-size: 12px;
}

.auth-card-head strong {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 4px;
  background: rgba(35, 209, 139, .12);
  color: #23d18b;
  font-size: 12px;
}

.auth-tabs,
.auth-method-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 8px;
  background: #111827;
}

.auth-method-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-method-head {
  display: grid;
  gap: 5px;
}

.auth-method-head p {
  margin: 0;
  color: #7f8da8;
  font-size: 12px;
  line-height: 1.55;
}

.auth-method-label {
  color: #8392ad;
  font-size: 12px;
  font-weight: 800;
}

.auth-tabs button,
.auth-method-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #a7b4cc;
  font-size: 13px;
  font-weight: 900;
}

.auth-tabs button.active,
.auth-method-tabs button.active {
  background: linear-gradient(135deg, #f0b90b, #16a3ff);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(22, 163, 255, .24);
}

.auth-method-title {
  min-height: 28px;
  display: flex;
  align-items: center;
  color: #ffffff;
  font-size: 19px;
  font-weight: 900;
}

.auth-panel {
  min-height: 0;
  max-height: min(50vh, 430px);
  overflow: auto;
  padding-right: 2px;
}

.auth-panel .form-grid {
  display: grid;
  gap: 12px;
}

.auth-card .form-row {
  display: grid;
  gap: 7px;
}

.auth-card .form-row label {
  color: #c6d1e4;
  font-size: 12px;
  font-weight: 800;
}

.required-dot {
  margin-left: 3px;
  color: #f6465d;
  font-style: normal;
}

.auth-card input {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 6px;
  background: #0d1524;
  color: #edf3ff;
  font-size: 14px;
}

.auth-card input::placeholder {
  color: #5d6c84;
}

.auth-card input:focus {
  border-color: rgba(22, 163, 255, .64);
  box-shadow: 0 0 0 3px rgba(22, 163, 255, .12);
}

.auth-card #loginBtn,
.auth-card #registerSubmitBtn,
.auth-card #forgotBtn {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(135deg, #f0b90b, #16a3ff);
  color: #ffffff;
  font-weight: 900;
}

.auth-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 8px;
}

.auth-card .auth-code-btn.secondary {
  min-height: 44px;
  border: 1px solid rgba(240, 185, 11, .38);
  border-radius: 6px;
  background: rgba(240, 185, 11, .12);
  color: #f0b90b;
  font-weight: 900;
}

.auth-card .auth-code-btn.secondary:disabled {
  border-color: rgba(148, 163, 184, .16);
  background: rgba(148, 163, 184, .08);
  color: #7f8da8;
}

.auth-safe-note {
  color: #7f8da8;
  font-size: 12px;
  line-height: 1.55;
}

.auth-form-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
  color: #8392ad;
  font-size: 12px;
  line-height: 1.5;
}

.auth-form-foot small {
  flex-basis: 100%;
  color: #6f7f98;
  font-size: 12px;
  text-align: center;
}

.auth-form-foot .ghost {
  min-height: auto !important;
  padding: 0 2px;
  border: 0;
  background: transparent !important;
  color: #f0b90b !important;
  font-size: 12px;
  font-weight: 900;
  box-shadow: none !important;
}

@media (min-width: 761px) {
  .pc-auth-shell {
    min-height: min(650px, calc(100svh - 56px));
    max-height: calc(100svh - 56px);
  }

  .pc-auth-shell .auth-panel {
    max-height: calc(100svh - 292px);
    overflow: auto;
  }

  .pc-auth-shell .auth-card {
    align-content: center;
  }
}

@media (max-width: 760px) {
  .auth-page {
    align-items: start;
    min-height: 100svh;
    padding: env(safe-area-inset-top) 16px 18px;
    background: #070d19 url("/ref-img/bgb4.png") center top / cover no-repeat;
  }

  .auth-shell {
    width: 100%;
    min-height: 100svh;
    max-width: 430px;
    display: block;
    grid-template-columns: 1fr;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .auth-brand-panel {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 2px 14px;
    background: transparent;
  }

  .auth-brand {
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    min-height: 80px;
    text-align: center;
    font-size: 16px;
  }

  .auth-brand .brand-mark {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    font-size: 22px;
  }

  .auth-copy {
    align-self: stretch;
    gap: 8px;
    text-align: center;
  }

  .auth-kicker {
    margin: 0 auto;
  }

  .auth-copy h1,
  .auth-brand-panel h1 {
    display: none;
  }

  .auth-copy p {
    max-width: 100%;
    font-size: 13px;
    display: none;
  }

  .auth-market-strip {
    display: none;
  }

  .auth-proof-grid {
    display: none;
  }

  .auth-card {
    align-content: start;
    min-height: 0;
    gap: 14px;
    margin: 0 2px 18px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 8px;
    background: rgba(9, 15, 28, .92);
    box-shadow: 0 14px 32px rgba(0, 0, 0, .28);
  }

  .auth-card-head {
    display: none;
  }

  .auth-panel {
    max-height: none;
    overflow: visible;
  }

  .auth-tabs button,
  .auth-method-tabs button {
    min-height: 36px;
    font-size: 13px;
  }

  .auth-method-title {
    min-height: 24px;
    font-size: 17px;
  }

  .auth-method-head p {
    font-size: 11px;
  }

  .auth-panel .form-grid {
    gap: 11px;
  }

  .auth-card .form-row {
    gap: 6px;
  }

  .auth-card input {
    height: 43px;
    font-size: 16px;
  }

  .auth-code-row {
    grid-template-columns: minmax(0, 1fr) 98px;
  }

  .auth-card .auth-code-btn.secondary {
    padding: 0 6px;
    font-size: 12px;
  }
}

/* 2026062147 auth entrance: compact reference-style login/register/reset. */
.auth-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(7, 13, 25, .8), rgba(7, 13, 25, .96)),
    url("/ref-img/bgb5.png") center / cover no-repeat,
    #070d19;
}

.auth-shell {
  width: min(980px, 100%);
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(382px, 430px);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 8px;
  background: rgba(8, 15, 27, .92);
  box-shadow: 0 24px 72px rgba(0, 0, 0, .44);
}

.auth-brand-panel,
.auth-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.auth-brand-panel {
  min-height: 610px;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 18px;
  padding: 32px;
  background:
    linear-gradient(145deg, rgba(240, 185, 11, .18), transparent 44%),
    linear-gradient(30deg, rgba(22, 103, 255, .18), transparent 42%),
    rgba(12, 20, 36, .62);
}

.auth-brand {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #f8fbff;
  font-size: 16px;
  font-weight: 900;
}

.auth-brand .brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #f0b90b, #1667ff);
  color: #ffffff;
}

.auth-copy {
  align-self: center;
  display: grid;
  gap: 12px;
}

.auth-kicker {
  width: fit-content;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(240, 185, 11, .34);
  border-radius: 4px;
  color: #f0b90b;
  font-size: 12px;
  font-weight: 900;
}

.auth-copy h1,
.auth-brand-panel h1 {
  max-width: 480px;
  margin: 0;
  color: #ffffff;
  font-size: 38px;
  line-height: 1.14;
  letter-spacing: 0;
}

.auth-copy p {
  max-width: 380px;
  margin: 0;
  color: #a7b4cc;
  font-size: 14px;
  line-height: 1.7;
}

.auth-market-strip {
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 6px;
  background: rgba(9, 15, 28, .72);
}

.auth-market-strip span {
  min-width: 0;
  color: #9fb2d8;
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-market-strip strong {
  min-width: 0;
  color: #ffffff;
  font-size: 17px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-market-strip b {
  color: #23d18b;
  font-size: 12px;
}

.auth-market-strip b.down {
  color: #f6465d;
}

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

.auth-proof-grid div {
  min-height: 66px;
  display: grid;
  gap: 4px;
  padding: 11px;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 6px;
  background: rgba(9, 15, 28, .56);
}

.auth-proof-grid strong {
  color: #edf3ff;
  font-size: 13px;
}

.auth-proof-grid span {
  color: #8090ad;
  font-size: 12px;
  line-height: 1.45;
}

.auth-card {
  align-content: center;
  display: grid;
  gap: 14px;
  padding: 32px;
  background: rgba(9, 15, 28, .96);
}

.auth-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-card-head span {
  color: #7f8da8;
  font-size: 12px;
}

.auth-card-head strong {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 4px;
  background: rgba(35, 209, 139, .12);
  color: #23d18b;
  font-size: 12px;
}

.auth-tabs,
.auth-method-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 8px;
  background: #111827;
}

.auth-method-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-method-head {
  display: grid;
  gap: 6px;
}

.auth-method-head p {
  margin: 0;
  color: #7f8da8;
  font-size: 12px;
  line-height: 1.55;
}

.auth-method-label {
  color: #8392ad;
  font-size: 12px;
  font-weight: 800;
}

.auth-tabs button,
.auth-method-tabs button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #a7b4cc;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.auth-tabs button.active,
.auth-method-tabs button.active {
  background: linear-gradient(135deg, #f0b90b, #1667ff);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(22, 103, 255, .22);
}

.auth-method-title {
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 19px;
  font-weight: 900;
}

.auth-method-icon {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(240, 185, 11, .14);
  color: #f0b90b;
  font-size: 13px;
}

.auth-panel {
  min-height: 0;
  max-height: min(50vh, 430px);
  overflow: auto;
  padding-right: 2px;
}

.auth-panel::-webkit-scrollbar {
  width: 4px;
}

.auth-panel::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(159, 166, 181, .28);
}

.auth-panel .form-grid,
.auth-card .form-row {
  display: grid;
}

.auth-panel .form-grid {
  gap: 12px;
}

.auth-card .form-row {
  gap: 7px;
}

.auth-card .form-row label {
  color: #c6d1e4;
  font-size: 12px;
  font-weight: 800;
}

.required-dot {
  margin-left: 3px;
  color: #f6465d;
  font-style: normal;
}

.auth-card input {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 6px;
  background: #0d1524;
  color: #edf3ff;
  font-size: 14px;
}

.auth-card input::placeholder {
  color: #5d6c84;
}

.auth-card input:focus {
  border-color: rgba(22, 103, 255, .66);
  box-shadow: 0 0 0 3px rgba(22, 103, 255, .12);
}

.auth-card #loginBtn,
.auth-card #registerSubmitBtn,
.auth-card #forgotBtn {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(135deg, #f0b90b, #1667ff);
  color: #ffffff;
  font-weight: 900;
}

.auth-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 8px;
}

.auth-card .auth-code-btn.secondary {
  min-height: 44px;
  padding: 0 8px;
  border: 1px solid rgba(240, 185, 11, .38);
  border-radius: 6px;
  background: rgba(240, 185, 11, .12);
  color: #f0b90b;
  font-weight: 900;
}

.auth-card .auth-code-btn.secondary:disabled {
  border-color: rgba(148, 163, 184, .16);
  background: rgba(148, 163, 184, .08);
  color: #7f8da8;
}

.auth-safe-note {
  color: #7f8da8;
  font-size: 12px;
  line-height: 1.55;
}

.auth-form-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
  color: #8392ad;
  font-size: 12px;
  line-height: 1.5;
}

.auth-form-foot small {
  flex-basis: 100%;
  color: #6f7f98;
  font-size: 12px;
  text-align: center;
}

.auth-form-foot .ghost {
  min-height: auto !important;
  padding: 0 2px;
  border: 0;
  background: transparent !important;
  color: #f0b90b !important;
  font-size: 12px;
  font-weight: 900;
  box-shadow: none !important;
}

@media (min-width: 761px) {
  .pc-auth-shell {
    min-height: 700px;
  }

  .pc-auth-shell .auth-panel {
    max-height: none;
    overflow: visible;
  }

  .pc-auth-shell .auth-card {
    align-content: start;
  }
}

@media (max-width: 760px) {
  .auth-page {
    align-items: start;
    padding: env(safe-area-inset-top) 16px 18px;
    background:
      linear-gradient(180deg, rgba(7, 13, 25, .72), rgba(7, 13, 25, .96)),
      url("/ref-img/bgb4.png") center top / cover no-repeat,
      #070d19;
  }

  .auth-shell {
    width: 100%;
    min-height: 100svh;
    max-width: 430px;
    display: block;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .auth-brand-panel {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 2px 14px;
    background: transparent;
  }

  .auth-brand {
    min-height: 80px;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    font-size: 16px;
  }

  .auth-brand .brand-mark {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    font-size: 22px;
  }

  .auth-copy,
  .auth-market-strip,
  .auth-proof-grid {
    display: none;
  }

  .auth-card {
    align-content: start;
    min-height: 0;
    gap: 14px;
    margin: 0 2px 18px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 8px;
    background: rgba(9, 15, 28, .94);
    box-shadow: 0 14px 32px rgba(0, 0, 0, .28);
  }

  .auth-card-head {
    display: none;
  }

  .auth-panel {
    max-height: none;
    overflow: visible;
  }

  .auth-tabs button,
  .auth-method-tabs button {
    min-height: 36px;
    font-size: 13px;
  }

  .auth-method-title {
    min-height: 24px;
    font-size: 17px;
  }

  .auth-method-head p {
    font-size: 11px;
  }

  .auth-panel .form-grid {
    gap: 11px;
  }

  .auth-card .form-row {
    gap: 6px;
  }

  .auth-card input {
    height: 43px;
    font-size: 16px;
  }

  .auth-code-row {
    grid-template-columns: minmax(0, 1fr) 98px;
  }

  .auth-card .auth-code-btn.secondary {
    padding: 0 6px;
    font-size: 12px;
  }
}

/* 2026062144 trading ticket and pair drawer hardening. */
.h5-body {
  --pair-drawer-width: clamp(104px, 28vw, 118px);
}

@media (max-width: 380px) {
  .h5-body {
    --pair-drawer-width: 104px;
  }
}

.h5-app #view-market.market-pairs-open .market-pair-card,
.h5-app #view-kline.market-pairs-open .kline-pair-drawer {
  width: var(--pair-drawer-width) !important;
  max-width: var(--pair-drawer-width) !important;
  min-width: 0 !important;
  top: 52px !important;
  bottom: 74px !important;
  border-radius: 0 6px 6px 0 !important;
}

.h5-app #view-market .pair-overlay,
.h5-app #view-kline .pair-overlay {
  left: calc(max(calc((100vw - 430px) / 2), 0px) + var(--pair-drawer-width)) !important;
}

.h5-app #view-market.market-pairs-open .market-pair-card .card-head,
.h5-app #view-kline.market-pairs-open .kline-pair-drawer .card-head {
  min-height: 38px !important;
  padding: 8px !important;
}

.h5-app #view-market.market-pairs-open .market-pair-tools,
.h5-app #view-kline.market-pairs-open .market-pair-tools {
  top: 38px !important;
  padding: 6px 7px !important;
}

.h5-app #view-market.market-pairs-open .market-pair-tools input,
.h5-app #view-kline.market-pairs-open .market-pair-tools input {
  height: 28px !important;
  padding: 0 6px !important;
  font-size: 11px !important;
}

.h5-app #view-market.market-pairs-open .market-pair-filters,
.h5-app #view-kline.market-pairs-open .market-pair-filters {
  gap: 4px;
}

.h5-app #view-market.market-pairs-open .market-pair-filters button,
.h5-app #view-kline.market-pairs-open .market-pair-filters button {
  min-height: 25px !important;
  padding: 0 4px !important;
  font-size: 10px !important;
}

.h5-app #view-market.market-pairs-open .pair-list-row,
.h5-app #view-kline.market-pairs-open .pair-list-row {
  min-height: 42px !important;
  padding: 7px 6px !important;
}

.h5-app #view-market.market-pairs-open .market-pair-name,
.h5-app #view-kline.market-pairs-open .market-pair-name {
  gap: 5px !important;
  padding-right: 19px !important;
}

.h5-app #view-market.market-pairs-open .market-coin-badge,
.h5-app #view-kline.market-pairs-open .market-coin-badge {
  width: 18px !important;
  height: 18px !important;
  flex-basis: 18px !important;
  font-size: 7px !important;
}

.h5-app #view-market.market-pairs-open .market-symbol,
.h5-app #view-kline.market-pairs-open .market-symbol {
  font-size: 11px !important;
  line-height: 1.1 !important;
}

.h5-app #view-market.market-pairs-open .market-symbol span,
.h5-app #view-kline.market-pairs-open .market-symbol span {
  font-size: 9px !important;
}

.h5-app #view-market.market-pairs-open .market-fav-toggle,
.h5-app #view-kline.market-pairs-open .market-fav-toggle {
  top: 5px !important;
  right: 2px !important;
  width: 20px !important;
  min-width: 20px !important;
  height: 20px !important;
  min-height: 20px !important;
  font-size: 13px !important;
}

#view-market .tabs,
.trade-mode-tabs {
  gap: 6px !important;
  padding: 5px !important;
  border: 1px solid rgba(22, 163, 255, .28) !important;
  background: linear-gradient(135deg, rgba(240, 185, 11, .2), rgba(22, 163, 255, .22) 46%, rgba(35, 209, 139, .2)), #0e1728 !important;
}

#view-market .tabs button,
.trade-mode-tabs button {
  min-height: 40px !important;
  border: 1px solid rgba(255, 255, 255, .1) !important;
  background: rgba(9, 15, 28, .74) !important;
  color: #dce8ff !important;
}

#view-market .tabs button[data-mode="spot"].active,
.trade-mode-tabs button[data-mode="spot"].active {
  background: linear-gradient(135deg, #ffe06a, #16a3ff 50%, #23d18b) !important;
  color: #06131f !important;
  box-shadow: 0 10px 22px rgba(22, 163, 255, .28) !important;
}

#view-market .tabs button[data-mode="contract"].active,
.trade-mode-tabs button[data-mode="contract"].active {
  background: linear-gradient(135deg, #a78bfa, #16a3ff 48%, #f0b90b) !important;
  color: #06131f !important;
  box-shadow: 0 10px 22px rgba(124, 92, 255, .28) !important;
}

.trade-ticket-card .trade-ticket-body {
  gap: 10px !important;
}

.trade-ticket-card .form-row label {
  color: #a9b8d4 !important;
  font-weight: 800 !important;
}

.trade-ticket-card .form-row small {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-self: end;
  margin-top: -2px;
  padding: 0 8px;
  border-radius: 4px;
  background: rgba(240, 185, 11, .14);
  color: #f0b90b;
  font-weight: 900;
}

.leverage-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.leverage-options button {
  min-height: 32px;
  min-width: 50px;
  padding: 0 10px;
  border: 1px solid #263653;
  border-radius: 5px;
  background: #111b2c;
  color: #a9b8d4;
  box-shadow: none;
  font-weight: 800;
}

.leverage-options button.active {
  border-color: rgba(240, 185, 11, .8) !important;
  background: linear-gradient(135deg, rgba(240, 185, 11, .28), rgba(22, 163, 255, .18)) !important;
  color: #f8d66a !important;
}

.h5-app #view-market .trade-ticket-card .card-body {
  padding: 8px !important;
}

.h5-app #view-market .trade-ticket-body {
  gap: 8px !important;
}

.h5-app #view-market .percent-row {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 4px !important;
}

.h5-app #view-market .percent-row button {
  min-width: 0 !important;
  min-height: 28px !important;
  padding: 0 2px !important;
  font-size: 10px !important;
  letter-spacing: 0 !important;
}

.h5-app #view-market .trade-ticket-card input,
.h5-app #view-market .trade-ticket-card select {
  min-height: 34px !important;
  height: 34px !important;
}

/* 2026062149 final auth override: keep this after older auth revisions. */
.auth-page {
  min-height: 100svh !important;
  display: grid !important;
  place-items: center !important;
  padding: 28px !important;
  background:
    linear-gradient(180deg, rgba(8, 14, 26, .72), rgba(8, 14, 26, .9)),
    url("/ref-img/bgb5.png") center / cover no-repeat,
    #080e1a !important;
}

.auth-shell {
  width: min(900px, 100%) !important;
  min-height: 560px !important;
  display: grid !important;
  grid-template-columns: minmax(0, .86fr) minmax(360px, 400px) !important;
  overflow: hidden !important;
  border: 1px solid rgba(148, 163, 184, .14) !important;
  border-radius: 8px !important;
  background: rgba(10, 17, 30, .92) !important;
  box-shadow: 0 24px 68px rgba(0, 0, 0, .38) !important;
}

.auth-brand-panel {
  min-height: 560px !important;
  display: grid !important;
  grid-template-rows: auto 1fr auto !important;
  gap: 18px !important;
  padding: 32px !important;
  background: linear-gradient(145deg, rgba(240, 185, 11, .16), transparent 45%), rgba(12, 20, 36, .62) !important;
}

.auth-brand {
  min-height: 44px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  color: #fff !important;
  font-size: 17px !important;
  font-weight: 900 !important;
}

.auth-brand .brand-mark {
  width: 42px !important;
  height: 42px !important;
  display: inline-grid !important;
  place-items: center !important;
  border-radius: 8px !important;
  background: #f0b90b !important;
  color: #111827 !important;
  font-size: 18px !important;
  font-weight: 900 !important;
}

.auth-copy {
  align-self: center !important;
  display: grid !important;
  gap: 10px !important;
}

.auth-kicker {
  width: fit-content !important;
  min-height: 26px !important;
  display: inline-flex !important;
  align-items: center !important;
  padding: 0 10px !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: rgba(240, 185, 11, .14) !important;
  color: #f0b90b !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.auth-copy h1,
.auth-brand-panel h1 {
  margin: 0 !important;
  color: #fff !important;
  font-size: 34px !important;
  line-height: 1.16 !important;
  letter-spacing: 0 !important;
}

.auth-copy p {
  max-width: 360px !important;
  margin: 0 !important;
  color: #a9b5c9 !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
}

.auth-market-strip {
  min-height: 52px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 0 14px !important;
  border: 1px solid rgba(148, 163, 184, .14) !important;
  border-radius: 6px !important;
  background: rgba(9, 15, 28, .68) !important;
}

.auth-proof-grid {
  display: none !important;
}

.auth-card {
  display: grid !important;
  align-content: center !important;
  gap: 15px !important;
  padding: 34px 30px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}

.auth-card-head {
  display: none !important;
}

.auth-tabs {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid #edf0f4 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.auth-tabs button {
  min-height: 42px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #7b8797 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  box-shadow: none !important;
  position: relative !important;
}

.auth-tabs button.active {
  color: #111827 !important;
}

.auth-tabs button.active::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  bottom: -1px !important;
  width: 28px !important;
  height: 3px !important;
  border-radius: 999px !important;
  background: #f05319 !important;
  transform: translateX(-50%) !important;
}

.auth-panel {
  max-height: none !important;
  overflow: visible !important;
  padding-right: 0 !important;
}

.auth-panel .form-grid {
  display: grid !important;
  gap: 15px !important;
}

.auth-method-head {
  display: grid !important;
  gap: 4px !important;
}

.auth-method-title {
  min-height: 26px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #111827 !important;
  font-size: 18px !important;
  font-weight: 900 !important;
}

.auth-method-icon {
  width: 24px !important;
  height: 24px !important;
  display: inline-grid !important;
  place-items: center !important;
  border-radius: 6px !important;
  background: rgba(240, 83, 25, .1) !important;
  color: #f05319 !important;
  font-size: 13px !important;
}

.auth-method-head p {
  margin: 0 !important;
  color: #8b96a7 !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

.auth-method-label {
  display: none !important;
}

.auth-method-tabs {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.auth-method-tabs button {
  min-height: 38px !important;
  border: 1px solid #e6eaf0 !important;
  border-radius: 6px !important;
  background: #f8fafc !important;
  color: #5f6b7a !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  box-shadow: none !important;
}

.auth-method-tabs button.active {
  border-color: rgba(240, 83, 25, .42) !important;
  background: rgba(240, 83, 25, .09) !important;
  color: #f05319 !important;
}

.auth-card .form-row {
  display: grid !important;
  gap: 6px !important;
  padding-bottom: 8px !important;
  border-bottom: 1px solid #edf0f4 !important;
}

.auth-card .form-row label {
  color: #172033 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.auth-card input {
  width: 100% !important;
  height: 34px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #111827 !important;
  font-size: 15px !important;
  box-shadow: none !important;
}

.auth-code-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 104px !important;
  gap: 8px !important;
  align-items: center !important;
}

.auth-card .auth-code-btn.secondary {
  min-height: 34px !important;
  padding: 0 8px !important;
  border: 1px solid rgba(240, 83, 25, .3) !important;
  border-radius: 6px !important;
  background: rgba(240, 83, 25, .08) !important;
  color: #f05319 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.auth-card #loginBtn,
.auth-card #registerSubmitBtn,
.auth-card #forgotBtn {
  min-height: 44px !important;
  margin-top: 2px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: #1f6feb !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  box-shadow: 0 10px 20px rgba(31, 111, 235, .22) !important;
}

.auth-form-foot {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  color: #8b96a7 !important;
  font-size: 12px !important;
}

.auth-form-foot small {
  flex-basis: 100% !important;
  color: #9aa4b2 !important;
  font-size: 12px !important;
  text-align: left !important;
}

.auth-form-foot .ghost {
  min-height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #f05319 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  box-shadow: none !important;
}

.auth-safe-note {
  color: #9aa4b2 !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
}

@media (max-width: 760px) {
  .auth-page {
    align-items: start !important;
    place-items: start center !important;
    padding: env(safe-area-inset-top) 16px 18px !important;
    background:
      linear-gradient(180deg, rgba(248, 250, 252, .82), rgba(248, 250, 252, .98)),
      url("/ref-img/bgb4.png") center top / cover no-repeat,
      #f8fafc !important;
  }

  .auth-shell {
    width: 100% !important;
    min-height: 100svh !important;
    max-width: 430px !important;
    display: block !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .auth-brand-panel {
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 34px 2px 20px !important;
    background: transparent !important;
  }

  .auth-brand {
    min-height: 84px !important;
    justify-content: center !important;
    flex-direction: column !important;
    gap: 10px !important;
    color: #111827 !important;
    text-align: center !important;
    font-size: 18px !important;
  }

  .auth-brand .brand-mark {
    width: 64px !important;
    height: 64px !important;
    border-radius: 14px !important;
    font-size: 24px !important;
  }

  .auth-copy,
  .auth-market-strip,
  .auth-proof-grid {
    display: none !important;
  }

  .auth-card {
    align-content: start !important;
    min-height: 0 !important;
    gap: 15px !important;
    margin: 0 0 18px !important;
    padding: 18px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08) !important;
  }

  .auth-tabs button {
    min-height: 40px !important;
    font-size: 15px !important;
  }

  .auth-card input {
    height: 34px !important;
    font-size: 16px !important;
  }

  .auth-code-row {
    grid-template-columns: minmax(0, 1fr) 96px !important;
  }
}

/* 2026062150 final trade page override: compact pair drawer and simple ticket. */
#auth.hidden,
.auth-page.hidden {
  display: none !important;
}

.h5-body {
  --pair-drawer-width: clamp(96px, 25vw, 110px) !important;
}

@media (max-width: 380px) {
  .h5-body {
    --pair-drawer-width: 96px !important;
  }
}

.h5-app #view-market.market-pairs-open .market-pair-card,
.h5-app #view-kline.market-pairs-open .kline-pair-drawer {
  position: fixed !important;
  left: max(calc((100vw - 430px) / 2), 0px) !important;
  top: 50px !important;
  bottom: 72px !important;
  width: var(--pair-drawer-width) !important;
  min-width: var(--pair-drawer-width) !important;
  max-width: var(--pair-drawer-width) !important;
  margin: 0 !important;
  border-radius: 0 6px 6px 0 !important;
  z-index: 72 !important;
  overflow: hidden !important;
}

.h5-app #view-market.market-pairs-open .pair-overlay,
.h5-app #view-kline.market-pairs-open .pair-overlay {
  position: fixed !important;
  left: calc(max(calc((100vw - 430px) / 2), 0px) + var(--pair-drawer-width)) !important;
  right: 0 !important;
  top: 50px !important;
  bottom: 72px !important;
  z-index: 71 !important;
  background: rgba(3, 7, 18, .36) !important;
}

.h5-app #view-market.market-pairs-open .market-pair-card .card-head,
.h5-app #view-kline.market-pairs-open .kline-pair-drawer .card-head {
  min-height: 36px !important;
  padding: 7px 6px !important;
}

.h5-app #view-market.market-pairs-open .market-pair-head h2,
.h5-app #view-kline.market-pairs-open .market-pair-head h2 {
  font-size: 12px !important;
}

.h5-app #view-market.market-pairs-open .market-pair-count,
.h5-app #view-kline.market-pairs-open .market-pair-count,
.h5-app #view-market.market-pairs-open .market-pair-card .badge,
.h5-app #view-kline.market-pairs-open .kline-pair-drawer .badge {
  display: none !important;
}

.h5-app #view-market.market-pairs-open .market-pair-tools,
.h5-app #view-kline.market-pairs-open .market-pair-tools {
  top: 36px !important;
  gap: 5px !important;
  padding: 6px !important;
}

.h5-app #view-market.market-pairs-open .market-pair-tools input,
.h5-app #view-kline.market-pairs-open .market-pair-tools input {
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 6px !important;
  font-size: 11px !important;
}

.h5-app #view-market.market-pairs-open .market-pair-filters,
.h5-app #view-kline.market-pairs-open .market-pair-filters {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 4px !important;
  padding: 0 !important;
}

.h5-app #view-market.market-pairs-open .market-pair-filters button,
.h5-app #view-kline.market-pairs-open .market-pair-filters button {
  min-height: 24px !important;
  padding: 0 2px !important;
  border-radius: 4px !important;
  font-size: 10px !important;
}

.h5-app #view-market.market-pairs-open .market-list,
.h5-app #view-kline.market-pairs-open .market-list {
  padding: 82px 5px 6px !important;
}

.h5-app #view-market.market-pairs-open .pair-list-row,
.h5-app #view-kline.market-pairs-open .pair-list-row {
  min-height: 40px !important;
  padding: 6px 4px !important;
  border-radius: 5px !important;
}

.h5-app #view-market.market-pairs-open .market-pair-name,
.h5-app #view-kline.market-pairs-open .market-pair-name {
  min-width: 0 !important;
  gap: 4px !important;
  padding-right: 16px !important;
}

.h5-app #view-market.market-pairs-open .market-coin-badge,
.h5-app #view-kline.market-pairs-open .market-coin-badge {
  width: 17px !important;
  height: 17px !important;
  min-width: 17px !important;
  flex-basis: 17px !important;
  font-size: 7px !important;
}

.h5-app #view-market.market-pairs-open .market-symbol,
.h5-app #view-kline.market-pairs-open .market-symbol {
  min-width: 0 !important;
  font-size: 10px !important;
  line-height: 1.1 !important;
}

.h5-app #view-market.market-pairs-open .market-symbol span,
.h5-app #view-kline.market-pairs-open .market-symbol span,
.h5-app #view-market.market-pairs-open .market-price,
.h5-app #view-kline.market-pairs-open .market-price,
.h5-app #view-market.market-pairs-open .market-change,
.h5-app #view-kline.market-pairs-open .market-change {
  font-size: 9px !important;
}

.h5-app #view-market.market-pairs-open .market-fav-toggle,
.h5-app #view-kline.market-pairs-open .market-fav-toggle {
  top: 4px !important;
  right: 0 !important;
  width: 18px !important;
  min-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  padding: 0 !important;
  font-size: 12px !important;
}

#view-market .trade-mode-tabs,
#view-market .tabs.kline-mode-tabs,
.trade-mode-tabs {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
  padding: 5px !important;
  border: 1px solid rgba(31, 111, 235, .24) !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, rgba(240, 185, 11, .2), rgba(31, 111, 235, .18), rgba(22, 199, 132, .16)), #f8fbff !important;
}

#view-market .trade-mode-tabs button,
#view-market .tabs.kline-mode-tabs button,
.trade-mode-tabs button {
  min-height: 38px !important;
  border: 1px solid rgba(15, 23, 42, .08) !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #334155 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  box-shadow: none !important;
}

#view-market .trade-mode-tabs button.active,
#view-market .tabs.kline-mode-tabs button.active,
.trade-mode-tabs button.active {
  border-color: rgba(240, 185, 11, .65) !important;
  background: linear-gradient(135deg, #f0b90b, #1f6feb 58%, #16c784) !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(31, 111, 235, .24) !important;
}

.trade-ticket-card {
  border-radius: 8px !important;
}

.trade-ticket-card .trade-ticket-body {
  gap: 10px !important;
  padding: 12px !important;
}

.trade-ticket-card .trade-side-block {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  padding: 0 !important;
  background: transparent !important;
}

.trade-ticket-card .trade-side-block button {
  min-height: 38px !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  box-shadow: none !important;
}

.trade-ticket-card .trade-side-block button.good.active,
.trade-ticket-card .trade-side-block button.good:hover {
  background: #16c784 !important;
  color: #fff !important;
}

.trade-ticket-card .trade-side-block button.bad.active,
.trade-ticket-card .trade-side-block button.bad:hover {
  background: #ea3943 !important;
  color: #fff !important;
}

.trade-ticket-card .form-row {
  gap: 6px !important;
}

.trade-ticket-card .form-row label {
  color: #667085 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.trade-ticket-card input,
.trade-ticket-card select {
  min-height: 38px !important;
  height: 38px !important;
  border-radius: 6px !important;
}

.trade-ticket-card .form-row small {
  min-height: 22px !important;
  padding: 0 7px !important;
  border-radius: 4px !important;
  background: rgba(240, 185, 11, .12) !important;
  color: #b88700 !important;
  font-size: 11px !important;
}

.trade-ticket-card .percent-row {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 5px !important;
}

.trade-ticket-card .percent-row button {
  min-width: 0 !important;
  min-height: 30px !important;
  padding: 0 2px !important;
  border-radius: 5px !important;
  font-size: 11px !important;
}

.trade-ticket-card .leverage-options {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 5px !important;
}

.trade-ticket-card .leverage-options button {
  min-width: 0 !important;
  min-height: 30px !important;
  padding: 0 4px !important;
  border-radius: 5px !important;
  font-size: 11px !important;
}

.trade-ticket-card #tradeBtn {
  min-height: 42px !important;
  border-radius: 6px !important;
  font-size: 15px !important;
  font-weight: 900 !important;
}

.h5-app #view-market .order-depth-grid,
.h5-app #view-market .trade-history-grid {
  gap: 8px !important;
}

.h5-app #view-market .trade-ticket-card .card-body {
  padding: 10px !important;
}

/* 2026062152 final reference alignment: auth pages, pair drawer, deposit flow. */
#auth.hidden,
.auth-page.hidden {
  display: none !important;
}

.auth-page {
  min-height: 100svh !important;
  display: grid !important;
  place-items: start center !important;
  padding: env(safe-area-inset-top) 16px 24px !important;
  background: #f7f8fb !important;
  color: #111827 !important;
}

.auth-shell,
.pc-auth-shell {
  width: min(430px, 100%) !important;
  min-height: 100svh !important;
  display: block !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.auth-brand-panel {
  min-height: 118px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 26px 0 14px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.auth-brand {
  min-height: 80px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  color: #172033 !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  text-align: center !important;
}

.auth-brand .brand-mark {
  width: 64px !important;
  height: 64px !important;
  display: inline-grid !important;
  place-items: center !important;
  border-radius: 8px !important;
  background: #1f6feb !important;
  color: #fff !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  box-shadow: 0 10px 24px rgba(31, 111, 235, .16) !important;
}

.auth-copy,
.auth-market-strip,
.auth-proof-grid,
.auth-tabs,
.auth-safe-note {
  display: none !important;
}

.auth-card {
  display: grid !important;
  align-content: start !important;
  gap: 18px !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 0 18px !important;
  padding: 18px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .08) !important;
}

.auth-card-head {
  display: flex !important;
  min-height: 28px !important;
  align-items: center !important;
  justify-content: center !important;
  padding-bottom: 4px !important;
}

.auth-page[data-auth-mode="login"] .auth-card-head {
  display: none !important;
}

.auth-card-head span {
  color: #172033 !important;
  font-size: 17px !important;
  font-weight: 900 !important;
}

.auth-card-head strong {
  display: none !important;
}

.auth-panel {
  max-height: none !important;
  overflow: visible !important;
  padding: 0 !important;
}

.auth-panel .form-grid {
  display: grid !important;
  gap: 18px !important;
}

.auth-card .form-row {
  display: grid !important;
  gap: 8px !important;
  padding: 0 0 8px !important;
  border: 0 !important;
  border-bottom: 1px solid #edf0f4 !important;
  background: transparent !important;
}

.auth-card .form-row label {
  color: #172033 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.auth-card input {
  width: 100% !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #111827 !important;
  font-size: 15px !important;
  box-shadow: none !important;
}

.auth-card input::placeholder {
  color: #a3adbc !important;
}

.auth-card #loginBtn,
.auth-card #registerSubmitBtn,
.auth-card #forgotBtn {
  min-height: 44px !important;
  margin-top: 0 !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: #1f6feb !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  box-shadow: none !important;
}

.auth-method-head {
  display: grid !important;
  justify-items: center !important;
  gap: 6px !important;
}

.auth-method-title {
  min-height: 28px !important;
  color: #172033 !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  text-align: center !important;
}

.auth-method-icon,
.auth-method-head p {
  display: none !important;
}

.auth-method-tabs {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.auth-method-tabs button {
  min-height: 38px !important;
  border: 1px solid #e6eaf0 !important;
  border-radius: 6px !important;
  background: #f8fafc !important;
  color: #5f6b7a !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  box-shadow: none !important;
}

.auth-method-tabs button.active {
  border-color: rgba(240, 83, 25, .42) !important;
  background: rgba(240, 83, 25, .09) !important;
  color: #f05319 !important;
}

.auth-method-tabs button span {
  display: none !important;
}

.auth-code-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 104px !important;
  gap: 8px !important;
  align-items: center !important;
}

.auth-card .auth-code-btn.secondary {
  min-height: 34px !important;
  padding: 0 8px !important;
  border: 1px solid rgba(240, 83, 25, .3) !important;
  border-radius: 6px !important;
  background: rgba(240, 83, 25, .08) !important;
  color: #f05319 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.auth-form-foot {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  padding-top: 0 !important;
  color: #8b96a7 !important;
  font-size: 12px !important;
}

.auth-form-foot .auth-foot-right {
  min-width: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 3px !important;
  text-align: right !important;
}

.auth-form-foot small {
  display: none !important;
}

.auth-form-foot .ghost {
  min-height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #f05319 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}

.h5-body {
  --pair-drawer-width: min(78vw, 320px) !important;
}

.h5-app #view-market.market-pairs-open .market-pair-card,
.h5-app #view-kline.market-pairs-open .kline-pair-drawer {
  display: block !important;
  position: fixed !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: var(--pair-drawer-width) !important;
  min-width: var(--pair-drawer-width) !important;
  max-width: 320px !important;
  height: auto !important;
  margin: 0 !important;
  border: 0 !important;
  border-right: 1px solid #e6eaf0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #172033 !important;
  z-index: 80 !important;
  overflow: auto !important;
  box-shadow: 18px 0 40px rgba(0, 0, 0, .22) !important;
}

.h5-app #view-market.market-pairs-open .pair-overlay,
.h5-app #view-kline.market-pairs-open .pair-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: rgba(0, 0, 0, .48) !important;
  z-index: 79 !important;
  box-shadow: none !important;
}

.h5-app #view-market.market-pairs-open .market-pair-card .card-head,
.h5-app #view-kline.market-pairs-open .kline-pair-drawer .card-head {
  min-height: 56px !important;
  padding: 14px 16px !important;
  border-bottom: 1px solid #edf0f4 !important;
  background: #fff !important;
}

.h5-app #view-market.market-pairs-open .market-pair-head h2,
.h5-app #view-kline.market-pairs-open .market-pair-head h2 {
  color: #172033 !important;
  font-size: 17px !important;
}

.h5-app #view-market.market-pairs-open .market-pair-count,
.h5-app #view-kline.market-pairs-open .market-pair-count,
.h5-app #view-market.market-pairs-open .market-pair-card .badge,
.h5-app #view-kline.market-pairs-open .kline-pair-drawer .badge {
  display: inline-flex !important;
  color: #8b96a7 !important;
}

.h5-app #view-market.market-pairs-open .market-pair-body,
.h5-app #view-kline.market-pairs-open .market-pair-body {
  padding: 12px !important;
  gap: 10px !important;
}

.h5-app #view-market.market-pairs-open .market-pair-tools,
.h5-app #view-kline.market-pairs-open .market-pair-tools {
  position: static !important;
  top: auto !important;
  display: grid !important;
  gap: 8px !important;
  padding: 0 !important;
  background: transparent !important;
}

.h5-app #view-market.market-pairs-open .market-pair-tools input,
.h5-app #view-kline.market-pairs-open .market-pair-tools input {
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 10px !important;
  border: 1px solid #edf0f4 !important;
  border-radius: 6px !important;
  background: #f8fafc !important;
  color: #172033 !important;
  font-size: 13px !important;
}

.h5-app #view-market.market-pairs-open .market-pair-filters,
.h5-app #view-kline.market-pairs-open .market-pair-filters {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.h5-app #view-market.market-pairs-open .market-pair-filters button,
.h5-app #view-kline.market-pairs-open .market-pair-filters button {
  min-height: 32px !important;
  padding: 0 8px !important;
  border: 1px solid #edf0f4 !important;
  border-radius: 6px !important;
  background: #f8fafc !important;
  color: #5f6b7a !important;
  font-size: 12px !important;
}

.h5-app #view-market.market-pairs-open .market-pair-filters button.active,
.h5-app #view-kline.market-pairs-open .market-pair-filters button.active {
  border-color: rgba(240, 83, 25, .42) !important;
  background: rgba(240, 83, 25, .09) !important;
  color: #f05319 !important;
}

.h5-app #view-market.market-pairs-open .market-list,
.h5-app #view-kline.market-pairs-open .market-list {
  padding: 0 !important;
}

.h5-app #view-market.market-pairs-open .market-list-head,
.h5-app #view-kline.market-pairs-open .market-list-head {
  grid-template-columns: minmax(0, 1.35fr) minmax(72px, .8fr) 30px !important;
  padding: 7px 4px !important;
  color: #8b96a7 !important;
}

.h5-app #view-market.market-pairs-open .pair-list-row,
.h5-app #view-kline.market-pairs-open .pair-list-row {
  grid-template-columns: minmax(0, 1.35fr) minmax(72px, .8fr) 30px !important;
  min-height: 58px !important;
  padding: 8px 4px !important;
  border-bottom: 1px solid #f1f3f6 !important;
  border-radius: 0 !important;
  background: #fff !important;
}

.h5-app #view-market.market-pairs-open .pair-list-row.active,
.h5-app #view-kline.market-pairs-open .pair-list-row.active {
  background: #f8fafc !important;
}

.h5-app #view-market.market-pairs-open .market-pair-name,
.h5-app #view-kline.market-pairs-open .market-pair-name {
  gap: 8px !important;
  min-width: 0 !important;
  padding-right: 0 !important;
}

.h5-app #view-market.market-pairs-open .market-coin-badge,
.h5-app #view-kline.market-pairs-open .market-coin-badge {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  flex-basis: 30px !important;
  border-radius: 8px !important;
  font-size: 11px !important;
}

.h5-app #view-market.market-pairs-open .market-symbol,
.h5-app #view-kline.market-pairs-open .market-symbol {
  color: #172033 !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
}

.h5-app #view-market.market-pairs-open .market-symbol span,
.h5-app #view-kline.market-pairs-open .market-symbol span,
.h5-app #view-market.market-pairs-open .market-meta,
.h5-app #view-kline.market-pairs-open .market-meta {
  color: #8b96a7 !important;
  font-size: 10px !important;
}

.h5-app #view-market.market-pairs-open .market-pair-price,
.h5-app #view-kline.market-pairs-open .market-pair-price {
  display: grid !important;
  justify-items: end !important;
}

.h5-app #view-market.market-pairs-open .market-pair-price strong,
.h5-app #view-kline.market-pairs-open .market-pair-price strong {
  color: #172033 !important;
  font-size: 12px !important;
}

.h5-app #view-market.market-pairs-open .market-pair-price small,
.h5-app #view-kline.market-pairs-open .market-pair-price small {
  font-size: 10px !important;
}

.h5-app #view-market.market-pairs-open .market-fav-toggle,
.h5-app #view-kline.market-pairs-open .market-fav-toggle {
  position: static !important;
  width: 30px !important;
  min-width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #c7ced8 !important;
  font-size: 18px !important;
}

/* 2026062154 reference auth and drawer alignment. */
#auth.hidden,
.auth-page.hidden {
  display: none !important;
}

.auth-page {
  min-height: 100svh !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: center !important;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom) !important;
  background: linear-gradient(180deg, #383847 0%, #242230 100%) !important;
  color: #333 !important;
}

.auth-shell,
.pc-auth-shell {
  width: min(430px, 100%) !important;
  min-height: 100svh !important;
  display: flex !important;
  flex-direction: column !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.auth-brand-panel {
  min-height: 130px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 30px 18px 10px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.auth-brand {
  min-height: 82px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  color: #f7f8ff !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  text-align: center !important;
}

.auth-brand .brand-mark {
  width: 80px !important;
  height: 80px !important;
  display: inline-grid !important;
  place-items: center !important;
  border-radius: 8px !important;
  background: linear-gradient(315deg, #4048ef 0%, #5a7bef 100%) !important;
  color: #fff !important;
  font-size: 28px !important;
  font-weight: 900 !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .18) !important;
}

.auth-brand .brand-mark.image-brand img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.auth-copy,
.auth-market-strip,
.auth-proof-grid,
.auth-tabs,
.auth-safe-note {
  display: none !important;
}

.auth-card {
  width: auto !important;
  display: grid !important;
  align-content: start !important;
  gap: 18px !important;
  min-height: 0 !important;
  margin: 10px 18px 0 !important;
  padding: 18px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: rgba(57, 57, 72, .94) !important;
  box-shadow: 0 0 33px rgba(34, 34, 44, .25) !important;
}

.auth-card-head {
  min-height: 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}

.auth-page[data-auth-mode="login"] .auth-card-head {
  display: none !important;
}

.auth-card-head span {
  color: #f7f8ff !important;
  font-size: 18px !important;
  font-weight: 900 !important;
}

.auth-card-head strong {
  display: none !important;
}

.auth-panel,
.auth-panel .form-grid {
  padding: 0 !important;
  overflow: visible !important;
}

.auth-panel .form-grid {
  display: grid !important;
  gap: 22px !important;
}

.auth-card .form-row {
  display: grid !important;
  gap: 8px !important;
  padding: 0 0 8px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, .12) !important;
  background: transparent !important;
}

.auth-card .form-row label {
  color: #f7f8ff !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.auth-card input {
  width: 100% !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #f7f8ff !important;
  font-size: 16px !important;
  box-shadow: none !important;
}

.auth-card input::placeholder {
  color: rgba(247, 248, 255, .55) !important;
}

.auth-card input:focus {
  box-shadow: none !important;
}

.auth-card #loginBtn,
.auth-card #registerSubmitBtn,
.auth-card #forgotBtn {
  width: 100% !important;
  min-height: 44px !important;
  margin-top: 0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: linear-gradient(315deg, #4048ef 0%, #5a7bef 100%) !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  box-shadow: none !important;
}

.auth-method-head {
  display: grid !important;
  justify-items: center !important;
  gap: 8px !important;
}

.auth-method-title {
  min-height: 28px !important;
  color: #f7f8ff !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  text-align: center !important;
}

.auth-method-icon,
.auth-method-head p {
  display: none !important;
}

.auth-method-tabs {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.auth-method-tabs button {
  min-height: 38px !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
  border-radius: 8px !important;
  background: rgba(72, 72, 89, .88) !important;
  color: rgba(247, 248, 255, .72) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  box-shadow: none !important;
}

.auth-method-tabs button.active {
  border-color: rgba(121, 212, 124, .52) !important;
  background: linear-gradient(328deg, #2fad66 0%, #9de686 100%) !important;
  color: #fff !important;
}

.auth-method-tabs button span {
  display: none !important;
}

.auth-code-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 104px !important;
  gap: 8px !important;
  align-items: center !important;
}

.auth-card .auth-code-btn.secondary {
  min-height: 34px !important;
  padding: 0 8px !important;
  border: 1px solid rgba(121, 212, 124, .36) !important;
  border-radius: 8px !important;
  background: rgba(121, 212, 124, .12) !important;
  color: #9de686 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.auth-form-foot {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  padding: 0 18px !important;
  color: rgba(247, 248, 255, .68) !important;
  font-size: 12px !important;
}

.auth-form-foot .auth-foot-right {
  min-width: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 4px !important;
  text-align: right !important;
}

.auth-form-foot small {
  display: none !important;
}

.auth-form-foot .ghost {
  min-height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #79d47c !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}

.h5-body {
  --pair-drawer-width: min(78vw, 320px) !important;
}

.h5-app #view-market.market-pairs-open .market-pair-card,
.h5-app #view-kline.market-pairs-open .kline-pair-drawer {
  display: block !important;
  position: fixed !important;
  top: 0 !important;
  bottom: 0 !important;
  left: max(calc((100vw - 430px) / 2), 0px) !important;
  width: var(--pair-drawer-width) !important;
  min-width: var(--pair-drawer-width) !important;
  max-width: 320px !important;
  height: auto !important;
  margin: 0 !important;
  border: 0 !important;
  border-right: 1px solid #1d2940 !important;
  border-radius: 0 !important;
  background: #0b1220 !important;
  color: #edf3ff !important;
  z-index: 88 !important;
  overflow: auto !important;
  box-shadow: 18px 0 40px rgba(0, 0, 0, .22) !important;
}

.h5-app #view-market.market-pairs-open .pair-overlay,
.h5-app #view-kline.market-pairs-open .pair-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: rgba(0, 0, 0, .48) !important;
  z-index: 87 !important;
  box-shadow: none !important;
}

.h5-app #view-market.market-pairs-open .market-pair-card .card-head,
.h5-app #view-kline.market-pairs-open .kline-pair-drawer .card-head {
  min-height: 58px !important;
  padding: 16px !important;
  border-bottom: 1px solid #1d2940 !important;
  background: transparent !important;
}

.h5-app #view-market.market-pairs-open .market-pair-head h2,
.h5-app #view-kline.market-pairs-open .market-pair-head h2 {
  color: #edf3ff !important;
  font-size: 17px !important;
}

.h5-app #view-market.market-pairs-open .market-pair-count,
.h5-app #view-kline.market-pairs-open .market-pair-count,
.h5-app #view-market.market-pairs-open .market-pair-card .badge,
.h5-app #view-kline.market-pairs-open .kline-pair-drawer .badge {
  display: inline-flex !important;
  color: #7f8da8 !important;
}

.h5-app #view-market.market-pairs-open .market-pair-body,
.h5-app #view-kline.market-pairs-open .market-pair-body {
  padding: 16px !important;
  gap: 12px !important;
}

.h5-app #view-market.market-pairs-open .market-pair-tools,
.h5-app #view-kline.market-pairs-open .market-pair-tools {
  position: static !important;
  top: auto !important;
  display: grid !important;
  gap: 8px !important;
  padding: 0 !important;
  background: transparent !important;
}

.h5-app #view-market.market-pairs-open .market-pair-tools input,
.h5-app #view-kline.market-pairs-open .market-pair-tools input {
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 12px !important;
  border: 1px solid #263653 !important;
  border-radius: 8px !important;
  background: #121d30 !important;
  color: #edf3ff !important;
  font-size: 13px !important;
}

.h5-app #view-market.market-pairs-open .market-pair-filters,
.h5-app #view-kline.market-pairs-open .market-pair-filters {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.h5-app #view-market.market-pairs-open .market-pair-filters button,
.h5-app #view-kline.market-pairs-open .market-pair-filters button {
  min-height: 36px !important;
  padding: 0 8px !important;
  border: 1px solid #263653 !important;
  border-radius: 8px !important;
  background: #121d30 !important;
  color: #edf3ff !important;
  font-size: 12px !important;
}

.h5-app #view-market.market-pairs-open .market-pair-filters button.active,
.h5-app #view-kline.market-pairs-open .market-pair-filters button.active {
  border-color: rgba(90, 123, 239, .7) !important;
  background: rgba(90, 123, 239, .18) !important;
  color: #8ba2ff !important;
}

.h5-app #view-market.market-pairs-open .market-list,
.h5-app #view-kline.market-pairs-open .market-list {
  padding: 0 !important;
}

.h5-app #view-market.market-pairs-open .market-list-head,
.h5-app #view-kline.market-pairs-open .market-list-head {
  grid-template-columns: minmax(0, 1.35fr) minmax(74px, .8fr) 30px !important;
  padding: 8px 0 !important;
  color: #7f8da8 !important;
}

.h5-app #view-market.market-pairs-open .pair-list-row,
.h5-app #view-kline.market-pairs-open .pair-list-row {
  grid-template-columns: minmax(0, 1.35fr) minmax(74px, .8fr) 30px !important;
  min-height: 58px !important;
  padding: 8px 0 !important;
  border-bottom: 1px solid #1d2940 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.h5-app #view-market.market-pairs-open .pair-list-row.active,
.h5-app #view-kline.market-pairs-open .pair-list-row.active {
  background: #121d30 !important;
}

.h5-app #view-market.market-pairs-open .market-pair-name,
.h5-app #view-kline.market-pairs-open .market-pair-name {
  gap: 8px !important;
  min-width: 0 !important;
  padding-right: 0 !important;
}

.h5-app #view-market.market-pairs-open .market-coin-badge,
.h5-app #view-kline.market-pairs-open .market-coin-badge {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  flex-basis: 30px !important;
  border-radius: 8px !important;
  font-size: 11px !important;
}

.h5-app #view-market.market-pairs-open .market-symbol,
.h5-app #view-kline.market-pairs-open .market-symbol {
  color: #edf3ff !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
}

.h5-app #view-market.market-pairs-open .market-symbol span,
.h5-app #view-kline.market-pairs-open .market-symbol span,
.h5-app #view-market.market-pairs-open .market-meta,
.h5-app #view-kline.market-pairs-open .market-meta {
  color: #7f8da8 !important;
  font-size: 10px !important;
}

.h5-app #view-market.market-pairs-open .market-pair-price,
.h5-app #view-kline.market-pairs-open .market-pair-price {
  display: grid !important;
  justify-items: end !important;
}

.h5-app #view-market.market-pairs-open .market-pair-price strong,
.h5-app #view-kline.market-pairs-open .market-pair-price strong {
  color: #edf3ff !important;
  font-size: 12px !important;
}

.h5-app #view-market.market-pairs-open .market-pair-price small,
.h5-app #view-kline.market-pairs-open .market-pair-price small {
  font-size: 10px !important;
}

.h5-app #view-market.market-pairs-open .market-fav-toggle,
.h5-app #view-kline.market-pairs-open .market-fav-toggle {
  position: static !important;
  width: 30px !important;
  min-width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #7f8da8 !important;
  font-size: 18px !important;
}

/* 2026062155 product cart checkout alignment. */
.h5-app #view-products #productGrid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  padding-bottom: 132px !important;
}

.h5-app #view-products .food-product-card {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 7px !important;
  min-width: 0 !important;
  padding: 8px !important;
  border-radius: 8px !important;
  background: #101827 !important;
}

.h5-app #view-products .food-product-card .product-cover {
  aspect-ratio: 1.12 !important;
  border-radius: 7px !important;
}

.h5-app #view-products .food-product-card .product-info h3 {
  min-height: 36px !important;
  margin: 0 !important;
  color: #edf3ff !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
}

.h5-app #view-products .food-product-card .product-price {
  display: grid !important;
  gap: 3px !important;
  align-items: start !important;
}

.h5-app #view-products .food-product-card .product-price strong {
  color: #16c784 !important;
  font-size: 14px !important;
}

.h5-app #view-products .food-product-card .product-price span,
.h5-app #view-products .food-product-card .product-coupon {
  font-size: 11px !important;
}

.h5-app #view-products .food-product-card .product-shop-actions {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
}

.h5-app #view-products .food-product-card .add-cart-btn,
.h5-app #view-products .food-product-card .product-inline-stepper {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 36px !important;
}

.h5-app #view-products .food-product-card .product-inline-stepper {
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) 34px !important;
}

.h5-app #view-products .food-product-card .product-inline-stepper strong {
  display: grid !important;
  place-items: center !important;
  color: #edf3ff !important;
}

.h5-app #view-products .cart-strip.has-items {
  position: fixed !important;
  left: max(calc((100vw - 430px) / 2), 0px) !important;
  right: max(calc((100vw - 430px) / 2), 0px) !important;
  bottom: calc(70px + env(safe-area-inset-bottom)) !important;
  z-index: 64 !important;
  display: grid !important;
  gap: 8px !important;
  padding: 0 12px !important;
  pointer-events: none !important;
}

.h5-app #view-products .cart-strip.has-items .cart-dock,
.h5-app #view-products .cart-strip.has-items .cart-items {
  pointer-events: auto !important;
}

.h5-app #view-products .cart-dock {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) auto auto !important;
  gap: 8px !important;
  align-items: center !important;
  padding: 8px !important;
  border: 1px solid rgba(240, 185, 11, .36) !important;
  border-radius: 12px !important;
  background: rgba(8, 13, 24, .98) !important;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .42) !important;
}

.h5-app #view-products .cart-dock #clearCartBtn {
  min-height: 36px !important;
  padding: 0 10px !important;
}

.h5-app #view-products .cart-dock #checkoutCartBtn {
  min-height: 38px !important;
  padding: 0 12px !important;
  white-space: nowrap !important;
}

.h5-app #view-products .cart-dock-main span,
.h5-app #view-products .cart-dock-main strong {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.h5-app #view-products .cart-items {
  display: none !important;
  max-height: 178px !important;
  overflow: auto !important;
  padding: 8px !important;
  border: 1px solid #1d2940 !important;
  border-radius: 12px !important;
  background: rgba(9, 15, 28, .98) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .34) !important;
}

.h5-app #view-products .cart-strip.cart-open .cart-items {
  display: grid !important;
  gap: 6px !important;
}

.h5-app #view-products .cart-line {
  display: grid !important;
  grid-template-columns: 36px minmax(0, 1fr) auto auto !important;
  gap: 8px !important;
  align-items: center !important;
  padding: 7px !important;
  border-radius: 8px !important;
  background: #101827 !important;
}

.h5-app #view-products .cart-line img {
  width: 36px !important;
  height: 36px !important;
  border-radius: 7px !important;
  object-fit: cover !important;
}

.h5-app #view-products .cart-line span {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: #edf3ff !important;
}

.h5-app #view-products .cart-line b {
  display: block !important;
  color: #16c784 !important;
  font-size: 12px !important;
  white-space: nowrap !important;
}

.h5-app #view-products .cart-line .qty-stepper.mini {
  grid-template-columns: 26px 28px 26px !important;
}

.checkout-section-title {
  margin: 4px 0 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.checkout-sheet {
  display: grid;
  gap: 10px;
}

.checkout-line-list {
  display: grid;
  gap: 8px;
}

.checkout-line {
  grid-template-columns: 54px minmax(0, 1fr) auto !important;
  gap: 12px !important;
}

.checkout-line strong {
  color: #0f172a;
}

.checkout-line b {
  color: #0f766e;
  white-space: nowrap;
}

.checkout-methods button {
  border-radius: 8px !important;
}

.checkout-pay-result:not(.hidden) {
  display: block !important;
}

.pay-success {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 18px 10px;
  text-align: center;
}

.pay-success strong {
  color: #16a34a;
  font-size: 20px;
}

.pay-success span,
.pay-success small {
  color: #64748b;
}

@media (max-width: 420px) {
  .h5-app #view-products .cart-dock {
    grid-template-columns: 42px minmax(0, 1fr) auto !important;
  }

  .h5-app #view-products .cart-dock #clearCartBtn {
    display: none !important;
  }

  .checkout-line {
    grid-template-columns: 46px minmax(0, 1fr) !important;
  }

  .checkout-line b {
    grid-column: 2 !important;
    justify-self: start !important;
  }
}

/* 2026062156 auth/deposit/pair drawer final alignment with reference H5. */
#auth.hidden,
.auth-page.hidden {
  display: none !important;
}

.auth-page {
  min-height: 100svh !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: center !important;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom) !important;
  background: linear-gradient(180deg, #383847 0%, #242230 100%) !important;
  color: #f7f8ff !important;
}

.auth-shell,
.pc-auth-shell {
  width: min(430px, 100%) !important;
  min-height: 100svh !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.auth-brand-panel {
  min-height: 132px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 30px 18px 12px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.auth-page[data-auth-mode="register"] .auth-brand-panel,
.auth-page[data-auth-mode="forgot"] .auth-brand-panel {
  min-height: 44px !important;
  padding: 18px 18px 0 !important;
}

.auth-page[data-auth-mode="register"] .auth-brand-panel .brand-mark,
.auth-page[data-auth-mode="forgot"] .auth-brand-panel .brand-mark,
.auth-page[data-auth-mode="register"] .auth-brand span:last-child,
.auth-page[data-auth-mode="forgot"] .auth-brand span:last-child {
  display: none !important;
}

.auth-brand {
  min-height: 82px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  color: #f7f8ff !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  text-align: center !important;
}

.auth-brand .brand-mark {
  width: 80px !important;
  height: 80px !important;
  display: inline-grid !important;
  place-items: center !important;
  overflow: hidden !important;
  border-radius: 8px !important;
  background: linear-gradient(315deg, #4048ef 0%, #5a7bef 100%) !important;
  color: #fff !important;
  font-size: 28px !important;
  font-weight: 900 !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .18) !important;
}

.auth-brand .brand-mark.image-brand img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.auth-copy,
.auth-market-strip,
.auth-proof-grid,
.auth-tabs,
.auth-safe-note {
  display: none !important;
}

.auth-card {
  width: auto !important;
  display: grid !important;
  align-content: start !important;
  gap: 20px !important;
  min-height: 0 !important;
  margin: 8px 18px 0 !important;
  padding: 18px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: rgba(57, 57, 72, .96) !important;
  box-shadow: 0 0 33px rgba(34, 34, 44, .25) !important;
}

.auth-card-head {
  min-height: 30px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}

.auth-page[data-auth-mode="login"] .auth-card-head {
  display: none !important;
}

.auth-card-head span,
.auth-method-title {
  color: #f7f8ff !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  text-align: center !important;
}

.auth-card-head strong,
.auth-method-icon,
.auth-method-head p {
  display: none !important;
}

.auth-panel,
.auth-panel .form-grid {
  max-height: none !important;
  padding: 0 !important;
  overflow: visible !important;
}

.auth-panel .form-grid {
  display: grid !important;
  gap: 22px !important;
}

.auth-card .form-row {
  display: grid !important;
  gap: 8px !important;
  padding: 0 0 8px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, .12) !important;
  background: transparent !important;
}

.auth-card .form-row label {
  color: #f7f8ff !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.auth-card input {
  width: 100% !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #f7f8ff !important;
  font-size: 16px !important;
  box-shadow: none !important;
}

.auth-card input::placeholder {
  color: rgba(247, 248, 255, .55) !important;
}

.auth-card input:focus {
  box-shadow: none !important;
}

.auth-card #loginBtn,
.auth-card #registerSubmitBtn,
.auth-card #forgotBtn {
  width: 100% !important;
  min-height: 44px !important;
  margin-top: 0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: linear-gradient(315deg, #4048ef 0%, #5a7bef 100%) !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  box-shadow: none !important;
}

.auth-method-head {
  display: grid !important;
  justify-items: center !important;
  gap: 8px !important;
}

.auth-method-tabs {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.auth-method-tabs button {
  min-height: 38px !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
  border-radius: 8px !important;
  background: rgba(72, 72, 89, .88) !important;
  color: rgba(247, 248, 255, .72) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  box-shadow: none !important;
}

.auth-method-tabs button.active {
  border-color: rgba(121, 212, 124, .52) !important;
  background: linear-gradient(328deg, #2fad66 0%, #9de686 100%) !important;
  color: #fff !important;
}

.auth-method-tabs button span {
  display: none !important;
}

.auth-code-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 104px !important;
  gap: 8px !important;
  align-items: center !important;
}

.auth-card .auth-code-btn.secondary {
  min-height: 34px !important;
  padding: 0 8px !important;
  border: 1px solid rgba(121, 212, 124, .36) !important;
  border-radius: 8px !important;
  background: rgba(121, 212, 124, .12) !important;
  color: #9de686 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.auth-card .auth-code-btn.secondary:disabled {
  opacity: .58 !important;
}

.auth-form-foot {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  padding: 0 !important;
  color: rgba(247, 248, 255, .68) !important;
  font-size: 12px !important;
}

.auth-form-foot .auth-foot-right {
  min-width: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 4px !important;
  text-align: right !important;
}

.auth-form-foot small {
  display: none !important;
}

.auth-form-foot .ghost {
  min-height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #79d47c !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}

.h5-body {
  --pair-drawer-width: min(78vw, 320px) !important;
}

.h5-app #view-market .market-pair-card,
.h5-app #view-kline .kline-pair-drawer {
  display: block !important;
  position: fixed !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: var(--pair-drawer-width) !important;
  min-width: var(--pair-drawer-width) !important;
  max-width: 320px !important;
  height: auto !important;
  margin: 0 !important;
  border: 0 !important;
  border-right: 1px solid var(--line) !important;
  border-radius: 0 !important;
  background: #0b1220 !important;
  color: #edf3ff !important;
  z-index: 88 !important;
  overflow: auto !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateX(-100%) !important;
  transition: transform .22s ease, visibility .22s ease !important;
  box-shadow: 18px 0 40px rgba(0, 0, 0, .22) !important;
}

.h5-app #view-market.market-pairs-open .market-pair-card,
.h5-app #view-kline.market-pairs-open .kline-pair-drawer {
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(0) !important;
}

.h5-app #view-market.market-pairs-open .pair-overlay,
.h5-app #view-kline.market-pairs-open .pair-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: rgba(0, 0, 0, .48) !important;
  z-index: 87 !important;
  box-shadow: none !important;
}

.h5-app #view-market .market-pair-card .card-head,
.h5-app #view-kline .kline-pair-drawer .card-head {
  min-height: 58px !important;
  padding: 16px !important;
  border-bottom: 1px solid #1d2940 !important;
  background: transparent !important;
}

.h5-app #view-market .market-pair-body,
.h5-app #view-kline .market-pair-body {
  padding: 16px !important;
  gap: 12px !important;
}

.h5-app #view-market .market-pair-tools,
.h5-app #view-kline .market-pair-tools {
  position: static !important;
  top: auto !important;
  display: grid !important;
  gap: 8px !important;
  padding: 0 !important;
  background: transparent !important;
}

.h5-app #view-market .market-pair-head h2,
.h5-app #view-kline .market-pair-head h2,
.h5-app #view-market .market-symbol,
.h5-app #view-kline .market-symbol,
.h5-app #view-market .market-pair-price strong,
.h5-app #view-kline .market-pair-price strong {
  color: #edf3ff !important;
}

.h5-app #view-market .market-pair-count,
.h5-app #view-kline .market-pair-count,
.h5-app #view-market .market-pair-card .badge,
.h5-app #view-kline .kline-pair-drawer .badge,
.h5-app #view-market .market-symbol span,
.h5-app #view-kline .market-symbol span,
.h5-app #view-market .market-meta,
.h5-app #view-kline .market-meta {
  color: #7f8da8 !important;
}

.h5-app #view-market .market-pair-tools input,
.h5-app #view-kline .market-pair-tools input,
.h5-app #view-market .market-pair-filters button,
.h5-app #view-kline .market-pair-filters button {
  border: 1px solid #263653 !important;
  border-radius: 8px !important;
  background: #121d30 !important;
  color: #edf3ff !important;
}

.h5-app #view-market .market-pair-filters button.active,
.h5-app #view-kline .market-pair-filters button.active {
  border-color: rgba(90, 123, 239, .7) !important;
  background: rgba(90, 123, 239, .18) !important;
  color: #8ba2ff !important;
}

.h5-app #view-market .pair-list-row,
.h5-app #view-kline .pair-list-row {
  border-bottom: 1px solid #1d2940 !important;
  background: transparent !important;
}

.h5-app #view-market .pair-list-row.active,
.h5-app #view-kline .pair-list-row.active {
  background: #121d30 !important;
}

.deposit-flow-title {
  margin: 0 0 12px !important;
}

/* 2026062157 compact pair drawer, theme switch, refresh guard. */
html.auth-checking #auth,
html.auth-checking #app {
  display: none !important;
}

html.auth-checking,
html.auth-checking body {
  background: #090f1c !important;
}

.h5-body {
  --pair-drawer-width: min(62vw, 260px) !important;
}

.h5-app #view-market .market-pair-card,
.h5-app #view-kline .kline-pair-drawer {
  width: var(--pair-drawer-width) !important;
  min-width: var(--pair-drawer-width) !important;
  max-width: 260px !important;
}

.h5-app #view-market .market-pair-card .card-head,
.h5-app #view-kline .kline-pair-drawer .card-head {
  min-height: 48px !important;
  padding: 12px !important;
}

.h5-app #view-market .market-pair-head h2,
.h5-app #view-kline .market-pair-head h2 {
  font-size: 15px !important;
}

.h5-app #view-market .market-pair-card .badge,
.h5-app #view-kline .kline-pair-drawer .badge,
.h5-app #view-market .market-meta,
.h5-app #view-kline .market-meta {
  display: none !important;
}

.h5-app #view-market .market-pair-body,
.h5-app #view-kline .market-pair-body {
  padding: 10px !important;
}

.h5-app #view-market .market-pair-tools input,
.h5-app #view-kline .market-pair-tools input {
  height: 34px !important;
  min-height: 34px !important;
  font-size: 12px !important;
}

.h5-app #view-market .market-pair-filters button,
.h5-app #view-kline .market-pair-filters button {
  min-height: 30px !important;
  font-size: 11px !important;
}

.h5-app #view-market .market-list-head,
.h5-app #view-kline .market-list-head,
.h5-app #view-market .pair-list-row,
.h5-app #view-kline .pair-list-row {
  grid-template-columns: minmax(0, 1fr) minmax(58px, .72fr) 24px !important;
}

.h5-app #view-market .pair-list-row,
.h5-app #view-kline .pair-list-row {
  min-height: 48px !important;
  padding: 7px 0 !important;
}

.h5-app #view-market .market-coin-badge,
.h5-app #view-kline .market-coin-badge {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  flex-basis: 26px !important;
  border-radius: 7px !important;
  font-size: 10px !important;
}

.h5-app #view-market .market-symbol,
.h5-app #view-kline .market-symbol {
  font-size: 12px !important;
}

.h5-app #view-market .market-pair-price strong,
.h5-app #view-kline .market-pair-price strong {
  max-width: 62px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 11px !important;
}

.h5-app #view-market .market-fav-toggle,
.h5-app #view-kline .market-fav-toggle {
  width: 24px !important;
  min-width: 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  font-size: 16px !important;
}

/* 2026062160 final cascade guard: reference auth and drawer-sized pair picker. */
.auth-page {
  min-height: 100svh !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: center !important;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom) !important;
  background: linear-gradient(to bottom, #383847, #242230) !important;
  color: #f7f8ff !important;
}

.auth-shell,
.pc-auth-shell {
  width: min(430px, 100%) !important;
  min-height: 100svh !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.auth-brand-panel {
  min-height: 136px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 28px 18px 14px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.auth-page[data-auth-mode="register"] .auth-brand-panel,
.auth-page[data-auth-mode="forgot"] .auth-brand-panel {
  min-height: 92px !important;
  padding: 20px 18px 8px !important;
}

.auth-brand {
  min-height: 88px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  color: #f7f8ff !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  text-align: center !important;
}

.auth-brand .brand-mark {
  width: 80px !important;
  height: 80px !important;
  min-width: 80px !important;
  border-radius: 8px !important;
  background: linear-gradient(315deg, #4048ef 0%, #5a7bef 100%) !important;
  color: #fff !important;
  font-size: 28px !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .18) !important;
}

.auth-page[data-auth-mode="register"] .auth-brand .brand-mark,
.auth-page[data-auth-mode="forgot"] .auth-brand .brand-mark {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  font-size: 20px !important;
}

.auth-copy,
.auth-market-strip,
.auth-proof-grid,
.auth-tabs,
.auth-safe-note {
  display: none !important;
}

.auth-card {
  width: auto !important;
  min-height: 0 !important;
  display: grid !important;
  align-content: start !important;
  gap: 18px !important;
  margin: 8px 18px 0 !important;
  padding: 18px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #393948 !important;
  color: #f7f8ff !important;
  box-shadow: 0 0 33px rgba(34, 34, 44, .25) !important;
}

.auth-page[data-auth-mode="login"] .auth-card-head {
  display: none !important;
}

.auth-card-head {
  min-height: 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}

.auth-card-head span,
.auth-method-title {
  color: #f7f8ff !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  text-align: center !important;
}

.auth-card-head strong,
.auth-method-icon,
.auth-method-head p {
  display: none !important;
}

.auth-panel,
.auth-panel .form-grid {
  max-height: none !important;
  padding: 0 !important;
  overflow: visible !important;
}

.auth-panel .form-grid {
  display: grid !important;
  gap: 18px !important;
}

.auth-card .form-row {
  display: grid !important;
  gap: 8px !important;
  padding: 0 0 8px !important;
  border: 0 !important;
  border-bottom: 1px solid #49495f !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.auth-card .form-row label {
  color: #f7f8ff !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.auth-card input {
  width: 100% !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #f7f8ff !important;
  font-size: 16px !important;
  box-shadow: none !important;
}

.auth-card input::placeholder {
  color: rgba(247, 248, 255, .55) !important;
}

.auth-card input:focus {
  box-shadow: none !important;
}

.auth-card #loginBtn,
.auth-card #registerSubmitBtn,
.auth-card #forgotBtn {
  width: 100% !important;
  min-height: 44px !important;
  margin-top: 0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: linear-gradient(315deg, #4048ef 0%, #5a7bef 100%) !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  box-shadow: none !important;
}

.auth-method-head {
  display: grid !important;
  justify-items: center !important;
  gap: 8px !important;
}

.auth-method-tabs {
  display: flex !important;
  justify-content: center !important;
  gap: 22px !important;
  padding: 0 0 2px !important;
  border: 0 !important;
  background: transparent !important;
}

.auth-method-tabs button {
  position: relative !important;
  min-height: 30px !important;
  padding: 0 2px 10px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #cdd2df !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

.auth-method-tabs button::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  bottom: 0 !important;
  width: 5px !important;
  height: 5px !important;
  border-radius: 999px !important;
  background: transparent !important;
  transform: translateX(-50%) !important;
}

.auth-method-tabs button.active {
  color: #f7f8ff !important;
}

.auth-method-tabs button.active::after {
  background: #f7f8ff !important;
}

.auth-method-tabs button span {
  display: none !important;
}

.auth-code-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 104px !important;
  gap: 8px !important;
  align-items: center !important;
}

.auth-card .auth-code-btn.secondary {
  min-height: 34px !important;
  padding: 0 8px !important;
  border: 1px solid rgba(121, 212, 124, .38) !important;
  border-radius: 8px !important;
  background: rgba(121, 212, 124, .12) !important;
  color: #9de686 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.auth-form-foot {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  min-height: 24px !important;
  padding: 0 !important;
  color: rgba(247, 248, 255, .72) !important;
  font-size: 12px !important;
}

.auth-form-foot .auth-foot-right {
  min-width: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 4px !important;
  text-align: right !important;
}

.auth-form-foot .ghost {
  min-height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #ea3131 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}

.h5-body {
  --pair-drawer-width: min(78vw, 320px) !important;
}

.h5-app #view-market .market-pair-card,
.h5-app #view-kline .kline-pair-drawer {
  display: block !important;
  position: fixed !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: var(--pair-drawer-width) !important;
  min-width: var(--pair-drawer-width) !important;
  max-width: 320px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-right: 1px solid #1d2940 !important;
  border-radius: 0 !important;
  background: #0b1220 !important;
  color: #edf3ff !important;
  z-index: 88 !important;
  overflow: auto !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateX(-100%) !important;
  transition: transform .22s ease, visibility .22s ease !important;
  box-shadow: 18px 0 40px rgba(0, 0, 0, .22) !important;
}

.h5-app #view-market.market-pairs-open .market-pair-card,
.h5-app #view-kline.market-pairs-open .kline-pair-drawer {
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(0) !important;
}

.h5-app #view-market.market-pairs-open .pair-overlay,
.h5-app #view-kline.market-pairs-open .pair-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: rgba(0, 0, 0, .48) !important;
  z-index: 87 !important;
  box-shadow: none !important;
}

.h5-app #view-market .market-pair-card .card-head,
.h5-app #view-kline .kline-pair-drawer .card-head {
  min-height: 58px !important;
  padding: 16px !important;
  border-bottom: 1px solid #1d2940 !important;
  background: transparent !important;
}

.h5-app #view-market .market-pair-body,
.h5-app #view-kline .market-pair-body {
  padding: 16px !important;
  gap: 12px !important;
}

.h5-app #view-market .market-pair-card .badge,
.h5-app #view-kline .kline-pair-drawer .badge,
.h5-app #view-market .market-meta,
.h5-app #view-kline .market-meta {
  display: initial !important;
}

.h5-app #view-market .market-pair-card .badge,
.h5-app #view-kline .kline-pair-drawer .badge {
  display: inline-flex !important;
}

.h5-app #view-market .market-list-head,
.h5-app #view-kline .market-list-head,
.h5-app #view-market .pair-list-row,
.h5-app #view-kline .pair-list-row {
  grid-template-columns: minmax(0, 1.35fr) minmax(72px, .8fr) 30px !important;
}

.h5-app #view-market .pair-list-row,
.h5-app #view-kline .pair-list-row {
  min-height: 58px !important;
  padding: 8px 4px !important;
}

.h5-app #view-market .market-coin-badge,
.h5-app #view-kline .market-coin-badge {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  flex-basis: 30px !important;
  border-radius: 8px !important;
  font-size: 11px !important;
}

.h5-app #view-market .market-symbol,
.h5-app #view-kline .market-symbol {
  font-size: 13px !important;
}

.h5-app #view-market .market-pair-price strong,
.h5-app #view-kline .market-pair-price strong {
  max-width: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  font-size: 12px !important;
}

.h5-app #view-market .market-fav-toggle,
.h5-app #view-kline .market-fav-toggle {
  width: 30px !important;
  min-width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  font-size: 18px !important;
}

/* 2026062162 terminal light-theme guard. Keep this at EOF so late dark reference rules cannot win. */
html.light-ui {
  color-scheme: light !important;
  --bg: #f6f6f6 !important;
  --panel: #ffffff !important;
  --panel-2: #f7f7f7 !important;
  --panel-3: #ffffff !important;
  --text: #111827 !important;
  --muted: #666666 !important;
  --line: #dcdee0 !important;
  --brand: #bf5fc1 !important;
  --brand-2: #16a36f !important;
  --danger: #e5484d !important;
  --warn: #d99a00 !important;
  --shadow: 0 0 26px rgba(34, 34, 44, .06) !important;
}

body.light-ui,
html.light-ui body {
  background: #f6f6f6 !important;
  color: #111827 !important;
}

body.light-ui .h5-app,
body.light-ui .h5-main,
body.light-ui .app-shell,
body.light-ui .main,
body.light-ui .h5-app.home-view .h5-main,
body.light-ui .h5-app.main-tab-view .h5-main,
body.light-ui .h5-app:not(.home-view) .h5-main {
  background: #f6f6f6 !important;
  color: #111827 !important;
  box-shadow: none !important;
}

body.light-ui .card,
body.light-ui .card-body,
body.light-ui .soft-panel,
body.light-ui .notice,
body.light-ui .metric,
body.light-ui .product-card,
body.light-ui .home-product-card,
body.light-ui .wallet-form-card,
body.light-ui .wallet-history-card,
body.light-ui .wallet-coin-row,
body.light-ui .position-card,
body.light-ui .contract-order-card,
body.light-ui .withdraw-address-card,
body.light-ui .invite-card,
body.light-ui .chain-mode-card,
body.light-ui .cart-strip,
body.light-ui .trade-mobile-tabs,
body.light-ui .trade-tab-panel,
body.light-ui .trade-ticket-card .trade-ticket-body,
body.light-ui #walletFundCard,
body.light-ui #walletContractCard {
  border-color: #dcdee0 !important;
  background: #ffffff !important;
  color: #111827 !important;
  box-shadow: 0 0 26px rgba(34, 34, 44, .06) !important;
}

body.light-ui .card-head,
body.light-ui .soft-panel-head,
body.light-ui .page-head,
body.light-ui .wallet-tabs,
body.light-ui .fund-account-actions,
body.light-ui .wallet-search input {
  border-color: #dcdee0 !important;
  background: #ffffff !important;
  color: #111827 !important;
}

body.light-ui .card-head h2,
body.light-ui .card-head h3,
body.light-ui .topbar h1,
body.light-ui .h5-header strong,
body.light-ui .wallet-page-title,
body.light-ui .home-section-head h2,
body.light-ui .drawer-user strong,
body.light-ui .market-symbol,
body.light-ui .market-pair-head h2,
body.light-ui .market-pair-price strong,
body.light-ui .price,
body.light-ui .metric .value,
body.light-ui .wallet-coin-head strong,
body.light-ui .wallet-coin-metrics strong,
body.light-ui .trade-summary-left button,
body.light-ui .trade-summary-left strong,
body.light-ui .kline-pair-btn,
body.light-ui .kline-info-grid strong,
body.light-ui .contract-asset-box strong,
body.light-ui .wallet-available-line strong,
body.light-ui .trade-total-row strong,
body.light-ui .notice strong,
body.light-ui .notice-detail-card h2,
body.light-ui .deposit-flow-title,
body.light-ui .asset-value,
body.light-ui .asset-total,
body.light-ui .asset-owner-row b,
body.light-ui .page-head h2 {
  color: #111827 !important;
}

body.light-ui .muted,
body.light-ui .label,
body.light-ui .form-row label,
body.light-ui .market-meta,
body.light-ui .market-pair-count,
body.light-ui .market-symbol span,
body.light-ui .drawer-user-id,
body.light-ui .wallet-coin-head span,
body.light-ui .wallet-coin-metrics label,
body.light-ui .asset-estimate,
body.light-ui .trade-summary-stats span,
body.light-ui .form-row small,
body.light-ui .notice div,
body.light-ui .notice-foot,
body.light-ui .deposit-auto-hint,
body.light-ui .deposit-address-info > span,
body.light-ui .deposit-address-info > small,
body.light-ui .deposit-proof-panel small,
body.light-ui .kline-bottom-strip-head,
body.light-ui .kline-bottom-strip-head button,
body.light-ui .contract-order-top small {
  color: #666666 !important;
}

body.light-ui input,
body.light-ui select,
body.light-ui textarea,
body.light-ui .wallet-search input,
body.light-ui .market-pair-tools input,
body.light-ui .trade-ticket-card input,
body.light-ui .trade-ticket-card select {
  border-color: #dcdee0 !important;
  background: #ffffff !important;
  color: #111827 !important;
  box-shadow: none !important;
}

body.light-ui input::placeholder,
body.light-ui textarea::placeholder {
  color: #999999 !important;
}

body.light-ui input:focus,
body.light-ui select:focus,
body.light-ui textarea:focus {
  border-color: #bf5fc1 !important;
  box-shadow: 0 0 0 3px rgba(191, 95, 193, .12) !important;
}

body.light-ui button.secondary,
body.light-ui .secondary,
body.light-ui .badge,
body.light-ui .theme-switch,
body.light-ui [data-theme-toggle] {
  border-color: #dcdee0 !important;
  background: #f7f7f7 !important;
  color: #4b5563 !important;
  box-shadow: none !important;
}

body.light-ui button.ghost,
body.light-ui .back-icon-only {
  background: transparent !important;
  color: #4b5563 !important;
  box-shadow: none !important;
}

body.light-ui .badge.good,
body.light-ui .up {
  color: #16a36f !important;
}

body.light-ui .badge.bad,
body.light-ui .down {
  color: #e5484d !important;
}

body.light-ui .badge.warn {
  color: #d99a00 !important;
}

body.light-ui th {
  border-color: #dcdee0 !important;
  background: #f7f7f7 !important;
  color: #666666 !important;
}

body.light-ui td {
  border-color: #eeeeee !important;
  color: #111827 !important;
}

body.light-ui .h5-header {
  border-color: #dcdee0 !important;
  background: rgba(255, 255, 255, .98) !important;
  color: #111827 !important;
  box-shadow: 0 6px 18px rgba(34, 34, 44, .04) !important;
}

body.light-ui .h5-menu-btn,
body.light-ui .h5-lang-btn,
body.light-ui .h5-header.home-only .user-strip .icon-btn,
body.light-ui .trade-symbol-icon,
body.light-ui .h5-app .kline-tool-btn,
body.light-ui .h5-app .kline-side-toolbar button {
  border-color: #dcdee0 !important;
  background: #ffffff !important;
  color: #4b5563 !important;
  box-shadow: none !important;
}

body.light-ui .h5-menu-btn:hover,
body.light-ui .h5-lang-btn:hover,
body.light-ui .trade-symbol-icon.active,
body.light-ui .trade-symbol-icon:hover,
body.light-ui .h5-app .kline-tool-btn.active,
body.light-ui .h5-app .kline-side-toolbar button.active {
  border-color: rgba(191, 95, 193, .42) !important;
  background: rgba(191, 95, 193, .08) !important;
  color: #bf5fc1 !important;
}

body.light-ui .header-bell-icon,
body.light-ui .header-bell-icon path,
body.light-ui .header-bell-icon circle {
  stroke: #4b5563 !important;
}

body.light-ui .bottom-tabs {
  border-color: #dcdee0 !important;
  background: rgba(255, 255, 255, .98) !important;
  box-shadow: 0 -9px 14px rgba(0, 0, 0, .06) !important;
}

body.light-ui .bottom-tabs button {
  color: #666666 !important;
  background: transparent !important;
}

body.light-ui .bottom-tabs button.active {
  color: #bf5fc1 !important;
  background: transparent !important;
}

body.light-ui .drawer-panel,
body.light-ui .h5-app #view-market .market-pair-card,
body.light-ui .h5-app #view-kline .kline-pair-drawer {
  border-color: #dcdee0 !important;
  border-right-color: #dcdee0 !important;
  background: #ffffff !important;
  color: #111827 !important;
  box-shadow: 18px 0 40px rgba(15, 23, 42, .12) !important;
}

body.light-ui .drawer-user,
body.light-ui .drawer-section,
body.light-ui .h5-app #view-market .market-pair-card .card-head,
body.light-ui .h5-app #view-kline .kline-pair-drawer .card-head,
body.light-ui .h5-app .market-pair-tools,
body.light-ui .h5-app .market-list-head,
body.light-ui .h5-app .pair-list-row {
  border-color: #dcdee0 !important;
  background: #ffffff !important;
}

body.light-ui .drawer-section button,
body.light-ui .drawer-section a {
  border-color: #dcdee0 !important;
  background: #f7f7f7 !important;
  color: #4b5563 !important;
  box-shadow: none !important;
}

body.light-ui .drawer-section button:hover,
body.light-ui .drawer-section a:hover,
body.light-ui .theme-switch:hover,
body.light-ui [data-theme-toggle]:hover {
  color: #bf5fc1 !important;
  border-color: rgba(191, 95, 193, .36) !important;
}

body.light-ui .h5-app .pair-list-row.active,
body.light-ui .market-row.active,
body.light-ui .market-row:hover {
  background: #faf2fb !important;
}

body.light-ui .market-coin-badge,
body.light-ui .coin-avatar {
  background: linear-gradient(135deg, #bf5fc1, #5a7bef) !important;
  color: #ffffff !important;
}

body.light-ui .market-fav-toggle {
  background: transparent !important;
  color: #9ca3af !important;
}

body.light-ui .market-fav-toggle.active {
  color: #bf5fc1 !important;
}

body.light-ui .h5-app.home-view #view-overview {
  background: transparent !important;
}

body.light-ui .h5-app.home-view .home-carousel,
body.light-ui .home-carousel {
  border: 1px solid #dcdee0 !important;
  background: url("/ref-img/bgb4.png") center / cover no-repeat, #ffffff !important;
  box-shadow: none !important;
}

body.light-ui .h5-app.home-view .home-slide,
body.light-ui .home-slide {
  background: linear-gradient(90deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .44) 68%, rgba(255, 255, 255, .16)) !important;
}

body.light-ui .h5-app.home-view .home-slide span,
body.light-ui .home-slide span,
body.light-ui .home-notice-strip > span {
  color: #bf5fc1 !important;
}

body.light-ui .h5-app.home-view .home-slide strong,
body.light-ui .home-slide strong,
body.light-ui .home-market-item strong,
body.light-ui .home-market-item em,
body.light-ui .home-product-card strong {
  color: #111827 !important;
}

body.light-ui .h5-app.home-view .home-slide small,
body.light-ui .home-slide small,
body.light-ui .home-market-item span,
body.light-ui .home-product-card span {
  color: #666666 !important;
}

body.light-ui .home-notice-strip,
body.light-ui .quick-actions,
body.light-ui .home-market-preview {
  border: 1px solid #dcdee0 !important;
  background: #ffffff !important;
  color: #111827 !important;
  box-shadow: none !important;
}

body.light-ui .quick-actions button {
  background: transparent !important;
  color: #111827 !important;
}

body.light-ui .home-market-item {
  border-color: #eeeeee !important;
  background: transparent !important;
}

body.light-ui .home-product-card em {
  color: #bf5fc1 !important;
}

body.light-ui .trade-mode-tabs,
body.light-ui #view-market .tabs,
body.light-ui .tabs,
body.light-ui .segmented {
  border-color: #dcdee0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

body.light-ui .trade-mode-tabs button,
body.light-ui #view-market .tabs button,
body.light-ui .tabs button,
body.light-ui .segmented button,
body.light-ui .trade-ticket-card .percent-row button,
body.light-ui .trade-ticket-card .leverage-options button {
  border-color: #dcdee0 !important;
  background: #f7f7f7 !important;
  color: #4b5563 !important;
  box-shadow: none !important;
}

body.light-ui .trade-mode-tabs button.active,
body.light-ui #view-market .tabs button.active,
body.light-ui .tabs button.active,
body.light-ui .segmented button.active {
  border-color: #bf5fc1 !important;
  background: #bf5fc1 !important;
  color: #ffffff !important;
}

body.light-ui .trade-symbol-bar,
body.light-ui .h5-app .kline-topbar,
body.light-ui .trade-symbol-picker,
body.light-ui .h5-app .kline-symbol-main {
  background: transparent !important;
  color: #111827 !important;
}

body.light-ui .trade-summary-panel,
body.light-ui .kline-summary,
body.light-ui .h5-app #view-kline .kline-summary {
  background: transparent !important;
  color: #111827 !important;
  box-shadow: none !important;
}

body.light-ui .trade-side-block,
body.light-ui .h5-app #view-market .trade-side-block {
  border-color: #dcdee0 !important;
  background: #f7f7f7 !important;
}

body.light-ui .trade-side-block button,
body.light-ui .h5-app #view-market .trade-side-block button {
  background: transparent !important;
  color: #4b5563 !important;
}

body.light-ui .trade-side-block button.good.active,
body.light-ui .h5-app #view-market .trade-side-block button.good.active {
  background: #16a36f !important;
  color: #ffffff !important;
}

body.light-ui .trade-side-block button.bad.active,
body.light-ui .h5-app #view-market .trade-side-block button.bad.active {
  background: #e5484d !important;
  color: #ffffff !important;
}

body.light-ui .percent-row button.active,
body.light-ui .trade-ticket-card .percent-row button.active,
body.light-ui .trade-ticket-card .leverage-options button.active {
  border-color: #bf5fc1 !important;
  background: rgba(191, 95, 193, .1) !important;
  color: #9b3f9d !important;
}

body.light-ui .depth-chart,
body.light-ui .mobile-depth-book,
body.light-ui .h5-app #view-kline .kline-chart-card,
body.light-ui .h5-app #view-kline .kline-chart-tools,
body.light-ui .h5-app #view-kline .kline-chart-stage,
body.light-ui .h5-app #view-kline .chart-wrap,
body.light-ui .h5-app #view-kline .period-tabs,
body.light-ui .h5-app .kline-bottom-pairs,
body.light-ui .h5-app .kline-bottom-pair,
body.light-ui .h5-app #view-kline .kline-tabs-card,
body.light-ui .kline-info-tabs,
body.light-ui .kline-info-panel {
  border-color: #dcdee0 !important;
  background: #ffffff !important;
  color: #111827 !important;
  box-shadow: none !important;
}

body.light-ui .depth-chart line {
  stroke: #dcdee0 !important;
}

body.light-ui .mobile-depth-head,
body.light-ui .mobile-depth-row {
  border-color: #eeeeee !important;
  color: #666666 !important;
  background: transparent !important;
}

body.light-ui .h5-app #view-kline .kline-mode-tabs {
  border-color: #dcdee0 !important;
  background: #ffffff !important;
}

body.light-ui .h5-app #view-kline .kline-mode-tabs button {
  border-color: #dcdee0 !important;
  background: #f7f7f7 !important;
  color: #4b5563 !important;
}

body.light-ui .h5-app #view-kline .kline-mode-tabs button.active {
  border-color: #bf5fc1 !important;
  background: #bf5fc1 !important;
  color: #ffffff !important;
}

body.light-ui .h5-app #view-kline .period-tabs button,
body.light-ui .kline-info-tabs button {
  background: transparent !important;
  color: #666666 !important;
}

body.light-ui .h5-app #view-kline .period-tabs button.active,
body.light-ui .kline-info-tabs button.active {
  color: #bf5fc1 !important;
}

body.light-ui .h5-app #view-kline .period-tabs button.active {
  box-shadow: inset 0 -2px 0 #bf5fc1 !important;
}

body.light-ui .h5-app .kline-bottom-pair.active {
  border-color: rgba(191, 95, 193, .45) !important;
  background: #faf2fb !important;
  box-shadow: inset 0 2px 0 #bf5fc1 !important;
}

body.light-ui .trade-bottom-actions {
  background: #ffffff !important;
  box-shadow: 0 -8px 20px rgba(15, 23, 42, .06) !important;
}

body.light-ui .asset-hero,
body.light-ui .h5-app #view-wallet .asset-hero {
  border: 1px solid #dcdee0 !important;
  background: linear-gradient(135deg, #ffffff, #faf2fb) !important;
  color: #111827 !important;
  box-shadow: none !important;
}

body.light-ui .asset-actions button {
  border: 1px solid #dcdee0 !important;
  background: #ffffff !important;
  color: #111827 !important;
}

body.light-ui .wallet-tabs button {
  background: transparent !important;
  color: #666666 !important;
}

body.light-ui .wallet-tabs button.active,
body.light-ui .h5-app #view-wallet .wallet-tabs button.active {
  background: rgba(191, 95, 193, .1) !important;
  color: #bf5fc1 !important;
}

body.light-ui .deposit-chain-tips div,
body.light-ui .deposit-address-copy,
body.light-ui .deposit-address-info strong,
body.light-ui .deposit-proof-panel,
body.light-ui .deposit-upload-control,
body.light-ui .deposit-upload-icon,
body.light-ui .withdraw-selected-address,
body.light-ui .withdraw-address-filter {
  border-color: #dcdee0 !important;
  background: #ffffff !important;
  color: #111827 !important;
}

body.light-ui .deposit-network-buttons button {
  border-color: #dcdee0 !important;
  background: #ffffff !important;
  color: #4b5563 !important;
}

body.light-ui .deposit-network-buttons button.active {
  border-color: rgba(191, 95, 193, .55) !important;
  background: rgba(191, 95, 193, .1) !important;
  color: #bf5fc1 !important;
  box-shadow: inset 0 2px 0 #bf5fc1 !important;
}

body.light-ui .deposit-upload-icon {
  color: #bf5fc1 !important;
}

body.light-ui .app-modal-panel {
  border-color: #dcdee0 !important;
  background: #ffffff !important;
  color: #111827 !important;
}

body.light-ui .app-modal-head,
body.light-ui .app-modal-foot {
  border-color: #dcdee0 !important;
  background: #ffffff !important;
}

body.light-ui .app-modal-head strong,
body.light-ui .contract-detail-head strong {
  color: #111827 !important;
}

body.light-ui .contract-detail-grid div,
body.light-ui .position-card-grid div,
body.light-ui .contract-order-grid div {
  border-color: #dcdee0 !important;
  background: #f7f7f7 !important;
}

body.light-ui .contract-detail-grid span,
body.light-ui .position-card-grid span,
body.light-ui .contract-order-grid span {
  color: #666666 !important;
}

body.light-ui .auth-page {
  background: #ffffff !important;
  color: #111827 !important;
}

body.light-ui .auth-brand {
  color: #111827 !important;
}

body.light-ui .auth-card {
  border: 1px solid #dcdee0 !important;
  background: #ffffff !important;
  color: #111827 !important;
  box-shadow: 0 0 26px rgba(34, 34, 44, .06) !important;
}

body.light-ui .auth-card-head span,
body.light-ui .auth-method-title,
body.light-ui .auth-card .form-row label {
  color: #111827 !important;
}

body.light-ui .auth-card .form-row {
  border-bottom-color: #dcdee0 !important;
}

body.light-ui .auth-card input {
  background: transparent !important;
  color: #111827 !important;
}

body.light-ui .auth-card input::placeholder {
  color: #999999 !important;
}

body.light-ui .auth-method-tabs button {
  color: #666666 !important;
}

body.light-ui .auth-method-tabs button.active {
  color: #111827 !important;
}

body.light-ui .auth-method-tabs button.active::after {
  background: #bf5fc1 !important;
}

body.light-ui .auth-form-foot {
  color: #666666 !important;
}

body.light-ui .auth-form-foot .ghost {
  color: #e5484d !important;
}

/* 2026062161 light theme final pass. */
html.light-ui {
  color-scheme: light !important;
  --bg: #f6f6f6 !important;
  --panel: #ffffff !important;
  --panel-2: #f7f7f7 !important;
  --panel-3: #ffffff !important;
  --text: #111827 !important;
  --muted: #6b7280 !important;
  --line: #e6e8ee !important;
  --brand: #bf5fc1 !important;
  --brand-2: #16a36f !important;
  --danger: #e5484d !important;
  --warn: #d99a00 !important;
  --shadow: 0 8px 24px rgba(15, 23, 42, .06) !important;
}

body.light-ui,
html.light-ui body {
  background: #f6f6f6 !important;
  color: #111827 !important;
}

body.light-ui .h5-app,
body.light-ui .h5-main,
body.light-ui .app-shell,
body.light-ui .main,
body.light-ui .h5-app.home-view .h5-main,
body.light-ui .h5-app.main-tab-view .h5-main,
body.light-ui .h5-app:not(.home-view) .h5-main {
  background: #f6f6f6 !important;
  color: #111827 !important;
  box-shadow: none !important;
}

body.light-ui .main {
  background: #f6f6f6 !important;
}

body.light-ui .card,
body.light-ui .card-body,
body.light-ui .soft-panel,
body.light-ui .notice,
body.light-ui .metric,
body.light-ui .product-card,
body.light-ui .home-product-card,
body.light-ui .wallet-form-card,
body.light-ui .wallet-history-card,
body.light-ui .wallet-coin-row,
body.light-ui .position-card,
body.light-ui .contract-order-card,
body.light-ui .withdraw-address-card,
body.light-ui .invite-card,
body.light-ui .chain-mode-card,
body.light-ui .cart-strip,
body.light-ui .trade-mobile-tabs,
body.light-ui .trade-tab-panel,
body.light-ui #walletFundCard,
body.light-ui #walletContractCard {
  border-color: #e6e8ee !important;
  background: #ffffff !important;
  color: #111827 !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .05) !important;
}

body.light-ui .card-head,
body.light-ui .soft-panel-head {
  border-color: #e6e8ee !important;
  background: #ffffff !important;
}

body.light-ui .card-head h2,
body.light-ui .card-head h3,
body.light-ui .topbar h1,
body.light-ui .h5-header strong,
body.light-ui .wallet-page-title,
body.light-ui .home-section-head h2,
body.light-ui .drawer-user strong,
body.light-ui .market-symbol,
body.light-ui .market-pair-head h2,
body.light-ui .market-pair-price strong,
body.light-ui .price,
body.light-ui .metric .value,
body.light-ui .wallet-coin-head strong,
body.light-ui .wallet-coin-metrics strong,
body.light-ui .trade-summary-left button,
body.light-ui .trade-summary-left strong,
body.light-ui .kline-pair-btn,
body.light-ui .kline-info-grid strong,
body.light-ui .contract-asset-box strong,
body.light-ui .wallet-available-line strong,
body.light-ui .trade-total-row strong,
body.light-ui .notice strong,
body.light-ui .notice-detail-card h2 {
  color: #111827 !important;
}

body.light-ui .muted,
body.light-ui .label,
body.light-ui .form-row label,
body.light-ui .market-meta,
body.light-ui .market-pair-count,
body.light-ui .market-symbol span,
body.light-ui .drawer-user-id,
body.light-ui .wallet-coin-head span,
body.light-ui .wallet-coin-metrics label,
body.light-ui .asset-estimate,
body.light-ui .trade-summary-stats span,
body.light-ui .form-row small,
body.light-ui .notice div,
body.light-ui .notice-foot,
body.light-ui .deposit-auto-hint,
body.light-ui .deposit-address-info > span,
body.light-ui .deposit-address-info > small,
body.light-ui .deposit-proof-panel small,
body.light-ui .kline-bottom-strip-head,
body.light-ui .kline-bottom-strip-head button,
body.light-ui .contract-order-top small {
  color: #6b7280 !important;
}

body.light-ui input,
body.light-ui select,
body.light-ui textarea,
body.light-ui .wallet-search input,
body.light-ui .market-pair-tools input,
body.light-ui .trade-ticket-card input,
body.light-ui .trade-ticket-card select {
  border-color: #e0e4ec !important;
  background: #ffffff !important;
  color: #111827 !important;
  box-shadow: none !important;
}

body.light-ui input::placeholder,
body.light-ui textarea::placeholder {
  color: #9ca3af !important;
}

body.light-ui input:focus,
body.light-ui select:focus,
body.light-ui textarea:focus {
  border-color: #bf5fc1 !important;
  box-shadow: 0 0 0 3px rgba(191, 95, 193, .12) !important;
}

body.light-ui button.secondary,
body.light-ui .secondary,
body.light-ui .badge {
  border-color: #e6e8ee !important;
  background: #f7f7f7 !important;
  color: #4b5563 !important;
  box-shadow: none !important;
}

body.light-ui button.ghost {
  background: transparent !important;
  color: #4b5563 !important;
  box-shadow: none !important;
}

body.light-ui .badge.good,
body.light-ui .up {
  color: #16a36f !important;
}

body.light-ui .badge.bad,
body.light-ui .down {
  color: #e5484d !important;
}

body.light-ui .badge.warn {
  color: #d99a00 !important;
}

body.light-ui th {
  border-color: #e6e8ee !important;
  background: #f7f7f7 !important;
  color: #6b7280 !important;
}

body.light-ui td {
  border-color: #eef0f4 !important;
  color: #111827 !important;
}

body.light-ui tbody tr:hover {
  background: #faf7fb !important;
}

body.light-ui .sidebar {
  border-right: 1px solid #e6e8ee !important;
  background: #ffffff !important;
  color: #111827 !important;
  box-shadow: none !important;
}

body.light-ui .brand {
  color: #111827 !important;
}

body.light-ui .nav button {
  color: #4b5563 !important;
}

body.light-ui .nav button.active,
body.light-ui .nav button:hover {
  background: rgba(191, 95, 193, .1) !important;
  color: #9b3f9d !important;
}

body.light-ui .topbar {
  background: transparent !important;
  color: #111827 !important;
}

body.light-ui .h5-header {
  border-color: #e6e8ee !important;
  background: rgba(255, 255, 255, .96) !important;
  color: #111827 !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .04) !important;
}

body.light-ui .h5-menu-btn,
body.light-ui .h5-lang-btn,
body.light-ui .h5-header.home-only .user-strip .icon-btn,
body.light-ui .trade-symbol-icon,
body.light-ui .h5-app .kline-tool-btn,
body.light-ui .h5-app .kline-side-toolbar button,
body.light-ui .back-icon-only {
  border-color: #e6e8ee !important;
  background: #ffffff !important;
  color: #4b5563 !important;
  box-shadow: none !important;
}

body.light-ui .h5-menu-btn:hover,
body.light-ui .h5-lang-btn:hover,
body.light-ui .trade-symbol-icon.active,
body.light-ui .trade-symbol-icon:hover,
body.light-ui .h5-app .kline-tool-btn.active,
body.light-ui .h5-app .kline-side-toolbar button.active {
  border-color: rgba(191, 95, 193, .42) !important;
  background: rgba(191, 95, 193, .08) !important;
  color: #bf5fc1 !important;
}

body.light-ui .header-bell-icon,
body.light-ui .header-bell-icon path,
body.light-ui .header-bell-icon circle {
  stroke: #4b5563 !important;
}

body.light-ui .bottom-tabs {
  border-color: #e6e8ee !important;
  background: rgba(255, 255, 255, .98) !important;
  box-shadow: 0 -9px 14px rgba(0, 0, 0, .06) !important;
}

body.light-ui .bottom-tabs button {
  color: #6b7280 !important;
  background: transparent !important;
}

body.light-ui .bottom-tabs button.active {
  color: #bf5fc1 !important;
  background: transparent !important;
}

body.light-ui .drawer-panel,
body.light-ui .h5-app #view-market .market-pair-card,
body.light-ui .h5-app #view-kline .kline-pair-drawer {
  border-color: #e6e8ee !important;
  background: #ffffff !important;
  color: #111827 !important;
  box-shadow: 18px 0 40px rgba(15, 23, 42, .12) !important;
}

body.light-ui .drawer-user,
body.light-ui .drawer-section,
body.light-ui .h5-app #view-market .market-pair-card .card-head,
body.light-ui .h5-app #view-kline .kline-pair-drawer .card-head,
body.light-ui .h5-app .market-pair-tools,
body.light-ui .h5-app .market-list-head,
body.light-ui .h5-app .pair-list-row {
  border-color: #e6e8ee !important;
  background: #ffffff !important;
}

body.light-ui .drawer-section button,
body.light-ui .drawer-section a,
body.light-ui .theme-switch,
body.light-ui [data-theme-toggle] {
  border: 1px solid #e6e8ee !important;
  background: #f7f7f7 !important;
  color: #4b5563 !important;
  box-shadow: none !important;
}

body.light-ui .drawer-section button:hover,
body.light-ui .drawer-section a:hover,
body.light-ui .theme-switch:hover,
body.light-ui [data-theme-toggle]:hover {
  color: #bf5fc1 !important;
  border-color: rgba(191, 95, 193, .36) !important;
}

body.light-ui .h5-app .pair-list-row.active,
body.light-ui .market-row.active,
body.light-ui .market-row:hover {
  background: #faf2fb !important;
}

body.light-ui .market-coin-badge,
body.light-ui .coin-avatar {
  background: linear-gradient(135deg, #bf5fc1, #5a7bef) !important;
  color: #ffffff !important;
}

body.light-ui .market-fav-toggle {
  background: transparent !important;
  color: #9ca3af !important;
}

body.light-ui .market-fav-toggle.active {
  color: #bf5fc1 !important;
}

body.light-ui .h5-app.home-view #view-overview {
  background: transparent !important;
}

body.light-ui .h5-app.home-view .home-carousel,
body.light-ui .home-carousel {
  border: 1px solid #e6e8ee !important;
  background: url("/ref-img/bgb4.png") center / cover no-repeat, #ffffff !important;
  box-shadow: none !important;
}

body.light-ui .h5-app.home-view .home-slide,
body.light-ui .home-slide {
  background: linear-gradient(90deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .44) 68%, rgba(255, 255, 255, .16)) !important;
}

body.light-ui .h5-app.home-view .home-slide span,
body.light-ui .home-slide span,
body.light-ui .home-notice-strip > span {
  color: #bf5fc1 !important;
}

body.light-ui .h5-app.home-view .home-slide strong,
body.light-ui .home-slide strong {
  color: #111827 !important;
}

body.light-ui .h5-app.home-view .home-slide small,
body.light-ui .home-slide small {
  color: #6b7280 !important;
}

body.light-ui .home-notice-strip,
body.light-ui .quick-actions,
body.light-ui .home-market-preview {
  border: 1px solid #e6e8ee !important;
  background: #ffffff !important;
  color: #111827 !important;
  box-shadow: none !important;
}

body.light-ui .quick-actions button {
  background: transparent !important;
  color: #111827 !important;
}

body.light-ui .home-market-item {
  border-color: #eef0f4 !important;
  background: transparent !important;
}

body.light-ui .home-market-item strong,
body.light-ui .home-market-item em,
body.light-ui .home-product-card strong {
  color: #111827 !important;
}

body.light-ui .home-market-item span,
body.light-ui .home-product-card span {
  color: #6b7280 !important;
}

body.light-ui .home-product-card em {
  color: #bf5fc1 !important;
}

body.light-ui .trade-mode-tabs,
body.light-ui #view-market .tabs,
body.light-ui .tabs,
body.light-ui .segmented {
  border-color: #e6e8ee !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

body.light-ui .trade-mode-tabs button,
body.light-ui #view-market .tabs button,
body.light-ui .tabs button,
body.light-ui .segmented button {
  border-color: #e6e8ee !important;
  background: #f7f7f7 !important;
  color: #4b5563 !important;
  box-shadow: none !important;
}

body.light-ui .trade-mode-tabs button.active,
body.light-ui #view-market .tabs button.active,
body.light-ui .tabs button.active,
body.light-ui .segmented button.active {
  border-color: #bf5fc1 !important;
  background: #bf5fc1 !important;
  color: #ffffff !important;
}

body.light-ui .trade-symbol-bar,
body.light-ui .h5-app .kline-topbar {
  color: #111827 !important;
}

body.light-ui .trade-symbol-picker,
body.light-ui .h5-app .kline-symbol-main {
  color: #111827 !important;
  background: transparent !important;
}

body.light-ui .trade-summary-panel,
body.light-ui .kline-summary,
body.light-ui .h5-app #view-kline .kline-summary {
  background: transparent !important;
  color: #111827 !important;
  box-shadow: none !important;
}

body.light-ui .trade-summary-stats strong {
  color: #111827 !important;
}

body.light-ui .trade-ticket-card .trade-ticket-body {
  border-color: #e6e8ee !important;
  background: #ffffff !important;
}

body.light-ui .trade-side-block,
body.light-ui .h5-app #view-market .trade-side-block {
  border-color: #e6e8ee !important;
  background: #f7f7f7 !important;
}

body.light-ui .trade-side-block button,
body.light-ui .h5-app #view-market .trade-side-block button {
  background: transparent !important;
  color: #4b5563 !important;
}

body.light-ui .trade-side-block button.good.active,
body.light-ui .h5-app #view-market .trade-side-block button.good.active {
  background: #16a36f !important;
  color: #ffffff !important;
}

body.light-ui .trade-side-block button.bad.active,
body.light-ui .h5-app #view-market .trade-side-block button.bad.active {
  background: #e5484d !important;
  color: #ffffff !important;
}

body.light-ui .percent-row button,
body.light-ui .trade-ticket-card .percent-row button,
body.light-ui .leverage-options button {
  border-color: #e6e8ee !important;
  background: #ffffff !important;
  color: #6b7280 !important;
}

body.light-ui .percent-row button.active,
body.light-ui .trade-ticket-card .percent-row button.active,
body.light-ui .leverage-options button.active {
  border-color: #bf5fc1 !important;
  background: rgba(191, 95, 193, .1) !important;
  color: #9b3f9d !important;
}

body.light-ui .depth-chart,
body.light-ui .mobile-depth-book {
  border-color: #e6e8ee !important;
  background: #ffffff !important;
}

body.light-ui .depth-chart line {
  stroke: #e6e8ee !important;
}

body.light-ui .depth-meta strong,
body.light-ui .mobile-depth-last {
  color: #111827 !important;
}

body.light-ui .mobile-depth-head,
body.light-ui .mobile-depth-row {
  border-color: #eef0f4 !important;
  color: #6b7280 !important;
  background: transparent !important;
}

body.light-ui .mobile-depth-row span,
body.light-ui .mobile-depth-row strong {
  color: inherit !important;
}

body.light-ui .h5-app #view-kline .kline-chart-card,
body.light-ui .h5-app #view-kline .kline-chart-tools,
body.light-ui .h5-app #view-kline .kline-chart-stage,
body.light-ui .h5-app #view-kline .chart-wrap,
body.light-ui .h5-app #view-kline .period-tabs,
body.light-ui .h5-app .kline-bottom-pairs,
body.light-ui .h5-app .kline-bottom-pair,
body.light-ui .h5-app #view-kline .kline-tabs-card,
body.light-ui .kline-info-tabs,
body.light-ui .kline-info-panel {
  border-color: #e6e8ee !important;
  background: #ffffff !important;
  color: #111827 !important;
  box-shadow: none !important;
}

body.light-ui .h5-app #view-kline .kline-mode-tabs {
  border-color: #e6e8ee !important;
  background: #ffffff !important;
}

body.light-ui .h5-app #view-kline .kline-mode-tabs button {
  border-color: #e6e8ee !important;
  background: #f7f7f7 !important;
  color: #4b5563 !important;
}

body.light-ui .h5-app #view-kline .kline-mode-tabs button.active {
  border-color: #bf5fc1 !important;
  background: #bf5fc1 !important;
  color: #ffffff !important;
}

body.light-ui .h5-app #view-kline .period-tabs button {
  background: transparent !important;
  color: #6b7280 !important;
}

body.light-ui .h5-app #view-kline .period-tabs button.active {
  color: #bf5fc1 !important;
  box-shadow: inset 0 -2px 0 #bf5fc1 !important;
}

body.light-ui .kline-info-tabs button {
  color: #6b7280 !important;
  background: transparent !important;
}

body.light-ui .kline-info-tabs button.active {
  color: #bf5fc1 !important;
}

body.light-ui .h5-app .kline-bottom-pair.active {
  border-color: rgba(191, 95, 193, .45) !important;
  background: #faf2fb !important;
  box-shadow: inset 0 2px 0 #bf5fc1 !important;
}

body.light-ui .trade-bottom-actions {
  background: #ffffff !important;
  box-shadow: 0 -8px 20px rgba(15, 23, 42, .06) !important;
}

body.light-ui .page-head,
body.light-ui .h5-app .page-head h2,
body.light-ui .page-head button {
  color: #111827 !important;
}

body.light-ui .asset-hero,
body.light-ui .h5-app #view-wallet .asset-hero {
  border: 1px solid #e6e8ee !important;
  background: linear-gradient(135deg, #ffffff, #faf2fb) !important;
  color: #111827 !important;
  box-shadow: none !important;
}

body.light-ui .asset-value,
body.light-ui .asset-total,
body.light-ui .asset-owner-row b {
  color: #111827 !important;
}

body.light-ui .asset-actions button {
  border: 1px solid #e6e8ee !important;
  background: #ffffff !important;
  color: #111827 !important;
}

body.light-ui .wallet-tabs,
body.light-ui .h5-app #view-wallet .wallet-tabs,
body.light-ui .h5-app #view-wallet #walletFundCard,
body.light-ui .h5-app #view-wallet .fund-account-actions,
body.light-ui .h5-app #view-wallet .wallet-search input {
  border-color: #e6e8ee !important;
  background: #ffffff !important;
  color: #111827 !important;
  box-shadow: none !important;
}

body.light-ui .wallet-tabs button {
  background: transparent !important;
  color: #6b7280 !important;
}

body.light-ui .wallet-tabs button.active,
body.light-ui .h5-app #view-wallet .wallet-tabs button.active {
  background: rgba(191, 95, 193, .1) !important;
  color: #bf5fc1 !important;
}

body.light-ui .deposit-flow-title {
  color: #111827 !important;
}

body.light-ui .deposit-chain-tips div,
body.light-ui .deposit-address-copy,
body.light-ui .deposit-address-info strong,
body.light-ui .deposit-proof-panel,
body.light-ui .deposit-upload-control,
body.light-ui .deposit-upload-icon,
body.light-ui .withdraw-selected-address,
body.light-ui .withdraw-address-filter {
  border-color: #e6e8ee !important;
  background: #ffffff !important;
  color: #111827 !important;
}

body.light-ui .deposit-network-buttons button {
  border-color: #e6e8ee !important;
  background: #ffffff !important;
  color: #4b5563 !important;
}

body.light-ui .deposit-network-buttons button.active {
  border-color: rgba(191, 95, 193, .55) !important;
  background: rgba(191, 95, 193, .1) !important;
  color: #bf5fc1 !important;
  box-shadow: inset 0 2px 0 #bf5fc1 !important;
}

body.light-ui .deposit-upload-text strong,
body.light-ui .deposit-address-copy {
  color: #111827 !important;
}

body.light-ui .deposit-upload-icon {
  color: #bf5fc1 !important;
}

body.light-ui .app-modal-panel {
  border-color: #e6e8ee !important;
  background: #ffffff !important;
  color: #111827 !important;
}

body.light-ui .app-modal-head,
body.light-ui .app-modal-foot {
  border-color: #e6e8ee !important;
  background: #ffffff !important;
}

body.light-ui .app-modal-head strong,
body.light-ui .contract-detail-head strong {
  color: #111827 !important;
}

body.light-ui .contract-detail-grid div,
body.light-ui .position-card-grid div,
body.light-ui .contract-order-grid div {
  border-color: #e6e8ee !important;
  background: #f7f7f7 !important;
}

body.light-ui .contract-detail-grid span,
body.light-ui .position-card-grid span,
body.light-ui .contract-order-grid span {
  color: #6b7280 !important;
}

body.light-ui .auth-page {
  background: #ffffff !important;
  color: #111827 !important;
}

body.light-ui .auth-brand {
  color: #111827 !important;
}

body.light-ui .auth-card {
  border: 1px solid #e6e8ee !important;
  background: #ffffff !important;
  color: #111827 !important;
  box-shadow: 0 0 26px rgba(34, 34, 44, .06) !important;
}

body.light-ui .auth-card-head span,
body.light-ui .auth-method-title,
body.light-ui .auth-card .form-row label {
  color: #111827 !important;
}

body.light-ui .auth-card .form-row {
  border-bottom-color: #e6e8ee !important;
}

body.light-ui .auth-card input {
  background: transparent !important;
  color: #111827 !important;
}

body.light-ui .auth-card input::placeholder {
  color: #9ca3af !important;
}

body.light-ui .auth-method-tabs button {
  color: #6b7280 !important;
}

body.light-ui .auth-method-tabs button.active {
  color: #111827 !important;
}

body.light-ui .auth-method-tabs button.active::after {
  background: #bf5fc1 !important;
}

body.light-ui .auth-form-foot {
  color: #6b7280 !important;
}

body.light-ui .auth-form-foot .ghost {
  color: #e5484d !important;
}

/* 2026062160 reference auth pages and drawer-sized pair picker. */
.auth-page {
  min-height: 100svh !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: center !important;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom) !important;
  background: linear-gradient(to bottom, #383847, #242230) !important;
  color: #f7f8ff !important;
}

.auth-shell,
.pc-auth-shell {
  width: min(430px, 100%) !important;
  min-height: 100svh !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  padding: 0 !important;
  gap: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.auth-brand-panel {
  min-height: 136px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 28px 18px 14px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.auth-page[data-auth-mode="register"] .auth-brand-panel,
.auth-page[data-auth-mode="forgot"] .auth-brand-panel {
  min-height: 92px !important;
  padding: 20px 18px 8px !important;
}

.auth-brand {
  min-height: 88px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  color: #f7f8ff !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  text-align: center !important;
}

.auth-brand .brand-mark {
  width: 80px !important;
  height: 80px !important;
  min-width: 80px !important;
  border-radius: 8px !important;
  background: linear-gradient(315deg, #4048ef 0%, #5a7bef 100%) !important;
  color: #fff !important;
  font-size: 28px !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .18) !important;
}

.auth-page[data-auth-mode="register"] .auth-brand .brand-mark,
.auth-page[data-auth-mode="forgot"] .auth-brand .brand-mark {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  font-size: 20px !important;
}

.auth-copy,
.auth-market-strip,
.auth-proof-grid,
.auth-tabs,
.auth-safe-note {
  display: none !important;
}

.auth-card {
  width: auto !important;
  min-height: 0 !important;
  display: grid !important;
  align-content: start !important;
  gap: 18px !important;
  margin: 8px 18px 0 !important;
  padding: 18px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #393948 !important;
  color: #f7f8ff !important;
  box-shadow: 0 0 33px rgba(34, 34, 44, .25) !important;
}

.auth-card-head {
  min-height: 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}

.auth-page[data-auth-mode="login"] .auth-card-head {
  display: none !important;
}

.auth-card-head span,
.auth-method-title {
  color: #f7f8ff !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  text-align: center !important;
}

.auth-card-head strong,
.auth-method-icon,
.auth-method-head p {
  display: none !important;
}

.auth-panel,
.auth-panel .form-grid {
  max-height: none !important;
  padding: 0 !important;
  overflow: visible !important;
}

.auth-panel .form-grid {
  display: grid !important;
  gap: 18px !important;
}

.auth-card .form-row {
  display: grid !important;
  gap: 8px !important;
  padding: 0 0 8px !important;
  border: 0 !important;
  border-bottom: 1px solid #49495f !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.auth-card .form-row label {
  color: #f7f8ff !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.auth-card input {
  width: 100% !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #f7f8ff !important;
  font-size: 16px !important;
  box-shadow: none !important;
}

.auth-card input::placeholder {
  color: rgba(247, 248, 255, .55) !important;
}

.auth-card input:focus {
  box-shadow: none !important;
}

.auth-card #loginBtn,
.auth-card #registerSubmitBtn,
.auth-card #forgotBtn {
  width: 100% !important;
  min-height: 44px !important;
  margin-top: 0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: linear-gradient(315deg, #4048ef 0%, #5a7bef 100%) !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  box-shadow: none !important;
}

.auth-method-head {
  display: grid !important;
  justify-items: center !important;
  gap: 8px !important;
}

.auth-method-tabs {
  display: flex !important;
  justify-content: center !important;
  gap: 22px !important;
  padding: 0 0 2px !important;
  border: 0 !important;
  background: transparent !important;
}

.auth-method-tabs button {
  position: relative !important;
  min-height: 30px !important;
  padding: 0 2px 10px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #cdd2df !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

.auth-method-tabs button::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  bottom: 0 !important;
  width: 5px !important;
  height: 5px !important;
  border-radius: 999px !important;
  background: transparent !important;
  transform: translateX(-50%) !important;
}

.auth-method-tabs button.active {
  color: #f7f8ff !important;
}

.auth-method-tabs button.active::after {
  background: #f7f8ff !important;
}

.auth-method-tabs button span {
  display: none !important;
}

.auth-code-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 104px !important;
  gap: 8px !important;
  align-items: center !important;
}

.auth-card .auth-code-btn.secondary {
  min-height: 34px !important;
  padding: 0 8px !important;
  border: 1px solid rgba(121, 212, 124, .38) !important;
  border-radius: 8px !important;
  background: rgba(121, 212, 124, .12) !important;
  color: #9de686 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.auth-form-foot {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  min-height: 24px !important;
  padding: 0 !important;
  color: rgba(247, 248, 255, .72) !important;
  font-size: 12px !important;
}

.auth-form-foot .auth-foot-right {
  min-width: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 4px !important;
  text-align: right !important;
}

.auth-form-foot .ghost {
  min-height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #ea3131 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}

.h5-body {
  --pair-drawer-width: min(78vw, 320px) !important;
}

.h5-app #view-market .market-pair-card,
.h5-app #view-kline .kline-pair-drawer {
  display: block !important;
  position: fixed !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: var(--pair-drawer-width) !important;
  min-width: var(--pair-drawer-width) !important;
  max-width: 320px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-right: 1px solid #1d2940 !important;
  border-radius: 0 !important;
  background: #0b1220 !important;
  color: #edf3ff !important;
  z-index: 88 !important;
  overflow: auto !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateX(-100%) !important;
  transition: transform .22s ease, visibility .22s ease !important;
  box-shadow: 18px 0 40px rgba(0, 0, 0, .22) !important;
}

.h5-app #view-market.market-pairs-open .market-pair-card,
.h5-app #view-kline.market-pairs-open .kline-pair-drawer {
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(0) !important;
}

.h5-app #view-market.market-pairs-open .pair-overlay,
.h5-app #view-kline.market-pairs-open .pair-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: rgba(0, 0, 0, .48) !important;
  z-index: 87 !important;
  box-shadow: none !important;
}

.h5-app #view-market .market-pair-card .card-head,
.h5-app #view-kline .kline-pair-drawer .card-head {
  min-height: 58px !important;
  padding: 16px !important;
  border-bottom: 1px solid #1d2940 !important;
  background: transparent !important;
}

.h5-app #view-market .market-pair-body,
.h5-app #view-kline .market-pair-body {
  padding: 16px !important;
  gap: 12px !important;
}

.h5-app #view-market .market-pair-card .badge,
.h5-app #view-kline .kline-pair-drawer .badge,
.h5-app #view-market .market-meta,
.h5-app #view-kline .market-meta {
  display: initial !important;
}

.h5-app #view-market .market-pair-card .badge,
.h5-app #view-kline .kline-pair-drawer .badge {
  display: inline-flex !important;
}

.h5-app #view-market .market-list-head,
.h5-app #view-kline .market-list-head,
.h5-app #view-market .pair-list-row,
.h5-app #view-kline .pair-list-row {
  grid-template-columns: minmax(0, 1.35fr) minmax(72px, .8fr) 30px !important;
}

.h5-app #view-market .pair-list-row,
.h5-app #view-kline .pair-list-row {
  min-height: 58px !important;
  padding: 8px 4px !important;
}

.h5-app #view-market .market-coin-badge,
.h5-app #view-kline .market-coin-badge {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  flex-basis: 30px !important;
  border-radius: 8px !important;
  font-size: 11px !important;
}

.h5-app #view-market .market-symbol,
.h5-app #view-kline .market-symbol {
  font-size: 13px !important;
}

.h5-app #view-market .market-pair-price strong,
.h5-app #view-kline .market-pair-price strong {
  max-width: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  font-size: 12px !important;
}

.h5-app #view-market .market-fav-toggle,
.h5-app #view-kline .market-fav-toggle {
  width: 30px !important;
  min-width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  font-size: 18px !important;
}

/* 2026062159 backend menu clarity and tab badge spacing. */
.admin-menu {
  gap: 10px !important;
}

.admin-menu .menu-group {
  gap: 4px !important;
  padding: 4px !important;
  border-radius: 8px !important;
}

.admin-menu .menu-parent {
  padding: 0 8px !important;
  color: #8ea0bf !important;
  letter-spacing: 0 !important;
}

.admin-menu .menu-toggle {
  min-height: 38px !important;
  border: 1px solid rgba(148, 163, 184, .12) !important;
  border-radius: 8px !important;
  background: rgba(15, 23, 42, .18) !important;
}

.admin-menu .menu-toggle.active-parent,
.admin-menu .menu-toggle:hover,
.admin-menu .menu-group.menu-open .menu-toggle {
  border-color: rgba(96, 165, 250, .28) !important;
  background: rgba(37, 99, 235, .14) !important;
  color: #fff !important;
}

.admin-menu .menu-children {
  display: none !important;
  gap: 3px !important;
  margin: 2px 0 2px 12px !important;
  padding-left: 8px !important;
  border-left: 1px solid rgba(148, 163, 184, .22) !important;
}

.admin-menu .menu-open .menu-children {
  display: grid !important;
}

.admin-menu .menu-children button {
  min-height: 34px !important;
  height: auto !important;
  justify-content: space-between !important;
  gap: 8px !important;
  padding: 0 10px !important;
  border-radius: 7px !important;
}

.admin-menu .menu-children button.active {
  background: rgba(37, 99, 235, .28) !important;
  color: #fff !important;
}

.admin-menu .subtab-count {
  min-width: 20px !important;
  margin-left: 8px !important;
  padding: 1px 6px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .12) !important;
  color: inherit !important;
  text-align: center !important;
}

.admin-load-status.loading::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 6px;
  display: inline-block;
  border-radius: 999px;
  background: currentColor;
  opacity: .72;
}

#view-market .trade-mode-tabs,
#view-market .tabs.kline-mode-tabs,
.trade-mode-tabs {
  gap: 8px !important;
  padding: 5px !important;
  border: 1px solid rgba(77, 143, 255, .38) !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, rgba(255, 214, 72, .26), rgba(77, 143, 255, .22), rgba(43, 214, 142, .20)), #111b2c !important;
}

#view-market .trade-mode-tabs button,
#view-market .tabs.kline-mode-tabs button,
.trade-mode-tabs button {
  min-height: 40px !important;
  border: 1px solid rgba(255, 255, 255, .13) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, .08) !important;
  color: #edf6ff !important;
  font-weight: 900 !important;
}

#view-market .trade-mode-tabs button[data-mode="spot"].active,
.trade-mode-tabs button[data-mode="spot"].active {
  border-color: rgba(43, 214, 142, .7) !important;
  background: linear-gradient(135deg, #ffd648 0%, #2bd68e 100%) !important;
  color: #06150f !important;
  box-shadow: 0 10px 22px rgba(43, 214, 142, .24) !important;
}

#view-market .trade-mode-tabs button[data-mode="contract"].active,
.trade-mode-tabs button[data-mode="contract"].active {
  border-color: rgba(117, 100, 255, .75) !important;
  background: linear-gradient(135deg, #4d8fff 0%, #7564ff 58%, #ffd648 100%) !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(77, 143, 255, .26) !important;
}

.theme-switch,
[data-theme-toggle] {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #263653;
  border-radius: 8px;
  background: #121d30;
  color: #edf3ff;
  box-shadow: none;
  font-size: 12px;
  font-weight: 900;
}

.asset-owner-row .theme-switch {
  justify-self: end;
}

.app-modal-panel {
  border: 1px solid #263653 !important;
  background: #0f1828 !important;
  color: #edf3ff !important;
}

.app-modal-head,
.app-modal-foot {
  border-color: #263653 !important;
}

.app-modal-head strong,
.contract-detail-head strong {
  color: #edf3ff !important;
}

.contract-detail-grid div {
  border-color: #263653 !important;
  background: #121d30 !important;
}

.contract-detail-grid span {
  color: #8fa0bd !important;
}

body.light-ui,
html.light-ui body {
  background: #f4f7fb !important;
  color: #172033 !important;
}

body.light-ui .h5-app,
body.light-ui .h5-main,
body.light-ui .app-shell,
body.light-ui .main {
  background: #f4f7fb !important;
  color: #172033 !important;
}

body.light-ui .sidebar,
body.light-ui .topbar,
body.light-ui .h5-header,
body.light-ui .bottom-tabs,
body.light-ui .card,
body.light-ui .card-body,
body.light-ui .wallet-tabs,
body.light-ui .wallet-search input,
body.light-ui .notice,
body.light-ui .trade-ticket-card .trade-ticket-body,
body.light-ui .contract-order-card,
body.light-ui .position-card,
body.light-ui #walletFundCard,
body.light-ui #walletContractCard {
  border-color: #dbe4f0 !important;
  background: #ffffff !important;
  color: #172033 !important;
}

body.light-ui .h5-main {
  box-shadow: none !important;
}

body.light-ui .h5-header.home-only .user-strip .icon-btn,
body.light-ui .h5-lang-btn,
body.light-ui .drawer-section button,
body.light-ui .drawer-section a,
body.light-ui .theme-switch,
body.light-ui [data-theme-toggle] {
  border-color: #dbe4f0 !important;
  background: #eef4ff !important;
  color: #1d4ed8 !important;
}

body.light-ui .drawer-panel,
body.light-ui .h5-app #view-market .market-pair-card,
body.light-ui .h5-app #view-kline .kline-pair-drawer {
  border-color: #dbe4f0 !important;
  background: #ffffff !important;
  color: #172033 !important;
}

body.light-ui .h5-app #view-market .market-pair-head h2,
body.light-ui .h5-app #view-kline .market-pair-head h2,
body.light-ui .h5-app #view-market .market-symbol,
body.light-ui .h5-app #view-kline .market-symbol,
body.light-ui .h5-app #view-market .market-pair-price strong,
body.light-ui .h5-app #view-kline .market-pair-price strong,
body.light-ui .card h2,
body.light-ui .wallet-page-title,
body.light-ui .asset-value,
body.light-ui .drawer-user strong {
  color: #172033 !important;
}

body.light-ui .muted,
body.light-ui .label,
body.light-ui .drawer-user-id,
body.light-ui .asset-estimate,
body.light-ui .h5-app #view-market .market-pair-count,
body.light-ui .h5-app #view-kline .market-pair-count,
body.light-ui .h5-app #view-market .market-symbol span,
body.light-ui .h5-app #view-kline .market-symbol span {
  color: #64748b !important;
}

body.light-ui input,
body.light-ui select,
body.light-ui textarea,
body.light-ui .trade-ticket-card input,
body.light-ui .trade-ticket-card select,
body.light-ui .h5-app #view-market .market-pair-tools input,
body.light-ui .h5-app #view-kline .market-pair-tools input {
  border-color: #dbe4f0 !important;
  background: #f8fbff !important;
  color: #172033 !important;
}

body.light-ui .trade-ticket-card .percent-row button,
body.light-ui .trade-ticket-card .leverage-options button,
body.light-ui .h5-app #view-market .market-pair-filters button,
body.light-ui .h5-app #view-kline .market-pair-filters button {
  border-color: #dbe4f0 !important;
  background: #f8fbff !important;
  color: #334155 !important;
}

body.light-ui .asset-hero {
  background: linear-gradient(135deg, #ffffff, #eaf2ff) !important;
  border: 1px solid #dbe4f0 !important;
}

body.light-ui .app-modal-panel {
  border-color: #dbe4f0 !important;
  background: #ffffff !important;
  color: #172033 !important;
}

body.light-ui .app-modal-head,
body.light-ui .app-modal-foot {
  border-color: #e5e7eb !important;
}

body.light-ui .app-modal-head strong,
body.light-ui .contract-detail-head strong {
  color: #172033 !important;
}

body.light-ui .contract-detail-grid div {
  border-color: #dbe4f0 !important;
  background: #f8fbff !important;
}

body.light-ui .contract-detail-grid span {
  color: #64748b !important;
}

/* 2026062158 reference auth, deposit reset support, and drawer-width pair picker. */
#auth.hidden,
.auth-page.hidden {
  display: none !important;
}

.auth-page {
  min-height: 100svh !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: center !important;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom) !important;
  background: linear-gradient(180deg, #383847 0%, #242230 100%) !important;
  color: #f7f8ff !important;
}

.auth-shell,
.pc-auth-shell {
  width: min(430px, 100%) !important;
  min-height: 100svh !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.auth-brand-panel {
  min-height: 130px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 28px 18px 12px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.auth-page[data-auth-mode="register"] .auth-brand-panel,
.auth-page[data-auth-mode="forgot"] .auth-brand-panel {
  min-height: 78px !important;
  padding: 18px 18px 4px !important;
}

.auth-brand {
  min-height: 82px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  color: #f7f8ff !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  text-align: center !important;
}

.auth-brand .brand-mark {
  width: 80px !important;
  height: 80px !important;
  display: inline-grid !important;
  place-items: center !important;
  overflow: hidden !important;
  border-radius: 8px !important;
  background: linear-gradient(315deg, #4048ef 0%, #5a7bef 100%) !important;
  color: #fff !important;
  font-size: 28px !important;
  font-weight: 900 !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .18) !important;
}

.auth-brand .brand-mark.image-brand img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.auth-copy,
.auth-market-strip,
.auth-proof-grid,
.auth-tabs,
.auth-safe-note {
  display: none !important;
}

.auth-card {
  width: auto !important;
  min-height: 0 !important;
  display: grid !important;
  align-content: start !important;
  gap: 20px !important;
  margin: 8px 18px 0 !important;
  padding: 18px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: rgba(57, 57, 72, .96) !important;
  color: #f7f8ff !important;
  box-shadow: 0 0 33px rgba(34, 34, 44, .25) !important;
}

.auth-card-head {
  min-height: 30px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}

.auth-page[data-auth-mode="login"] .auth-card-head {
  display: none !important;
}

.auth-card-head span,
.auth-method-title {
  color: #f7f8ff !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  text-align: center !important;
}

.auth-card-head strong,
.auth-method-icon,
.auth-method-head p {
  display: none !important;
}

.auth-panel,
.auth-panel .form-grid {
  max-height: none !important;
  padding: 0 !important;
  overflow: visible !important;
}

.auth-panel .form-grid {
  display: grid !important;
  gap: 22px !important;
}

.auth-card .form-row {
  display: grid !important;
  gap: 8px !important;
  padding: 0 0 8px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, .12) !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.auth-card .form-row label {
  color: #f7f8ff !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.auth-card input {
  width: 100% !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #f7f8ff !important;
  font-size: 16px !important;
  box-shadow: none !important;
}

.auth-card input::placeholder {
  color: rgba(247, 248, 255, .55) !important;
}

.auth-card input:focus {
  box-shadow: none !important;
}

.auth-card #loginBtn,
.auth-card #registerSubmitBtn,
.auth-card #forgotBtn {
  width: 100% !important;
  min-height: 44px !important;
  margin-top: 0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: linear-gradient(315deg, #4048ef 0%, #5a7bef 100%) !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  box-shadow: none !important;
}

.auth-method-head {
  display: grid !important;
  justify-items: center !important;
  gap: 8px !important;
}

.auth-method-tabs {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.auth-method-tabs button {
  min-height: 38px !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
  border-radius: 8px !important;
  background: rgba(72, 72, 89, .88) !important;
  color: rgba(247, 248, 255, .72) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  box-shadow: none !important;
}

.auth-method-tabs button.active {
  border-color: rgba(121, 212, 124, .52) !important;
  background: linear-gradient(328deg, #2fad66 0%, #9de686 100%) !important;
  color: #fff !important;
}

.auth-method-tabs button span {
  display: none !important;
}

.auth-code-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 104px !important;
  gap: 8px !important;
  align-items: center !important;
}

.auth-card .auth-code-btn.secondary {
  min-height: 34px !important;
  padding: 0 8px !important;
  border: 1px solid rgba(121, 212, 124, .36) !important;
  border-radius: 8px !important;
  background: rgba(121, 212, 124, .12) !important;
  color: #9de686 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.auth-form-foot {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  padding: 0 !important;
  color: rgba(247, 248, 255, .68) !important;
  font-size: 12px !important;
}

.auth-form-foot .auth-foot-right {
  min-width: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 4px !important;
  text-align: right !important;
}

.auth-form-foot small {
  display: none !important;
}

.auth-form-foot .ghost {
  min-height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #79d47c !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}

.h5-body {
  --pair-drawer-width: min(78vw, 320px) !important;
}

.h5-app #view-market .market-pair-card,
.h5-app #view-kline .kline-pair-drawer {
  display: block !important;
  position: fixed !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: var(--pair-drawer-width) !important;
  min-width: var(--pair-drawer-width) !important;
  max-width: 320px !important;
  height: auto !important;
  margin: 0 !important;
  border: 0 !important;
  border-right: 1px solid #1d2940 !important;
  border-radius: 0 !important;
  background: #0b1220 !important;
  color: #edf3ff !important;
  z-index: 88 !important;
  overflow: auto !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateX(-100%) !important;
  transition: transform .22s ease, visibility .22s ease !important;
  box-shadow: 18px 0 40px rgba(0, 0, 0, .22) !important;
}

.h5-app #view-market.market-pairs-open .market-pair-card,
.h5-app #view-kline.market-pairs-open .kline-pair-drawer {
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(0) !important;
}

.h5-app #view-market.market-pairs-open .pair-overlay,
.h5-app #view-kline.market-pairs-open .pair-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: rgba(0, 0, 0, .48) !important;
  z-index: 87 !important;
  box-shadow: none !important;
}

.h5-app #view-market .market-pair-card .card-head,
.h5-app #view-kline .kline-pair-drawer .card-head {
  min-height: 58px !important;
  padding: 16px !important;
  border-bottom: 1px solid #1d2940 !important;
  background: transparent !important;
}

.h5-app #view-market .market-pair-body,
.h5-app #view-kline .market-pair-body {
  padding: 16px !important;
  gap: 12px !important;
}

.h5-app #view-market .market-pair-tools,
.h5-app #view-kline .market-pair-tools {
  position: static !important;
  top: auto !important;
  display: grid !important;
  gap: 8px !important;
  padding: 0 !important;
  background: transparent !important;
}

.h5-app #view-market .market-pair-head h2,
.h5-app #view-kline .market-pair-head h2,
.h5-app #view-market .market-symbol,
.h5-app #view-kline .market-symbol,
.h5-app #view-market .market-pair-price strong,
.h5-app #view-kline .market-pair-price strong {
  color: #edf3ff !important;
}

.h5-app #view-market .market-pair-count,
.h5-app #view-kline .market-pair-count,
.h5-app #view-market .market-pair-card .badge,
.h5-app #view-kline .kline-pair-drawer .badge,
.h5-app #view-market .market-symbol span,
.h5-app #view-kline .market-symbol span,
.h5-app #view-market .market-meta,
.h5-app #view-kline .market-meta {
  display: initial !important;
  color: #7f8da8 !important;
}

.h5-app #view-market .market-pair-count,
.h5-app #view-kline .market-pair-count,
.h5-app #view-market .market-pair-card .badge,
.h5-app #view-kline .kline-pair-drawer .badge {
  display: inline-flex !important;
}

.h5-app #view-market .market-pair-tools input,
.h5-app #view-kline .market-pair-tools input {
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 10px !important;
  border: 1px solid #263653 !important;
  border-radius: 8px !important;
  background: #121d30 !important;
  color: #edf3ff !important;
  font-size: 13px !important;
}

.h5-app #view-market .market-pair-filters,
.h5-app #view-kline .market-pair-filters {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
}

.h5-app #view-market .market-pair-filters button,
.h5-app #view-kline .market-pair-filters button {
  min-height: 32px !important;
  padding: 0 8px !important;
  border: 1px solid #263653 !important;
  border-radius: 8px !important;
  background: #121d30 !important;
  color: #edf3ff !important;
  font-size: 12px !important;
}

.h5-app #view-market .market-pair-filters button.active,
.h5-app #view-kline .market-pair-filters button.active {
  border-color: rgba(90, 123, 239, .7) !important;
  background: rgba(90, 123, 239, .18) !important;
  color: #8ba2ff !important;
}

.h5-app #view-market .market-list-head,
.h5-app #view-kline .market-list-head,
.h5-app #view-market .pair-list-row,
.h5-app #view-kline .pair-list-row {
  grid-template-columns: minmax(0, 1.35fr) minmax(72px, .8fr) 30px !important;
}

.h5-app #view-market .pair-list-row,
.h5-app #view-kline .pair-list-row {
  min-height: 58px !important;
  padding: 8px 4px !important;
  border-bottom: 1px solid #1d2940 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.h5-app #view-market .pair-list-row.active,
.h5-app #view-kline .pair-list-row.active {
  background: #121d30 !important;
}

.h5-app #view-market .market-pair-name,
.h5-app #view-kline .market-pair-name {
  gap: 8px !important;
  min-width: 0 !important;
}

.h5-app #view-market .market-coin-badge,
.h5-app #view-kline .market-coin-badge {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  flex-basis: 30px !important;
  border-radius: 8px !important;
  font-size: 11px !important;
}

.h5-app #view-market .market-symbol,
.h5-app #view-kline .market-symbol {
  font-size: 13px !important;
  line-height: 1.2 !important;
}

.h5-app #view-market .market-symbol span,
.h5-app #view-kline .market-symbol span,
.h5-app #view-market .market-meta,
.h5-app #view-kline .market-meta {
  font-size: 10px !important;
}

.h5-app #view-market .market-pair-price,
.h5-app #view-kline .market-pair-price {
  display: grid !important;
  justify-items: end !important;
}

.h5-app #view-market .market-pair-price strong,
.h5-app #view-kline .market-pair-price strong {
  max-width: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  font-size: 12px !important;
}

.h5-app #view-market .market-pair-price small,
.h5-app #view-kline .market-pair-price small {
  font-size: 10px !important;
}

.h5-app #view-market .market-fav-toggle,
.h5-app #view-kline .market-fav-toggle {
  position: static !important;
  width: 30px !important;
  min-width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #c7ced8 !important;
  font-size: 18px !important;
}

body.light-ui .h5-app #view-market .market-pair-card,
body.light-ui .h5-app #view-kline .kline-pair-drawer {
  border-color: #dbe4f0 !important;
  background: #ffffff !important;
  color: #172033 !important;
}

body.light-ui .h5-app #view-market .market-pair-card .card-head,
body.light-ui .h5-app #view-kline .kline-pair-drawer .card-head,
body.light-ui .h5-app #view-market .pair-list-row,
body.light-ui .h5-app #view-kline .pair-list-row {
  border-color: #e5eaf2 !important;
}

body.light-ui .h5-app #view-market .pair-list-row,
body.light-ui .h5-app #view-kline .pair-list-row {
  background: #ffffff !important;
}

body.light-ui .h5-app #view-market .pair-list-row.active,
body.light-ui .h5-app #view-kline .pair-list-row.active {
  background: #f5f8ff !important;
}

/* 2026062159 compact pair picker per updated trading-page objective. */
.h5-body {
  --pair-drawer-width: min(62vw, 260px) !important;
}

.h5-app #view-market .market-pair-card,
.h5-app #view-kline .kline-pair-drawer {
  width: var(--pair-drawer-width) !important;
  min-width: var(--pair-drawer-width) !important;
  max-width: 260px !important;
}

.h5-app #view-market .market-pair-card .card-head,
.h5-app #view-kline .kline-pair-drawer .card-head {
  min-height: 48px !important;
  padding: 12px !important;
}

.h5-app #view-market .market-pair-head h2,
.h5-app #view-kline .market-pair-head h2 {
  font-size: 15px !important;
}

.h5-app #view-market .market-pair-card .badge,
.h5-app #view-kline .kline-pair-drawer .badge,
.h5-app #view-market .market-meta,
.h5-app #view-kline .market-meta {
  display: none !important;
}

.h5-app #view-market .market-pair-body,
.h5-app #view-kline .market-pair-body {
  padding: 10px !important;
  gap: 10px !important;
}

.h5-app #view-market .market-pair-tools input,
.h5-app #view-kline .market-pair-tools input {
  height: 34px !important;
  min-height: 34px !important;
  font-size: 12px !important;
}

.h5-app #view-market .market-pair-filters button,
.h5-app #view-kline .market-pair-filters button {
  min-height: 30px !important;
  font-size: 11px !important;
}

.h5-app #view-market .market-list-head,
.h5-app #view-kline .market-list-head,
.h5-app #view-market .pair-list-row,
.h5-app #view-kline .pair-list-row {
  grid-template-columns: minmax(0, 1fr) minmax(58px, .72fr) 24px !important;
}

.h5-app #view-market .pair-list-row,
.h5-app #view-kline .pair-list-row {
  min-height: 48px !important;
  padding: 7px 0 !important;
}

.h5-app #view-market .market-coin-badge,
.h5-app #view-kline .market-coin-badge {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  flex-basis: 26px !important;
  border-radius: 7px !important;
  font-size: 10px !important;
}

.h5-app #view-market .market-symbol,
.h5-app #view-kline .market-symbol {
  font-size: 12px !important;
}

.h5-app #view-market .market-pair-price strong,
.h5-app #view-kline .market-pair-price strong {
  max-width: 62px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 11px !important;
}

.h5-app #view-market .market-fav-toggle,
.h5-app #view-kline .market-fav-toggle {
  width: 24px !important;
  min-width: 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  font-size: 16px !important;
}

/* 2026062160 final cascade guard: reference auth and drawer-sized pair picker. */
.auth-page {
  min-height: 100svh !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: center !important;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom) !important;
  background: linear-gradient(to bottom, #383847, #242230) !important;
  color: #f7f8ff !important;
}

.auth-shell,
.pc-auth-shell {
  width: min(430px, 100%) !important;
  min-height: 100svh !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.auth-brand-panel {
  min-height: 136px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 28px 18px 14px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.auth-page[data-auth-mode="register"] .auth-brand-panel,
.auth-page[data-auth-mode="forgot"] .auth-brand-panel {
  min-height: 92px !important;
  padding: 20px 18px 8px !important;
}

.auth-brand {
  min-height: 88px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  color: #f7f8ff !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  text-align: center !important;
}

.auth-brand .brand-mark {
  width: 80px !important;
  height: 80px !important;
  min-width: 80px !important;
  border-radius: 8px !important;
  background: linear-gradient(315deg, #4048ef 0%, #5a7bef 100%) !important;
  color: #fff !important;
  font-size: 28px !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .18) !important;
}

.auth-page[data-auth-mode="register"] .auth-brand .brand-mark,
.auth-page[data-auth-mode="forgot"] .auth-brand .brand-mark {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  font-size: 20px !important;
}

.auth-copy,
.auth-market-strip,
.auth-proof-grid,
.auth-tabs,
.auth-safe-note {
  display: none !important;
}

.auth-card {
  width: auto !important;
  min-height: 0 !important;
  display: grid !important;
  align-content: start !important;
  gap: 18px !important;
  margin: 8px 18px 0 !important;
  padding: 18px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #393948 !important;
  color: #f7f8ff !important;
  box-shadow: 0 0 33px rgba(34, 34, 44, .25) !important;
}

.auth-page[data-auth-mode="login"] .auth-card-head {
  display: none !important;
}

.auth-card-head {
  min-height: 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}

.auth-card-head span,
.auth-method-title {
  color: #f7f8ff !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  text-align: center !important;
}

.auth-card-head strong,
.auth-method-icon,
.auth-method-head p {
  display: none !important;
}

.auth-panel,
.auth-panel .form-grid {
  max-height: none !important;
  padding: 0 !important;
  overflow: visible !important;
}

.auth-panel .form-grid {
  display: grid !important;
  gap: 18px !important;
}

.auth-card .form-row {
  display: grid !important;
  gap: 8px !important;
  padding: 0 0 8px !important;
  border: 0 !important;
  border-bottom: 1px solid #49495f !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.auth-card .form-row label {
  color: #f7f8ff !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.auth-card input {
  width: 100% !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #f7f8ff !important;
  font-size: 16px !important;
  box-shadow: none !important;
}

.auth-card input::placeholder {
  color: rgba(247, 248, 255, .55) !important;
}

.auth-card input:focus {
  box-shadow: none !important;
}

.auth-card #loginBtn,
.auth-card #registerSubmitBtn,
.auth-card #forgotBtn {
  width: 100% !important;
  min-height: 44px !important;
  margin-top: 0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: linear-gradient(315deg, #4048ef 0%, #5a7bef 100%) !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  box-shadow: none !important;
}

.auth-method-head {
  display: grid !important;
  justify-items: center !important;
  gap: 8px !important;
}

.auth-method-tabs {
  display: flex !important;
  justify-content: center !important;
  gap: 22px !important;
  padding: 0 0 2px !important;
  border: 0 !important;
  background: transparent !important;
}

.auth-method-tabs button {
  position: relative !important;
  min-height: 30px !important;
  padding: 0 2px 10px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #cdd2df !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

.auth-method-tabs button::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  bottom: 0 !important;
  width: 5px !important;
  height: 5px !important;
  border-radius: 999px !important;
  background: transparent !important;
  transform: translateX(-50%) !important;
}

.auth-method-tabs button.active {
  color: #f7f8ff !important;
}

.auth-method-tabs button.active::after {
  background: #f7f8ff !important;
}

.auth-method-tabs button span {
  display: none !important;
}

.auth-code-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 104px !important;
  gap: 8px !important;
  align-items: center !important;
}

.auth-card .auth-code-btn.secondary {
  min-height: 34px !important;
  padding: 0 8px !important;
  border: 1px solid rgba(121, 212, 124, .38) !important;
  border-radius: 8px !important;
  background: rgba(121, 212, 124, .12) !important;
  color: #9de686 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.auth-form-foot {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  min-height: 24px !important;
  padding: 0 !important;
  color: rgba(247, 248, 255, .72) !important;
  font-size: 12px !important;
}

.auth-form-foot .auth-foot-right {
  min-width: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 4px !important;
  text-align: right !important;
}

.auth-form-foot .ghost {
  min-height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #ea3131 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}

.h5-body {
  --pair-drawer-width: min(78vw, 320px) !important;
}

.h5-app #view-market .market-pair-card,
.h5-app #view-kline .kline-pair-drawer {
  display: block !important;
  position: fixed !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: var(--pair-drawer-width) !important;
  min-width: var(--pair-drawer-width) !important;
  max-width: 320px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-right: 1px solid #1d2940 !important;
  border-radius: 0 !important;
  background: #0b1220 !important;
  color: #edf3ff !important;
  z-index: 88 !important;
  overflow: auto !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateX(-100%) !important;
  transition: transform .22s ease, visibility .22s ease !important;
  box-shadow: 18px 0 40px rgba(0, 0, 0, .22) !important;
}

.h5-app #view-market.market-pairs-open .market-pair-card,
.h5-app #view-kline.market-pairs-open .kline-pair-drawer {
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(0) !important;
}

.h5-app #view-market.market-pairs-open .pair-overlay,
.h5-app #view-kline.market-pairs-open .pair-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: rgba(0, 0, 0, .48) !important;
  z-index: 87 !important;
  box-shadow: none !important;
}

.h5-app #view-market .market-pair-card .card-head,
.h5-app #view-kline .kline-pair-drawer .card-head {
  min-height: 58px !important;
  padding: 16px !important;
  border-bottom: 1px solid #1d2940 !important;
  background: transparent !important;
}

.h5-app #view-market .market-pair-body,
.h5-app #view-kline .market-pair-body {
  padding: 16px !important;
  gap: 12px !important;
}

.h5-app #view-market .market-pair-card .badge,
.h5-app #view-kline .kline-pair-drawer .badge,
.h5-app #view-market .market-meta,
.h5-app #view-kline .market-meta {
  display: initial !important;
}

.h5-app #view-market .market-pair-card .badge,
.h5-app #view-kline .kline-pair-drawer .badge {
  display: inline-flex !important;
}

.h5-app #view-market .market-list-head,
.h5-app #view-kline .market-list-head,
.h5-app #view-market .pair-list-row,
.h5-app #view-kline .pair-list-row {
  grid-template-columns: minmax(0, 1.35fr) minmax(72px, .8fr) 30px !important;
}

.h5-app #view-market .pair-list-row,
.h5-app #view-kline .pair-list-row {
  min-height: 58px !important;
  padding: 8px 4px !important;
}

.h5-app #view-market .market-coin-badge,
.h5-app #view-kline .market-coin-badge {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  flex-basis: 30px !important;
  border-radius: 8px !important;
  font-size: 11px !important;
}

.h5-app #view-market .market-symbol,
.h5-app #view-kline .market-symbol {
  font-size: 13px !important;
}

.h5-app #view-market .market-pair-price strong,
.h5-app #view-kline .market-pair-price strong {
  max-width: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  font-size: 12px !important;
}

.h5-app #view-market .market-fav-toggle,
.h5-app #view-kline .market-fav-toggle {
  width: 30px !important;
  min-width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  font-size: 18px !important;
}

/* 2026062162 EOF light-mode correction. */
html.light-ui {
  color-scheme: light !important;
  --bg: #f6f6f6 !important;
  --panel: #ffffff !important;
  --panel-2: #f7f7f7 !important;
  --panel-3: #ffffff !important;
  --text: #111827 !important;
  --muted: #666666 !important;
  --line: #dcdee0 !important;
  --brand: #bf5fc1 !important;
  --brand-2: #16a36f !important;
  --danger: #e5484d !important;
  --warn: #d99a00 !important;
  --shadow: 0 0 26px rgba(34, 34, 44, .06) !important;
}

body.light-ui,
html.light-ui body,
body.light-ui .h5-app,
body.light-ui .h5-main,
body.light-ui .app-shell,
body.light-ui .main,
body.light-ui .h5-app.home-view .h5-main,
body.light-ui .h5-app.main-tab-view .h5-main,
body.light-ui .h5-app:not(.home-view) .h5-main {
  background: #f6f6f6 !important;
  color: #111827 !important;
  box-shadow: none !important;
}

body.light-ui .card,
body.light-ui .card-body,
body.light-ui .soft-panel,
body.light-ui .notice,
body.light-ui .metric,
body.light-ui .product-card,
body.light-ui .home-product-card,
body.light-ui .wallet-form-card,
body.light-ui .wallet-history-card,
body.light-ui .wallet-coin-row,
body.light-ui .position-card,
body.light-ui .contract-order-card,
body.light-ui .withdraw-address-card,
body.light-ui .invite-card,
body.light-ui .chain-mode-card,
body.light-ui .cart-strip,
body.light-ui .trade-mobile-tabs,
body.light-ui .trade-tab-panel,
body.light-ui .trade-ticket-card .trade-ticket-body,
body.light-ui #walletFundCard,
body.light-ui #walletContractCard {
  border-color: #dcdee0 !important;
  background: #ffffff !important;
  color: #111827 !important;
  box-shadow: 0 0 26px rgba(34, 34, 44, .06) !important;
}

body.light-ui .card-head,
body.light-ui .soft-panel-head,
body.light-ui .page-head,
body.light-ui .wallet-tabs,
body.light-ui .fund-account-actions,
body.light-ui .wallet-search input {
  border-color: #dcdee0 !important;
  background: #ffffff !important;
  color: #111827 !important;
}

body.light-ui .card-head h2,
body.light-ui .card-head h3,
body.light-ui .topbar h1,
body.light-ui .h5-header strong,
body.light-ui .wallet-page-title,
body.light-ui .home-section-head h2,
body.light-ui .drawer-user strong,
body.light-ui .market-symbol,
body.light-ui .market-pair-head h2,
body.light-ui .market-pair-price strong,
body.light-ui .price,
body.light-ui .metric .value,
body.light-ui .wallet-coin-head strong,
body.light-ui .wallet-coin-metrics strong,
body.light-ui .trade-summary-left button,
body.light-ui .trade-summary-left strong,
body.light-ui .kline-pair-btn,
body.light-ui .kline-info-grid strong,
body.light-ui .contract-asset-box strong,
body.light-ui .wallet-available-line strong,
body.light-ui .trade-total-row strong,
body.light-ui .notice strong,
body.light-ui .notice-detail-card h2,
body.light-ui .deposit-flow-title,
body.light-ui .asset-value,
body.light-ui .asset-total,
body.light-ui .asset-owner-row b,
body.light-ui .page-head h2 {
  color: #111827 !important;
}

body.light-ui .muted,
body.light-ui .label,
body.light-ui .form-row label,
body.light-ui .market-meta,
body.light-ui .market-pair-count,
body.light-ui .market-symbol span,
body.light-ui .drawer-user-id,
body.light-ui .wallet-coin-head span,
body.light-ui .wallet-coin-metrics label,
body.light-ui .asset-estimate,
body.light-ui .trade-summary-stats span,
body.light-ui .form-row small,
body.light-ui .notice div,
body.light-ui .notice-foot,
body.light-ui .deposit-auto-hint,
body.light-ui .deposit-address-info > span,
body.light-ui .deposit-address-info > small,
body.light-ui .deposit-proof-panel small,
body.light-ui .kline-bottom-strip-head,
body.light-ui .kline-bottom-strip-head button,
body.light-ui .contract-order-top small {
  color: #666666 !important;
}

body.light-ui input,
body.light-ui select,
body.light-ui textarea,
body.light-ui .wallet-search input,
body.light-ui .market-pair-tools input,
body.light-ui .trade-ticket-card input,
body.light-ui .trade-ticket-card select {
  border-color: #dcdee0 !important;
  background: #ffffff !important;
  color: #111827 !important;
  box-shadow: none !important;
}

body.light-ui input::placeholder,
body.light-ui textarea::placeholder {
  color: #999999 !important;
}

body.light-ui button.secondary,
body.light-ui .secondary,
body.light-ui .badge,
body.light-ui .theme-switch,
body.light-ui [data-theme-toggle] {
  border-color: #dcdee0 !important;
  background: #f7f7f7 !important;
  color: #4b5563 !important;
  box-shadow: none !important;
}

body.light-ui button.ghost,
body.light-ui .back-icon-only {
  background: transparent !important;
  color: #4b5563 !important;
  box-shadow: none !important;
}

body.light-ui .badge.good,
body.light-ui .up {
  color: #16a36f !important;
}

body.light-ui .badge.bad,
body.light-ui .down {
  color: #e5484d !important;
}

body.light-ui .h5-header {
  border-color: #dcdee0 !important;
  background: rgba(255, 255, 255, .98) !important;
  color: #111827 !important;
  box-shadow: 0 6px 18px rgba(34, 34, 44, .04) !important;
}

body.light-ui .h5-menu-btn,
body.light-ui .h5-lang-btn,
body.light-ui .h5-header.home-only .user-strip .icon-btn,
body.light-ui .trade-symbol-icon,
body.light-ui .h5-app .kline-tool-btn,
body.light-ui .h5-app .kline-side-toolbar button {
  border-color: #dcdee0 !important;
  background: #ffffff !important;
  color: #4b5563 !important;
  box-shadow: none !important;
}

body.light-ui .bottom-tabs {
  border-color: #dcdee0 !important;
  background: rgba(255, 255, 255, .98) !important;
  box-shadow: 0 -9px 14px rgba(0, 0, 0, .06) !important;
}

body.light-ui .bottom-tabs button {
  color: #666666 !important;
  background: transparent !important;
}

body.light-ui .bottom-tabs button.active {
  color: #bf5fc1 !important;
  background: transparent !important;
}

body.light-ui .drawer-panel,
body.light-ui .h5-app #view-market .market-pair-card,
body.light-ui .h5-app #view-kline .kline-pair-drawer {
  border-color: #dcdee0 !important;
  border-right-color: #dcdee0 !important;
  background: #ffffff !important;
  color: #111827 !important;
  box-shadow: 18px 0 40px rgba(15, 23, 42, .12) !important;
}

body.light-ui .drawer-user,
body.light-ui .drawer-section,
body.light-ui .h5-app #view-market .market-pair-card .card-head,
body.light-ui .h5-app #view-kline .kline-pair-drawer .card-head,
body.light-ui .h5-app .market-pair-tools,
body.light-ui .h5-app .market-list-head,
body.light-ui .h5-app .pair-list-row {
  border-color: #dcdee0 !important;
  background: #ffffff !important;
}

body.light-ui .drawer-section button,
body.light-ui .drawer-section a {
  border-color: #dcdee0 !important;
  background: #f7f7f7 !important;
  color: #4b5563 !important;
  box-shadow: none !important;
}

body.light-ui .h5-app .pair-list-row.active,
body.light-ui .market-row.active,
body.light-ui .market-row:hover {
  background: #faf2fb !important;
}

body.light-ui .market-coin-badge,
body.light-ui .coin-avatar {
  background: linear-gradient(135deg, #bf5fc1, #5a7bef) !important;
  color: #ffffff !important;
}

body.light-ui .market-fav-toggle {
  background: transparent !important;
  color: #9ca3af !important;
}

body.light-ui .market-fav-toggle.active {
  color: #bf5fc1 !important;
}

body.light-ui .h5-app.home-view #view-overview {
  background: transparent !important;
}

body.light-ui .h5-app.home-view .home-carousel,
body.light-ui .home-carousel {
  border: 1px solid #dcdee0 !important;
  background: url("/ref-img/bgb4.png") center / cover no-repeat, #ffffff !important;
  box-shadow: none !important;
}

body.light-ui .h5-app.home-view .home-slide,
body.light-ui .home-slide {
  background: linear-gradient(90deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .44) 68%, rgba(255, 255, 255, .16)) !important;
}

body.light-ui .h5-app.home-view .home-slide span,
body.light-ui .home-slide span,
body.light-ui .home-notice-strip > span,
body.light-ui .home-product-card em {
  color: #bf5fc1 !important;
}

body.light-ui .h5-app.home-view .home-slide strong,
body.light-ui .home-slide strong,
body.light-ui .home-market-item strong,
body.light-ui .home-market-item em,
body.light-ui .home-product-card strong {
  color: #111827 !important;
}

body.light-ui .h5-app.home-view .home-slide small,
body.light-ui .home-slide small,
body.light-ui .home-market-item span,
body.light-ui .home-product-card span {
  color: #666666 !important;
}

body.light-ui .home-notice-strip,
body.light-ui .quick-actions,
body.light-ui .home-market-preview {
  border: 1px solid #dcdee0 !important;
  background: #ffffff !important;
  color: #111827 !important;
  box-shadow: none !important;
}

body.light-ui .quick-actions button {
  background: transparent !important;
  color: #111827 !important;
}

body.light-ui .home-market-item {
  border-color: #eeeeee !important;
  background: transparent !important;
}

body.light-ui .trade-mode-tabs,
body.light-ui #view-market .tabs,
body.light-ui .tabs,
body.light-ui .segmented {
  border-color: #dcdee0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

body.light-ui .trade-mode-tabs button,
body.light-ui #view-market .tabs button,
body.light-ui .tabs button,
body.light-ui .segmented button,
body.light-ui .trade-ticket-card .percent-row button,
body.light-ui .trade-ticket-card .leverage-options button {
  border-color: #dcdee0 !important;
  background: #f7f7f7 !important;
  color: #4b5563 !important;
  box-shadow: none !important;
}

body.light-ui .trade-mode-tabs button.active,
body.light-ui #view-market .tabs button.active,
body.light-ui .tabs button.active,
body.light-ui .segmented button.active {
  border-color: #bf5fc1 !important;
  background: #bf5fc1 !important;
  color: #ffffff !important;
}

body.light-ui .trade-symbol-bar,
body.light-ui .h5-app .kline-topbar,
body.light-ui .trade-symbol-picker,
body.light-ui .h5-app .kline-symbol-main,
body.light-ui .trade-summary-panel,
body.light-ui .kline-summary,
body.light-ui .h5-app #view-kline .kline-summary {
  background: transparent !important;
  color: #111827 !important;
  box-shadow: none !important;
}

body.light-ui .trade-side-block,
body.light-ui .h5-app #view-market .trade-side-block {
  border-color: #dcdee0 !important;
  background: #f7f7f7 !important;
}

body.light-ui .trade-side-block button,
body.light-ui .h5-app #view-market .trade-side-block button {
  background: transparent !important;
  color: #4b5563 !important;
}

body.light-ui .trade-side-block button.good.active,
body.light-ui .h5-app #view-market .trade-side-block button.good.active {
  background: #16a36f !important;
  color: #ffffff !important;
}

body.light-ui .trade-side-block button.bad.active,
body.light-ui .h5-app #view-market .trade-side-block button.bad.active {
  background: #e5484d !important;
  color: #ffffff !important;
}

body.light-ui .percent-row button.active,
body.light-ui .trade-ticket-card .percent-row button.active,
body.light-ui .trade-ticket-card .leverage-options button.active {
  border-color: #bf5fc1 !important;
  background: rgba(191, 95, 193, .1) !important;
  color: #9b3f9d !important;
}

body.light-ui .depth-chart,
body.light-ui .mobile-depth-book,
body.light-ui .h5-app #view-kline .kline-chart-card,
body.light-ui .h5-app #view-kline .kline-chart-tools,
body.light-ui .h5-app #view-kline .kline-chart-stage,
body.light-ui .h5-app #view-kline .chart-wrap,
body.light-ui .h5-app #view-kline .period-tabs,
body.light-ui .h5-app .kline-bottom-pairs,
body.light-ui .h5-app .kline-bottom-pair,
body.light-ui .h5-app #view-kline .kline-tabs-card,
body.light-ui .kline-info-tabs,
body.light-ui .kline-info-panel {
  border-color: #dcdee0 !important;
  background: #ffffff !important;
  color: #111827 !important;
  box-shadow: none !important;
}

body.light-ui .h5-app #view-kline .period-tabs button,
body.light-ui .kline-info-tabs button {
  background: transparent !important;
  color: #666666 !important;
}

body.light-ui .h5-app #view-kline .period-tabs button.active,
body.light-ui .kline-info-tabs button.active {
  color: #bf5fc1 !important;
}

body.light-ui .h5-app .kline-bottom-pair.active {
  border-color: rgba(191, 95, 193, .45) !important;
  background: #faf2fb !important;
  box-shadow: inset 0 2px 0 #bf5fc1 !important;
}

body.light-ui .asset-hero,
body.light-ui .h5-app #view-wallet .asset-hero {
  border: 1px solid #dcdee0 !important;
  background: linear-gradient(135deg, #ffffff, #faf2fb) !important;
  color: #111827 !important;
  box-shadow: none !important;
}

body.light-ui .asset-actions button {
  border: 1px solid #dcdee0 !important;
  background: #ffffff !important;
  color: #111827 !important;
}

body.light-ui .wallet-tabs button {
  background: transparent !important;
  color: #666666 !important;
}

body.light-ui .wallet-tabs button.active,
body.light-ui .h5-app #view-wallet .wallet-tabs button.active {
  background: rgba(191, 95, 193, .1) !important;
  color: #bf5fc1 !important;
}

body.light-ui .deposit-chain-tips div,
body.light-ui .deposit-address-copy,
body.light-ui .deposit-address-info strong,
body.light-ui .deposit-proof-panel,
body.light-ui .deposit-upload-control,
body.light-ui .deposit-upload-icon,
body.light-ui .withdraw-selected-address,
body.light-ui .withdraw-address-filter {
  border-color: #dcdee0 !important;
  background: #ffffff !important;
  color: #111827 !important;
}

body.light-ui .deposit-network-buttons button {
  border-color: #dcdee0 !important;
  background: #ffffff !important;
  color: #4b5563 !important;
}

body.light-ui .deposit-network-buttons button.active {
  border-color: rgba(191, 95, 193, .55) !important;
  background: rgba(191, 95, 193, .1) !important;
  color: #bf5fc1 !important;
  box-shadow: inset 0 2px 0 #bf5fc1 !important;
}

body.light-ui .deposit-upload-icon {
  color: #bf5fc1 !important;
}

body.light-ui .app-modal-panel {
  border-color: #dcdee0 !important;
  background: #ffffff !important;
  color: #111827 !important;
}

body.light-ui .app-modal-head,
body.light-ui .app-modal-foot {
  border-color: #dcdee0 !important;
  background: #ffffff !important;
}

body.light-ui .app-modal-head strong,
body.light-ui .contract-detail-head strong {
  color: #111827 !important;
}

body.light-ui .contract-detail-grid div,
body.light-ui .position-card-grid div,
body.light-ui .contract-order-grid div {
  border-color: #dcdee0 !important;
  background: #f7f7f7 !important;
}

body.light-ui .contract-detail-grid span,
body.light-ui .position-card-grid span,
body.light-ui .contract-order-grid span {
  color: #666666 !important;
}

body.light-ui .auth-page {
  background: #ffffff !important;
  color: #111827 !important;
}

body.light-ui .auth-brand {
  color: #111827 !important;
}

body.light-ui .auth-card {
  border: 1px solid #dcdee0 !important;
  background: #ffffff !important;
  color: #111827 !important;
  box-shadow: 0 0 26px rgba(34, 34, 44, .06) !important;
}

body.light-ui .auth-card-head span,
body.light-ui .auth-method-title,
body.light-ui .auth-card .form-row label {
  color: #111827 !important;
}

body.light-ui .auth-card .form-row {
  border-bottom-color: #dcdee0 !important;
}

body.light-ui .auth-card input {
  background: transparent !important;
  color: #111827 !important;
}

body.light-ui .auth-card input::placeholder {
  color: #999999 !important;
}

body.light-ui .auth-method-tabs button {
  color: #666666 !important;
}

body.light-ui .auth-method-tabs button.active {
  color: #111827 !important;
}

body.light-ui .auth-method-tabs button.active::after {
  background: #bf5fc1 !important;
}

body.light-ui .auth-form-foot {
  color: #666666 !important;
}

body.light-ui .auth-form-foot .ghost {
  color: #e5484d !important;
}

/* 2026062162 real EOF light-mode correction. */
html.light-ui {
  color-scheme: light !important;
  --bg: #f6f6f6 !important;
  --panel: #ffffff !important;
  --panel-2: #f7f7f7 !important;
  --panel-3: #ffffff !important;
  --text: #111827 !important;
  --muted: #666666 !important;
  --line: #dcdee0 !important;
  --brand: #bf5fc1 !important;
  --brand-2: #16a36f !important;
  --danger: #e5484d !important;
  --warn: #d99a00 !important;
  --shadow: 0 0 26px rgba(34, 34, 44, .06) !important;
}

body.light-ui,
html.light-ui body,
body.light-ui .h5-app,
body.light-ui .h5-main,
body.light-ui .app-shell,
body.light-ui .main,
body.light-ui .h5-app.home-view .h5-main,
body.light-ui .h5-app.main-tab-view .h5-main,
body.light-ui .h5-app:not(.home-view) .h5-main {
  background: #f6f6f6 !important;
  color: #111827 !important;
  box-shadow: none !important;
}

body.light-ui .card,
body.light-ui .card-body,
body.light-ui .soft-panel,
body.light-ui .notice,
body.light-ui .metric,
body.light-ui .product-card,
body.light-ui .home-product-card,
body.light-ui .wallet-form-card,
body.light-ui .wallet-history-card,
body.light-ui .wallet-coin-row,
body.light-ui .position-card,
body.light-ui .contract-order-card,
body.light-ui .withdraw-address-card,
body.light-ui .invite-card,
body.light-ui .chain-mode-card,
body.light-ui .cart-strip,
body.light-ui .trade-mobile-tabs,
body.light-ui .trade-tab-panel,
body.light-ui .trade-ticket-card .trade-ticket-body,
body.light-ui #walletFundCard,
body.light-ui #walletContractCard {
  border-color: #dcdee0 !important;
  background: #ffffff !important;
  color: #111827 !important;
  box-shadow: 0 0 26px rgba(34, 34, 44, .06) !important;
}

body.light-ui .card-head,
body.light-ui .soft-panel-head,
body.light-ui .page-head,
body.light-ui .wallet-tabs,
body.light-ui .fund-account-actions,
body.light-ui .wallet-search input {
  border-color: #dcdee0 !important;
  background: #ffffff !important;
  color: #111827 !important;
}

body.light-ui .card-head h2,
body.light-ui .card-head h3,
body.light-ui .topbar h1,
body.light-ui .h5-header strong,
body.light-ui .wallet-page-title,
body.light-ui .home-section-head h2,
body.light-ui .drawer-user strong,
body.light-ui .market-symbol,
body.light-ui .market-pair-head h2,
body.light-ui .market-pair-price strong,
body.light-ui .price,
body.light-ui .metric .value,
body.light-ui .wallet-coin-head strong,
body.light-ui .wallet-coin-metrics strong,
body.light-ui .trade-summary-left button,
body.light-ui .trade-summary-left strong,
body.light-ui .kline-pair-btn,
body.light-ui .kline-info-grid strong,
body.light-ui .contract-asset-box strong,
body.light-ui .wallet-available-line strong,
body.light-ui .trade-total-row strong,
body.light-ui .notice strong,
body.light-ui .notice-detail-card h2,
body.light-ui .deposit-flow-title,
body.light-ui .asset-value,
body.light-ui .asset-total,
body.light-ui .asset-owner-row b,
body.light-ui .page-head h2 {
  color: #111827 !important;
}

body.light-ui .muted,
body.light-ui .label,
body.light-ui .form-row label,
body.light-ui .market-meta,
body.light-ui .market-pair-count,
body.light-ui .market-symbol span,
body.light-ui .drawer-user-id,
body.light-ui .wallet-coin-head span,
body.light-ui .wallet-coin-metrics label,
body.light-ui .asset-estimate,
body.light-ui .trade-summary-stats span,
body.light-ui .form-row small,
body.light-ui .notice div,
body.light-ui .notice-foot,
body.light-ui .deposit-auto-hint,
body.light-ui .deposit-address-info > span,
body.light-ui .deposit-address-info > small,
body.light-ui .deposit-proof-panel small,
body.light-ui .kline-bottom-strip-head,
body.light-ui .kline-bottom-strip-head button,
body.light-ui .contract-order-top small {
  color: #666666 !important;
}

body.light-ui input,
body.light-ui select,
body.light-ui textarea,
body.light-ui .wallet-search input,
body.light-ui .market-pair-tools input,
body.light-ui .trade-ticket-card input,
body.light-ui .trade-ticket-card select {
  border-color: #dcdee0 !important;
  background: #ffffff !important;
  color: #111827 !important;
  box-shadow: none !important;
}

body.light-ui input::placeholder,
body.light-ui textarea::placeholder {
  color: #999999 !important;
}

body.light-ui button.secondary,
body.light-ui .secondary,
body.light-ui .badge,
body.light-ui .theme-switch,
body.light-ui [data-theme-toggle] {
  border-color: #dcdee0 !important;
  background: #f7f7f7 !important;
  color: #4b5563 !important;
  box-shadow: none !important;
}

body.light-ui button.ghost,
body.light-ui .back-icon-only {
  background: transparent !important;
  color: #4b5563 !important;
  box-shadow: none !important;
}

body.light-ui .badge.good,
body.light-ui .up {
  color: #16a36f !important;
}

body.light-ui .badge.bad,
body.light-ui .down {
  color: #e5484d !important;
}

body.light-ui .h5-header {
  border-color: #dcdee0 !important;
  background: rgba(255, 255, 255, .98) !important;
  color: #111827 !important;
  box-shadow: 0 6px 18px rgba(34, 34, 44, .04) !important;
}

body.light-ui .h5-menu-btn,
body.light-ui .h5-lang-btn,
body.light-ui .h5-header.home-only .user-strip .icon-btn,
body.light-ui .trade-symbol-icon,
body.light-ui .h5-app .kline-tool-btn,
body.light-ui .h5-app .kline-side-toolbar button {
  border-color: #dcdee0 !important;
  background: #ffffff !important;
  color: #4b5563 !important;
  box-shadow: none !important;
}

body.light-ui .bottom-tabs {
  border-color: #dcdee0 !important;
  background: rgba(255, 255, 255, .98) !important;
  box-shadow: 0 -9px 14px rgba(0, 0, 0, .06) !important;
}

body.light-ui .bottom-tabs button {
  color: #666666 !important;
  background: transparent !important;
}

body.light-ui .bottom-tabs button.active {
  color: #bf5fc1 !important;
  background: transparent !important;
}

body.light-ui .drawer-panel,
body.light-ui .h5-app #view-market .market-pair-card,
body.light-ui .h5-app #view-kline .kline-pair-drawer {
  border-color: #dcdee0 !important;
  border-right-color: #dcdee0 !important;
  background: #ffffff !important;
  color: #111827 !important;
  box-shadow: 18px 0 40px rgba(15, 23, 42, .12) !important;
}

body.light-ui .drawer-user,
body.light-ui .drawer-section,
body.light-ui .h5-app #view-market .market-pair-card .card-head,
body.light-ui .h5-app #view-kline .kline-pair-drawer .card-head,
body.light-ui .h5-app .market-pair-tools,
body.light-ui .h5-app .market-list-head,
body.light-ui .h5-app .pair-list-row {
  border-color: #dcdee0 !important;
  background: #ffffff !important;
}

body.light-ui .drawer-section button,
body.light-ui .drawer-section a {
  border-color: #dcdee0 !important;
  background: #f7f7f7 !important;
  color: #4b5563 !important;
  box-shadow: none !important;
}

body.light-ui .h5-app .pair-list-row.active,
body.light-ui .market-row.active,
body.light-ui .market-row:hover {
  background: #faf2fb !important;
}

body.light-ui .market-coin-badge,
body.light-ui .coin-avatar {
  background: linear-gradient(135deg, #bf5fc1, #5a7bef) !important;
  color: #ffffff !important;
}

body.light-ui .market-fav-toggle {
  background: transparent !important;
  color: #9ca3af !important;
}

body.light-ui .market-fav-toggle.active {
  color: #bf5fc1 !important;
}

body.light-ui .h5-app.home-view #view-overview {
  background: transparent !important;
}

body.light-ui .h5-app.home-view .home-carousel,
body.light-ui .home-carousel {
  border: 1px solid #dcdee0 !important;
  background: url("/ref-img/bgb4.png") center / cover no-repeat, #ffffff !important;
  box-shadow: none !important;
}

body.light-ui .h5-app.home-view .home-slide,
body.light-ui .home-slide {
  background: linear-gradient(90deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .44) 68%, rgba(255, 255, 255, .16)) !important;
}

body.light-ui .h5-app.home-view .home-slide span,
body.light-ui .home-slide span,
body.light-ui .home-notice-strip > span,
body.light-ui .home-product-card em {
  color: #bf5fc1 !important;
}

body.light-ui .h5-app.home-view .home-slide strong,
body.light-ui .home-slide strong,
body.light-ui .home-market-item strong,
body.light-ui .home-market-item em,
body.light-ui .home-product-card strong {
  color: #111827 !important;
}

body.light-ui .h5-app.home-view .home-slide small,
body.light-ui .home-slide small,
body.light-ui .home-market-item span,
body.light-ui .home-product-card span {
  color: #666666 !important;
}

body.light-ui .home-notice-strip,
body.light-ui .quick-actions,
body.light-ui .home-market-preview {
  border: 1px solid #dcdee0 !important;
  background: #ffffff !important;
  color: #111827 !important;
  box-shadow: none !important;
}

body.light-ui .quick-actions button {
  background: transparent !important;
  color: #111827 !important;
}

body.light-ui .home-market-item {
  border-color: #eeeeee !important;
  background: transparent !important;
}

body.light-ui .trade-mode-tabs,
body.light-ui #view-market .tabs,
body.light-ui .tabs,
body.light-ui .segmented {
  border-color: #dcdee0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

body.light-ui .trade-mode-tabs button,
body.light-ui #view-market .tabs button,
body.light-ui .tabs button,
body.light-ui .segmented button,
body.light-ui .trade-ticket-card .percent-row button,
body.light-ui .trade-ticket-card .leverage-options button {
  border-color: #dcdee0 !important;
  background: #f7f7f7 !important;
  color: #4b5563 !important;
  box-shadow: none !important;
}

body.light-ui .trade-mode-tabs button.active,
body.light-ui #view-market .tabs button.active,
body.light-ui .tabs button.active,
body.light-ui .segmented button.active {
  border-color: #bf5fc1 !important;
  background: #bf5fc1 !important;
  color: #ffffff !important;
}

body.light-ui .trade-symbol-bar,
body.light-ui .h5-app .kline-topbar,
body.light-ui .trade-symbol-picker,
body.light-ui .h5-app .kline-symbol-main,
body.light-ui .trade-summary-panel,
body.light-ui .kline-summary,
body.light-ui .h5-app #view-kline .kline-summary {
  background: transparent !important;
  color: #111827 !important;
  box-shadow: none !important;
}

body.light-ui .trade-side-block,
body.light-ui .h5-app #view-market .trade-side-block {
  border-color: #dcdee0 !important;
  background: #f7f7f7 !important;
}

body.light-ui .trade-side-block button,
body.light-ui .h5-app #view-market .trade-side-block button {
  background: transparent !important;
  color: #4b5563 !important;
}

body.light-ui .trade-side-block button.good.active,
body.light-ui .h5-app #view-market .trade-side-block button.good.active {
  background: #16a36f !important;
  color: #ffffff !important;
}

body.light-ui .trade-side-block button.bad.active,
body.light-ui .h5-app #view-market .trade-side-block button.bad.active {
  background: #e5484d !important;
  color: #ffffff !important;
}

body.light-ui .percent-row button.active,
body.light-ui .trade-ticket-card .percent-row button.active,
body.light-ui .trade-ticket-card .leverage-options button.active {
  border-color: #bf5fc1 !important;
  background: rgba(191, 95, 193, .1) !important;
  color: #9b3f9d !important;
}

body.light-ui .depth-chart,
body.light-ui .mobile-depth-book,
body.light-ui .h5-app #view-kline .kline-chart-card,
body.light-ui .h5-app #view-kline .kline-chart-tools,
body.light-ui .h5-app #view-kline .kline-chart-stage,
body.light-ui .h5-app #view-kline .chart-wrap,
body.light-ui .h5-app #view-kline .period-tabs,
body.light-ui .h5-app .kline-bottom-pairs,
body.light-ui .h5-app .kline-bottom-pair,
body.light-ui .h5-app #view-kline .kline-tabs-card,
body.light-ui .kline-info-tabs,
body.light-ui .kline-info-panel {
  border-color: #dcdee0 !important;
  background: #ffffff !important;
  color: #111827 !important;
  box-shadow: none !important;
}

body.light-ui .h5-app #view-kline .period-tabs button,
body.light-ui .kline-info-tabs button {
  background: transparent !important;
  color: #666666 !important;
}

body.light-ui .h5-app #view-kline .period-tabs button.active,
body.light-ui .kline-info-tabs button.active {
  color: #bf5fc1 !important;
}

body.light-ui .h5-app .kline-bottom-pair.active {
  border-color: rgba(191, 95, 193, .45) !important;
  background: #faf2fb !important;
  box-shadow: inset 0 2px 0 #bf5fc1 !important;
}

body.light-ui .asset-hero,
body.light-ui .h5-app #view-wallet .asset-hero {
  border: 1px solid #dcdee0 !important;
  background: linear-gradient(135deg, #ffffff, #faf2fb) !important;
  color: #111827 !important;
  box-shadow: none !important;
}

body.light-ui .asset-actions button {
  border: 1px solid #dcdee0 !important;
  background: #ffffff !important;
  color: #111827 !important;
}

body.light-ui .wallet-tabs button {
  background: transparent !important;
  color: #666666 !important;
}

body.light-ui .wallet-tabs button.active,
body.light-ui .h5-app #view-wallet .wallet-tabs button.active {
  background: rgba(191, 95, 193, .1) !important;
  color: #bf5fc1 !important;
}

body.light-ui .deposit-chain-tips div,
body.light-ui .deposit-address-copy,
body.light-ui .deposit-address-info strong,
body.light-ui .deposit-proof-panel,
body.light-ui .deposit-upload-control,
body.light-ui .deposit-upload-icon,
body.light-ui .withdraw-selected-address,
body.light-ui .withdraw-address-filter {
  border-color: #dcdee0 !important;
  background: #ffffff !important;
  color: #111827 !important;
}

body.light-ui .deposit-network-buttons button {
  border-color: #dcdee0 !important;
  background: #ffffff !important;
  color: #4b5563 !important;
}

body.light-ui .deposit-network-buttons button.active {
  border-color: rgba(191, 95, 193, .55) !important;
  background: rgba(191, 95, 193, .1) !important;
  color: #bf5fc1 !important;
  box-shadow: inset 0 2px 0 #bf5fc1 !important;
}

body.light-ui .deposit-upload-icon {
  color: #bf5fc1 !important;
}

body.light-ui .app-modal-panel {
  border-color: #dcdee0 !important;
  background: #ffffff !important;
  color: #111827 !important;
}

body.light-ui .app-modal-head,
body.light-ui .app-modal-foot {
  border-color: #dcdee0 !important;
  background: #ffffff !important;
}

body.light-ui .app-modal-head strong,
body.light-ui .contract-detail-head strong {
  color: #111827 !important;
}

body.light-ui .contract-detail-grid div,
body.light-ui .position-card-grid div,
body.light-ui .contract-order-grid div {
  border-color: #dcdee0 !important;
  background: #f7f7f7 !important;
}

body.light-ui .contract-detail-grid span,
body.light-ui .position-card-grid span,
body.light-ui .contract-order-grid span {
  color: #666666 !important;
}

body.light-ui .auth-page {
  background: #ffffff !important;
  color: #111827 !important;
}

body.light-ui .auth-brand {
  color: #111827 !important;
}

body.light-ui .auth-card {
  border: 1px solid #dcdee0 !important;
  background: #ffffff !important;
  color: #111827 !important;
  box-shadow: 0 0 26px rgba(34, 34, 44, .06) !important;
}

body.light-ui .auth-card-head span,
body.light-ui .auth-method-title,
body.light-ui .auth-card .form-row label {
  color: #111827 !important;
}

body.light-ui .auth-card .form-row {
  border-bottom-color: #dcdee0 !important;
}

body.light-ui .auth-card input {
  background: transparent !important;
  color: #111827 !important;
}

body.light-ui .auth-card input::placeholder {
  color: #999999 !important;
}

body.light-ui .auth-method-tabs button {
  color: #666666 !important;
}

body.light-ui .auth-method-tabs button.active {
  color: #111827 !important;
}

body.light-ui .auth-method-tabs button.active::after {
  background: #bf5fc1 !important;
}

body.light-ui .auth-form-foot {
  color: #666666 !important;
}

body.light-ui .auth-form-foot .ghost {
  color: #e5484d !important;
}

/* 2026062163 light trade tabs specificity fix. */
body.light-ui #view-market .trade-mode-tabs,
body.light-ui #view-market .tabs.kline-mode-tabs,
body.light-ui .trade-mode-tabs {
  border: 1px solid #dcdee0 !important;
  background: #ffffff !important;
  color: #111827 !important;
  box-shadow: none !important;
}

body.light-ui #view-market .trade-mode-tabs button,
body.light-ui #view-market .tabs.kline-mode-tabs button,
body.light-ui .trade-mode-tabs button {
  border: 1px solid #dcdee0 !important;
  background: #f7f7f7 !important;
  color: #4b5563 !important;
  box-shadow: none !important;
}

body.light-ui #view-market .trade-mode-tabs button[data-mode="spot"].active,
body.light-ui #view-market .trade-mode-tabs button[data-mode="contract"].active,
body.light-ui .trade-mode-tabs button[data-mode="spot"].active,
body.light-ui .trade-mode-tabs button[data-mode="contract"].active,
body.light-ui #view-market .tabs.kline-mode-tabs button.active {
  border-color: #bf5fc1 !important;
  background: #bf5fc1 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

body.light-ui #view-market .trade-mode-tabs button[data-mode="spot"].active,
body.light-ui .trade-mode-tabs button[data-mode="spot"].active {
  background: #16a36f !important;
  border-color: #16a36f !important;
}

body.light-ui #view-market .trade-mode-tabs button[data-mode="contract"].active,
body.light-ui .trade-mode-tabs button[data-mode="contract"].active {
  background: #bf5fc1 !important;
  border-color: #bf5fc1 !important;
}

/* 2026062165 light wallet readability fix. */
body.light-ui .h5-app #view-wallet .asset-owner-row span,
body.light-ui .h5-app #view-wallet .asset-estimate,
body.light-ui .h5-app #view-wallet .fund-account-actions span,
body.light-ui .h5-app #view-wallet .wallet-zero-toggle,
body.light-ui .h5-app #view-wallet .wallet-zero-toggle span {
  color: #4b5563 !important;
  opacity: 1 !important;
}

body.light-ui .h5-app #view-wallet .asset-owner-row span {
  color: #8b5b8d !important;
  font-weight: 700 !important;
}

body.light-ui .h5-app #view-wallet .fund-account-actions,
body.light-ui .h5-app #view-wallet #walletFundCard,
body.light-ui .h5-app #view-wallet .wallet-tabs,
body.light-ui .h5-app #view-wallet .wallet-search input {
  border-color: #dcdee0 !important;
  background: #ffffff !important;
  color: #111827 !important;
  box-shadow: none !important;
}

body.light-ui .h5-app #view-wallet .fund-account-actions button {
  border: 0 !important;
  background: transparent !important;
  color: #4b5563 !important;
  opacity: 1 !important;
}

body.light-ui .h5-app #view-wallet .fund-account-actions img {
  opacity: .95 !important;
  filter: none !important;
}

body.light-ui .h5-app #view-wallet .wallet-coin-row {
  border-color: #eeeeee !important;
  background: #ffffff !important;
}

body.light-ui .h5-app #view-wallet .wallet-coin-head > span {
  color: #111827 !important;
}

/* 2026062201 H5 light reference polish. */
.h5-app #view-overview.hidden,
.h5-app #view-market.hidden,
.h5-app #view-products.hidden,
.h5-app #view-orders.hidden,
.h5-app #view-wallet.hidden,
.h5-app #view-kline.hidden,
.h5-app .view.hidden,
.h5-app .page-view.hidden {
  display: none !important;
}

.h5-body {
  --pair-drawer-width: min(92vw, 360px) !important;
}

.h5-body .bottom-tabs {
  min-height: calc(58px + env(safe-area-inset-bottom)) !important;
  padding: 5px 6px calc(5px + env(safe-area-inset-bottom)) !important;
}

.h5-body .bottom-tabs button {
  min-height: 46px !important;
  gap: 3px !important;
}

.h5-body .bottom-tabs .nav-icon {
  width: 21px !important;
  height: 21px !important;
}

.h5-body .h5-main {
  padding-bottom: calc(78px + env(safe-area-inset-bottom)) !important;
}

.h5-body .h5-app #view-market .market-pair-card,
.h5-body .h5-app #view-kline .kline-pair-drawer {
  box-sizing: border-box !important;
  left: 0 !important;
  right: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  width: var(--pair-drawer-width) !important;
  min-width: var(--pair-drawer-width) !important;
  max-width: calc(100vw - 28px) !important;
  overflow-x: hidden !important;
}

.h5-body .h5-app #view-market.market-pairs-open .market-pair-card,
.h5-body .h5-app #view-kline.market-pairs-open .kline-pair-drawer {
  left: 0 !important;
  right: auto !important;
  margin-left: 0 !important;
  transform: translate3d(0, 0, 0) !important;
  visibility: visible !important;
}

.h5-body .h5-app #view-market .market-list-head,
.h5-body .h5-app #view-kline .market-list-head,
.h5-body .h5-app #view-market .pair-list-row,
.h5-body .h5-app #view-kline .pair-list-row {
  grid-template-columns: minmax(92px, 1fr) minmax(74px, auto) 28px !important;
  gap: 6px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

.h5-body .h5-app #view-market .pair-list-row,
.h5-body .h5-app #view-kline .pair-list-row {
  padding: 10px 8px !important;
}

.h5-body .h5-app #view-market .market-pair-name > div,
.h5-body .h5-app #view-kline .market-pair-name > div {
  min-width: 0 !important;
}

.h5-body .h5-app #view-market .market-pair-body,
.h5-body .h5-app #view-kline .market-pair-body,
.h5-body .h5-app #view-market .market-list,
.h5-body .h5-app #view-kline .market-list {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

.h5-body .h5-app #view-market .market-symbol,
.h5-body .h5-app #view-kline .market-symbol {
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

.h5-body .h5-app #view-market .market-pair-price,
.h5-body .h5-app #view-kline .market-pair-price {
  min-width: 0 !important;
}

.h5-body .h5-app #view-market .market-pair-price strong,
.h5-body .h5-app #view-kline .market-pair-price strong {
  max-width: 84px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body.light-ui .bottom-tabs {
  border-top: 1px solid #e5e7eb !important;
  background: rgba(255, 255, 255, .96) !important;
  box-shadow: 0 -10px 26px rgba(15, 23, 42, .06) !important;
}

body.light-ui .h5-app #view-market .market-pair-card,
body.light-ui .h5-app #view-kline .kline-pair-drawer {
  border-right: 1px solid #dde3ee !important;
  background: #ffffff !important;
  color: #101827 !important;
  box-shadow: 18px 0 36px rgba(15, 23, 42, .16) !important;
}

body.light-ui .h5-app #view-market .market-pair-body,
body.light-ui .h5-app #view-kline .market-pair-body {
  padding: 12px 12px 12px 36px !important;
}

body.light-ui .h5-app #view-market .market-pair-card .card-head,
body.light-ui .h5-app #view-kline .kline-pair-drawer .card-head {
  padding-left: 36px !important;
  border-bottom-color: #edf0f5 !important;
  background: #ffffff !important;
}

body.light-ui .h5-app #view-market .market-pair-tools input,
body.light-ui .h5-app #view-kline .market-pair-tools input {
  border-color: #d9e1ee !important;
  background: #f7f9fc !important;
  color: #101827 !important;
}

body.light-ui .h5-app #view-market .market-pair-filters,
body.light-ui .h5-app #view-kline .market-pair-filters {
  border: 0 !important;
  background: transparent !important;
}

body.light-ui .h5-app #view-market .market-pair-filters button,
body.light-ui .h5-app #view-kline .market-pair-filters button {
  border-color: #d9e1ee !important;
  background: #f7f9fc !important;
  color: #667085 !important;
}

body.light-ui .h5-app #view-market .market-pair-filters button.active,
body.light-ui .h5-app #view-kline .market-pair-filters button.active {
  border-color: rgba(191, 95, 193, .55) !important;
  background: rgba(191, 95, 193, .1) !important;
  color: #bf5fc1 !important;
}

body.light-ui .h5-app #view-market .market-list-head,
body.light-ui .h5-app #view-kline .market-list-head {
  color: #98a2b3 !important;
}

body.light-ui .h5-app #view-market .pair-list-row,
body.light-ui .h5-app #view-kline .pair-list-row {
  border-bottom-color: #edf0f5 !important;
  background: #ffffff !important;
}

body.light-ui .h5-app #view-market .pair-list-row.active,
body.light-ui .h5-app #view-kline .pair-list-row.active {
  background: #f5f7ff !important;
}

body.light-ui .h5-app #view-market .market-coin-badge,
body.light-ui .h5-app #view-kline .market-coin-badge {
  border-color: rgba(191, 95, 193, .28) !important;
  background: linear-gradient(135deg, #eaf0ff, #fbecff) !important;
  color: #5f3dc4 !important;
}

body.light-ui .h5-app #view-wallet .fund-account-actions {
  min-height: auto !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 12px 8px 14px !important;
  border: 0 !important;
  border-bottom: 1px solid #edf0f5 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
}

body.light-ui .h5-app #view-wallet .fund-account-actions button {
  min-height: 70px !important;
  gap: 6px !important;
  padding: 0 !important;
  color: #475467 !important;
}

body.light-ui .h5-app #view-wallet .fund-account-actions img {
  width: 42px !important;
  height: 42px !important;
  max-width: 42px !important;
  max-height: 42px !important;
  padding: 10px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #6677ff, #c85acc) !important;
  filter: none !important;
  opacity: 1 !important;
}

body.light-ui .h5-app #view-wallet .fund-account-actions span {
  color: #475467 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

body.light-ui .home-product-card {
  min-height: 178px !important;
  align-content: start !important;
  gap: 9px !important;
  padding: 10px !important;
  border-color: #e1e6ef !important;
  background: #ffffff !important;
}

body.light-ui .home-product-card img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  display: block !important;
  border-radius: 6px !important;
  object-fit: cover !important;
  background: #f4f6fb !important;
  filter: none !important;
}

body.light-ui .deposit-address-copy-row {
  grid-template-columns: minmax(0, 1fr) 88px !important;
}

body.light-ui .deposit-address-copy {
  min-width: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  word-break: normal !important;
}

body.light-ui .deposit-address-copy-row .mini {
  min-width: 88px !important;
  padding-inline: 8px !important;
}

@media (max-width: 640px) {
  body.light-ui .auth-page {
    min-height: 100dvh !important;
    align-items: start !important;
    place-items: start center !important;
    padding: 30px 18px 24px !important;
  }

  body.light-ui .auth-shell {
    width: 100% !important;
    gap: 18px !important;
  }

  body.light-ui .auth-brand-panel {
    min-height: auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.light-ui .auth-brand {
    display: grid !important;
    justify-items: center !important;
    gap: 12px !important;
    text-align: center !important;
  }

  body.light-ui .auth-brand .brand-mark {
    width: 86px !important;
    height: 86px !important;
    min-width: 86px !important;
    border-radius: 18px !important;
    font-size: 32px !important;
  }

  body.light-ui .auth-brand span:last-child {
    color: #101827 !important;
    font-size: 20px !important;
    line-height: 1.2 !important;
  }

body.light-ui .auth-card {
    width: 100% !important;
    margin: 0 !important;
    padding: 22px 18px 20px !important;
    border: 1px solid #e1e6ef !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    box-shadow: none !important;
  }
}

/* 2026062202: keep the trading-pair selector aligned with the H5 user drawer. */
.h5-body {
  --pair-drawer-width: min(78vw, 320px) !important;
}

.h5-body .h5-app #view-market .pair-overlay,
.h5-body .h5-app #view-kline .pair-overlay {
  position: fixed !important;
  z-index: 29 !important;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: rgba(0, 0, 0, .48) !important;
  box-shadow: none !important;
}

.h5-body .h5-app #view-market .market-pair-card,
.h5-body .h5-app #view-kline .kline-pair-drawer {
  display: block !important;
  position: fixed !important;
  z-index: 30 !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  right: auto !important;
  box-sizing: border-box !important;
  width: var(--pair-drawer-width) !important;
  min-width: var(--pair-drawer-width) !important;
  max-width: var(--pair-drawer-width) !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 22px 16px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  border: 0 !important;
  border-right: 1px solid var(--line) !important;
  border-radius: 0 !important;
  background: var(--panel) !important;
  box-shadow: 18px 0 40px rgba(0, 0, 0, .22) !important;
  transform: translateX(-100%) !important;
  transition: transform .22s ease, visibility .22s ease !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.h5-body .h5-app #view-market.market-pairs-open .market-pair-card,
.h5-body .h5-app #view-kline.market-pairs-open .kline-pair-drawer {
  transform: translateX(0) !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.h5-body .h5-app #view-market .market-pair-card .card-head,
.h5-body .h5-app #view-kline .kline-pair-drawer .card-head {
  min-height: auto !important;
  padding: 0 0 14px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.h5-body .h5-app #view-market .market-pair-count,
.h5-body .h5-app #view-kline .market-pair-count,
.h5-body .h5-app #view-market .market-pair-card .badge,
.h5-body .h5-app #view-kline .kline-pair-drawer .badge,
.h5-body .h5-app #view-market .market-list-head,
.h5-body .h5-app #view-kline .market-list-head,
.h5-body .h5-app #view-market .market-meta,
.h5-body .h5-app #view-kline .market-meta {
  display: none !important;
}

.h5-body .h5-app #view-market .market-pair-body,
.h5-body .h5-app #view-kline .market-pair-body {
  display: grid !important;
  gap: 12px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding: 16px 0 0 !important;
  overflow: visible !important;
}

.h5-body .h5-app #view-market .market-pair-tools,
.h5-body .h5-app #view-kline .market-pair-tools {
  display: grid !important;
  gap: 10px !important;
  padding: 0 0 16px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  background: transparent !important;
}

.h5-body .h5-app #view-market .market-pair-tools input,
.h5-body .h5-app #view-kline .market-pair-tools input {
  height: 40px !important;
  border-radius: 6px !important;
}

.h5-body .h5-app #view-market .market-pair-filters,
.h5-body .h5-app #view-kline .market-pair-filters {
  gap: 8px !important;
  border: 0 !important;
  background: transparent !important;
}

.h5-body .h5-app #view-market .market-pair-filters button,
.h5-body .h5-app #view-kline .market-pair-filters button {
  min-height: 40px !important;
  border-radius: 6px !important;
  background: var(--panel-2) !important;
  color: var(--text) !important;
  box-shadow: none !important;
}

.h5-body .h5-app #view-market .market-list,
.h5-body .h5-app #view-kline .market-list {
  display: grid !important;
  gap: 10px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: visible !important;
}

.h5-body .h5-app #view-market .pair-list-row,
.h5-body .h5-app #view-kline .pair-list-row {
  display: grid !important;
  grid-template-columns: minmax(136px, 1fr) minmax(74px, auto) 28px !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 44px !important;
  padding: 9px 10px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: var(--panel-2) !important;
  box-shadow: none !important;
}

.h5-body .h5-app #view-market .pair-list-row.active,
.h5-body .h5-app #view-kline .pair-list-row.active,
.h5-body .h5-app #view-market .market-pair-filters button.active,
.h5-body .h5-app #view-kline .market-pair-filters button.active {
  background: rgba(191, 95, 193, .14) !important;
  color: #bf5fc1 !important;
}

.h5-body .h5-app #view-market .market-pair-name,
.h5-body .h5-app #view-kline .market-pair-name {
  min-width: 0 !important;
  gap: 8px !important;
  padding-right: 0 !important;
}

.h5-body .h5-app #view-market .market-pair-name > div,
.h5-body .h5-app #view-kline .market-pair-name > div,
.h5-body .h5-app #view-market .market-symbol,
.h5-body .h5-app #view-kline .market-symbol {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
}

.h5-body .h5-app #view-market .market-pair-name > div,
.h5-body .h5-app #view-kline .market-pair-name > div {
  flex: 1 1 auto !important;
  overflow: visible !important;
}

.h5-body .h5-app #view-market .market-symbol,
.h5-body .h5-app #view-kline .market-symbol {
  display: inline-flex !important;
  align-items: baseline !important;
  width: max-content !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

.h5-body .h5-app #view-market .market-pair-price,
.h5-body .h5-app #view-kline .market-pair-price {
  min-width: 76px !important;
  justify-items: end !important;
}

.h5-body .h5-app #view-market .market-pair-price strong,
.h5-body .h5-app #view-kline .market-pair-price strong {
  max-width: 92px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.h5-body .h5-app #view-market .market-fav-toggle,
.h5-body .h5-app #view-kline .market-fav-toggle {
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 !important;
  border-radius: 6px !important;
  background: transparent !important;
}

body.light-ui .h5-app #view-market .market-pair-card,
body.light-ui .h5-app #view-kline .kline-pair-drawer {
  border-right-color: #dcdee0 !important;
  background: #ffffff !important;
  color: #111827 !important;
  box-shadow: 18px 0 40px rgba(15, 23, 42, .12) !important;
}

body.light-ui .h5-app #view-market .pair-list-row,
body.light-ui .h5-app #view-kline .pair-list-row,
body.light-ui .h5-app #view-market .market-pair-filters button,
body.light-ui .h5-app #view-kline .market-pair-filters button {
  background: #f7f7f7 !important;
  color: #4b5563 !important;
}

body.light-ui .h5-app #view-market .pair-list-row.active,
body.light-ui .h5-app #view-kline .pair-list-row.active,
body.light-ui .h5-app #view-market .market-pair-filters button.active,
body.light-ui .h5-app #view-kline .market-pair-filters button.active {
  background: rgba(191, 95, 193, .08) !important;
  color: #bf5fc1 !important;
}

body.h5-body.light-ui .h5-app #view-market .market-pair-card .card-head,
body.h5-body.light-ui .h5-app #view-kline .kline-pair-drawer .card-head {
  padding: 0 0 14px !important;
}

body.h5-body.light-ui .h5-app #view-market .market-pair-body,
body.h5-body.light-ui .h5-app #view-kline .market-pair-body {
  padding: 16px 0 0 !important;
}

body.h5-body.light-ui .h5-app #view-market .market-pair-name > div,
body.h5-body.light-ui .h5-app #view-kline .market-pair-name > div,
body.h5-body.light-ui .h5-app #view-market .market-symbol,
body.h5-body.light-ui .h5-app #view-kline .market-symbol {
  width: auto !important;
  max-width: none !important;
}

body.h5-body.light-ui .h5-app #view-market .market-symbol,
body.h5-body.light-ui .h5-app #view-kline .market-symbol,
body.h5-body.light-ui .h5-app #view-market .market-pair-price strong,
body.h5-body.light-ui .h5-app #view-kline .market-pair-price strong {
  color: #111827 !important;
}

body.h5-body.light-ui .h5-app #view-market .market-symbol span,
body.h5-body.light-ui .h5-app #view-kline .market-symbol span,
body.h5-body.light-ui .h5-app #view-market .market-pair-price small,
body.h5-body.light-ui .h5-app #view-kline .market-pair-price small {
  opacity: 1 !important;
}

/* 2026062204: use the reference dark auth backdrop on PC without changing H5 auth. */
.auth-page:has(.pc-auth-shell) {
  background: #303040 url('/ref-img/bgb3.png') center / cover no-repeat !important;
}

/* 2026062205: keep pair drawers visually identical to the H5 user drawer. */
.h5-body {
  --h5-drawer-width: min(78vw, 320px);
  --pair-drawer-width: var(--h5-drawer-width) !important;
}

.h5-body .drawer-panel,
.h5-body .h5-app #view-market .market-pair-card,
.h5-body .h5-app #view-kline .kline-pair-drawer {
  width: var(--h5-drawer-width) !important;
  min-width: var(--h5-drawer-width) !important;
  max-width: var(--h5-drawer-width) !important;
}

.auth-page:has(.pc-auth-shell)::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(20, 20, 32, .30), rgba(20, 20, 32, .08) 48%, rgba(20, 20, 32, .22)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .026) 0, rgba(255, 255, 255, .026) 1px, transparent 1px, transparent 4px);
}

.auth-page:has(.pc-auth-shell) .pc-auth-shell {
  position: relative;
  z-index: 1;
}

body.light-ui .deposit-chain-tips span {
  color: #667085 !important;
}

body.light-ui .deposit-chain-tips strong {
  color: #111827 !important;
}

/* 2026062203: hidden trade-mode controls must stay hidden above form layout rules. */
.trade-ticket-card .trade-side-block.hidden,
.h5-app #view-market .trade-side-block.hidden,
.trade-side-block.hidden,
.contract-only.hidden,
.spot-side-block.hidden {
  display: none !important;
}

.contract-empty-state {
  min-height: 56px !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 14px !important;
}

/* 2026062205: keep the H5 order ticket aligned with the mobile depth ladder. */
.h5-body .h5-app #view-market .order-depth-grid > .trade-ticket-card,
.h5-body .h5-app #view-market .order-depth-grid > .trade-ticket-card .trade-ticket-body {
  min-height: 337px !important;
  box-sizing: border-box !important;
}

/* 2026062204: remove remaining dark panels from H5 light products and orders. */
body.light-ui .h5-app #view-products .food-product-card {
  border: 1px solid #e1e6ef !important;
  background: #ffffff !important;
  color: #101827 !important;
  box-shadow: none !important;
}

body.light-ui .h5-app #view-products .food-product-card .product-cover {
  background: #f4f6fb !important;
}

body.light-ui .h5-app #view-products .food-product-card .product-info h3,
body.light-ui .h5-app #view-products .food-product-card .product-inline-stepper strong {
  color: #101827 !important;
}

body.light-ui .h5-app #view-products .food-product-card .product-price span,
body.light-ui .h5-app #view-products .food-product-card .product-coupon {
  color: #667085 !important;
}

body.light-ui .h5-app #view-products .food-product-card .product-coupon strong {
  color: #101827 !important;
}

/* 2026062206: make the H5 products page a compact shopping list. */
.h5-body .h5-app #view-products #productGrid {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 10px !important;
}

.h5-body .h5-app #view-products .food-product-card {
  display: grid !important;
  grid-template-columns: minmax(96px, 32%) minmax(0, 1fr) !important;
  grid-template-areas:
    "cover info"
    "cover price"
    "cover coupon"
    "cover actions" !important;
  column-gap: 10px !important;
  row-gap: 6px !important;
  align-items: start !important;
  padding: 10px !important;
}

.h5-body .h5-app #view-products .food-product-card .product-cover {
  grid-area: cover !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
}

.h5-body .h5-app #view-products .food-product-card .product-info {
  grid-area: info !important;
}

.h5-body .h5-app #view-products .food-product-card .product-info h3 {
  min-height: 0 !important;
}

.h5-body .h5-app #view-products .food-product-card .product-price {
  grid-area: price !important;
}

.h5-body .h5-app #view-products .food-product-card .product-coupon {
  grid-area: coupon !important;
}

.h5-body .h5-app #view-products .food-product-card .product-shop-actions {
  grid-area: actions !important;
}

body.light-ui .h5-app #view-orders .hashrate-dashboard,
body.light-ui .h5-app #view-orders .hashrate-order-panel,
body.light-ui .h5-app #view-orders .orders-contract-panel,
body.light-ui .h5-app #view-orders .hashrate-detail-section {
  border-color: #e1e6ef !important;
  background: #ffffff !important;
  color: #101827 !important;
  box-shadow: none !important;
}

body.light-ui .h5-app #view-orders .hashrate-panel-title,
body.light-ui .h5-app #view-orders .hashrate-detail-title,
body.light-ui .h5-app #view-orders .order-empty-state strong {
  color: #101827 !important;
}

body.light-ui .h5-app #view-orders .hashrate-stat-item,
body.light-ui .h5-app #view-orders .order-empty-grid div,
body.light-ui .h5-app #view-orders .order-empty-products button,
body.light-ui .h5-app #view-orders .order-empty-state {
  border-color: #e1e6ef !important;
  background: #f7f9fc !important;
  color: #475467 !important;
}

body.light-ui .h5-app #view-orders .hashrate-stat-item span,
body.light-ui .h5-app #view-orders .hashrate-order-head span,
body.light-ui .h5-app #view-orders .hashrate-order-row span,
body.light-ui .h5-app #view-orders .hashrate-order-bottom,
body.light-ui .h5-app #view-orders .hashrate-info-grid span,
body.light-ui .h5-app #view-orders .hardware-grid span,
body.light-ui .h5-app #view-orders .daily-revenue-grid span,
body.light-ui .h5-app #view-orders .hashrate-detail-meta,
body.light-ui .h5-app #view-orders .order-empty-grid b,
body.light-ui .h5-app #view-orders .order-empty-state span,
body.light-ui .h5-app #view-orders .order-empty-products span {
  color: #667085 !important;
}

body.light-ui .h5-app #view-orders .hashrate-stat-item strong,
body.light-ui .h5-app #view-orders .order-empty-grid small,
body.light-ui .h5-app #view-orders .order-empty-products b {
  color: #101827 !important;
}

/* 2026062206 funds history, notifications, and compact mobile polish. */
.notice-actions-row,
.notice-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0;
}

.notice-pager span {
  color: var(--muted);
  font-size: 12px;
}

.fund-history-tabs {
  margin-bottom: 12px;
}

.fund-history-item .wallet-record-head span {
  font-weight: 800;
}

.kyc-status-card {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(245, 158, 11, .32);
  border-radius: 12px;
  background: rgba(245, 158, 11, .1);
}

.kyc-status-card strong {
  font-size: 16px;
}

.kyc-status-card p {
  margin: 0;
  color: var(--muted);
}

body.light-ui .h5-app .kline-bottom-symbol,
body.light-ui .h5-app .kline-bottom-pair span,
body.light-ui .h5-app .kline-bottom-pair small {
  color: #101827 !important;
}

body.light-ui .h5-app .kline-bottom-pair.active .kline-bottom-symbol,
body.light-ui .h5-app .kline-bottom-pair.active span,
body.light-ui .h5-app .kline-bottom-pair.active small {
  color: #7f2f83 !important;
}

body.light-ui .product-detail-strip div,
body.light-ui .detail-rule-box,
body.light-ui .product-detail-badges span {
  border: 1px solid #e1e6ef !important;
  background: #f7f9fc !important;
  color: #475467 !important;
}

body.light-ui .product-detail-strip strong,
body.light-ui .detail-rule-box strong {
  color: #101827 !important;
}

body.light-ui .product-detail-image {
  background: #eef2f7 !important;
}

body.light-ui .home-market-item span.up {
  color: #00a870 !important;
}

body.light-ui .home-market-item span.down {
  color: #e5484d !important;
}
