.network-modal h2,
.earnings-modal h2 { margin-top: 4px; }
.network-options { display: grid; gap: 9px; margin-top: 18px; }
.network-option { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: left; }
.network-option strong { flex: 1; font-size: 13px; }
.network-option b { color: #8b98aa; font-weight: 700; }
.network-option.selected { border-color: var(--blue-deep); background: #f0f5ff; }
.network-option.selected b { color: var(--blue-deep); }
.earnings-table { max-height: 310px; overflow: auto; margin-top: 15px; border: 1px solid var(--line); border-radius: 12px; }
.earnings-table div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 12px; border-bottom: 1px solid #edf0f5; font-size: 11px; }
.earnings-table div:last-child { border-bottom: 0; }
.earnings-table strong { color: var(--up); }
.trade-card { margin-top: 22px; padding: 16px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.pair-list { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 4px; }
.pair-chip { flex: 0 0 auto; padding: 8px 11px; border-radius: 18px; background: #f2f5fa; color: var(--muted); font-size: 11px; }
.pair-chip.selected { background: #e5efff; color: var(--blue-deep); font-weight: 800; }
.trade-side { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 17px 0 14px; padding: 3px; border-radius: 9px; background: #f2f5fa; }
.trade-side button { padding: 9px; border-radius: 7px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; }
.trade-side button.selected { background: #fff; color: var(--blue-deep); box-shadow: 0 2px 8px rgba(42,72,118,.08); }
.trade-field { display: block; color: var(--muted); font-size: 11px; }
.trade-field input { display: block; width: 100%; height: 44px; margin-top: 7px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); outline: none; }
.trade-field input:focus { border-color: var(--blue-deep); box-shadow: 0 0 0 3px rgba(71,107,209,.12); }
.trade-meta { display: flex; justify-content: space-between; margin: 12px 0 17px; color: var(--muted); font-size: 11px; }
.trade-meta strong { color: var(--ink); }
.position-section { margin-top: 24px; }
.position-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 9px; padding: 14px; border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
.position-row strong { display: block; font-size: 12px; }
.position-row small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.position-row b { color: var(--up); font-size: 12px; }

/* Reference mobile routes: market data, futures order entry and account center. */
.market-page,
.trade-page,
.assets-page,
.user-page { margin: -8px -18px -34px; min-height: calc(100vh - 70px); background: #fff; }
.market-tabs,
.market-mode-tabs,
.trade-mode-tabs,
.assets-tabs,
.account-tabs { display: flex; align-items: center; gap: 28px; padding: 13px 20px 0; border-bottom: 1px solid #eef1f6; }
.market-tabs button,
.market-mode-tabs button,
.trade-mode-tabs button,
.assets-tabs button,
.account-tabs button { position: relative; padding: 0 0 12px; background: transparent; color: #8a8f99; font-size: 14px; white-space: nowrap; }
.market-tabs button.active,
.market-mode-tabs button.active,
.trade-mode-tabs button.active,
.assets-tabs button.active,
.account-tabs button.active { color: var(--ink); font-weight: 800; }
.market-tabs button.active::after,
.market-mode-tabs button.active::after,
.trade-mode-tabs button.active::after,
.assets-tabs button.active::after,
.account-tabs button.active::after { content: ''; position: absolute; left: 50%; bottom: -1px; width: 34px; height: 3px; border-radius: 3px; transform: translateX(-50%); background: #1f62ef; }
.market-mode-tabs { gap: 24px; padding-top: 16px; }
.market-list { padding: 4px 0 86px; }
.market-row { width: 100%; min-height: 96px; display: grid; grid-template-columns: 1.05fr 1fr .75fr; align-items: center; gap: 8px; padding: 11px 20px; text-align: left; border-bottom: 1px solid #eef1f6; background: #fff; }
.market-row span { display: flex; flex-direction: column; gap: 4px; }
.market-row strong { font-size: 15px; letter-spacing: .01em; }
.market-row small { color: #9aa0a9; font-size: 10px; }
.market-row b { font-size: 15px; }
.market-row em { justify-self: end; padding: 7px 8px; border-radius: 14px; color: #fff; font-size: 11px; font-style: normal; font-weight: 800; }
.market-row .up { color: #25a56b; }
.market-row em.up { color: #fff; background: #20b66b; }
.market-row .down { color: #e9554c; }
.market-row em.down { color: #fff; background: #eb5549; }
.market-chart { min-height: 520px; padding: 20px; color: var(--ink); }
.chart-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.chart-toolbar strong, .chart-toolbar small { display: block; }
.chart-toolbar strong { font-size: 16px; }
.chart-toolbar small { margin-top: 5px; color: #22a36b; font-size: 11px; }
.chart-ranges { display: flex; gap: 4px; padding: 3px; border-radius: 8px; background: #f2f5fa; }
.chart-ranges button { min-width: 30px; padding: 6px 5px; border-radius: 6px; background: transparent; color: #8993a2; font-size: 10px; }
.chart-ranges button.active { background: #fff; color: #1f62ef; box-shadow: 0 1px 5px rgba(42,72,118,.10); font-weight: 800; }
.chart-plot { display: grid; grid-template-columns: 54px 1fr; gap: 8px; height: 330px; margin-top: 26px; }
.chart-y-axis { display: flex; flex-direction: column; justify-content: space-between; padding: 1px 0 0; color: #9aa3b0; font-size: 9px; text-align: right; }
.chart-lines { position: relative; border-left: 1px solid #e9edf3; border-bottom: 1px solid #e9edf3; }
.chart-grid-lines { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; }
.chart-grid-lines i { display: block; border-top: 1px dashed #e9edf3; }
.chart-bars { position: absolute; inset: 10px 8px 0; display: flex; align-items: flex-end; gap: 5px; }
.chart-bars i { flex: 1; min-width: 4px; border-radius: 3px 3px 0 0; background: #f08a82; opacity: .82; }
.chart-bars i.up { background: #42bb83; }
.chart-x-axis { display: flex; justify-content: space-between; margin-left: 62px; padding-top: 8px; color: #9aa3b0; font-size: 9px; }
.market-chart .risk-note { display: block; margin-top: 22px; text-align: center; }

.trade-page { position: relative; padding-bottom: 78px; background: #fff; }
.trade-mode-tabs { gap: 24px; padding-top: 14px; }
.trade-pair-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px 7px; }
.pair-switch { display: block; padding: 0; background: transparent; text-align: left; }
.pair-switch strong { display: block; font-size: 16px; }
.pair-switch small { display: block; margin-top: 4px; color: #25a56b; font-size: 11px; }
.trade-pair-head strong { display: block; font-size: 16px; }
.trade-pair-head small { display: block; margin-top: 4px; color: #25a56b; font-size: 11px; }
.trade-pair-head > span { color: #818892; font-size: 20px; }
.trade-form { padding: 0 20px; }
.order-type-tabs { display: flex; gap: 30px; border-bottom: 1px solid #edf0f4; }
.order-type-tabs button { position: relative; padding: 12px 0; background: transparent; color: #8a8f99; font-size: 13px; }
.order-type-tabs button.active { color: var(--ink); font-weight: 800; }
.order-type-tabs button.active::after { content: ''; position: absolute; left: 50%; bottom: -1px; width: 20px; height: 3px; border-radius: 3px; background: #1f62ef; transform: translateX(-50%); }
.trade-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 13px; }
.select-control { min-height: 43px; padding: 0 13px; border: 1px solid #dfe4ec; border-radius: 12px; background: #fff; color: #424b5c; text-align: left; font-size: 12px; }
.trade-page .trade-field { margin-top: 10px; }
.trade-page .trade-field input,
.asset-modal .trade-field input,
.asset-modal .trade-field select { height: 43px; border-radius: 12px; background: #fff; }
.trade-slider { display: flex; justify-content: space-between; align-items: center; height: 36px; margin: 4px 0 0; padding-top: 17px; border-top: 6px solid #eef2f7; color: #8a94a3; font-size: 10px; }
.trade-slider::before { content: ''; position: absolute; width: 10px; height: 10px; margin-top: -23px; border-radius: 50%; background: #1f62ef; }
.trade-summary { display: flex; flex-direction: column; gap: 6px; margin-top: 13px; color: #818998; font-size: 11px; }
.trade-summary span { display: flex; justify-content: space-between; gap: 12px; }
.trade-summary b { color: #303a4c; font-weight: 500; }
.tp-sl { display: flex; align-items: center; gap: 7px; margin-top: 16px; color: #4c5665; font-size: 12px; }
.tp-sl input { width: 20px; height: 20px; accent-color: #1f62ef; }
.trade-page .primary-action { margin-top: 14px; height: 46px; background: #e4edff; color: #2e65d8; }
.trade-page .primary-action.secondary { background: #edf3ff; }
.order-book { margin: 22px 20px 0; border-top: 1px solid #eef1f6; }
.book-head, .book-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 7px 0; font-size: 10px; }
.book-head { color: #8a919d; }
.book-row span { color: #e15a54; }
.book-row.buy span { color: #25a56b; }
.book-row b { font-weight: 500; }
.book-mid { padding: 7px 0; color: #20a76c; font-size: 22px; font-weight: 800; }
.book-mid span { font-size: 17px; }
.orders-tabs { display: flex; gap: 22px; padding: 19px 20px 0; margin-top: 14px; border-top: 1px solid #eef1f6; }
.orders-tabs button { position: relative; padding-bottom: 11px; background: transparent; color: #8a8f99; font-size: 13px; }
.orders-tabs button.active { color: var(--ink); font-weight: 800; }
.orders-tabs button.active::after { content: ''; position: absolute; left: 50%; bottom: -1px; width: 30px; height: 3px; border-radius: 3px; background: #1f62ef; transform: translateX(-50%); }
.orders-empty { min-height: 100px; padding: 38px 20px; text-align: center; color: #a0a6b0; font-size: 12px; }
.orders-empty button { padding: 0; background: transparent; color: #2669dc; font-size: 12px; }
.order-history-row { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid #edf0f5; color: #7d8795; font-size: 11px; }
.order-history-row b { color: #323c4d; font-weight: 500; }

.assets-page { padding-bottom: 82px; }
.assets-tabs { gap: 28px; padding-top: 14px; }
.asset-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 27px 20px 25px; }
.asset-actions button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0; background: transparent; text-align: center; }
.asset-actions span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #d9e5ff; color: #1f62ef; font-size: 21px; font-weight: 800; }
.asset-actions strong { color: #303746; font-size: 12px; font-weight: 500; line-height: 1.15; }
.account-tabs { gap: 28px; padding: 0 20px; }
.assets-page .asset-card { margin: 20px; }
.connect-assets { min-height: 166px; display: flex; align-items: center; justify-content: center; gap: 4px; color: #b2b7c0; font-size: 13px; }
.connect-assets button { padding: 0; background: transparent; color: #2669dc; font-size: 13px; }
.assets-page .position-section { margin: 0 20px; }
.asset-modal .record-list { margin-top: 16px; border: 1px solid #edf0f5; border-radius: 12px; overflow: hidden; }
.record-list div { display: flex; justify-content: space-between; padding: 13px; border-bottom: 1px solid #edf0f5; font-size: 12px; }
.record-list div:last-child { border-bottom: 0; }
.record-list span { color: #7b8798; }
.record-list b { color: #2c3748; }
.asset-modal select { display: block; width: 100%; padding: 0 12px; border: 1px solid var(--line); color: var(--ink); }
.order-center-list { margin: 22px 20px 0; border: 1px solid #edf0f5; border-radius: 13px; overflow: hidden; }
.order-center-list div { display: flex; justify-content: space-between; gap: 12px; padding: 16px 14px; border-bottom: 1px solid #edf0f5; }
.order-center-list div:last-child { border-bottom: 0; }
.order-center-list strong { color: #2d3747; font-size: 12px; }
.order-center-list span { color: #9ba3af; font-size: 11px; }

.user-page { padding: 15px 20px 88px; }
.user-page h1 { margin: 0 0 37px; text-align: center; font-size: 23px; font-weight: 500; }
.user-page h2 { margin: 0; font-size: 23px; font-weight: 500; }
.user-page > p { margin: 12px 0 28px; color: #9b9fa8; font-size: 16px; }
.user-links { display: flex; flex-direction: column; gap: 13px; }
.user-status-row { min-height: 65px; display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 10px; padding: 0 20px; border-radius: 17px; background: #f6f7fb; }
.user-status-row > span { color: #23a26d; font-size: 24px; }
.user-status-row b { color: #23a26d; font-size: 15px; font-weight: 500; }
.user-links button { min-height: 65px; display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 10px; padding: 0 20px; border-radius: 17px; background: #f6f7fb; text-align: left; }
.user-links button > span { color: #6e7787; font-size: 24px; }
.user-links strong { color: #303746; font-size: 16px; font-weight: 500; }
.user-links b { color: #777f8d; font-size: 18px; font-weight: 400; }
.version { display: block; margin-top: 22px; color: #aeb4be; text-align: center; font-size: 10px; }
.user-overlay h2 { margin-bottom: 16px; }
.language-options { display: flex; flex-direction: column; gap: 8px; }
.language-options button { display: flex; justify-content: space-between; align-items: center; padding: 13px; border: 1px solid #edf0f5; border-radius: 12px; background: #fff; text-align: left; }
.language-options button.selected { border-color: #4c76d8; background: #eef4ff; color: #315cc4; }
.language-options b { color: #4c76d8; }
.wallet-picker-layer { align-items: end; }
.wallet-picker { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.wallet-picker-copy { margin: -8px 0 18px; color: #71809a; font-size: 12px; line-height: 1.6; }
.wallet-picker-options { display: grid; gap: 8px; max-height: min(56vh, 420px); overflow-y: auto; }
.wallet-picker-option { display: flex; align-items: center; gap: 11px; min-height: 52px; padding: 10px 12px; border: 1px solid #edf0f5; border-radius: 12px; background: #fff; text-align: left; }
.wallet-picker-option:active { background: #eef4ff; border-color: #4c76d8; }
.wallet-picker-option strong { flex: 1; font-size: 13px; }
.wallet-picker-option b { color: #4c76d8; font-size: 20px; font-weight: 400; }
.wallet-picker-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: #e7efff; color: #5377d0; }
.announcement-list { display: flex; flex-direction: column; gap: 10px; }
.announcement-list article { padding: 13px; border-radius: 12px; background: #f6f8fc; }
.announcement-list strong { display: block; font-size: 12px; }
.announcement-list small { display: block; margin-top: 6px; color: #7c8798; font-size: 10px; line-height: 1.5; }
.support-copy { color: #7c8798; font-size: 12px; line-height: 1.6; }

@media (min-width: 700px) {
  .market-page, .trade-page, .assets-page, .user-page { margin-left: -18px; margin-right: -18px; }
}
