:root {
  --front-bg: #171922;
  --front-panel: #202330;
  --front-panel-2: #272b3a;
  --front-muted: #8890a8;
  --front-text: #ffffff;
  --green: #0bdc91;
  --red: #ff4364;
  --brand: #4c72ff;
  --admin-bg: #f5f7fb;
  --admin-line: #e5e8f0;
  --admin-text: #1f2937;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, "Microsoft YaHei", sans-serif;
  background: #eef1f7;
  color: #1f2937;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  min-height: 100vh;
}

.modebar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #111827;
  color: #fff;
  box-shadow: 0 6px 22px rgba(17, 24, 39, 0.22);
}

.brandmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brandmark .logo {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #111827;
  background: linear-gradient(145deg, #0bdc91, #58d8ff);
}

.brand-logo-mark {
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #10221f;
  background: linear-gradient(145deg, #0bdc91, #58d8ff);
  font-weight: 900;
}

.mode-tabs {
  display: flex;
  gap: 8px;
}

.mode-tabs button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 8px 12px;
  color: #dbe3f7;
  background: transparent;
}

.mode-tabs button.active {
  color: #fff;
  background: #3f63f6;
  border-color: #3f63f6;
}

.front-stage {
  height: 100vh;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  padding: 0 12px;
  background: #f2f3f7;
}

.phone {
  width: min(100%, 375px);
  height: 100vh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--front-bg);
  color: var(--front-text);
  box-shadow: 0 0 0 1px #d9dce5, 0 20px 50px rgba(15, 23, 42, 0.18);
  position: relative;
  padding-bottom: 0;
}

.phone-chart {
  padding-bottom: 0;
}

.front-top {
  flex: 0 0 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: #fff;
  color: #111827;
}

.front-top .top-icon {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #00bfa5;
  color: #fff;
  font-weight: 800;
}

.front-top .lang {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #eef2f7;
}

.front-language-flag {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
}

.front-language-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #0d9488;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.home-logo {
  font-weight: 800;
  letter-spacing: 0.2px;
}

.front-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px;
}

.banner {
  height: 149px;
  border-radius: 8px;
  overflow: hidden;
  background: #1360ff;
  position: relative;
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.dots i {
  width: 5px;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.35);
}

.dots i.active {
  width: 15px;
  background: #fff;
}

.quick-grid {
  margin-top: 8px;
  padding: 14px 8px 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 8px;
  background: var(--front-panel);
  border-radius: 8px;
}

.quick {
  border: 0;
  background: transparent;
  color: #fff;
  display: grid;
  justify-items: center;
  gap: 6px;
  font-size: 12px;
}

.quick img,
.coin-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.coin-logo-fallback {
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #10221f;
  background: linear-gradient(145deg, #0bdc91, #58d8ff);
  font-size: 12px;
  font-weight: 900;
}

.coin-strip {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 14px 8px;
  background: var(--front-panel);
  border-radius: 8px;
}

.coin-card {
  text-align: center;
}

.coin-card-title {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 5px;
  margin-bottom: 6px;
}

.coin-card-title .coin-logo {
  width: 30px;
  height: 30px;
}

.home-market-card {
  display: block;
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.home-market-card:active {
  opacity: .72;
}

.coin-card .pair {
  color: var(--front-muted);
  margin-bottom: 6px;
}

.price {
  font-weight: 800;
}

.up {
  color: var(--green);
}

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

.panel {
  background: var(--front-panel);
  border-radius: 8px;
  padding: 10px;
  margin-top: 8px;
}

.origin-contract-chart-panel {
  padding: 0;
  overflow: hidden;
  background: #121420;
}

.origin-contract-top {
  padding: 10px;
  background: #171922;
}

.origin-contract-top .segmented {
  margin: 0 0 10px;
}

.origin-contract-top .market-row {
  margin: 0;
  padding: 0;
  background: transparent;
}

.origin-contract-form {
  padding: 10px;
  background: var(--front-panel);
}

.origin-contract-form .coin-strip {
  margin-top: 0;
}

.notice-panel {
  display: grid;
  gap: 8px;
}

.notice-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: start;
}

.notice-button {
  width: 100%;
  color: inherit;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0;
}

.notice-row strong {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}

.notice-row p {
  margin: 0;
  color: var(--front-muted);
  font-size: 12px;
  line-height: 1.35;
}

.notice-more {
  justify-self: end;
  padding: 4px 0;
}

.notice-list-row {
  width: 100%;
  display: grid;
  gap: 4px;
  color: inherit;
  text-align: left;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  padding: 10px 0;
}

.notice-list-row:first-of-type {
  border-top: 0;
}

.notice-list-row span,
.notice-list-row p,
.notice-detail .muted {
  color: var(--front-muted);
}

.notice-list-row p,
.notice-detail p {
  margin: 0;
  line-height: 1.55;
}

.notice-detail h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: #1c1f2b;
  border-radius: 4px;
  overflow: hidden;
}

.segmented button {
  border: 0;
  padding: 12px 8px;
  color: var(--front-muted);
  background: transparent;
}

.segmented button.active {
  color: var(--green);
  background: #191c28;
  font-weight: 800;
}

.market-head,
.market-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.9fr;
  align-items: center;
}

.market-head {
  color: var(--front-muted);
  padding: 14px 0 8px;
  font-size: 12px;
}

.market-row {
  min-height: 45px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 800;
}

.market-pair {
  display: flex;
  align-items: center;
  gap: 8px;
}

.change-pill {
  justify-self: end;
  min-width: 70px;
  padding: 10px 6px;
  border-radius: 6px;
  text-align: center;
}

.change-pill.up {
  background: rgba(11, 220, 145, 0.16);
}

.change-pill.down {
  background: rgba(255, 67, 100, 0.16);
}

.front-nav {
  flex: 0 0 56px;
  position: relative;
  height: 56px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #222431;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.front-nav button {
  border: 0;
  color: #8e96ac;
  background: transparent;
  display: grid;
  place-items: center;
  gap: 2px;
  font-size: 12px;
}

.front-nav button.active {
  color: var(--green);
}

.nav-symbol {
  width: 22px;
  height: 22px;
  display: block;
  color: currentColor;
}

.nav-symbol svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-title {
  flex: 0 0 44px;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  font-weight: 800;
  background: #fff;
  color: #111827;
}

.back {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 20px;
}

.title-lang {
  min-width: 28px;
  width: 28px;
  height: 28px;
  margin-left: auto;
  border: 0;
  border-radius: 50%;
  padding: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #eef2f7;
}

.language-option {
  margin-bottom: 8px;
}

.language-option.active {
  color: #0d9488;
  border-color: #0d9488;
  background: rgba(13, 148, 136, 0.08);
}

.origin-language-title {
  background: #111522;
  color: #f8fafc;
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.origin-language-title > span {
  flex: 1;
  text-align: center;
  padding-right: 28px;
}

.origin-language-title .back {
  color: #f8fafc;
}

.front-content.origin-language-page {
  min-height: calc(100% - 44px);
  padding: 0;
  background: #151924;
}

.origin-language-list {
  display: grid;
}

.origin-language-row {
  width: 100%;
  min-height: 45px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.055);
  padding: 0 14px;
  background: #151924;
  color: #f8fafc;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
}

.origin-language-row img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.origin-language-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.origin-language-row b {
  color: #12b981;
  font-size: 16px;
  text-align: right;
}

.form-card {
  padding: 22px 18px;
}

.login-title {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 18px;
}

.form-tabs {
  display: flex;
  gap: 24px;
  margin-bottom: 22px;
}

.form-tabs button {
  border: 0;
  background: transparent;
  color: var(--front-muted);
  font-weight: 800;
  padding: 0 0 8px;
}

.form-tabs button.active {
  color: #fff;
  border-bottom: 2px solid var(--brand);
}

.front-input,
.admin-input {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 12px;
  outline: 0;
}

.front-input {
  margin-bottom: 12px;
  background: #fff;
  color: #111827;
}

.captcha-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 122px;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 12px;
}

.captcha-field .front-input,
.captcha-field .admin-input {
  margin-bottom: 0;
}

.captcha-image {
  height: 44px;
  border: 1px solid #d7deea;
  border-radius: 4px;
  background: #f8fafc;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
}

.captcha-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.captcha-status {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.primary-btn,
.danger-btn,
.plain-btn,
.success-btn {
  border: 0;
  border-radius: 4px;
  padding: 11px 14px;
  font-weight: 700;
}

.primary-btn {
  color: #fff;
  background: #4d72ff;
}

.success-btn {
  color: #fff;
  background: #0bbf83;
}

.danger-btn {
  color: #fff;
  background: #ef4665;
}

.plain-btn {
  color: #263044;
  border: 1px solid #d9dfe9;
  background: #fff;
}

.full {
  width: 100%;
}

.muted-link {
  color: var(--front-muted);
  background: transparent;
  border: 0;
  padding: 10px 0;
}

.search-row,
.trade-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.search-row input {
  flex: 1;
}

.market-search-row {
  gap: 6px;
}

.market-search-icon {
  flex: 0 0 26px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #8a94a6;
  background: #fff;
  border-radius: 4px;
}

.market-search-row .plain-btn {
  min-width: 54px;
}

.trade-layout {
  display: grid;
  grid-template-columns: 1fr 116px;
  gap: 10px;
}

.kline-card {
  background: rgba(8, 18, 35, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
}

.kline-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

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

.kline-price span {
  display: block;
  font-size: 11px;
  margin-top: 2px;
}

.kline-tabs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  margin: 10px 0 8px;
}

.kline-tabs button {
  min-width: 0;
  border: 0;
  border-radius: 6px;
  padding: 6px 0;
  color: var(--front-muted);
  background: rgba(255, 255, 255, 0.06);
}

.kline-tabs button.active {
  color: #031211;
  background: var(--front-primary);
  font-weight: 800;
}

.chart {
  height: 190px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(11, 220, 145, 0.07), rgba(12, 20, 38, 0.35)),
    repeating-linear-gradient(to right, transparent, transparent 31px, rgba(255,255,255,.035) 32px),
    repeating-linear-gradient(to bottom, transparent, transparent 31px, rgba(255,255,255,.035) 32px);
  position: relative;
  overflow: hidden;
}

.kline-card-full {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #121420;
}

.kline-card-contract {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #121420;
}

.kline-tabs-origin {
  margin: 0;
  padding: 7px 8px;
  background: #171922;
}

.origin-kline-chart {
  height: 244px;
  border-radius: 0;
  background: #121420;
}

.origin-kline-chart-full {
  height: calc(100vh - 258px);
  min-height: 390px;
  max-height: 590px;
}

.origin-kline-chart-contract {
  height: min(46vh, 392px);
  min-height: 320px;
  border-top: 1px solid rgba(255,255,255,.05);
}

.origin-kline-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.kline-loading-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #8b96aa;
  font-size: 12px;
  background:
    repeating-linear-gradient(to right, transparent, transparent 53px, rgba(255,255,255,.035) 54px),
    repeating-linear-gradient(to bottom, transparent, transparent 43px, rgba(255,255,255,.035) 44px),
    #121420;
}

.kline-loading-placeholder.error {
  color: #ff8b9d;
}

.kline-realtime {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 8px 10px;
  color: #dce5f4;
  background: #171922;
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: 12px;
}

.kline-realtime strong,
.kline-realtime em {
  font-style: normal;
  font-weight: 800;
}

.chart-setting {
  display: grid;
  gap: 7px;
  padding: 8px 10px;
  background: #1c1f2b;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.setting-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px;
  align-items: center;
  color: var(--front-muted);
  font-size: 12px;
}

.setting-row div {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.setting-row button {
  min-width: 48px;
  border: 0;
  border-radius: 4px;
  padding: 5px 8px;
  color: #dce5f4;
  background: rgba(255,255,255,.07);
  font-size: 12px;
}

.setting-row button.active {
  color: #061211;
  background: var(--green);
  font-weight: 800;
}

.kline-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.kline-grid {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.kline-axis,
.kline-time {
  fill: rgba(210, 221, 237, 0.62);
  font-size: 8px;
}

.kline-wick.up,
.kline-candle.up {
  stroke: #0bdc91;
  fill: #0bdc91;
}

.kline-wick.down,
.kline-candle.down {
  stroke: #ff4364;
  fill: #ff4364;
}

.kline-wick {
  stroke-width: 1.1;
}

.kline-last-line {
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.kline-last {
  fill: #ffffff;
  font-size: 8px;
  font-weight: 800;
}

.kline-status {
  color: var(--front-muted);
  font-size: 11px;
  margin-top: 6px;
}

.kline-status.error {
  color: #ff8b9d;
}

.book {
  font-size: 11px;
}

.book-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}

.order-form {
  display: grid;
  gap: 8px;
}

.spot-origin {
  padding: 0 8px 72px;
}

.spot-pair-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
}

.spot-pair-name {
  min-width: 0;
  display: grid;
  gap: 2px;
  border: 0;
  color: #fff;
  background: transparent;
  text-align: left;
}

.spot-pair-name strong {
  font-size: 18px;
}

.spot-pair-name span {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.spot-subtabs,
.spot-side-tabs,
.order-type-row {
  display: flex;
  gap: 6px;
}

.spot-subtabs button,
.spot-side-tabs button,
.order-type-row button,
.percent-grid button {
  border: 0;
  border-radius: 4px;
  color: var(--front-muted);
  background: rgba(255,255,255,.06);
}

.spot-subtabs button {
  padding: 7px 10px;
}

.spot-subtabs button.active {
  color: #fff;
  background: rgba(11,220,145,.16);
}

.spot-trade-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 124px;
  gap: 10px;
  align-items: start;
}

.origin-order-form {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.spot-side-tabs button {
  flex: 1;
  padding: 9px 6px;
  font-weight: 800;
}

.spot-side-tabs button.active.buy {
  color: #fff;
  background: #0bbf83;
}

.spot-side-tabs button.active.sell {
  color: #fff;
  background: #ef4665;
}

.order-type-row button {
  flex: 1;
  padding: 8px 4px;
  font-size: 12px;
}

.order-type-row button.active {
  color: #061211;
  background: var(--green);
  font-weight: 800;
}

.unit-input {
  height: 38px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
}

.unit-input input {
  min-width: 0;
  height: 100%;
  border: 0;
  padding: 0 9px;
  outline: 0;
  color: #111827;
  background: transparent;
}

.unit-input input:disabled {
  color: #7b8497;
  background: #eef1f6;
}

.unit-input span {
  padding: 0 9px;
  color: #667085;
  font-size: 12px;
}

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

.percent-grid button {
  height: 28px;
  font-size: 11px;
}

.available-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--front-muted);
  font-size: 12px;
}

.available-line strong {
  color: #dce5f4;
  font-weight: 700;
}

.origin-book {
  min-width: 0;
  padding-top: 2px;
  font-size: 11px;
}

.book-head,
.deal-head,
.deal-row {
  display: grid;
  gap: 6px;
  align-items: center;
}

.book-head,
.book-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.book-head {
  color: var(--front-muted);
  margin-bottom: 4px;
}

.book-row {
  padding: 4px 0;
  font-variant-numeric: tabular-nums;
}

.book-row span:last-child,
.book-head span:last-child {
  text-align: right;
}

.book-mid {
  padding: 7px 0;
  font-size: 15px;
  font-weight: 900;
  text-align: center;
}

.origin-data-empty {
  min-height: 86px;
  display: grid;
  place-items: center;
  color: #8a94a6;
  font-size: 13px;
  background: #1b202d;
}

.origin-data-empty-wide {
  grid-column: 1 / -1;
  min-height: 108px;
}

.origin-section-title {
  margin-bottom: 8px;
  color: #fff;
  font-weight: 800;
}

.origin-deals {
  margin-top: 10px;
}

.deal-head,
.deal-row {
  grid-template-columns: 1.15fr .75fr 1fr .85fr;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.deal-head {
  color: var(--front-muted);
  padding-bottom: 5px;
}

.deal-row {
  padding: 5px 0;
  border-top: 1px solid rgba(255,255,255,.04);
}

.deal-row span:nth-child(n+3),
.deal-head span:nth-child(n+3) {
  text-align: right;
}

.origin-chart-page {
  min-height: calc(100vh - 52px);
  background: #121420;
}

.chart-title {
  background: #fff;
}

.chart-summary {
  padding: 10px 12px 8px;
  background: #171922;
}

.chart-price-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.chart-price-line strong {
  font-size: 24px;
  color: #fff;
}

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

.chart-stat-grid div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.chart-stat-grid span {
  color: var(--front-muted);
  font-size: 11px;
}

.chart-stat-grid strong {
  color: #dce5f4;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.chart-bottom-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px 12px 12px;
  background: #171922;
  box-shadow: 0 -1px 0 rgba(255,255,255,.06);
}

.asset-summary {
  background: linear-gradient(135deg, #3e63ff, #0bbf83);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 8px;
}

.asset-summary .amount {
  font-size: 28px;
  font-weight: 900;
  margin: 8px 0 4px;
}

.app-download-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-badge {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  padding: 10px;
  background: rgba(255,255,255,.92);
}

.app-qr-wrap {
  display: grid;
  place-items: center;
  min-height: 138px;
  margin-top: 10px;
  border-radius: 8px;
  background: #fff;
}

.app-qr-wrap img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.asset-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.asset-actions button {
  border: 0;
  border-radius: 6px;
  padding: 9px 4px;
  color: #111827;
  background: rgba(255,255,255,.92);
  font-size: 12px;
}

.origin-assets-page {
  padding: 8px 8px 72px;
  background: #171922;
}

.origin-asset-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  padding: 16px 14px 0;
  margin-bottom: 12px;
  min-height: 200px;
  background: #202330;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}

.asset-eye {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  color: #f8fafc;
  background: transparent;
  font-size: 12px;
}

.asset-eye svg {
  width: 22px;
  height: 22px;
  display: block;
  margin: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.asset-card-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #93a4b8;
  font-size: 12px;
}

.asset-card-label button {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(147,164,184,.45);
  border-radius: 50%;
  color: #93a4b8;
  background: transparent;
  font-size: 11px;
  line-height: 16px;
}

.asset-card-total {
  margin: 8px 0 18px;
  color: #f8fafc;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.asset-card-pnl {
  margin-top: 7px;
  color: #dce5f4;
  font-size: 14px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.origin-asset-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 18px -14px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}

.origin-asset-actions button {
  min-height: 50px;
  border: 0;
  border-right: 1px solid rgba(255,255,255,.08);
  color: #f8fafc;
  background: rgba(255,255,255,.03);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.origin-asset-actions button:last-child {
  border-right: 0;
}

.asset-action-icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  color: #d9deea;
}

.asset-action-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.origin-asset-tabs {
  display: flex;
  align-items: flex-end;
  gap: 22px;
  min-height: 32px;
  margin: 8px 0 10px;
  padding: 0 8px;
  border-radius: 0;
  background: transparent;
}

.origin-asset-tabs button {
  min-height: 30px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #93a4b8;
  background: transparent;
  font-weight: 800;
  padding: 0 0 7px;
}

.origin-asset-tabs button.active {
  color: #f8fafc;
  border-bottom-color: #12b981;
}

.origin-asset-list,
.asset-detail-records {
  display: grid;
  gap: 8px;
}

.origin-asset-coin-card {
  width: 100%;
  border: 0;
  border-radius: 6px;
  padding: 12px 12px 13px;
  color: #e8edf5;
  background: #202330;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.asset-coin-head,
.asset-log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.asset-coin-head strong,
.asset-log-head strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.1;
}

.asset-coin-head span:last-child {
  color: #798398;
  font-size: 26px;
  font-weight: 300;
}

.asset-transfer-link {
  color: #12b981;
  font-size: 13px;
  font-weight: 800;
}

.asset-coin-cells,
.origin-asset-detail-summary,
.asset-log-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.asset-coin-cells div,
.origin-asset-detail-summary div,
.asset-log-grid span {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.asset-coin-cells span,
.origin-asset-detail-summary span,
.asset-log-grid em {
  color: #93a4b8;
  font-size: 11px;
  font-style: normal;
}

.asset-coin-cells strong,
.origin-asset-detail-summary strong,
.asset-log-grid span {
  color: #e8edf5;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.asset-coin-cells div:nth-child(2),
.origin-asset-detail-summary div:nth-child(2),
.asset-log-grid span:nth-child(2) {
  text-align: center;
}

.asset-coin-cells div:nth-child(3),
.origin-asset-detail-summary div:nth-child(3),
.asset-log-grid span:nth-child(3) {
  text-align: right;
}

.origin-asset-detail {
  padding: 8px 8px 78px;
}

.origin-asset-detail-summary,
.asset-log-card,
.asset-empty-state {
  border-radius: 8px;
  padding: 14px;
  background: #1b202d;
}

.origin-asset-detail-summary {
  min-height: 78px;
  align-items: center;
}

.asset-detail-title {
  margin: 16px 0 10px;
  padding-bottom: 8px;
  color: #f8fafc;
  border-bottom: 2px solid #12b981;
  font-size: 15px;
  font-weight: 900;
}

.asset-log-card {
  color: #e8edf5;
}

.asset-log-head {
  margin-bottom: 10px;
}

.asset-empty-state {
  color: #93a4b8;
  text-align: center;
}

.asset-detail-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 10px 12px 12px;
  background: #171922;
  box-shadow: 0 -1px 0 rgba(255,255,255,.06);
}

.asset-detail-actions button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: #0d8f78;
  font-weight: 900;
}

.origin-profile-page {
  padding: 8px 8px 22px;
}

.profile-user-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: 8px;
  background: linear-gradient(150deg, #202637 0%, #151a25 100%);
  color: #f8fafc;
}

.profile-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #0d8f78;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.profile-user-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.profile-user-main strong,
.profile-user-main span {
  overflow-wrap: anywhere;
}

.profile-user-main span {
  color: #93a4b8;
  font-size: 12px;
}

.profile-vip {
  align-self: start;
  border-radius: 999px;
  padding: 4px 8px;
  color: #08231e;
  background: #18d6a7;
  font-size: 11px;
  font-weight: 900;
}

.profile-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.profile-action-grid button {
  min-width: 0;
  min-height: 70px;
  border: 0;
  border-radius: 8px;
  padding: 12px;
  color: #e8edf5;
  background: #1b202d;
  text-align: left;
}

.profile-action-grid strong,
.profile-action-grid span {
  display: block;
  overflow-wrap: anywhere;
}

.profile-action-grid strong {
  margin-bottom: 8px;
}

.profile-section {
  margin-top: 10px;
  border-radius: 8px;
  background: #1b202d;
  overflow: hidden;
}

.profile-section-title {
  padding: 13px 14px;
  color: #f8fafc;
  font-weight: 900;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.profile-menu-list {
  display: grid;
}

.profile-list-row {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 12px 14px;
  color: #e8edf5;
  background: transparent;
  text-align: left;
}

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

.profile-list-row span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.profile-list-row strong,
.profile-list-row em {
  overflow-wrap: anywhere;
}

.profile-list-row em {
  color: #93a4b8;
  font-size: 11px;
  font-style: normal;
}

.profile-list-row b,
.profile-list-row button {
  flex: 0 0 auto;
  color: #12b981;
  font-size: 12px;
}

.profile-list-row button {
  border: 1px solid rgba(18,185,129,.45);
  border-radius: 999px;
  padding: 5px 10px;
  background: transparent;
  font-weight: 800;
}

.profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255,255,255,.06);
}

.profile-stat-grid div {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 12px;
  background: #1b202d;
}

.profile-stat-grid span {
  color: #93a4b8;
  font-size: 11px;
}

.profile-stat-grid strong {
  color: #e8edf5;
  overflow-wrap: anywhere;
}

.profile-empty {
  padding: 14px;
  color: #93a4b8;
  text-align: center;
}

.profile-origin-title {
  position: relative;
}

.profile-origin-title > span {
  flex: 1;
  text-align: center;
  padding-right: 38px;
}

.profile-origin-service {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: grid;
  place-items: center;
  padding: 7px;
}

.profile-origin-service img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.front-content.origin-profile-page {
  padding: 0 0 22px;
}

.profile-origin-user {
  min-height: 150px;
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 10px 18px 14px;
}

.profile-origin-logo {
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  font-size: 28px;
}

.profile-origin-info {
  width: 200px;
  max-width: calc(100% - 84px);
  min-width: 0;
  display: grid;
  gap: 7px;
}

.profile-origin-name {
  color: #f8fafc;
  font-size: 16px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.profile-origin-text-row {
  display: flex;
  align-items: center;
  min-width: 0;
  color: #e8edf5;
  font-size: 14px;
  line-height: 1.2;
}

.profile-origin-text-row span {
  padding-right: 4px;
  overflow-wrap: anywhere;
}

.profile-origin-text-row.invite {
  gap: 2px;
}

.profile-origin-copy {
  width: auto;
  min-width: 34px;
  height: 24px;
  border: 0;
  border-radius: 0;
  padding: 0 4px;
  background: transparent;
  color: #12b981;
  font-size: 12px;
}

.profile-origin-credit {
  display: grid;
  gap: 4px;
  color: #e8edf5;
  font-size: 12px;
  line-height: 1.2;
}

.profile-origin-progress {
  width: 100%;
  height: 5px;
  overflow: hidden;
  border-radius: 100px;
  background: #3b4659;
}

.profile-origin-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.profile-origin-progress i.success {
  background: #12b981;
}

.profile-origin-progress i.danger {
  background: #ef4444;
}

.profile-origin-actions {
  position: relative;
  z-index: 10;
}

.profile-origin-group {
  margin-bottom: 12px;
  background: #1b202d;
}

.profile-origin-cell {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  color: #e8edf5;
  background: transparent;
  text-align: left;
}

.profile-origin-cell + .profile-origin-cell {
  border-top: 1px solid rgba(255,255,255,.05);
}

.profile-origin-cell-left,
.profile-origin-cell-right {
  display: flex;
  align-items: center;
  min-width: 0;
}

.profile-origin-cell-left {
  gap: 12px;
}

.profile-origin-cell-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: grid;
  place-items: center;
  color: #12b981;
  font-size: 15px;
  font-weight: 800;
}

.profile-origin-cell-name {
  color: #e8edf5;
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.profile-origin-cell-right {
  flex: 0 0 auto;
  gap: 8px;
  color: #93a4b8;
  font-size: 14px;
}

.profile-origin-cell-text {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-tone-success {
  color: #12b981;
}

.profile-tone-danger {
  color: #ef4444;
}

.profile-origin-arrow {
  color: #64748b;
  font-size: 20px;
  line-height: 1;
}

.profile-modal-row {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  color: #e8edf5;
  background: transparent;
  font-size: 14px;
}

.profile-modal-row b {
  color: #64748b;
  font-size: 20px;
}

.profile-static-modal {
  display: grid;
  gap: 10px;
  color: #dbe5f2;
  line-height: 1.65;
}

.profile-static-modal strong {
  color: #f8fafc;
  font-size: 16px;
}

.profile-static-modal p {
  margin: 0;
  color: #93a4b8;
}

.task-hero {
  padding-bottom: 14px;
}

.task-hero-sub,
.task-pending,
.exchange-label-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.task-action-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.task-action-row button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  color: #111827;
  background: rgba(255,255,255,.94);
  font-weight: 800;
}

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

.task-summary-grid div,
.task-dispatch-metrics div {
  min-width: 0;
  padding: 10px 6px;
  border-radius: 6px;
  background: rgba(255,255,255,.04);
  text-align: center;
}

.task-summary-grid span,
.task-dispatch-metrics span {
  display: block;
  min-height: 30px;
  color: var(--front-muted);
  font-size: 11px;
  line-height: 1.35;
}

.task-summary-grid strong,
.task-dispatch-metrics strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.task-pending {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.06);
  color: var(--front-muted);
}

.task-tabs,
.task-subtabs {
  display: grid;
  gap: 6px;
  margin-bottom: 8px;
}

.task-tabs {
  grid-template-columns: repeat(2, 1fr);
}

.task-subtabs {
  grid-template-columns: repeat(2, 1fr);
}

.task-tabs button,
.task-subtabs button {
  min-height: 36px;
  border: 0;
  border-radius: 4px;
  color: var(--front-muted);
  background: rgba(255,255,255,.05);
  font-weight: 800;
}

.task-tabs button.active,
.task-subtabs button.active {
  color: #0bdc91;
  background: rgba(11,220,145,.12);
}

.task-rule {
  margin-top: 10px;
  padding: 10px;
  border-radius: 6px;
  background: rgba(255,255,255,.04);
}

.task-rule p {
  margin: 7px 0 0;
  color: var(--front-muted);
  font-size: 12px;
  line-height: 1.45;
}

.task-order-card {
  display: grid;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}

.task-order-modal-card {
  border-top: 0;
  padding-top: 0;
}

.task-order-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.task-order-head strong {
  display: block;
  margin-top: 2px;
}

.task-order-grid {
  display: grid;
  grid-template-columns: minmax(72px, .8fr) minmax(0, 1.2fr);
  gap: 8px 10px;
  font-size: 12px;
}

.task-order-grid span {
  color: var(--front-muted);
}

.task-order-grid strong {
  min-width: 0;
  text-align: right;
  overflow-wrap: anywhere;
}

.task-next-state {
  display: grid;
  gap: 10px;
  text-align: center;
}

.task-next-state p {
  margin: 0;
  color: var(--front-muted);
}

.exchange-panel {
  display: grid;
  gap: 8px;
}

.front-field-label {
  color: var(--front-muted);
  font-size: 12px;
  font-weight: 800;
}

.exchange-label-row {
  color: var(--front-muted);
  font-size: 12px;
}

.exchange-label-row .muted-link {
  padding: 0;
  color: #0bdc91;
  font-weight: 800;
}

.exchange-swap {
  margin: 2px 0;
}

.exchange-info {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 6px;
  background: rgba(255,255,255,.04);
}

.exchange-info div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}

.exchange-info span {
  color: var(--front-muted);
}

.exchange-info strong {
  text-align: right;
  overflow-wrap: anywhere;
}

.list-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}

.small {
  font-size: 12px;
}

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

.upload-label {
  margin: 8px 0 6px;
}

.upload-file-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}

.upload-file-trigger {
  margin: 0;
  white-space: nowrap;
  cursor: pointer;
}

.upload-file-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-preview {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin: 6px 0 10px;
  color: #3154d4;
  text-decoration: none;
  font-weight: 700;
}

.upload-preview img {
  width: 42px;
  height: 42px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid #d9dfe9;
}

td .upload-preview {
  margin: 0;
  white-space: nowrap;
}

td .upload-preview img {
  width: 30px;
  height: 30px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal {
  width: min(460px, 100%);
  max-height: 88vh;
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
}

.wide-modal {
  width: min(920px, 100%);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #eef1f5;
  font-weight: 800;
}

.modal-body {
  padding: 16px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.modal-actions button {
  min-width: 82px;
}

.field-label {
  display: block;
  margin: 0 0 6px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #f0f3f8;
}

.admin-login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 47% 53%;
  background: #fff;
  overflow: hidden;
}

.admin-login-left {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px;
}

.login-box {
  width: min(420px, 100%);
}

.login-box h1 {
  margin: 0 0 28px;
  font-size: 30px;
}

.admin-input {
  border-color: #d7deea;
  margin-bottom: 16px;
}

.admin-login-art {
  position: relative;
  min-height: 620px;
  background: #1255ff;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 32% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-login-art img {
  width: min(620px, 90%);
  border-radius: 8px;
  opacity: .92;
}

.admin-shell-host {
  min-height: 100vh;
  background: #f0f2f5;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  background: #f0f2f5;
}

.admin-side {
  background: #191c28;
  color: #bfc6d6;
  border-right: 0;
  overflow: auto;
  height: 100vh;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.22) transparent;
}

.admin-side-title {
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  color: #fff;
  background: #11131d;
  font-weight: 900;
  font-size: 16px;
  border-bottom: 1px solid rgba(255,255,255,.04);
}

.admin-menu {
  padding: 8px 0 24px;
}

.menu-group-title,
.menu-leaf {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  color: #bfc6d6;
}

.menu-group-title {
  min-height: 44px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 8px;
  padding: 0 14px 0 20px;
  font-weight: 800;
  color: #d7dce8;
  font-size: 14px;
}

.menu-leaf {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px 0 48px;
  color: #aeb5c5;
  font-size: 13px;
}

.admin-menu-home {
  padding-left: 20px;
  color: #d7dce8;
}

.admin-menu-icon {
  width: 22px;
  display: inline-grid;
  place-items: center;
  color: #8f98aa;
  font-size: 14px;
}

.admin-menu-section {
  display: block;
}

.admin-submenu {
  display: none;
}

.admin-menu-section.expanded .admin-submenu {
  display: block;
}

.admin-menu-arrow {
  color: #7d879a;
  text-align: right;
  transition: transform .16s;
}

.admin-menu-section.expanded .admin-menu-arrow {
  transform: rotate(90deg);
}

.menu-leaf.active,
.menu-leaf:hover,
.menu-group-title:hover,
.admin-menu-section.active > .menu-group-title {
  color: #fff;
  background: #202535;
}

.menu-leaf.active {
  color: #fff;
  background: #2f6df6;
}

.admin-main {
  min-width: 0;
  height: 100vh;
  overflow: auto;
}

.admin-header {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background: #fff;
  border-bottom: 1px solid #ebeef5;
}

.admin-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #606266;
  font-size: 14px;
}

.admin-collapse-symbol {
  color: #606266;
  font-size: 20px;
  line-height: 1;
}

.admin-crumb-separator {
  color: #c0c4cc;
}

.admin-crumb-current {
  color: #303133;
  font-weight: 700;
}

.admin-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-tool-icon,
.icon-btn {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #606266;
  display: grid;
  place-items: center;
  font-size: 15px;
}

.admin-tool-icon:hover,
.icon-btn:hover {
  background: #f2f6ff;
  color: #409eff;
}

.admin-user-menu {
  border: 0;
  background: transparent;
  color: #606266;
  padding: 0 2px;
  font-size: 13px;
  line-height: 28px;
}

.history-tabs,
.admin-tabs {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 12px;
  background: #fff;
  border-bottom: 1px solid #e4e7ed;
}

.history-tab,
.admin-tab {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-right: 1px solid #ebeef5;
  border-radius: 0;
  padding: 0 14px;
  color: #606266;
  background: #fff;
  font-size: 13px;
}

.admin-tab.active,
.history-tab {
  color: #409eff;
}

.admin-tab-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #dcdfe6;
}

.admin-tab.active .admin-tab-dot {
  background: #409eff;
}

.admin-tab-close {
  color: #a8abb2;
  font-size: 14px;
}

.admin-content {
  padding: 14px 16px 40px;
  background: #f0f2f5;
}

.admin-card {
  background: #fff;
  border-radius: 2px;
  border: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.dashboard-card {
  min-height: 336px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 38px;
}

.dashboard-card img {
  max-width: 600px;
  width: 62%;
}

.filters {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 10px;
}

.filters .actions {
  display: flex;
  gap: 8px;
}

.admin-filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #606266;
  font-size: 13px;
}

.admin-date-range {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
  align-items: center;
  gap: 8px;
}

.hyorder-filters {
  grid-template-columns: minmax(320px, 1.8fr) minmax(160px, 1fr) minmax(160px, 1fr) auto;
  align-items: end;
}

.hyorder-summary {
  padding: 0 16px 12px;
  color: #303133;
  font-size: 14px;
  line-height: 1.6;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 14px;
}

.toolbar .primary-btn,
.toolbar .plain-btn {
  min-width: 64px;
  white-space: nowrap;
}

.table-wrap {
  overflow: auto;
  border-top: 1px solid var(--admin-line);
  position: relative;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
  background: #fff;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid #edf0f5;
  text-align: left;
  white-space: nowrap;
  font-size: 13px;
}

th {
  color: #6b7280;
  background: #fafbfe;
  font-weight: 800;
}

.switch {
  width: 38px;
  height: 20px;
  border-radius: 99px;
  background: #d3d9e6;
  display: inline-flex;
  align-items: center;
  padding: 2px;
  vertical-align: middle;
}

.switch.on {
  background: #4d72ff;
}

.switch i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transform: translateX(0);
  transition: transform .2s;
}

.switch.on i {
  transform: translateX(18px);
}

.row-actions {
  display: flex;
  gap: 6px;
}

.hyorder-table {
  min-width: 1680px;
}

.hyorder-table .action-col {
  position: sticky;
  right: 0;
  z-index: 2;
  min-width: 74px;
  text-align: center;
  background: #fff;
  box-shadow: -8px 0 12px rgba(15, 23, 42, 0.05);
}

.hyorder-table th.action-col {
  z-index: 3;
  background: #f5f7fb;
}

.hyorder-table td.action-col {
  padding-left: 8px;
  padding-right: 8px;
}

.hyorder-row-actions {
  min-width: 58px;
  justify-content: center;
}

.hyorder-control-btn {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 800;
  background: #fff;
  line-height: 1;
}

.hyorder-control-btn.win {
  color: #409eff;
  border: 1px solid #c6e2ff;
}

.hyorder-control-btn.loss {
  color: #f56c6c;
  border: 1px solid #fbc4c4;
}

.role-row-actions {
  min-width: 340px;
}

.small-action {
  padding: 5px 8px;
  min-width: auto;
  white-space: nowrap;
  font-size: 12px;
}

.danger-text {
  color: #dc2626;
  border-color: #fecdd3;
}

.permission-tabs,
.resource-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}

.permission-tabs button {
  border: 1px solid #d9dfe9;
  border-radius: 4px;
  background: #fff;
  color: #334155;
  padding: 8px 12px;
  font-weight: 800;
}

.permission-tabs button.active {
  color: #3f63f6;
  border-color: #b9c7ff;
  background: #eef3ff;
}

.permission-tree {
  max-height: 46vh;
  overflow: auto;
  border: 1px solid #edf0f5;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 14px;
}

.permission-node,
.permission-grid label {
  display: block;
  padding: 5px 0;
  color: #1f2937;
  font-size: 13px;
}

.permission-node {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
}

.permission-node label {
  flex: 1;
}

.permission-node-actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.permission-node-actions .default-router {
  color: #b45309;
  border-color: #fcd34d;
  background: #fffbeb;
}

.permission-subhead,
.permission-group strong {
  display: block;
  margin: 8px 0 6px;
  color: #0f172a;
  font-size: 13px;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2px 12px;
}

.resource-grid {
  max-height: 46vh;
  overflow: auto;
  border: 1px solid #edf0f5;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 14px;
}

.mini-permission-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.mini-permission-table th,
.mini-permission-table td {
  border-bottom: 1px solid #edf0f5;
  padding: 8px 6px;
  text-align: left;
}

.mini-permission-table th:first-child,
.mini-permission-table td:first-child {
  width: 42px;
}

.circle-action {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid currentColor;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
}

.circle-action.edit {
  color: #3f63f6;
}

.circle-action.warn {
  color: #d97706;
}

.circle-action.del {
  color: #ef4444;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 16px;
  font-size: 13px;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  padding: 3px 7px;
  background: #eef3ff;
  color: #3f63f6;
  font-size: 12px;
}

.tag.red {
  color: #dc2626;
  background: #fff0f2;
}

.tag.green {
  color: #059669;
  background: #ecfdf5;
}

.futures-page {
  padding-bottom: 98px;
}

.futures-hero {
  padding-bottom: 0;
}

.futures-symbol-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

.futures-symbol-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--front-text);
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
}

.futures-symbol-main strong {
  font-size: 16px;
}

.futures-symbol-main em {
  color: var(--front-muted);
  font-style: normal;
  font-size: 12px;
}

.futures-price {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.futures-price strong {
  font-size: 16px;
}

.futures-price span {
  font-size: 12px;
}

.futures-pair-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 10px;
}

.futures-pair-scroll button {
  flex: 0 0 auto;
  min-width: 54px;
  border: 0;
  border-radius: 4px;
  padding: 7px 10px;
  color: var(--front-muted);
  background: var(--front-panel-2);
}

.futures-pair-scroll button.active {
  color: #fff;
  background: #3f63f6;
}

.futures-history-head,
.quick-order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.futures-empty {
  padding: 42px 0;
  color: var(--front-muted);
  text-align: center;
  font-size: 13px;
}

.quick-order-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.quick-order-card {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 12px;
  color: var(--front-text);
  background: var(--front-panel-2);
  text-align: left;
}

.quick-order-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-order-head em {
  font-style: normal;
  font-size: 12px;
}

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

.quick-order-grid div,
.quick-popup-grid div,
.quick-result-cells div,
.quick-result-grid div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.quick-order-grid span,
.quick-popup-grid span,
.quick-result-cells span,
.quick-result-grid span {
  color: var(--front-muted);
  font-size: 11px;
}

.quick-order-grid strong,
.quick-popup-grid strong,
.quick-result-cells strong,
.quick-result-grid strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.quick-contract-action-bar {
  position: sticky;
  bottom: 72px;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0 0;
  padding: 10px 0 0;
  background: linear-gradient(180deg, rgba(23, 25, 34, 0), var(--front-bg) 38%);
}

.quick-modal {
  align-self: end;
  width: min(375px, 100%);
  max-height: 82vh;
  border-radius: 16px 16px 0 0;
  background: #191d2a;
  color: #eef4ff;
}

.quick-modal .modal-head {
  display: none;
}

.quick-modal .modal-body {
  padding: 12px;
}

.quick-contract-popup,
.quick-result-popup {
  display: grid;
  gap: 12px;
}

.quick-popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.quick-popup-head strong {
  font-size: 16px;
  color: #f8fafc;
}

.quick-form-section {
  display: grid;
  gap: 8px;
}

.quick-form-section label,
.quick-balance-line {
  color: #d6deeb;
  font-size: 13px;
  font-weight: 700;
}

.quick-modal .admin-input {
  border-color: transparent;
  background: #111522;
  color: #eef4ff;
}

.quick-modal .admin-input::placeholder {
  color: #7f8a9d;
}

.quick-chip-scroll {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  padding-bottom: 2px;
}

.quick-chip-scroll button {
  display: grid;
  place-items: center;
  gap: 3px;
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: #11c985;
}

.quick-chip-scroll button.active {
  background: #11c985;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.82);
}

.quick-chip-scroll span {
  font-size: 12px;
}

.quick-popup-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding-top: 4px;
}

.quick-countdown {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 18px 0;
}

.quick-ring {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#0bbf83 calc(var(--pct) * 1%), #eef2f7 0);
}

.quick-ring span {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #111827;
  background: #fff;
  font-size: 24px;
  font-weight: 800;
}

.quick-result-title {
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  padding-top: 6px;
}

.quick-result-grid,
.quick-result-cells {
  display: grid;
  gap: 10px;
}

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

.quick-result-cells {
  border: 1px solid #d8f5e8;
  border-radius: 8px;
  padding: 12px;
}

.state-line {
  color: #64748b;
  font-size: 13px;
  padding: 8px 0;
}

.state-line.error {
  color: #b42318;
}

.config-list {
  padding: 16px;
}

.config-row {
  border: 1px solid #edf0f5;
  border-radius: 4px;
  margin-bottom: 10px;
}

.config-row button {
  width: 100%;
  border: 0;
  padding: 14px;
  text-align: left;
  background: #fff;
  font-weight: 800;
}

.config-row button.active {
  color: #3f63f6;
  background: #eef3ff;
}

.config-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
  padding: 14px;
}

.config-field {
  display: grid;
  gap: 6px;
}

.config-field span {
  color: #4b5563;
  font-size: 12px;
  font-weight: 800;
}

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

.config-test-row {
  display: grid;
  grid-template-columns: minmax(220px, 360px) auto;
  gap: 8px;
  align-items: center;
  margin: 0 0 12px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  z-index: 120;
  padding: 10px 14px;
  border-radius: 6px;
  color: #fff;
  background: rgba(17, 24, 39, .92);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 860px) {
  .modebar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .admin-login {
    grid-template-columns: 1fr;
  }

  .admin-login-art {
    display: none;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-side {
    height: auto;
    max-height: 260px;
  }

  .filters,
  .config-body {
    grid-template-columns: 1fr;
  }

  .admin-date-range {
    grid-template-columns: 1fr;
  }

  .dashboard-card {
    padding: 20px;
  }

  .dashboard-card img {
    display: none;
  }
}
