:root {
  color-scheme: dark;
  --bg: #07090d;
  --panel: #0e1117;
  --panel-2: #131720;
  --panel-3: #191e28;
  --line: #242a35;
  --line-soft: #1a1f29;
  --text: #f4f6f8;
  --muted: #8b95a5;
  --muted-2: #5e6878;
  --brand: #4d7cff;
  --brand-hover: #628bff;
  --green: #16c784;
  --green-soft: rgba(22, 199, 132, .12);
  --red: #ea3943;
  --red-soft: rgba(234, 57, 67, .12);
  --yellow: #f0b90b;
  --radius: 14px;
  --shadow: 0 16px 50px rgba(0, 0, 0, .22);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { min-width: 320px; background: var(--bg); }
body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% -10%, rgba(77, 124, 255, .12), transparent 32%),
    var(--bg);
  color: var(--text);
  font: 14px/1.5 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { border: 0; cursor: pointer; }
button:disabled { opacity: .55; cursor: not-allowed; }

.app-shell { min-height: 100vh; }
.page-container { width: min(1540px, calc(100% - 32px)); margin: 0 auto; padding: 18px 0 40px; }
.narrow-container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 48px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  height: 66px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 max(18px, calc((100vw - 1540px) / 2));
  background: rgba(7, 9, 13, .9);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: max-content; font-weight: 800; letter-spacing: -.2px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; overflow: hidden; flex: 0 0 36px;
  background: #000; border: 1px solid #252a34;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
.brand-mark img {
  width: 100%; height: 100%; display: block; object-fit: cover;
}
.brand-name { font-size: 18px; }
.main-nav { display: flex; align-items: center; gap: 6px; flex: 1; }
.main-nav a { padding: 9px 13px; border-radius: 9px; color: var(--muted); font-weight: 600; transition: .18s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--text); background: var(--panel-2); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.icon-button, .account-button {
  height: 38px; padding: 0 13px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--panel); color: var(--text);
  display: inline-flex; align-items: center; gap: 8px; transition: .18s ease;
}
.icon-button:hover, .account-button:hover { background: var(--panel-3); border-color: #364052; }
.mobile-menu-button { display: none; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel-header { min-height: 48px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-soft); }
.panel-title { font-size: 15px; font-weight: 750; }
.panel-subtitle { color: var(--muted); font-size: 12px; }
.panel-body { padding: 18px; }

.dropdown {
  display: none; position: fixed; z-index: 100; top: 58px; right: max(18px, calc((100vw - 1540px) / 2));
  min-width: 270px; padding: 14px; background: #11151d; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 22px 70px rgba(0,0,0,.5);
}
.dropdown.open { display: block; animation: pop .16s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(-7px) scale(.98); } to { opacity: 1; transform: none; } }
.dropdown-title { font-weight: 750; padding: 5px 5px 12px; }
.dropdown-row { display: flex; justify-content: space-between; gap: 20px; padding: 10px 5px; color: var(--muted); border-top: 1px solid var(--line-soft); }
.dropdown-row strong { color: var(--text); font-weight: 650; }
.dropdown-link { display: block; padding: 10px; border-radius: 9px; color: var(--muted); }
.dropdown-link:hover { background: var(--panel-3); color: var(--text); }

.btn { min-height: 40px; padding: 0 17px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 750; transition: transform .1s ease, filter .18s ease, background .18s ease; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.975); }
.btn-primary { background: var(--brand); color: white; }
.btn-secondary { background: var(--panel-3); color: var(--text); border: 1px solid var(--line); }
.btn-buy { background: var(--green); color: #04150e; }
.btn-sell { background: var(--red); color: white; }
.btn-danger { background: var(--red-soft); color: #ff6b74; border: 1px solid rgba(234,57,67,.24); }
.btn-block { width: 100%; }
.btn-sm { min-height: 32px; padding: 0 12px; border-radius: 8px; font-size: 12px; }

.field { display: grid; gap: 8px; }
.field-label { color: var(--muted); font-size: 12px; }
.input-wrap { position: relative; }
.input, .select {
  width: 100%; height: 44px; padding: 0 14px; color: var(--text); background: #090c11;
  border: 1px solid #2b3240; border-radius: 9px; outline: none; transition: .18s ease;
}
.input:focus, .select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(77,124,255,.12); }
.input-suffix { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 12px; pointer-events: none; }
.input.has-suffix { padding-right: 58px; }
.form-grid { display: grid; gap: 14px; }
.form-hint { color: var(--muted); font-size: 12px; }

.green, .text-buy { color: var(--green) !important; }
.red, .text-sell { color: var(--red) !important; }
.muted { color: var(--muted); }
.text-right { text-align: right; }
.mono { font-variant-numeric: tabular-nums; font-family: "SFMono-Regular", Consolas, monospace; }

.status { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.status-open { color: #85a3ff; background: rgba(77,124,255,.12); }
.status-partial { color: #ffd364; background: rgba(240,185,11,.12); }
.status-done, .status-approved { color: #36d99b; background: var(--green-soft); }
.status-cancel, .status-rejected { color: #ff6d76; background: var(--red-soft); }
.status-pending { color: #ffd364; background: rgba(240,185,11,.12); }

.table-wrap { overflow: auto; }
.data-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.data-table th { height: 42px; padding: 0 14px; color: var(--muted); font-size: 12px; font-weight: 600; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line-soft); }
.data-table td { height: 50px; padding: 0 14px; white-space: nowrap; border-bottom: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; }
.data-table tr:hover td { background: rgba(255,255,255,.015); }
.empty-state { padding: 42px 16px; color: var(--muted); text-align: center; }

.tabs { display: flex; gap: 4px; overflow-x: auto; }
.tab-button { height: 38px; padding: 0 14px; background: transparent; color: var(--muted); border-radius: 8px; white-space: nowrap; font-weight: 700; }
.tab-button:hover { color: var(--text); background: var(--panel-3); }
.tab-button.active { color: var(--text); background: var(--panel-3); }

/* 交易页 */
.market-strip { min-height: 102px; display: flex; align-items: center; gap: 34px; padding: 16px 20px; margin-bottom: 14px; }
.symbol-block { min-width: 205px; }
.symbol-line { display: flex; align-items: center; gap: 9px; }
.symbol-name { font-size: 22px; font-weight: 800; letter-spacing: -.4px; }
.symbol-badge { padding: 3px 7px; border-radius: 5px; color: #9db2ff; background: rgba(77,124,255,.12); font-size: 11px; font-weight: 700; }
.price-line { display: flex; align-items: baseline; gap: 11px; margin-top: 6px; }
.market-price { font-size: 29px; font-weight: 820; line-height: 1; font-variant-numeric: tabular-nums; }
.market-change { font-weight: 750; }
.market-stats { flex: 1; display: grid; grid-template-columns: repeat(5, minmax(110px, 1fr)); gap: 22px; }
.market-stat span { display: block; color: var(--muted); font-size: 11px; margin-bottom: 5px; }
.market-stat strong { font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.data-source { color: var(--muted-2); font-size: 11px; }

.trade-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; }
.chart-panel { min-width: 0; }
.chart-toolbar { min-height: 48px; padding: 0 12px; display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line-soft); overflow-x: auto; }
.period-btn { min-width: 46px; height: 30px; padding: 0 10px; background: transparent; color: var(--muted); border-radius: 7px; font-size: 12px; }
.period-btn:hover, .period-btn.active { color: var(--text); background: var(--panel-3); }
#chart { height: 500px; width: 100%; }
.chart-error { height: 500px; display: grid; place-items: center; color: var(--muted); }

.orderbook-panel { display: flex; flex-direction: column; min-height: 550px; }
.book-head, .book-row { display: grid; grid-template-columns: 1fr .85fr .9fr; align-items: center; padding: 0 14px; font-variant-numeric: tabular-nums; }
.book-head { height: 34px; color: var(--muted); font-size: 11px; }
.book-row { position: relative; height: 25px; font-size: 12px; cursor: pointer; overflow: hidden; }
.book-row:hover { background: rgba(255,255,255,.035); }
.book-row > span { position: relative; z-index: 1; }
.book-depth { position: absolute; right: 0; top: 0; bottom: 0; opacity: .14; }
.book-row.ask .book-depth { background: var(--red); }
.book-row.bid .book-depth { background: var(--green); }
.book-mid { min-height: 48px; padding: 8px 14px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.book-mid-price { font-size: 17px; font-weight: 800; color: var(--green); }
.book-section { min-height: 211px; }
.recent-list { max-height: 240px; overflow: auto; }
.trade-row { display: grid; grid-template-columns: 1fr .8fr .9fr; align-items: center; height: 27px; padding: 0 14px; font-size: 11px; font-variant-numeric: tabular-nums; }
.trade-row:hover { background: rgba(255,255,255,.025); }

.order-entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.order-form { padding: 17px; }
.order-form-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.order-form-head h3 { font-size: 15px; }
.available-line { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-bottom: 12px; }
.percent-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin: 8px 0 13px; }
.percent-button { height: 30px; color: var(--muted); background: var(--panel-3); border: 1px solid var(--line); border-radius: 7px; font-size: 11px; transition: .15s ease; }
.percent-button:hover { color: var(--text); border-color: #3a4559; transform: translateY(-1px); }
.estimate-box { display: grid; gap: 6px; min-height: 50px; padding: 10px 0; color: var(--muted); font-size: 11px; }
.estimate-row { display: flex; justify-content: space-between; }
.order-submit { height: 46px; font-size: 14px; }

.orders-panel { margin-top: 14px; }
.order-side { font-weight: 750; }

/* 首页 */
.hero { min-height: 470px; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 46px; padding: 56px 0; }
.hero-kicker { display: inline-flex; padding: 7px 11px; color: #a8baff; background: rgba(77,124,255,.1); border: 1px solid rgba(77,124,255,.18); border-radius: 999px; font-weight: 700; }
.hero h1 { max-width: 720px; margin: 19px 0; font-size: clamp(40px, 5vw, 70px); line-height: 1.05; letter-spacing: -2.8px; }
.hero p { max-width: 610px; color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; }
.hero-card { padding: 22px; background: linear-gradient(145deg, #121722, #0b0f16); }
.hero-price { font-size: 34px; font-weight: 850; margin: 13px 0 5px; }
.mini-chart { height: 150px; display: flex; align-items: end; gap: 4px; margin-top: 20px; }
.mini-chart i { flex: 1; min-height: 12%; border-radius: 4px 4px 0 0; background: linear-gradient(to top, rgba(77,124,255,.15), rgba(77,124,255,.75)); }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin: 34px 0 16px; }
.section-heading h2 { font-size: 25px; }
.section-heading p { color: var(--muted); }
.market-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.market-card { padding: 19px; transition: .18s ease; }
.market-card:hover { transform: translateY(-2px); border-color: #354052; }
.market-card-head { display: flex; justify-content: space-between; align-items: center; }
.market-card-price { margin: 15px 0 4px; font-size: 25px; font-weight: 800; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding-bottom: 50px; }
.feature-card { padding: 22px; }
.feature-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(77,124,255,.12); color: #a8baff; font-size: 20px; }
.feature-card h3 { margin: 16px 0 7px; }
.feature-card p { color: var(--muted); }

/* 登录注册 */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 480px; }
.auth-visual { display: grid; place-items: center; padding: 60px; background: radial-gradient(circle at center, rgba(77,124,255,.16), transparent 50%); }
.auth-copy { max-width: 620px; }
.auth-copy h1 { font-size: 50px; line-height: 1.08; letter-spacing: -1.8px; }
.auth-copy p { margin-top: 17px; color: var(--muted); font-size: 17px; }
.auth-side { display: flex; align-items: center; padding: 36px; background: var(--panel); border-left: 1px solid var(--line); }
.auth-card { width: 100%; }
.auth-card h2 { margin: 23px 0 5px; font-size: 28px; }
.auth-card > p { color: var(--muted); margin-bottom: 26px; }
.auth-switch { margin-top: 20px; color: var(--muted); text-align: center; }
.auth-switch a { color: #8da8ff; font-weight: 700; }

/* 资产与资金 */
.summary-grid { display: grid; grid-template-columns: 1.4fr repeat(2, .8fr); gap: 14px; margin-bottom: 14px; }
.summary-card { padding: 22px; }
.summary-label { color: var(--muted); font-size: 12px; }
.summary-value { margin-top: 8px; font-size: 29px; font-weight: 850; }
.asset-actions { display: flex; gap: 9px; margin-top: 18px; }
.coin-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--panel-3); font-weight: 850; }
.coin-cell { display: flex; align-items: center; gap: 10px; }
.fund-layout { display: grid; grid-template-columns: 420px 1fr; gap: 14px; }
.fund-form { padding: 22px; }
.notice-box { padding: 12px; color: var(--muted); background: rgba(77,124,255,.07); border: 1px solid rgba(77,124,255,.14); border-radius: 9px; font-size: 12px; }

/* 后台 */
.admin-grid { display: grid; grid-template-columns: 1fr 360px; gap: 14px; }
.admin-stack { display: grid; gap: 14px; }
.user-row { cursor: pointer; }
.selected-row td { background: rgba(77,124,255,.08) !important; }

.toast-stack { position: fixed; z-index: 200; right: 18px; bottom: 18px; display: grid; gap: 9px; }
.toast { min-width: 260px; max-width: 390px; padding: 12px 14px; border-radius: 10px; color: var(--text); background: #171c26; border: 1px solid var(--line); box-shadow: 0 16px 48px rgba(0,0,0,.4); animation: toast-in .2s ease; }
.toast.success { border-color: rgba(22,199,132,.35); }
.toast.error { border-color: rgba(234,57,67,.42); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.footer { padding: 28px 0; color: var(--muted); border-top: 1px solid var(--line-soft); text-align: center; }

@media (max-width: 1100px) {
  .market-stats { grid-template-columns: repeat(3, 1fr); }
  .market-stat:nth-child(4), .market-stat:nth-child(5) { display: none; }
  .trade-workspace { grid-template-columns: minmax(0, 1fr) 310px; }
  .hero { grid-template-columns: 1fr; }
  .hero-card { max-width: 650px; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .summary-grid .summary-card:first-child { grid-column: 1 / -1; }
  .fund-layout, .admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .topbar { padding: 0 14px; gap: 14px; }
  .main-nav { display: none; position: fixed; left: 12px; right: 12px; top: 62px; padding: 10px; flex-direction: column; align-items: stretch; background: #11151d; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; }
  .mobile-menu-button { display: inline-flex; }
  .account-button .account-label { display: none; }
  .page-container, .narrow-container { width: min(100% - 20px, 1540px); }
  .market-strip { align-items: flex-start; flex-direction: column; gap: 16px; }
  .market-stats { width: 100%; grid-template-columns: repeat(3, 1fr); }
  .trade-workspace { grid-template-columns: 1fr; }
  .orderbook-panel { min-height: auto; }
  .order-entry-grid { grid-template-columns: 1fr; }
  #chart, .chart-error { height: 410px; }
  .market-grid, .feature-grid { grid-template-columns: 1fr; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-side { min-height: 100vh; border: 0; padding: 24px; }
}

@media (max-width: 560px) {
  .brand-name { display: none; }
  .top-actions .btn-primary { display: none; }
  .market-stats { grid-template-columns: 1fr 1fr; gap: 14px; }
  .market-stat:nth-child(3) { display: none; }
  .market-price { font-size: 25px; }
  #chart, .chart-error { height: 340px; }
  .panel-body { padding: 14px; }
  .order-form { padding: 14px; }
  .summary-grid { grid-template-columns: 1fr; }
  .summary-grid .summary-card:first-child { grid-column: auto; }
  .hero { min-height: 420px; padding-top: 38px; }
  .hero h1 { font-size: 43px; letter-spacing: -1.6px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

/* 后台资产冻结与审计 */
.btn-warning {
  background: rgba(240, 185, 11, .14);
  color: #ffd364;
  border: 1px solid rgba(240, 185, 11, .28);
}
.btn-info {
  background: rgba(77, 124, 255, .14);
  color: #9eb3ff;
  border: 1px solid rgba(77, 124, 255, .28);
}
.asset-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.asset-action-wide { grid-column: 1 / -1; }
.asset-operation-help {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 12px;
  color: var(--muted);
  background: rgba(255,255,255,.025);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  font-size: 12px;
}
.asset-operation-help strong { color: var(--text); }
.wallet-admin-card {
  margin-top: 10px;
  padding: 12px;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
}
.wallet-admin-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.wallet-admin-title span { color: var(--muted); font-size: 11px; }
.wallet-admin-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.wallet-admin-values > div {
  display: grid;
  gap: 4px;
  padding: 9px;
  background: #090c11;
  border-radius: 8px;
}
.wallet-admin-values span { color: var(--muted); font-size: 11px; }
.wallet-admin-values strong { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.asset-log-table { min-width: 1050px; }
.table-subtext { margin-top: 2px; color: var(--muted-2); font-size: 10px; }
.balance-snapshot { color: var(--muted); font-size: 11px; line-height: 1.6; }
.asset-log-action {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
}
.log-action-add { color: #36d99b; background: var(--green-soft); }
.log-action-reduce { color: #ff7780; background: var(--red-soft); }
.log-action-freeze { color: #ffd364; background: rgba(240,185,11,.12); }
.log-action-unfreeze { color: #9eb3ff; background: rgba(77,124,255,.12); }
.log-action-consume { color: #ff7780; background: rgba(234,57,67,.18); border: 1px solid rgba(234,57,67,.22); }

@media (max-width: 560px) {
  .asset-action-grid { grid-template-columns: 1fr; }
  .asset-action-wide { grid-column: auto; }
}

/* YunQ Pay v2.1 首页升级 */
.home-page {
  --home-bg: #050608;
  --home-panel: #0a0c10;
  --home-panel-2: #0e1116;
  --home-border: rgba(255, 255, 255, .095);
  --home-text: #f7f8fa;
  --home-muted: #929aa8;
  background:
    radial-gradient(circle at 50% -22%, rgba(255,255,255,.065), transparent 34%),
    var(--home-bg);
}
.home-page .app-shell { overflow: hidden; }
.home-container { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }
.home-topbar {
  height: 72px;
  padding-left: max(20px, calc((100vw - 1240px) / 2));
  padding-right: max(20px, calc((100vw - 1240px) / 2));
  background: rgba(5, 6, 8, .82);
  border-color: rgba(255,255,255,.075);
}
.home-topbar .brand { gap: 11px; }
.home-topbar .brand-mark { width: 38px; height: 38px; flex-basis: 38px; border-radius: 11px; }
.home-brand-copy { display: grid; line-height: 1.05; }
.home-brand-copy strong { font-size: 17px; letter-spacing: -.25px; }
.home-brand-copy small { margin-top: 4px; color: #7d8695; font-size: 10px; letter-spacing: 2.4px; }
.home-topbar .main-nav { justify-content: center; }
.home-topbar .main-nav a { padding: 9px 15px; font-size: 13px; }
.home-topbar .main-nav a.active { color: #fff; background: rgba(255,255,255,.08); }
.home-login { background: transparent; }
.home-btn-primary {
  background: #f6f7f9;
  color: #07080a;
  border: 1px solid #f6f7f9;
  box-shadow: 0 8px 28px rgba(255,255,255,.08);
}
.home-btn-primary:hover { background: #fff; filter: none; }
.home-btn-large { min-height: 48px; padding: 0 22px; border-radius: 12px; }
.home-btn-large span { font-size: 17px; }
.home-hero-wrap { position: relative; border-bottom: 1px solid rgba(255,255,255,.065); }
.home-glow { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(1px); }
.home-glow-one { width: 620px; height: 620px; top: -360px; right: 5%; background: radial-gradient(circle, rgba(255,255,255,.09), transparent 67%); }
.home-glow-two { width: 420px; height: 420px; left: -240px; bottom: -250px; background: radial-gradient(circle, rgba(255,255,255,.045), transparent 68%); }
.home-hero { position: relative; z-index: 1; min-height: 650px; padding: 76px 0 70px; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 76px; }
.home-hero-copy { max-width: 650px; }
.home-eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #b6bdc8; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.home-eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 15px rgba(255,255,255,.55); }
.home-hero h1 { margin: 24px 0 22px; color: #fff; font-size: clamp(56px, 6.2vw, 94px); line-height: .97; letter-spacing: -5.4px; }
.home-hero h1 em { color: #8d96a4; font-style: normal; }
.home-hero-copy > p { max-width: 620px; color: var(--home-muted); font-size: 17px; line-height: 1.8; }
.home-hero-actions { display: flex; align-items: center; gap: 12px; margin-top: 32px; }
.home-proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 48px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,.08); }
.home-proof-grid div { display: grid; gap: 3px; }
.home-proof-grid strong { font-size: 17px; }
.home-proof-grid span { color: #707987; font-size: 11px; }
.home-terminal { position: relative; border: 1px solid rgba(255,255,255,.12); border-radius: 22px; background: linear-gradient(145deg, rgba(18,21,28,.98), rgba(7,9,12,.98)); box-shadow: 0 38px 100px rgba(0,0,0,.48); overflow: hidden; }
.home-terminal::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(135deg, rgba(255,255,255,.045), transparent 32%); }
.terminal-topline { height: 48px; padding: 0 18px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid rgba(255,255,255,.075); color: #6f7886; font-size: 10px; letter-spacing: 1px; }
.terminal-dots { display: flex; gap: 5px; }
.terminal-dots i { width: 6px; height: 6px; border-radius: 50%; background: #343943; }
.terminal-live { justify-self: end; display: flex; align-items: center; gap: 5px; color: #8b94a2; }
.terminal-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 11px rgba(22,199,132,.65); }
.terminal-main { padding: 26px 28px 24px; }
.terminal-symbol-row { display: flex; align-items: center; justify-content: space-between; }
.terminal-symbol { font-weight: 800; letter-spacing: -.2px; }
.terminal-tag { margin-left: 8px; padding: 3px 6px; border: 1px solid rgba(255,255,255,.12); border-radius: 5px; color: #798290; font-size: 9px; }
.home-hero-price { margin-top: 17px; color: #fff; font-size: clamp(39px, 4vw, 55px); font-weight: 820; letter-spacing: -2.4px; }
.terminal-subline { margin-top: 3px; display: flex; justify-content: space-between; color: #697280; font-size: 10px; }
.home-chart { position: relative; height: 210px; margin: 18px -4px 0; }
.home-chart svg { width: 100%; height: 100%; overflow: visible; }
.chart-grid { stroke: rgba(255,255,255,.055); stroke-width: 1; fill: none; }
.chart-area { fill: url(#areaFill); }
.chart-line { fill: none; stroke: #f4f5f7; stroke-width: 2.3; stroke-linecap: round; filter: drop-shadow(0 0 5px rgba(255,255,255,.28)); }
.chart-crosshair { position: absolute; right: 20.2%; top: 32%; }
.chart-crosshair span { position: absolute; width: 1px; height: 160px; top: -55px; background: linear-gradient(transparent, rgba(255,255,255,.16), transparent); }
.chart-crosshair b { position: absolute; width: 8px; height: 8px; left: -3px; top: 21px; border: 2px solid #fff; border-radius: 50%; background: #101319; box-shadow: 0 0 0 5px rgba(255,255,255,.08); }
.terminal-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.075); }
.terminal-stats div { display: grid; gap: 4px; }
.terminal-stats span { color: #6d7684; font-size: 10px; }
.terminal-stats strong { font-size: 12px; font-variant-numeric: tabular-nums; }
.terminal-status { color: var(--green); }
.home-ticker-section { border-bottom: 1px solid rgba(255,255,255,.065); background: rgba(255,255,255,.013); }
.home-ticker { min-height: 90px; display: grid; grid-template-columns: repeat(3, 1fr); }
.ticker-item { display: grid; grid-template-columns: 34px 1fr auto auto; align-items: center; gap: 10px; padding: 18px 25px; border-right: 1px solid rgba(255,255,255,.065); transition: .18s ease; }
.ticker-item:last-child { border-right: 0; }
.ticker-item:hover { background: rgba(255,255,255,.025); }
.ticker-coin, .home-coin-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #050608; background: #f4f5f7; font-weight: 900; }
.ticker-name { display: flex; align-items: baseline; gap: 2px; }
.ticker-name strong { font-size: 13px; }
.ticker-name small { color: #626b79; font-size: 10px; }
.ticker-price { font-size: 13px; font-weight: 700; }
.ticker-change { min-width: 56px; text-align: right; font-size: 12px; font-weight: 750; }
.ticker-loading { grid-column: 1 / -1; display: grid; place-items: center; color: #6f7886; }
.home-section { padding-top: 105px; }
.home-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.home-section-head.compact { margin-bottom: 24px; }
.home-section-label { display: block; margin-bottom: 10px; color: #747d8a; font-size: 10px; font-weight: 800; letter-spacing: 2.4px; }
.home-section-head h2, .home-cta-panel h2 { font-size: clamp(30px, 3vw, 45px); line-height: 1.15; letter-spacing: -1.8px; }
.home-section-head p, .home-cta-panel p { margin-top: 9px; color: var(--home-muted); }
.home-text-link { color: #d7dbe1; font-weight: 700; font-size: 12px; }
.home-text-link span { display: inline-block; transition: transform .18s ease; }
.home-text-link:hover span { transform: translateX(4px); }
.home-market-table { border-radius: 18px; overflow: hidden; box-shadow: none; }
.home-market-table-head, .home-market-row { display: grid; grid-template-columns: 1.35fr 1fr .8fr 1.1fr 44px; align-items: center; padding: 0 24px; }
.home-market-table-head { height: 46px; color: #68717f; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 10px; }
.home-market-row { min-height: 76px; border-bottom: 1px solid rgba(255,255,255,.065); transition: .16s ease; }
.home-market-row:last-child { border-bottom: 0; }
.home-market-row:hover { background: rgba(255,255,255,.026); }
.home-market-symbol { display: flex; align-items: center; gap: 12px; }
.home-market-symbol > span:last-child { display: flex; align-items: baseline; }
.home-market-symbol strong { font-size: 14px; }
.home-market-symbol small { color: #68717f; font-size: 10px; }
.home-market-price { font-size: 15px; }
.home-market-change { width: max-content; min-width: 70px; padding: 6px 9px; border-radius: 8px; text-align: center; font-size: 11px; font-weight: 800; }
.home-market-change.positive { color: #42dda5; background: rgba(22,199,132,.10); }
.home-market-change.negative { color: #ff7b83; background: rgba(234,57,67,.10); }
.home-market-range { display: grid; gap: 3px; }
.home-market-range strong { font-size: 11px; }
.home-market-range small { color: #626b79; font-size: 10px; }
.home-market-arrow { justify-self: end; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.09); border-radius: 8px; color: #7b8491; }
.home-market-row:hover .home-market-arrow { color: #fff; border-color: rgba(255,255,255,.18); }
.home-market-loading { min-height: 150px; display: grid; place-items: center; color: #6f7886; }
.home-feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.home-feature-card { position: relative; min-height: 265px; padding: 26px; border: 1px solid var(--home-border); border-radius: 18px; background: linear-gradient(145deg, #0d1015, #080a0e); overflow: hidden; }
.home-feature-card-large { grid-column: span 2; }
.home-feature-card-wide { grid-column: span 2; }
.home-feature-number { position: absolute; top: 18px; right: 20px; color: #3d434d; font-size: 10px; font-weight: 800; letter-spacing: 1.5px; }
.home-feature-icon { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.11); border-radius: 12px; color: #f5f6f8; background: rgba(255,255,255,.035); font-size: 19px; }
.home-feature-card h3 { margin: 34px 0 10px; font-size: 20px; letter-spacing: -.6px; }
.home-feature-card p { max-width: 470px; color: var(--home-muted); line-height: 1.75; }
.home-feature-card .home-text-link { position: absolute; left: 26px; bottom: 27px; }
.feature-visual { position: absolute; right: 24px; bottom: 20px; }
.feature-bars { width: 210px; height: 92px; display: flex; align-items: flex-end; gap: 7px; opacity: .7; }
.feature-bars i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(to top, rgba(255,255,255,.06), rgba(255,255,255,.34)); }
.feature-bars i:nth-child(1) { height: 28%; }.feature-bars i:nth-child(2) { height: 42%; }.feature-bars i:nth-child(3) { height: 37%; }.feature-bars i:nth-child(4) { height: 62%; }.feature-bars i:nth-child(5) { height: 54%; }.feature-bars i:nth-child(6) { height: 79%; }.feature-bars i:nth-child(7) { height: 94%; }
.home-cta-section { padding: 110px 0; }
.home-cta-panel { position: relative; min-height: 300px; padding: 58px 62px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border: 1px solid rgba(255,255,255,.12); border-radius: 24px; background: radial-gradient(circle at 88% 15%, rgba(255,255,255,.09), transparent 28%), linear-gradient(135deg, #11141a, #07090c); overflow: hidden; }
.home-cta-panel::after { content: "Y"; position: absolute; right: 4%; bottom: -56%; color: rgba(255,255,255,.025); font-size: 390px; font-weight: 900; line-height: 1; }
.home-cta-panel > * { position: relative; z-index: 1; }
.home-cta-actions { display: grid; justify-items: center; gap: 15px; min-width: 215px; }
.home-footer { border-top: 1px solid rgba(255,255,255,.065); }
.home-footer-inner { min-height: 135px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.home-footer-brand { display: flex; align-items: center; gap: 12px; }
.home-footer-brand .brand-mark { width: 40px; height: 40px; }
.home-footer-brand > div { display: grid; }
.home-footer-brand strong { font-size: 16px; }
.home-footer-brand span { color: #697280; font-size: 10px; }
.home-footer-inner > p { max-width: 480px; color: #616a78; font-size: 11px; text-align: right; }

@media (max-width: 1050px) {
  .home-hero { grid-template-columns: 1fr; gap: 48px; padding-top: 66px; }
  .home-hero-copy { max-width: 790px; }
  .home-terminal { max-width: 720px; }
  .home-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .home-feature-card-large, .home-feature-card-wide { grid-column: span 1; }
  .feature-visual { display: none; }
}
@media (max-width: 820px) {
  .home-container { width: min(100% - 24px, 1240px); }
  .home-topbar { height: 64px; padding: 0 12px; }
  .home-topbar .main-nav { top: 60px; }
  .home-hero { min-height: auto; padding: 58px 0; }
  .home-hero h1 { font-size: clamp(49px, 12vw, 70px); letter-spacing: -3.4px; }
  .home-proof-grid { grid-template-columns: 1fr; gap: 13px; }
  .home-proof-grid div { grid-template-columns: 95px 1fr; align-items: center; }
  .home-ticker { grid-template-columns: 1fr; }
  .ticker-item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.065); }
  .ticker-item:last-child { border-bottom: 0; }
  .home-market-table-head { display: none; }
  .home-market-row { grid-template-columns: 1.4fr 1fr auto; padding: 0 16px; }
  .home-market-range, .home-market-arrow { display: none; }
  .home-section { padding-top: 78px; }
  .home-section-head { align-items: flex-start; flex-direction: column; }
  .home-feature-grid { grid-template-columns: 1fr; }
  .home-cta-panel { padding: 44px 28px; align-items: flex-start; flex-direction: column; }
  .home-cta-actions { justify-items: stretch; width: 100%; }
  .home-footer-inner { padding: 28px 0; align-items: flex-start; flex-direction: column; }
  .home-footer-inner > p { text-align: left; }
}
@media (max-width: 560px) {
  .home-brand-copy small { display: none; }
  .home-brand-copy strong { font-size: 15px; }
  .home-topbar .top-actions .home-login { display: none; }
  .home-topbar .top-actions .home-btn-primary { display: inline-flex; min-height: 36px; padding: 0 13px; }
  .home-hero h1 { font-size: 48px; }
  .home-hero-copy > p { font-size: 15px; }
  .home-hero-actions { align-items: stretch; flex-direction: column; }
  .home-hero-actions .btn { width: 100%; }
  .terminal-main { padding: 21px 18px 18px; }
  .home-hero-price { font-size: 37px; }
  .home-chart { height: 165px; }
  .terminal-stats { grid-template-columns: 1fr 1fr; }
  .terminal-stats div:last-child { display: none; }
  .ticker-item { grid-template-columns: 34px 1fr auto; padding: 16px 13px; }
  .ticker-price { display: none; }
  .home-market-row { grid-template-columns: 1.2fr 1fr auto; min-height: 70px; padding: 0 12px; }
  .home-market-change { min-width: 62px; }
  .home-feature-card { min-height: 245px; padding: 22px; }
  .home-feature-card h3 { margin-top: 28px; }
  .home-cta-section { padding: 76px 0; }
  .home-cta-panel { min-height: 330px; }
}

/* v2.2 行情中心 */
.markets-page {
  background:
    radial-gradient(circle at 75% -10%, rgba(255,255,255,.065), transparent 30%),
    #050608;
}
.markets-topbar { background: rgba(5, 6, 8, .92); }
.markets-container { width: min(1420px, calc(100% - 36px)); margin: 0 auto; padding: 58px 0 70px; }
.markets-hero { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 28px; }
.markets-kicker { display: block; margin-bottom: 12px; color: #7d8795; font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.markets-hero h1 { font-size: clamp(38px, 5vw, 62px); line-height: 1; letter-spacing: -.055em; }
.markets-hero p { max-width: 660px; margin-top: 18px; color: var(--muted); font-size: 16px; }
.market-live-badge { display: flex; align-items: center; gap: 9px; padding: 10px 13px; color: #a8b0bc; background: #0e1116; border: 1px solid #1e232c; border-radius: 999px; font-size: 12px; white-space: nowrap; }
.market-live-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(22,199,132,.1); }
.market-summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.market-summary-card { min-height: 132px; padding: 20px; background: linear-gradient(155deg, #111419, #0a0c10); border: 1px solid #1b2028; border-radius: 14px; }
.market-summary-card span { display: block; color: var(--muted); font-size: 12px; }
.market-summary-card strong { display: block; margin: 15px 0 4px; font-size: 26px; line-height: 1; letter-spacing: -.035em; }
.market-summary-card small { color: #606a78; font-size: 11px; }
.market-center { overflow: hidden; background: #0a0c10; border-color: #1a1f27; }
.market-center-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 24px 18px; }
.market-center-head h2 { font-size: 23px; letter-spacing: -.025em; }
.market-center-head p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.market-search { width: min(390px, 44vw); height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 11px 0 13px; background: #101319; border: 1px solid #232933; border-radius: 10px; transition: border-color .15s ease; }
.market-search:focus-within { border-color: #5f6875; }
.market-search > span { color: #88919e; font-size: 20px; transform: translateY(-1px); }
.market-search input { min-width: 0; flex: 1; color: var(--text); background: transparent; border: 0; outline: 0; }
.market-search input::placeholder { color: #606977; }
.market-search kbd { padding: 2px 7px; color: #707986; background: #171b22; border: 1px solid #292f39; border-radius: 5px; font: 11px/1.4 inherit; }
.market-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 0 20px 14px; border-bottom: 1px solid #191e25; scrollbar-width: none; }
.market-tabs::-webkit-scrollbar { display: none; }
.market-tab { flex: 0 0 auto; padding: 8px 12px; color: #87909d; background: transparent; border-radius: 8px; font-weight: 650; }
.market-tab:hover { color: #d6dbe1; background: #13171d; }
.market-tab.active { color: #08090b; background: #f2f4f6; }
.market-table-toolbar { min-height: 51px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 20px; color: var(--muted); border-bottom: 1px solid #171b22; font-size: 12px; }
.market-quick-sort { display: flex; gap: 7px; }
.market-sort-chip { padding: 6px 9px; color: #808997; background: #11151b; border: 1px solid #202630; border-radius: 7px; font-size: 11px; }
.market-sort-chip.active, .market-sort-chip:hover { color: #f0f2f4; border-color: #3d4653; }
.market-list-head, .market-list-row { display: grid; grid-template-columns: minmax(230px, 1.5fr) minmax(130px, .9fr) minmax(110px, .7fr) minmax(150px, 1fr) minmax(145px, 1fr) 72px; gap: 18px; align-items: center; }
.market-list-head { min-height: 46px; padding: 0 20px; color: #697382; border-bottom: 1px solid #171b22; font-size: 11px; }
.market-list-head button { text-align: left; color: inherit; background: transparent; font-size: inherit; }
.market-list-head button i { margin-left: 3px; color: #414956; font-style: normal; }
.market-list-row { min-height: 74px; padding: 10px 20px; border-bottom: 1px solid #151920; transition: background .15s ease; }
.market-list-row:hover { background: #0f1217; }
.market-list-row:last-child { border-bottom: 0; }
.market-pair-cell { min-width: 0; display: flex; align-items: center; gap: 11px; }
.market-star { flex: 0 0 20px; color: #343b46; background: transparent; font-size: 16px; }
.market-star:hover, .market-star.active { color: #f0b90b; }
.market-coin-avatar { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 34px; color: #0b0c0e; background: #f0f2f4; border-radius: 50%; font-weight: 900; }
.market-pair-copy { min-width: 0; display: grid; }
.market-pair-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.market-pair-copy strong small { margin-left: 3px; color: #707987; font-size: 10px; font-weight: 650; }
.market-pair-copy em { overflow: hidden; margin-top: 2px; color: #626c79; font-size: 11px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.market-hot-tag { padding: 2px 5px; color: #e8ba35; background: rgba(240,185,11,.08); border: 1px solid rgba(240,185,11,.16); border-radius: 4px; font-size: 8px; font-weight: 900; letter-spacing: .05em; }
.market-price-cell { display: grid; }
.market-price-cell strong { font-size: 13px; }
.market-price-cell small { margin-top: 2px; color: #5f6875; font-size: 10px; }
.market-change-pill { display: inline-flex; min-width: 72px; justify-content: center; padding: 5px 8px; border-radius: 7px; font-weight: 750; font-variant-numeric: tabular-nums; }
.market-change-pill.positive { color: #31d69a; background: rgba(22,199,132,.08); }
.market-change-pill.negative { color: #ff6470; background: rgba(234,57,67,.08); }
.market-high-low { display: grid; font-size: 12px; }
.market-high-low small { margin-top: 2px; color: #68717e; }
.market-volume-cell { color: #d4d8de; font-size: 12px; }
.market-volume-cell small { color: #68717e; }
.market-action-cell { text-align: right; }
.market-trade-link { display: inline-flex; align-items: center; justify-content: center; min-width: 55px; padding: 6px 10px; color: #08090b; background: #f2f4f6; border-radius: 7px; font-size: 11px; font-weight: 800; }
.market-trade-link.preview { color: #b8c0cb; background: #151920; border: 1px solid #242a34; }
.market-loading-state, .market-empty-state { min-height: 260px; display: grid; place-content: center; gap: 6px; color: var(--muted); text-align: center; }
.market-empty-state strong { color: #d9dde3; }
.market-empty-state span { color: #697382; font-size: 12px; }
.market-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 18px; border-top: 1px solid #171b22; }
.market-pagination span { min-width: 92px; color: #7a8492; text-align: center; font-size: 12px; }
.market-pagination .btn { min-width: 78px; }
.market-note-panel { display: flex; gap: 13px; align-items: flex-start; margin-top: 16px; padding: 16px 18px; color: #7d8795; background: rgba(255,255,255,.025); border: 1px solid #191e25; border-radius: 12px; }
.market-note-icon { width: 24px; height: 24px; display: grid; place-items: center; flex: 0 0 24px; color: #0a0b0d; background: #dfe3e8; border-radius: 50%; font-weight: 900; }
.market-note-panel strong { color: #d7dce2; font-size: 12px; }
.market-note-panel p { margin-top: 3px; font-size: 11px; }
@media (max-width: 1040px) {
  .market-summary-grid { grid-template-columns: 1fr 1fr; }
  .market-list-head, .market-list-row { grid-template-columns: minmax(220px, 1.45fr) minmax(130px, .8fr) minmax(100px, .65fr) minmax(140px, .9fr) 70px; }
  .market-list-head > :nth-child(4), .market-list-row > :nth-child(4) { display: none; }
}
@media (max-width: 760px) {
  .markets-container { width: min(100% - 20px, 1420px); padding-top: 34px; }
  .markets-hero { align-items: flex-start; flex-direction: column; }
  .markets-hero p { font-size: 14px; }
  .market-summary-grid { gap: 8px; }
  .market-summary-card { min-height: 112px; padding: 16px; }
  .market-summary-card strong { font-size: 21px; }
  .market-center-head { align-items: stretch; flex-direction: column; padding: 18px 14px 14px; }
  .market-search { width: 100%; }
  .market-tabs { padding-left: 10px; padding-right: 10px; }
  .market-table-toolbar { padding: 0 12px; }
  .market-list-head { display: none; }
  .market-list-row { grid-template-columns: minmax(0, 1.35fr) minmax(95px, .8fr) 84px; gap: 10px; min-height: 78px; padding: 12px; }
  .market-list-row > :nth-child(4), .market-list-row > :nth-child(5), .market-list-row > :nth-child(6) { display: none; }
  .market-star { display: none; }
  .market-hot-tag { display: none; }
  .market-coin-avatar { width: 30px; height: 30px; flex-basis: 30px; }
  .market-change-pill { min-width: 68px; }
}
@media (max-width: 460px) {
  .market-summary-grid { grid-template-columns: 1fr 1fr; }
  .market-summary-card { min-height: 100px; }
  .market-summary-card:nth-child(4) strong { font-size: 16px; }
  .market-live-badge { display: none; }
  .market-quick-sort { display: none; }
  .market-list-row { grid-template-columns: minmax(0, 1.25fr) minmax(82px, .72fr) 74px; }
  .market-pair-copy em { max-width: 130px; }
}

/* YunQ Pay v2.3 - 多币种现货交易 */
.market-strip-v23 { position: relative; flex-wrap: wrap; }
.trade-symbol-selector { position: relative; flex: 0 0 auto; }
.trade-symbol-trigger { min-width: 220px; height: 58px; display: flex; align-items: center; gap: 11px; padding: 8px 12px; color: var(--text); background: #10141b; border: 1px solid #262d38; border-radius: 11px; text-align: left; transition: border-color .15s ease, background .15s ease; }
.trade-symbol-trigger:hover, .trade-symbol-trigger[aria-expanded="true"] { background: #141922; border-color: #4d5868; }
.trade-symbol-trigger > span:nth-child(2) { min-width: 0; flex: 1; display: grid; gap: 3px; }
.trade-symbol-trigger strong { font-size: 15px; letter-spacing: .01em; }
.trade-symbol-trigger small { overflow: hidden; color: #7f8998; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.trade-symbol-trigger > i { color: #747e8c; font-size: 18px; font-style: normal; }
.trade-symbol-avatar, .trade-symbol-option-avatar { display: inline-grid; place-items: center; flex: 0 0 auto; color: #080a0e; background: #f5f7fa; border-radius: 50%; font-weight: 800; }
.trade-symbol-avatar { width: 36px; height: 36px; font-size: 15px; }
.trade-symbol-popover { position: absolute; z-index: 40; top: calc(100% + 8px); left: 0; width: min(390px, calc(100vw - 34px)); max-height: 500px; display: none; padding: 10px; background: #0d1117; border: 1px solid #29313d; border-radius: 13px; box-shadow: 0 24px 65px rgba(0,0,0,.5); }
.trade-symbol-popover.open { display: block; }
.trade-symbol-search { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 11px; margin-bottom: 8px; background: #151a22; border: 1px solid #282f3a; border-radius: 8px; }
.trade-symbol-search span { color: #7f8998; font-size: 18px; }
.trade-symbol-search input { min-width: 0; flex: 1; color: var(--text); background: transparent; border: 0; outline: 0; }
.trade-symbol-list { max-height: 410px; overflow: auto; overscroll-behavior: contain; }
.trade-symbol-option { width: 100%; min-height: 60px; display: flex; align-items: center; gap: 10px; padding: 8px 9px; color: var(--text); background: transparent; border-radius: 8px; text-align: left; }
.trade-symbol-option:hover, .trade-symbol-option.active { background: #171c24; }
.trade-symbol-option.active { box-shadow: inset 2px 0 #f2f4f7; }
.trade-symbol-option-avatar { width: 30px; height: 30px; font-size: 12px; }
.trade-symbol-option-copy { min-width: 0; flex: 1; display: grid; gap: 2px; }
.trade-symbol-option-copy strong { font-size: 13px; }
.trade-symbol-option-copy small { overflow: hidden; color: #727d8c; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.trade-symbol-option-price { display: grid; gap: 2px; text-align: right; font-variant-numeric: tabular-nums; }
.trade-symbol-option-price strong { font-size: 12px; }
.trade-symbol-option-price small { font-size: 10px; }
.market-stat b, .book-head b { font-weight: inherit; }
.trade-page-v23 .symbol-block { min-width: 178px; }
.trade-page-v23 .market-stats { flex: 1 1 560px; }
.trade-page-v23 .data-source { white-space: nowrap; }

@media (max-width: 900px) {
  .trade-page-v23 .market-strip-v23 { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; }
  .trade-page-v23 .trade-symbol-selector { grid-column: 1 / -1; }
  .trade-page-v23 .trade-symbol-trigger { width: 100%; }
  .trade-page-v23 .symbol-block { min-width: 0; }
  .trade-page-v23 .market-stats { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 560px) {
  .trade-symbol-popover { position: fixed; top: 74px; right: 12px; left: 12px; width: auto; max-height: calc(100vh - 95px); }
  .trade-symbol-list { max-height: calc(100vh - 165px); }
  .trade-page-v23 .market-strip-v23 { grid-template-columns: 1fr; }
  .trade-page-v23 .market-strip-v23 > .data-source { justify-self: start; }
}

/* YunQ Pay v2.4 多币种资产中心 */
.asset-center-page {
  background:
    radial-gradient(circle at 50% -15%, rgba(255,255,255,.055), transparent 32%),
    #06080c;
}
.asset-center-container {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 52px;
  display: grid;
  gap: 16px;
}
.asset-overview {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(360px, 1.15fr) minmax(520px, 1fr);
  gap: 28px;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.045), transparent 42%),
    #0b0e13;
}
.asset-overview::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  right: -210px;
  top: -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.08), transparent 68%);
  pointer-events: none;
}
.asset-overview-main { position: relative; z-index: 1; }
.asset-overview-label { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; }
.asset-privacy-button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #aeb5c0;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
}
.asset-privacy-button:hover { color: #fff; background: rgba(255,255,255,.08); }
.asset-total-line { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; }
.asset-total-line strong { font-size: clamp(40px, 4vw, 58px); line-height: 1; letter-spacing: -2.4px; }
.asset-total-line span { color: #b2bac6; font-weight: 750; }
.asset-equivalent { margin-top: 9px; color: #697382; font-size: 12px; }
.asset-overview-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 25px; }
.asset-overview-actions .btn { min-width: 88px; }
.asset-overview-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.asset-overview-metrics article {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 17px;
  background: rgba(255,255,255,.028);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
}
.asset-overview-metrics article > span { color: var(--muted); font-size: 11px; }
.asset-overview-metrics article strong { margin-top: 8px; font-size: 20px; letter-spacing: -.5px; }
.asset-overview-metrics article small { margin-top: 3px; color: #687281; font-size: 11px; }
.asset-insight-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr); gap: 16px; }
.asset-allocation-body { padding: 22px; }
.allocation-track {
  height: 13px;
  display: flex;
  overflow: hidden;
  background: #080a0e;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
}
.allocation-segment { display: block; min-width: 3px; }
.allocation-color-0 { background: #f0f2f5; }
.allocation-color-1 { background: #9da6b4; }
.allocation-color-2 { background: #6d7787; }
.allocation-color-3 { background: #4d5664; }
.allocation-color-4 { background: #323945; }
.allocation-color-5 { background: #222832; }
.allocation-list { display: grid; gap: 4px; margin-top: 18px; }
.allocation-item {
  display: grid;
  grid-template-columns: 10px minmax(110px, 1fr) minmax(120px, auto) 70px;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border-bottom: 1px solid var(--line-soft);
}
.allocation-item:last-child { border-bottom: 0; }
.allocation-dot { width: 8px; height: 8px; border-radius: 50%; }
.allocation-item > div { display: grid; line-height: 1.25; }
.allocation-item > div strong { font-size: 12px; }
.allocation-item > div small { color: var(--muted-2); font-size: 10px; }
.allocation-item > span:nth-child(3) { text-align: right; color: #c9ced6; font-size: 12px; }
.allocation-item b { text-align: right; font-size: 11px; }
.asset-skeleton-line { height: 35px; border-radius: 8px; background: linear-gradient(90deg, #11151b, #181d25, #11151b); background-size: 200% 100%; animation: asset-shimmer 1.4s linear infinite; }
.asset-skeleton-line.short { width: 70%; }
@keyframes asset-shimmer { to { background-position: -200% 0; } }
.asset-shortcut-grid { padding: 14px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.asset-shortcut-grid a {
  min-height: 100px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 14px;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  transition: .18s ease;
}
.asset-shortcut-grid a:hover { transform: translateY(-2px); background: rgba(255,255,255,.05); border-color: #353d49; }
.asset-shortcut-grid a > span { width: 28px; height: 28px; display: grid; place-items: center; margin-bottom: 4px; color: #fff; background: #1a1f28; border-radius: 8px; font-size: 16px; }
.asset-shortcut-grid strong { font-size: 13px; }
.asset-shortcut-grid small { color: var(--muted); font-size: 10px; }
.asset-list-panel, .asset-flow-panel { overflow: hidden; }
.asset-list-heading, .asset-flow-header {
  min-height: 78px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line-soft);
}
.asset-list-heading h2, .asset-flow-header h2 { font-size: 17px; }
.asset-list-heading p, .asset-flow-header p { margin-top: 3px; color: var(--muted); font-size: 11px; }
.asset-toolbar { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 9px; }
.asset-search-wrap {
  width: 245px;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  background: #080a0e;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.asset-search-wrap span { color: var(--muted); }
.asset-search-wrap input { width: 100%; color: var(--text); background: transparent; border: 0; outline: 0; }
.asset-search-wrap:focus-within { border-color: #4b5565; }
.asset-toggle-label { min-height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 11px; color: var(--muted); background: #0a0d12; border: 1px solid var(--line); border-radius: 9px; font-size: 11px; cursor: pointer; }
.asset-toggle-label input { accent-color: #fff; }
.asset-table { min-width: 1120px; }
.asset-table td { height: 64px; }
.asset-coin-cell > div { display: grid; line-height: 1.25; }
.asset-coin-cell small { color: var(--muted-2); font-size: 10px; }
.asset-row-actions { display: flex; align-items: center; gap: 12px; }
.asset-row-actions a { color: #c5cbd4; font-size: 11px; font-weight: 700; }
.asset-row-actions a:hover { color: #fff; }
.asset-table-footer { min-height: 43px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; color: var(--muted-2); font-size: 10px; border-top: 1px solid var(--line-soft); }
.asset-flow-tabs { justify-content: flex-end; }
.asset-flow-table { min-width: 880px; }
.flow-type { min-height: 24px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 999px; font-size: 10px; font-weight: 750; }
.flow-deposit { color: #43dba2; background: var(--green-soft); }
.flow-withdraw { color: #ff747d; background: var(--red-soft); }
.flow-trade { color: #d9dde4; background: rgba(255,255,255,.075); }
.flow-adjustment { color: #ffd364; background: rgba(240,185,11,.11); }
.flow-detail { display: grid; gap: 2px; }
.flow-detail small { color: var(--muted-2); font-size: 10px; }
.asset-risk-note { padding: 3px 4px 0; color: #5f6876; font-size: 10px; text-align: center; }
.empty-state.compact { padding: 24px 10px; }

@media (max-width: 1050px) {
  .asset-overview { grid-template-columns: 1fr; }
  .asset-insight-grid { grid-template-columns: 1fr; }
  .asset-shortcut-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 820px) {
  .asset-center-container { width: calc(100% - 20px); padding-top: 16px; }
  .asset-overview { padding: 21px; }
  .asset-list-heading, .asset-flow-header { align-items: flex-start; flex-direction: column; }
  .asset-toolbar { width: 100%; justify-content: flex-start; }
  .asset-search-wrap { flex: 1; min-width: 220px; }
  .asset-flow-tabs { width: 100%; justify-content: flex-start; }
}
@media (max-width: 620px) {
  .asset-overview { gap: 22px; }
  .asset-total-line strong { font-size: 36px; letter-spacing: -1.5px; }
  .asset-overview-metrics { grid-template-columns: 1fr 1fr; }
  .asset-overview-metrics article { min-height: 96px; padding: 13px; }
  .asset-overview-metrics article strong { font-size: 16px; }
  .asset-overview-actions .btn { min-width: calc(50% - 5px); flex: 1; }
  .asset-shortcut-grid { grid-template-columns: 1fr 1fr; }
  .allocation-item { grid-template-columns: 9px 1fr auto; }
  .allocation-item b { display: none; }
  .asset-search-wrap { width: 100%; flex-basis: 100%; }
  .asset-toggle-label { flex: 1; }
  .asset-table-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 2px; padding: 8px 14px; }
}

/* YunQ Pay v2.5 订单中心 */
.order-center-page { background: radial-gradient(circle at 80% -15%, rgba(255,255,255,.055), transparent 31%), var(--bg); }
.order-center-container { width: min(1460px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 46px; }
.order-page-heading { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.order-page-heading h1 { margin-top: 3px; font-size: 30px; letter-spacing: -.8px; }
.order-page-heading p { margin-top: 5px; color: var(--muted); font-size: 12px; }
.order-eyebrow { color: #737d8c; font-size: 10px; font-weight: 800; letter-spacing: 1.8px; }
.order-heading-actions { display: flex; align-items: center; gap: 10px; }
.order-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.order-summary-card { min-height: 116px; padding: 18px 20px; display: grid; align-content: center; }
.order-summary-card span { color: var(--muted); font-size: 11px; }
.order-summary-card strong { margin: 7px 0 2px; font-size: 25px; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.4px; }
.order-summary-card small { color: var(--muted-2); font-size: 9px; letter-spacing: .3px; }
.order-center-panel { overflow: hidden; }
.order-tab-header { min-height: 58px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line-soft); }
.order-main-tabs .tab-button { min-height: 40px; display: inline-flex; align-items: center; gap: 7px; }
.order-main-tabs .tab-button b { min-width: 19px; height: 19px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; color: #818b9b; background: rgba(255,255,255,.055); border-radius: 999px; font-size: 9px; }
.order-main-tabs .tab-button.active b { color: #111; background: #fff; }
.order-filter-bar { min-height: 68px; padding: 13px 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 9px; background: #0a0d12; border-bottom: 1px solid var(--line-soft); }
.order-search-field { width: 270px; height: 40px; padding: 0 12px; display: flex; align-items: center; gap: 8px; color: var(--muted); background: #07090d; border: 1px solid var(--line); border-radius: 9px; }
.order-search-field:focus-within { border-color: #4e5766; }
.order-search-field input { width: 100%; color: var(--text); background: transparent; border: 0; outline: 0; }
.order-filter-select { height: 40px; min-width: 124px; padding: 0 30px 0 11px; color: #cdd2da; background: #07090d; border: 1px solid var(--line); border-radius: 9px; outline: 0; }
.order-filter-select:focus { border-color: #4e5766; }
.order-result-line { min-height: 39px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--muted-2); font-size: 10px; border-bottom: 1px solid var(--line-soft); }
.order-center-table { min-width: 1390px; }
.order-center-table th { height: 44px; background: #0c0f14; }
.order-center-table td { height: 62px; }
.order-center-table tbody tr:last-child td { border-bottom: 0; }
.order-id-time { display: grid; gap: 3px; }
.order-id-time strong { color: #dce0e6; font-size: 11px; }
.order-id-time small { color: var(--muted-2); font-size: 9px; }
.order-symbol-link { color: #eef1f5; font-weight: 760; }
.order-symbol-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.order-side-label { font-weight: 780; }
.order-progress-cell { min-width: 110px; display: grid; grid-template-columns: 74px auto; align-items: center; gap: 7px; }
.order-progress-cell > span { height: 4px; overflow: hidden; background: #242a34; border-radius: 999px; }
.order-progress-cell > span i { height: 100%; display: block; background: #e8ebef; border-radius: inherit; }
.order-progress-cell small { color: var(--muted); font-size: 9px; }
.order-row-actions { display: flex; align-items: center; gap: 12px; }
.order-text-button { padding: 4px 0; color: #b9c0ca; background: transparent; font-size: 11px; font-weight: 750; }
.order-text-button:hover { color: #fff; }
.order-text-button.danger { color: #ff727b; }
.order-role-badge { min-height: 23px; padding: 0 8px; display: inline-flex; align-items: center; color: #bdc4cf; background: rgba(255,255,255,.06); border-radius: 999px; font-size: 9px; font-weight: 800; }
.order-pagination { min-height: 54px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 15px; color: var(--muted); border-top: 1px solid var(--line-soft); }
.order-pagination > div { display: flex; gap: 8px; }
.order-risk-note { margin-top: 12px; color: #5e6673; font-size: 10px; text-align: center; }
.order-modal { display: none; position: fixed; inset: 0; z-index: 200; }
.order-modal.open { display: grid; place-items: center; }
.order-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(8px); }
.order-modal-card { position: relative; width: min(720px, calc(100% - 28px)); max-height: calc(100vh - 42px); overflow: auto; background: #10141b; border: 1px solid #2a313d; border-radius: 16px; box-shadow: 0 35px 100px rgba(0,0,0,.62); animation: pop .16s ease-out; }
.order-modal-header { min-height: 78px; padding: 17px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-soft); }
.order-modal-header span { color: var(--muted-2); font-size: 9px; font-weight: 800; letter-spacing: 1.5px; }
.order-modal-header h2 { margin-top: 2px; font-size: 19px; }
.order-modal-close { width: 34px; height: 34px; color: #a5adba; background: #191e27; border-radius: 9px; font-size: 22px; line-height: 1; }
.order-modal-close:hover { color: #fff; }
.order-detail-grid { padding: 18px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-soft); }
.order-detail-item { min-height: 68px; padding: 12px 14px; display: grid; align-content: center; gap: 5px; background: #10141b; }
.order-detail-item span { color: var(--muted); font-size: 10px; }
.order-detail-item strong { font-size: 13px; font-weight: 720; word-break: break-word; }
.order-modal-footer { min-height: 68px; padding: 13px 20px; display: flex; align-items: center; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--line-soft); }
body.modal-open { overflow: hidden; }

@media (max-width: 1050px) {
  .order-summary-grid { grid-template-columns: 1fr 1fr; }
  .order-tab-header { align-items: flex-start; flex-direction: column; padding-top: 10px; padding-bottom: 10px; }
  .order-main-tabs { width: 100%; }
}
@media (max-width: 760px) {
  .order-center-container { width: calc(100% - 20px); padding-top: 17px; }
  .order-page-heading { align-items: flex-start; flex-direction: column; }
  .order-page-heading h1 { font-size: 26px; }
  .order-heading-actions { width: 100%; }
  .order-heading-actions .btn { flex: 1; }
  .order-filter-bar { align-items: stretch; }
  .order-search-field { width: 100%; }
  .order-filter-select { flex: 1; min-width: calc(50% - 5px); }
  .order-filter-bar > .btn { flex: 1; }
  .order-result-line { align-items: flex-start; flex-direction: column; justify-content: center; padding-top: 8px; padding-bottom: 8px; }
  .order-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .order-summary-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .order-summary-card { min-height: 100px; padding: 14px; }
  .order-summary-card strong { font-size: 21px; }
  .order-tab-header { padding-left: 10px; padding-right: 10px; }
  .order-main-tabs .tab-button { padding: 0 10px; }
  .order-filter-select { min-width: 100%; }
  .order-pagination { align-items: flex-start; flex-direction: column; justify-content: center; padding-top: 10px; padding-bottom: 10px; }
  .order-pagination > div { width: 100%; }
  .order-pagination .btn { flex: 1; }
  .order-modal-footer .btn { flex: 1; }
}
.admin-order-table { min-width: 1120px; }
.admin-order-table td { height: 57px; }

/* YunQ Pay v2.6 管理控制台 */
.admin-v26-page {
  background:
    radial-gradient(circle at 50% -25%, rgba(255,255,255,.065), transparent 33%),
    #06080b;
}
.admin-topbar { background: rgba(6,8,11,.9); }
.admin-brand-copy { display: grid; line-height: 1.05; }
.admin-brand-copy strong { font-size: 16px; }
.admin-brand-copy small { margin-top: 4px; color: var(--muted-2); font-size: 9px; letter-spacing: 1.8px; }
.admin-key-inline {
  height: 38px; display: flex; align-items: center; overflow: hidden;
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel);
}
.admin-key-inline span { padding: 0 9px; color: var(--muted); font-size: 11px; border-right: 1px solid var(--line); }
.admin-key-inline input { width: 116px; height: 36px; padding: 0 10px; color: var(--text); background: transparent; border: 0; outline: none; }
.admin-console { padding-top: 28px; }
.admin-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.admin-kicker { margin-bottom: 6px; color: #77808e; font-size: 10px; font-weight: 800; letter-spacing: 2.5px; }
.admin-hero h1 { font-size: 32px; letter-spacing: -.7px; }
.admin-hero p { margin-top: 5px; color: var(--muted); }
.admin-health { min-height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 13px; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.admin-health i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(22,199,132,.09); }
.admin-health strong { margin-left: 5px; color: var(--text); font-size: 11px; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.admin-stat-card { min-width: 0; padding: 17px; background: linear-gradient(145deg, #10141b, #0b0e13); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); }
.admin-stat-card span { display: block; color: var(--muted); font-size: 11px; }
.admin-stat-card strong { display: block; margin: 7px 0 3px; overflow: hidden; text-overflow: ellipsis; font-size: 24px; font-weight: 850; font-variant-numeric: tabular-nums; }
.admin-stat-card small { color: var(--muted-2); font-size: 10px; }
.admin-stat-error { grid-column: span 2; border-color: rgba(234,57,67,.35); }
.admin-tabs { position: sticky; top: 66px; z-index: 40; display: flex; gap: 4px; overflow-x: auto; margin-bottom: 14px; padding: 7px; background: rgba(10,13,18,.94); border: 1px solid var(--line); border-radius: 12px; backdrop-filter: blur(14px); }
.admin-tab { min-height: 38px; padding: 0 15px; color: var(--muted); background: transparent; border-radius: 8px; white-space: nowrap; font-weight: 700; }
.admin-tab:hover { color: var(--text); background: rgba(255,255,255,.035); }
.admin-tab.active { color: #080a0e; background: #f2f4f7; }
.admin-tab-panel { display: none; animation: admin-panel-in .18s ease; }
.admin-tab-panel.active { display: block; }
@keyframes admin-panel-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.admin-overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.admin-overview-wide { grid-column: 1 / -1; }
.admin-compact-table { min-width: 620px; }
.admin-compact-table td { height: 56px; }
.admin-text-btn { color: #aeb6c2; background: transparent; font-size: 12px; }
.admin-text-btn:hover { color: #fff; }
.admin-users-layout { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 14px; }
.admin-users-panel { min-width: 0; }
.admin-toolbar { min-height: 66px; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); }
.admin-search-wrap { position: relative; flex: 1; min-width: 220px; }
.admin-search-wrap > span { position: absolute; z-index: 1; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 19px; }
.admin-search-wrap .input { padding-left: 38px; }
.admin-filter-select { width: 150px; }
.admin-user-table { min-width: 940px; }
.admin-user-table td { height: 64px; }
.admin-user-detail { display: grid; align-content: start; gap: 14px; }
.admin-profile-card { overflow: hidden; }
.admin-profile-head { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.admin-avatar { width: 50px; height: 50px; display: grid; place-items: center; color: #07090d; background: #f3f5f7; border-radius: 15px; font-size: 21px; font-weight: 900; }
.admin-profile-head h3 { font-size: 18px; }
.admin-profile-head p { margin-top: 3px; color: var(--muted); font-size: 11px; }
.admin-profile-meta { display: grid; grid-template-columns: 1fr; gap: 7px; margin-top: 16px; }
.admin-profile-meta > div { display: flex; justify-content: space-between; gap: 18px; padding: 9px 0; border-top: 1px solid var(--line-soft); }
.admin-profile-meta span { color: var(--muted); font-size: 11px; }
.admin-profile-meta strong { max-width: 220px; text-align: right; font-size: 11px; overflow-wrap: anywhere; }
.admin-account-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 13px; }
.admin-note-field { margin-top: 14px; }
.admin-textarea { height: auto; min-height: 84px; padding-top: 11px; padding-bottom: 11px; resize: vertical; line-height: 1.6; }
.admin-side-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.admin-side-title span { color: var(--muted); font-size: 10px; }
.admin-detail-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 14px; margin-top: 14px; }
.admin-detail-wide { grid-column: 1 / -1; }
.admin-wallet-grid { display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 10px; padding: 14px; max-height: 420px; overflow: auto; }
.admin-user-fund-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 14px; }
.admin-fund-record { min-width: 0; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px; background: rgba(255,255,255,.022); border: 1px solid var(--line-soft); border-radius: 10px; }
.admin-fund-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; font-weight: 850; }
.admin-fund-icon.fund-in { color: var(--green); background: var(--green-soft); }
.admin-fund-icon.fund-out { color: var(--red); background: var(--red-soft); }
.admin-fund-icon.fund-adjust { color: #9eb3ff; background: rgba(77,124,255,.12); }
.admin-fund-record > div { min-width: 0; }
.admin-fund-record strong, .admin-fund-record small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-fund-record small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.admin-fund-amount { text-align: right; }
.admin-funds-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.admin-funds-wide { grid-column: 1 / -1; }
.admin-row-actions { display: flex; gap: 6px; }
.admin-market-table { min-width: 1160px; }
.admin-inline-input { width: 110px; height: 32px; padding: 0 9px; color: var(--text); background: #090c11; border: 1px solid var(--line); border-radius: 7px; outline: none; }
.admin-inline-input:focus { border-color: var(--brand); }
.admin-order-input { width: 72px; }
.admin-switch { position: relative; width: 38px; height: 22px; display: inline-block; }
.admin-switch input { position: absolute; opacity: 0; }
.admin-switch i { position: absolute; inset: 0; border-radius: 999px; background: #2b313d; transition: .18s ease; }
.admin-switch i::after { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; border-radius: 50%; background: #9aa4b2; transition: .18s ease; }
.admin-switch input:checked + i { background: rgba(22,199,132,.35); }
.admin-switch input:checked + i::after { transform: translateX(16px); background: var(--green); }
.admin-announcement-layout { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 14px; }
.announcement-content { min-height: 180px; }
.admin-announcement-list { display: grid; gap: 10px; padding: 14px; }
.admin-announcement-card { padding: 16px; background: rgba(255,255,255,.02); border: 1px solid var(--line-soft); border-radius: 11px; }
.admin-announcement-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.admin-announcement-head h3 { font-size: 15px; }
.admin-announcement-head span:not(.status) { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.admin-announcement-card p { margin: 12px 0; color: #b7bec9; white-space: pre-wrap; line-height: 1.7; }
.admin-announcement-actions { display: flex; justify-content: flex-end; gap: 7px; }
.admin-log-table { min-width: 920px; }
.admin-log-detail { max-width: 430px; overflow: hidden; text-overflow: ellipsis; }
.order-symbol-link { color: #c7d2ff; font-weight: 700; }
.order-symbol-link:hover { color: #fff; text-decoration: underline; }

@media (max-width: 1280px) {
  .admin-stat-grid { grid-template-columns: repeat(3, 1fr); }
  .admin-users-layout { grid-template-columns: minmax(0, 1fr) 340px; }
  .admin-wallet-grid { grid-template-columns: repeat(2, minmax(170px, 1fr)); }
}
@media (max-width: 980px) {
  .admin-key-inline { display: none; }
  .admin-users-layout, .admin-announcement-layout { grid-template-columns: 1fr; }
  .admin-user-detail { grid-template-columns: 1fr 1fr; }
  .admin-detail-grid { grid-template-columns: 1fr; }
  .admin-detail-wide { grid-column: auto; }
  .admin-funds-grid { grid-template-columns: 1fr; }
  .admin-funds-wide { grid-column: auto; }
}
@media (max-width: 760px) {
  .admin-hero { align-items: flex-start; flex-direction: column; }
  .admin-health { width: 100%; }
  .admin-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-overview-grid { grid-template-columns: 1fr; }
  .admin-overview-wide { grid-column: auto; }
  .admin-toolbar { align-items: stretch; flex-direction: column; }
  .admin-search-wrap, .admin-filter-select { width: 100%; }
  .admin-user-detail { grid-template-columns: 1fr; }
  .admin-user-fund-list { grid-template-columns: 1fr; }
  .admin-wallet-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .admin-stat-grid { grid-template-columns: 1fr; }
  .admin-hero h1 { font-size: 28px; }
  .admin-account-actions { grid-template-columns: 1fr; }
  .admin-brand-copy { display: none; }
}

/* v2.6 首页公告条 */
.home-announcement-bar { border-bottom: 1px solid rgba(255,255,255,.07); background: #090b0f; }
.home-announcement-inner { min-height: 42px; display: flex; align-items: center; gap: 12px; overflow: hidden; }
.home-announcement-label { flex: 0 0 auto; padding: 3px 8px; color: #080a0d; background: #f3f5f7; border-radius: 5px; font-size: 10px; font-weight: 850; }
.home-announcement-inner strong { flex: 0 0 auto; font-size: 12px; }
.home-announcement-inner p { flex: 1; min-width: 0; color: #8f98a6; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-announcement-inner time { flex: 0 0 auto; color: #5e6878; font-size: 10px; }
@media (max-width: 680px) {
  .home-announcement-inner p, .home-announcement-inner time { display: none; }
  .home-announcement-inner strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* YunQ Pay v2.7 realtime market states */
@keyframes yunq-live-pulse {
  0%, 100% { opacity: .55; transform: scale(.9); }
  50% { opacity: 1; transform: scale(1.18); }
}
@keyframes yunq-price-up {
  0% { background: rgba(22,199,132,.22); }
  100% { background: transparent; }
}
@keyframes yunq-price-down {
  0% { background: rgba(234,57,67,.22); }
  100% { background: transparent; }
}
.price-flash-up { animation: yunq-price-up .7s ease-out; border-radius: 4px; }
.price-flash-down { animation: yunq-price-down .7s ease-out; border-radius: 4px; }
.terminal-live i,
.market-live-badge.is-online i,
.admin-health.is-online i { animation: yunq-live-pulse 1.35s ease-in-out infinite; }
.terminal-live:not(.is-online) { color: #f4b740; }
.terminal-live:not(.is-online) i,
.market-live-badge:not(.is-online) i,
.admin-health.is-warning i { background: #f4b740; box-shadow: 0 0 0 5px rgba(244,183,64,.1); }
.market-live-badge.is-online { color: #c7f7e4; border-color: rgba(22,199,132,.3); }
.admin-health.is-online { border-color: rgba(22,199,132,.28); color: #c7f7e4; }
.admin-health.is-warning { border-color: rgba(244,183,64,.28); color: #f6d58b; }
.trade-row-live { animation: yunq-price-up .75s ease-out; }

/* YunQ Pay v2.8 - Mobile / PWA experience */
:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --mobile-nav-height: 64px;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent;
}
button, a, input, select, textarea { touch-action: manipulation; }
img, svg, canvas { max-width: 100%; }
.pwa-install-link { width: 100%; text-align: left; }
.mobile-bottom-nav, .mobile-trade-switcher { display: none; }

@media (max-width: 820px) {
  body.has-mobile-bottom-nav {
    padding-bottom: calc(var(--mobile-nav-height) + var(--safe-bottom));
  }

  .app-shell { min-height: calc(100vh - var(--mobile-nav-height)); }
  .page-container,
  .narrow-container,
  .markets-container,
  .asset-center-container,
  .order-center-container,
  .admin-console {
    width: min(100% - 20px, 1540px);
    padding-bottom: 28px;
  }

  .topbar {
    top: 0;
    height: calc(58px + var(--safe-top));
    padding-top: var(--safe-top);
    padding-left: max(10px, var(--safe-left));
    padding-right: max(10px, var(--safe-right));
    gap: 9px;
    background: rgba(7, 9, 13, .96);
  }
  .topbar .brand { order: 1; min-width: 0; flex: 1; }
  .topbar .mobile-menu-button { display: none !important; }
  .topbar .brand-mark { width: 34px; height: 34px; flex-basis: 34px; border-radius: 9px; }
  .topbar .brand-name,
  .home-brand-copy { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar .brand-name { display: block; font-size: 14px; }
  .topbar .main-nav { display: none !important; }
  .topbar .top-actions { order: 2; flex: 0 0 auto; gap: 7px; }
  .topbar .top-actions .btn,
  .topbar .icon-button,
  .topbar .account-button {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 10px;
  }
  .topbar .top-actions .btn-secondary,
  .topbar .top-actions .btn-primary:not(.home-btn-primary) { display: none; }
  .topbar .account-label { display: none; }

  .dropdown {
    top: calc(54px + var(--safe-top));
    right: max(10px, var(--safe-right));
    left: max(10px, var(--safe-left));
    width: auto;
    max-height: calc(100dvh - 136px - var(--safe-top) - var(--safe-bottom));
    overflow: auto;
    border-radius: 15px;
  }

  .mobile-bottom-nav {
    position: fixed;
    z-index: 180;
    right: 0;
    bottom: 0;
    left: 0;
    height: calc(var(--mobile-nav-height) + var(--safe-bottom));
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 6px max(6px, var(--safe-right)) var(--safe-bottom) max(6px, var(--safe-left));
    background: rgba(9, 11, 15, .94);
    border-top: 1px solid rgba(255,255,255,.09);
    box-shadow: 0 -14px 38px rgba(0,0,0,.34);
    backdrop-filter: blur(20px) saturate(140%);
  }
  .mobile-bottom-nav a {
    min-width: 0;
    min-height: 52px;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 3px;
    color: #747e8d;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    transition: color .16s ease, background .16s ease, transform .1s ease;
  }
  .mobile-bottom-nav a:active { transform: scale(.94); }
  .mobile-bottom-nav a.active { color: #f7f8fa; background: rgba(255,255,255,.055); }
  .mobile-bottom-nav svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin: 22px 0 14px;
  }
  .section-heading h2 { font-size: 22px; }
  .section-heading > .btn,
  .section-heading > div + a { width: 100%; }

  .panel { border-radius: 13px; box-shadow: 0 10px 32px rgba(0,0,0,.18); }
  .panel-header { min-height: 50px; padding: 0 13px; }
  .panel-body { padding: 13px; }
  .btn { min-height: 44px; }
  .btn-sm { min-height: 36px; }
  .input, .select, textarea.input {
    min-height: 46px;
    font-size: 16px;
  }
  .tabs { scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab-button { min-height: 42px; }
  .toast-stack {
    right: max(10px, var(--safe-right));
    bottom: calc(var(--mobile-nav-height) + var(--safe-bottom) + 10px);
    left: max(10px, var(--safe-left));
  }
  .toast { min-width: 0; width: 100%; max-width: none; }

  /* Tables become readable touch cards instead of compressed columns. */
  .mobile-card-wrap { overflow: visible; }
  .mobile-card-table {
    min-width: 0 !important;
    display: block;
    padding: 10px;
  }
  .mobile-card-table thead { display: none; }
  .mobile-card-table tbody { display: grid; gap: 10px; }
  .mobile-card-table tbody tr {
    display: grid;
    overflow: hidden;
    background: rgba(255,255,255,.018);
    border: 1px solid var(--line-soft);
    border-radius: 12px;
  }
  .mobile-card-table tbody tr:hover td { background: transparent; }
  .mobile-card-table tbody td {
    width: 100%;
    min-height: 42px;
    height: auto;
    display: grid;
    grid-template-columns: minmax(92px, 36%) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: right;
    border-bottom: 1px solid var(--line-soft);
  }
  .mobile-card-table tbody td:last-child { border-bottom: 0; }
  .mobile-card-table tbody td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-family: Inter, ui-sans-serif, sans-serif;
    text-align: left;
  }
  .mobile-card-table tbody td > * { justify-self: end; }
  .mobile-card-table tbody td.mobile-card-empty,
  .mobile-card-table tbody td[colspan] {
    display: block;
    padding: 24px 12px;
    text-align: center;
  }
  .mobile-card-table tbody td.mobile-card-empty::before,
  .mobile-card-table tbody td[colspan]::before { display: none; }
  .mobile-card-table .admin-row-actions,
  .mobile-card-table .order-row-actions { justify-content: flex-end; flex-wrap: wrap; }

  /* Mobile trading terminal: chart, order book and order entry use one tabbed viewport. */
  .mobile-trade-switcher {
    position: sticky;
    z-index: 35;
    top: calc(58px + var(--safe-top));
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 5px;
    margin: 0 0 10px;
    background: rgba(12, 15, 21, .94);
    border: 1px solid var(--line);
    border-radius: 12px;
    backdrop-filter: blur(16px);
  }
  .mobile-trade-switcher button {
    min-height: 40px;
    color: var(--muted);
    background: transparent;
    border-radius: 8px;
    font-weight: 750;
  }
  .mobile-trade-switcher button.active { color: #07090d; background: #f4f6f8; }

  .trade-page-v23 .market-strip-v23 {
    min-height: 0;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 13px;
  }
  .trade-page-v23 .trade-symbol-trigger { min-width: 0; height: 54px; }
  .trade-page-v23 .symbol-block { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; }
  .trade-page-v23 .symbol-line { min-width: 0; }
  .trade-page-v23 .symbol-name { font-size: 18px; }
  .trade-page-v23 .price-line { justify-content: flex-end; margin: 0; }
  .trade-page-v23 .market-price { font-size: 21px; }
  .trade-page-v23 .market-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
  }
  .trade-page-v23 .market-stat {
    min-width: 0;
    padding: 9px;
    background: rgba(255,255,255,.025);
    border: 1px solid var(--line-soft);
    border-radius: 9px;
  }
  .trade-page-v23 .market-stat:nth-child(n+4) { display: none; }
  .trade-page-v23 .market-stat strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .trade-page-v23 .market-strip-v23 > .data-source { font-size: 10px; }

  .trade-page-v23 .trade-workspace { display: block; }
  .trade-page-v23 [data-mobile-trade-panel] { display: none !important; }
  .trade-page-v23[data-mobile-trade-view="chart"] [data-mobile-trade-panel="chart"],
  body[data-mobile-trade-view="chart"] [data-mobile-trade-panel="chart"],
  body[data-mobile-trade-view="book"] [data-mobile-trade-panel="book"],
  body[data-mobile-trade-view="order"] [data-mobile-trade-panel="order"] { display: block !important; }
  body[data-mobile-trade-view="order"] .order-entry-grid { display: grid !important; }
  .trade-page-v23 .chart-panel,
  .trade-page-v23 .orderbook-panel,
  .trade-page-v23 .order-entry-grid { margin: 0 0 10px; }
  .trade-page-v23 #chart,
  .trade-page-v23 .chart-error { height: min(56dvh, 440px); }
  .trade-page-v23 .orderbook-panel { min-height: 600px; }
  .trade-page-v23 .book-row { height: 29px; }
  .trade-page-v23 .order-entry-grid { grid-template-columns: 1fr; gap: 10px; }
  .trade-page-v23 .order-form { padding: 14px; }
  .trade-page-v23 .orders-panel { margin-top: 10px; }
  .trade-page-v23 .orders-panel .panel-header { align-items: flex-start; flex-direction: column; justify-content: center; gap: 5px; padding-top: 8px; padding-bottom: 8px; }

  .trade-symbol-popover {
    top: calc(64px + var(--safe-top));
    right: max(10px, var(--safe-right));
    left: max(10px, var(--safe-left));
    max-height: calc(100dvh - 150px - var(--safe-bottom));
    border-radius: 15px;
  }
  .trade-symbol-list { max-height: calc(100dvh - 220px - var(--safe-bottom)); }

  /* Home */
  .home-page .home-container { width: min(100% - 20px, 1240px); }
  .home-page .home-hero { padding-top: 36px; padding-bottom: 42px; gap: 30px; }
  .home-page .home-hero h1 { font-size: clamp(43px, 13vw, 64px); letter-spacing: -3px; }
  .home-page .home-terminal { border-radius: 17px; }
  .home-page .home-section { padding-top: 64px; }
  .home-page .home-feature-card { min-height: 225px; }
  .home-page .home-footer { padding-bottom: 8px; }

  /* Markets */
  .markets-container { padding-top: 28px; }
  .markets-hero { align-items: flex-start; flex-direction: column; gap: 14px; }
  .markets-hero h1 { font-size: 36px; }
  .market-summary-grid { grid-template-columns: 1fr 1fr; }
  .market-pagination { gap: 8px; padding: 14px 10px; }
  .market-pagination .btn { flex: 1; }

  /* Assets and funding */
  .asset-overview { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
  .asset-overview-metrics { grid-template-columns: 1fr 1fr; }
  .asset-insight-grid { grid-template-columns: 1fr; }
  .asset-total-line strong { font-size: 39px; letter-spacing: -1.8px; }
  .asset-overview-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .asset-overview-actions .btn { width: 100%; }
  .asset-shortcut-grid { grid-template-columns: 1fr 1fr; }
  .allocation-item { grid-template-columns: 10px minmax(0, 1fr) auto; }
  .allocation-item b { display: none; }
  .fund-layout { grid-template-columns: 1fr; }
  .fund-form { padding: 16px; }

  /* Orders and dialogs */
  .order-modal { align-items: end; }
  .order-modal.open { display: grid; place-items: end center; }
  .order-modal-card {
    width: 100%;
    max-height: min(88dvh, 820px);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 20px 20px 0 0;
    padding-bottom: var(--safe-bottom);
  }
  .order-modal-footer { position: sticky; bottom: 0; background: #10141b; }

  /* Admin remains usable on phone: tabs swipe horizontally, detail forms stack. */
  .admin-console { padding-top: 20px; }
  .admin-tabs {
    top: calc(58px + var(--safe-top));
    padding: 6px;
    margin-right: -10px;
    margin-left: -10px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .admin-tabs::-webkit-scrollbar { display: none; }
  .admin-tab { min-height: 42px; }
  .admin-health { min-width: 0; }
  .admin-stat-grid { grid-template-columns: 1fr 1fr; }
  .admin-users-layout,
  .admin-announcement-layout,
  .admin-funds-grid,
  .admin-detail-grid { grid-template-columns: 1fr; }
  .admin-user-detail { grid-template-columns: 1fr; }
  .admin-wallet-grid { grid-template-columns: 1fr; max-height: none; }
  .admin-user-fund-list { grid-template-columns: 1fr; }
  .admin-toolbar { align-items: stretch; flex-direction: column; }
  .admin-search-wrap, .admin-filter-select { width: 100%; }
  .admin-inline-input { width: 100%; min-height: 38px; }

  .footer { padding-bottom: 10px; }
}

@media (max-width: 520px) {
  .topbar .brand-name { max-width: 128px; }
  .topbar .home-brand-copy strong { font-size: 14px; }
  .topbar .home-brand-copy small { display: none; }
  .topbar .top-actions .home-btn-primary { min-width: 64px; }

  .page-container,
  .narrow-container,
  .markets-container,
  .asset-center-container,
  .order-center-container,
  .admin-console { width: min(100% - 14px, 1540px); }

  .mobile-card-table { padding: 7px; }
  .mobile-card-table tbody td { grid-template-columns: minmax(82px, 34%) minmax(0, 1fr); padding: 9px 10px; }

  .trade-page-v23 .symbol-block { grid-template-columns: 1fr; }
  .trade-page-v23 .price-line { justify-content: flex-start; }
  .trade-page-v23 .market-stats { grid-template-columns: 1fr 1fr; }
  .trade-page-v23 .market-stat:nth-child(3) { display: none; }
  .trade-page-v23 #chart,
  .trade-page-v23 .chart-error { height: min(48dvh, 360px); }
  .trade-page-v23 .chart-toolbar { padding: 5px 8px; }
  .trade-page-v23 .period-btn { min-width: 43px; height: 34px; }
  .trade-page-v23 .percent-button { height: 34px; }

  .asset-overview { padding: 16px; }
  .asset-overview-metrics { grid-template-columns: 1fr; }
  .asset-overview-metrics article { min-height: 88px; }
  .asset-overview-actions { grid-template-columns: 1fr; }
  .asset-shortcut-grid { grid-template-columns: 1fr; }
  .allocation-item > span:nth-child(3) { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }

  .admin-stat-grid { grid-template-columns: 1fr; }
  .admin-profile-head { grid-template-columns: 44px minmax(0, 1fr); }
  .admin-profile-head > :last-child { grid-column: 1 / -1; }
}

@media (display-mode: standalone) and (max-width: 820px) {
  body { background: #050608; }
  .topbar { padding-top: max(var(--safe-top), 6px); }
}

@media (max-width: 820px) {
  .admin-topbar #admin-refresh { display: inline-flex !important; min-width: 48px; padding: 0 10px; font-size: 0; }
  .admin-topbar #admin-refresh::before { content: "↻"; font-size: 20px; }
  .admin-topbar .admin-brand-copy { min-width: 0; display: grid; overflow: hidden; line-height: 1.05; }
  .admin-topbar .admin-brand-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
  .admin-topbar .admin-brand-copy small { color: var(--muted); font-size: 8px; letter-spacing: 1px; }
}

/* YunQ Pay v3.0 - USDT TRC20 funds */
.usdt-funds-page{padding-bottom:90px}
.usdt-fund-grid{display:grid;grid-template-columns:minmax(320px,430px) minmax(0,1fr);gap:18px;align-items:start}
.usdt-address-panel{display:flex;flex-direction:column;gap:14px}
.fund-step-label,.deposit-address-label{font-size:13px;color:var(--text-secondary,#94a3b8);font-weight:600}
.deposit-qr-shell{width:210px;height:210px;margin:8px auto;padding:14px;border-radius:20px;background:#fff;display:grid;place-items:center;box-shadow:0 16px 50px rgba(0,0,0,.28)}
.deposit-qr-shell img{width:100%;height:100%;object-fit:contain}
.copy-address-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}
.deposit-meta-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.deposit-meta-grid>div,.withdraw-fee-card>div{padding:12px 14px;border:1px solid var(--border,#1e2632);border-radius:12px;background:rgba(255,255,255,.025);display:flex;flex-direction:column;gap:5px}
.deposit-meta-grid span,.withdraw-fee-card span{font-size:12px;color:var(--text-secondary,#94a3b8)}
.deposit-meta-grid strong,.withdraw-fee-card strong{font-size:14px;color:var(--text-primary,#fff)}
.important-notice{line-height:1.65;border-color:rgba(246,190,0,.28);background:rgba(246,190,0,.07)}
.fund-chain-status{margin:0;text-align:center;font-size:12px;color:var(--text-secondary,#94a3b8)}
.payment-password-setup{margin-bottom:18px}
.payment-password-grid{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:12px;align-items:end}
.withdraw-fee-card{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.chain-link{color:#e9c252;text-decoration:none}.chain-link:hover{text-decoration:underline}
.form-disabled{opacity:.62}
.status-payout{color:#f4c95d;background:rgba(244,201,93,.11);border-color:rgba(244,201,93,.24)}
.status-completed{color:#36d399;background:rgba(54,211,153,.11);border-color:rgba(54,211,153,.24)}
@media(max-width:900px){.usdt-fund-grid{grid-template-columns:1fr}.payment-password-grid{grid-template-columns:1fr 1fr}.payment-password-grid .btn{grid-column:1/-1}.withdraw-fee-card{grid-template-columns:1fr}.deposit-qr-shell{width:190px;height:190px}}
@media(max-width:560px){.payment-password-grid,.deposit-meta-grid{grid-template-columns:1fr}.copy-address-row{grid-template-columns:1fr}.copy-address-row .btn{width:100%}.deposit-qr-shell{width:180px;height:180px}}


/* YunQ Pay v3.0.2 - withdrawal clarity and validation */
.usdt-funds-page .section-heading h2{color:#f8fafc;letter-spacing:-.4px}
.usdt-funds-page .section-heading p{color:#aab5c5}
.usdt-funds-page .fund-layout{gap:20px;grid-template-columns:minmax(360px,460px) minmax(0,1fr)}
.withdraw-form-panel,.withdraw-record-panel{background:linear-gradient(180deg,#121722 0%,#0d1118 100%);border-color:#273142;box-shadow:0 18px 55px rgba(0,0,0,.28)}
.withdraw-form-panel{padding:24px}
.withdraw-form-panel .field-label{color:#aeb9c9;font-size:13px;font-weight:650}
.withdraw-form-panel .input,.withdraw-form-panel .select{height:50px;color:#f8fafc;background:#121925;border-color:#2a3443;border-radius:11px}
.withdraw-form-panel .input::placeholder{color:#667286}
.withdraw-form-panel .input:hover,.withdraw-form-panel .select:hover{border-color:#3a4658}
.withdraw-form-panel .input:focus,.withdraw-form-panel .select:focus{border-color:#4d7cfe;background:#151d2b;box-shadow:0 0 0 3px rgba(77,124,254,.15)}
.withdraw-balance-box{font-size:13px;font-weight:700;color:#dce5f1;background:#111927;border-color:#2b3a50}
.withdraw-balance-box.balance-ok{color:#63ddb0;background:rgba(22,199,132,.08);border-color:rgba(22,199,132,.28)}
.withdraw-balance-box.balance-warning{color:#ff7b84;background:rgba(234,57,67,.08);border-color:rgba(234,57,67,.28)}
.withdraw-fee-card>div{min-height:92px;justify-content:center;background:#151b25;border-color:#2a3443}
.withdraw-fee-card span{color:#a7b2c2;font-size:12px}
.withdraw-fee-card strong{color:#f8fafc;font-size:17px;letter-spacing:-.2px}
.withdraw-fee-card>div:nth-child(2) strong{color:#4adea6}
.withdraw-validation{padding:11px 13px;border-radius:10px;font-size:13px;font-weight:650;line-height:1.45}
.withdraw-validation.validation-error{color:#ff8088;background:rgba(234,57,67,.09);border:1px solid rgba(234,57,67,.3)}
.withdraw-validation.validation-success{color:#4adea6;background:rgba(22,199,132,.09);border:1px solid rgba(22,199,132,.28)}
.withdraw-submit{min-height:48px;font-size:15px;box-shadow:0 10px 26px rgba(77,124,255,.22)}
.withdraw-submit:disabled{background:#222b39;color:#718096;border:1px solid #303b4b;box-shadow:none;opacity:1}
.withdraw-record-panel .panel-header{min-height:58px;background:rgba(255,255,255,.012)}
.withdraw-record-panel .panel-title{color:#f8fafc;font-size:16px}
.withdraw-record-panel .panel-subtitle{color:#9eabbd}
.withdraw-record-panel .data-table th{color:#a9b5c6;background:#10151e}
.withdraw-record-panel .data-table td{color:#e5ebf3;height:58px}
.withdraw-record-panel .data-table tr:hover td{background:rgba(77,124,255,.035)}
.payment-password-setup{background:linear-gradient(180deg,#141b27,#0f141d);border-color:#2c3850}
.payment-password-setup .panel-title{color:#f8fafc}
.payment-password-setup .panel-subtitle{color:#a6b1c1}
.form-disabled{opacity:.78}
@media(max-width:900px){.usdt-funds-page .fund-layout{grid-template-columns:1fr}.withdraw-form-panel{padding:18px}.withdraw-fee-card>div{min-height:72px}}
