:root {
  color-scheme: dark;
  --bg: #050b18;
  --surface: #0b1425;
  --surface-2: #101c30;
  --line: rgba(148, 163, 184, .13);
  --text: #f7f9fc;
  --muted: #8491a7;
  --blue: #316dff;
  --green: #2ed29b;
  --red: #ff6477;
  --radius: 18px;
  --page-gutter: clamp(12px, 4.8vw, 42px);
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
html { min-height: 100%; background: var(--bg); scrollbar-gutter: stable; }
body { margin: 0; min-width: 320px; min-height: 100%; background: radial-gradient(circle at 50% 0, #0b1a33 0, var(--bg) 34rem); color: var(--text); }
body.modal-open { position: fixed; inset-inline: 0; width: 100%; overflow: hidden; }
button, input, select { font: inherit; }
button { color: inherit; }
.app-shell { width: 100%; min-height: 100vh; min-height: 100svh; margin: 0 auto; background: rgba(5, 11, 24, .96); padding: env(safe-area-inset-top) max(var(--page-gutter), env(safe-area-inset-right)) calc(102px + env(safe-area-inset-bottom)) max(var(--page-gutter), env(safe-area-inset-left)); position: relative; overflow-x: clip; }
.app-shell.route-pending::after { content: ""; position: fixed; z-index: 80; inset: 0 auto auto 50%; width: min(100%, 680px); height: 2px; transform: translateX(-50%); transform-origin: left; background: #4b82ff; animation: route-progress 1.1s cubic-bezier(.2,.8,.2,1) infinite; }
@keyframes route-progress { 0% { clip-path: inset(0 100% 0 0); } 55% { clip-path: inset(0 28% 0 0); } 100% { clip-path: inset(0 0 0 0); opacity: 0; } }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand { min-width: 0; display: inline-flex; align-items: center; gap: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 19px; font-weight: 780; letter-spacing: -.03em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(145deg, #3979ff, #20b6e7); box-shadow: 0 8px 24px rgba(49, 109, 255, .28); }
.brand-mark img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: contain; }
.top-actions { display: flex; gap: 8px; }
.language-trigger span { white-space: nowrap; }
.icon-btn, .chip { border: 1px solid var(--line); background: rgba(16, 28, 48, .8); border-radius: 12px; min-height: 40px; padding: 0 12px; display: inline-flex; gap: 7px; align-items: center; justify-content: center; cursor: pointer; }
.hero { position: relative; min-height: clamp(190px, 54vw, 320px); border-radius: clamp(18px, 4vw, 28px); overflow: hidden; background: #0a1930; border: 1px solid rgba(91, 137, 255, .28); isolation: isolate; }
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; transition: opacity .45s ease; }
.hero-slide.active { opacity: 1; }
.hero-media { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-media-mobile { display: none; }
@media (max-width: 767px) {
  .hero-media-desktop { display: none; }
  .hero-media-mobile { display: block; }
}
.hero-dots { position: absolute; z-index: 3; right: clamp(16px, 4vw, 34px); bottom: clamp(16px, 4vw, 28px); display: flex; align-items: center; gap: 7px; }
.hero-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .5); box-shadow: 0 0 0 1px rgba(5, 11, 24, .22); cursor: pointer; transition: background-color .2s ease; }
.hero-dots button[aria-current="true"] { width: 24px; background: #fff; }
.eyebrow { margin: 0 0 8px; color: #83a7ff; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 750; }
h1 { margin: 0; font-size: clamp(27px, 7vw, 38px); line-height: 1.03; letter-spacing: -.045em; }
.ticker { margin: 14px 0 24px; min-height: 56px; display: flex; align-items: center; gap: 11px; padding: 0 14px; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; color: #c3ccdb; font-size: 13px; }
.ticker i { flex: 0 0 auto; color: #6f98ff; font-size: 19px; }
.ticker-viewport { flex: 1; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ticker-viewport::-webkit-scrollbar { display: none; }
.ticker.is-scrolling .ticker-viewport { overflow-x: hidden; }
.ticker-track { display: flex; width: max-content; }
.ticker.is-scrolling .ticker-track { animation: ticker-scroll var(--ticker-duration, 60s) linear infinite; }
.ticker-sequence { display: flex; align-items: center; gap: 30px; padding-right: 30px; white-space: nowrap; }
.ticker:not(.is-scrolling) .ticker-sequence[aria-hidden="true"] { display: none; }
.ticker-message { display: inline-flex; align-items: center; gap: 8px; }
.ticker-message::after { content: ""; width: 3px; height: 3px; margin-left: 22px; border-radius: 50%; background: #3f5270; }
.ticker:not(.is-scrolling) .ticker-message::after { display: none; }
.ticker-message strong { color: #f6c453; font-size: 13px; }
.ticker-message > span { color: #e5d3a7; }
.ticker.ticker-paused .ticker-track, .ticker.ticker-offscreen .ticker-track { animation-play-state: paused; }
@media (hover: hover) and (pointer: fine) { .ticker:hover .ticker-track { animation-play-state: paused; } }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }
.section-head { display: flex; align-items: end; justify-content: space-between; margin: 26px 2px 14px; }
.section-head h2 { margin: 0; font-size: 19px; letter-spacing: -.025em; }
.section-head p, .text-link { margin: 0; color: var(--muted); font-size: 12px; }
.text-link { background: none; border: 0; cursor: pointer; }
.market-table, .card { border: 1px solid var(--line); background: linear-gradient(145deg, rgba(16, 28, 48, .9), rgba(8, 17, 32, .94)); border-radius: var(--radius); overflow: hidden; }
.market-row { min-height: 72px; display: grid; grid-template-columns: minmax(0, 1fr) 82px 58px 58px; align-items: center; gap: 8px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.market-row[data-action] { width: 100%; color: inherit; background: none; border-top: 0; border-inline: 0; text-align: left; cursor: pointer; }
.market-row[data-action]:hover { background: rgba(49, 109, 255, .045); }
.market-row:last-child { border-bottom: 0; }
.market-row.header { min-height: 45px; color: var(--muted); font-size: 11px; }
.market-row.header span:first-child { padding-inline-start: 46px; }
.market-row.header span:not(:first-child) { text-align: center; }
.instrument-identity { display: flex; min-width: 0; align-items: center; gap: 10px; overflow: hidden; }
.instrument-icon { flex: 0 0 auto; display: grid; width: 36px; height: 36px; place-items: center; overflow: hidden; border: 1px solid rgba(148, 163, 184, .18); border-radius: 50%; color: #dbe6ff; background: linear-gradient(145deg, rgba(49, 109, 255, .3), rgba(28, 52, 91, .55)); box-shadow: inset 0 1px rgba(255, 255, 255, .06); font-size: 10px; font-weight: 800; letter-spacing: .02em; }
.instrument-icon img { width: 100%; height: 100%; object-fit: contain; }
.symbol { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 720; font-size: 14px; }
.symbol small { display: block; margin-top: 5px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-weight: 500; font-size: 11px; }
.price { font-variant-numeric: tabular-nums; font-size: 14px; text-align: right; }
.market-price, .market-change { display: grid; width: 100%; min-height: 30px; place-items: center; overflow: hidden; padding: 0 6px; border-radius: 8px; color: #fff; background: #d43b55; text-align: center; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 750; font-variant-numeric: tabular-nums; }
.market-price.down, .market-change.down { background: #167f57; }
.market-status { display: flex; justify-content: flex-end; }
.market-status-badge { display: inline-flex; width: 100%; min-height: 28px; align-items: center; justify-content: center; padding: 0 6px; border-radius: 8px; color: #fff; background: #c9403d; font-size: 9px; font-weight: 750; white-space: nowrap; }
.market-status-badge.paused { color: #1b273b; background: #d8a63f; }
.bottom-nav { position: fixed; z-index: 20; left: 0; bottom: 0; width: 100%; height: calc(78px + env(safe-area-inset-bottom)); padding: 8px max(8px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(8px, env(safe-area-inset-left)); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: rgba(7, 14, 27, .94); backdrop-filter: blur(18px); border-top: 1px solid var(--line); }
.nav-brand, .nav-language { display: none; }
.nav-item { background: none; border: 0; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; font-size: 10px; }
.nav-item span { min-width: 0; max-width: 100%; overflow-wrap: anywhere; text-align: center; line-height: 1.15; }
.nav-item i { font-size: 23px; }
.nav-item.active { color: #6e99ff; }
.nav-item:focus-visible, .icon-btn:focus-visible, .primary:focus-visible, .secondary:focus-visible, .quick-card:focus-visible, .market-row[data-action]:focus-visible, .text-link:focus-visible, .menu-item:focus-visible, .profile-copy:focus-visible, .period-tabs button:focus-visible, .amount-chips button:focus-visible, .tier-option:focus-visible, .hero-dots button:focus-visible { outline: 2px solid #82a7ff; outline-offset: 2px; }

.page-title { margin: 8px 0 22px; }
.page-title h1 { font-size: 28px; }
.page-title p { color: var(--muted); margin: 9px 0 0; font-size: 13px; }
.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(7px, 2vw, 12px); }
.quick-card { min-height: 112px; padding: 16px 10px; text-align: left; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.quick-card i { display: block; width: 36px; height: 36px; padding: 8px; border-radius: 11px; margin-bottom: 12px; color: #76a0ff; background: rgba(49, 109, 255, .14); font-size: 20px; }
.quick-card strong { display: block; overflow-wrap: anywhere; font-size: 13px; }
.quick-card small { display: block; overflow-wrap: anywhere; color: var(--muted); margin-top: 5px; font-size: 10px; }
.fund-list, .record-list { display: grid; gap: 11px; }
.account-orders { display: grid; gap: 11px; }
.account-overview, .user-layout { display: grid; gap: 14px; }
.fund-card { padding: 18px; }
.fund-actions { display: grid; grid-template-columns: .75fr 1.25fr; gap: 9px; margin-top: 16px; }
.secondary { min-height: 45px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); padding: 0 15px; cursor: pointer; }
.fund-top, .record-top { display: flex; justify-content: space-between; gap: 14px; align-items: start; }
.fund-top p { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.fund-rate { font-size: 25px; font-weight: 800; color: var(--green); letter-spacing: -.04em; }
.fund-meta { display: flex; gap: 18px; color: var(--muted); font-size: 12px; margin-top: 18px; }
.primary { min-height: 45px; border: 0; border-radius: 13px; background: linear-gradient(135deg, #397aff, #2558dc); box-shadow: 0 10px 24px rgba(49, 109, 255, .22); padding: 0 18px; font-weight: 720; cursor: pointer; }
.primary.block { width: 100%; }
.primary:disabled { cursor: wait; opacity: .62; box-shadow: none; }
.balance-card { padding: 23px; background: radial-gradient(circle at 95% 10%, rgba(49,109,255,.28), transparent 45%), var(--surface); }
.balance-label { color: var(--muted); font-size: 12px; }
.balance-value { display: flex; align-items: baseline; gap: 7px; margin: 8px 0 22px; font-size: 34px; font-weight: 800; letter-spacing: -.04em; }
.balance-value small { font-size: 12px; color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat-grid div { padding: 12px 8px; border-radius: 12px; background: rgba(4, 10, 22, .42); }
.stat-grid small { display: block; color: var(--muted); font-size: 10px; margin-bottom: 6px; }
.stat-grid strong { font-size: 12px; }
.menu-list { margin-top: 14px; padding: 4px 16px; }
.menu-item { width: 100%; min-height: 61px; display: flex; align-items: center; gap: 12px; color: var(--text); border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; }
.menu-item:last-child { border-bottom: 0; }
.menu-item i:first-child { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 11px; background: rgba(49,109,255,.12); color: #79a0ff; font-size: 19px; }
.menu-item span { flex: 1; min-width: 0; }
.menu-item i:last-child { color: var(--muted); }
.profile-card { display: grid; gap: 22px; padding: 20px; }
.profile-identity { display: flex; align-items: center; gap: 15px; min-width: 0; }
.avatar { flex: none; width: 58px; height: 58px; border-radius: 19px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, #387cff, #18b9d5); color: #fff; font-size: 23px; }
.avatar img { display: block; width: 100%; height: 100%; object-fit: contain; }
.profile-meta { flex: 1; min-width: 0; width: 100%; }
.profile-identifiers { width: 100%; display: grid; gap: 8px; }
.profile-copy { width: 100%; min-width: 0; min-height: 38px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; margin: 0; padding: 8px 10px; border: 0; border-radius: 9px; background: rgba(49, 109, 255, .08); color: #a9b5c8; cursor: pointer; font-size: 11px; text-align: left; }
.profile-copy span { min-width: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: baseline; gap: 10px; }
.profile-copy b { color: #d5deec; font-weight: 650; }
.profile-copy em { min-width: 0; overflow: hidden; color: #f1f5fb; font-style: normal; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.profile-copy i { flex: none; color: #82a7ff; font-size: 14px; }
.profile-copy:hover { background: rgba(49, 109, 255, .15); color: #d5deec; }
.profile-summary { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: rgba(4, 10, 22, .38); }
.profile-summary div { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) max-content; align-items: center; gap: 16px; padding: 13px 15px; }
.profile-summary div + div { border-top: 1px solid var(--line); }
.profile-summary dt { min-width: 0; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.profile-summary dd { margin: 0; color: #edf2fa; font-size: 14px; font-weight: 720; line-height: 1.35; white-space: nowrap; }
.profile-summary .credit-summary dd { color: var(--green); font-size: 17px; font-variant-numeric: tabular-nums; }
.menu-list-head { padding: 20px 0 14px; border-bottom: 1px solid var(--line); }
.menu-list-head h2 { margin: 0; font-size: 17px; }
.menu-list-head p { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.menu-item span strong, .menu-item span small { display: block; }
.menu-item span strong { font-size: 13px; }
.menu-item span small { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.menu-item.danger-item i:first-child { color: #ff8b98; background: rgba(255,100,119,.1); }
.auth-shell { position: relative; min-height: 100dvh; display: grid; align-content: center; padding: 72px 6px 40px; }
.auth-language { position: absolute; top: max(18px, env(safe-area-inset-top)); right: 6px; }
.auth-brand { margin-bottom: 38px; }
.auth-brand .brand-mark { width: 48px; height: 48px; margin-bottom: 22px; }
.auth-brand-login .brand-mark { width: 88px; height: 88px; margin: 0 auto 28px; border-radius: 24px; }
.auth-brand h1 { max-width: 420px; }
.auth-brand p { color: var(--muted); line-height: 1.6; }
.auth-brand-copy { min-width: 0; }
.auth-welcome { margin: 0 0 8px; color: #9ba8bc; font-size: 13px; font-weight: 650; }
.auth-intro { margin: 16px 0 0; max-width: 520px; }
.auth-online { display: inline-flex; align-items: center; gap: 5px; margin-top: 14px; color: #9ba8bc; font-size: 12px; font-variant-numeric: tabular-nums; }
.auth-online strong { color: #d5dceb; font-weight: 700; }
.auth-online-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--green); }
.auth-actions { min-width: 0; display: grid; gap: 12px; }
.form-card { padding: 20px; }
.auth-support-entry { width: 100%; min-height: 66px; display: flex; align-items: center; gap: 12px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 15px; background: rgba(11, 20, 37, .78); color: var(--text); cursor: pointer; text-align: left; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.auth-support-entry:hover { border-color: rgba(130, 167, 255, .48); background: rgba(16, 28, 48, .92); }
.auth-support-entry:active { transform: translateY(1px); }
.auth-support-entry:focus-visible { outline: 2px solid #82a7ff; outline-offset: 2px; }
.auth-support-icon { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; background: rgba(49, 109, 255, .14); color: #82a7ff; font-size: 20px; }
.auth-support-copy { flex: 1; min-width: 0; }
.auth-support-copy strong, .auth-support-copy small { display: block; }
.auth-support-copy strong { font-size: 13px; }
.auth-support-copy small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.auth-support-entry > i { flex: none; color: #718099; font-size: 17px; }
.field { display: grid; gap: 8px; margin-bottom: 15px; }
.field label { color: #b9c2d2; font-size: 12px; }
.field input, .field select { width: 100%; height: 49px; border: 1px solid var(--line); border-radius: 12px; outline: 0; background: #07101f; color: var(--text); padding: 0 14px; }
.field input:focus { border-color: #4d7fff; box-shadow: 0 0 0 3px rgba(49,109,255,.12); }
.form-foot { margin-top: 18px; text-align: center; color: var(--muted); font-size: 12px; }
.form-foot button { color: #77a0ff; border: 0; background: none; cursor: pointer; }
.form-error { display: none; margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: rgba(255,100,119,.1); color: #ff94a1; font-size: 12px; line-height: 1.45; }
.form-error.show { display: block; }
.bank-binding-note { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; padding: 14px; border: 1px solid rgba(77, 127, 255, .32); border-radius: 14px; background: rgba(49, 109, 255, .08); }
.bank-binding-note > i { flex: none; margin-top: 1px; color: #82a7ff; font-size: 22px; }
.bank-binding-note strong { display: block; color: var(--text); font-size: 13px; line-height: 1.45; }
.bank-binding-note p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.withdraw-account-fields .field { margin-bottom: 12px; }
.withdraw-account-fields input[readonly], .withdraw-modal .field > input[readonly] { color: #dfe6f2; cursor: default; font-variant-numeric: tabular-nums; }
.withdraw-card-note { display: flex; align-items: flex-start; gap: 6px; margin: -2px 0 17px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.withdraw-card-note i { flex: none; margin-top: 1px; color: #82a7ff; font-size: 13px; }
.currency-field { position: relative; z-index: 3; }
.currency-picker { position: relative; }
.currency-picker-trigger { width: 100%; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: #07101f; color: var(--text); cursor: pointer; text-align: left; }
.currency-picker-trigger > span { min-width: 0; display: grid; gap: 3px; }
.currency-picker-trigger strong { overflow: hidden; font-size: 14px; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.currency-picker-trigger small { overflow: hidden; color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.currency-picker-trigger > i { flex: none; color: #91a0b7; font-size: 17px; transition: transform .16s ease-out; }
.currency-picker.open .currency-picker-trigger { border-color: #4d7fff; box-shadow: 0 0 0 3px rgba(49, 109, 255, .12); }
.currency-picker.open .currency-picker-trigger > i { transform: rotate(180deg); }
.currency-picker-trigger:hover { border-color: rgba(130, 167, 255, .58); }
.currency-picker-trigger:focus-visible, .currency-picker-option:focus-visible { outline: 2px solid #82a7ff; outline-offset: 2px; }
.currency-picker-menu { position: absolute; z-index: 6; top: calc(100% + 7px); left: 0; right: 0; max-height: 228px; overflow-y: auto; display: grid; gap: 4px; padding: 6px; border: 1px solid #23324a; border-radius: 14px; background: #0a1424; box-shadow: 0 16px 38px rgba(0, 0, 0, .38); }
.currency-picker-menu[hidden] { display: none; }
.currency-picker-option { width: 100%; min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 11px; border: 0; border-radius: 10px; background: transparent; color: var(--text); cursor: pointer; text-align: left; }
.currency-picker-option > span { min-width: 0; display: grid; gap: 3px; }
.currency-picker-option strong { font-size: 12px; font-weight: 680; }
.currency-picker-option small { color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.currency-picker-option > i { flex: none; color: #82a7ff; font-size: 17px; opacity: 0; }
.currency-picker-option:hover { background: rgba(255, 255, 255, .045); }
.currency-picker-option.active { background: rgba(49, 109, 255, .13); }
.currency-picker-option.active > i { opacity: 1; }
.withdraw-amount-control { position: relative; }
.withdraw-amount-control input { padding-right: 64px; }
.withdraw-amount-control button { position: absolute; top: 1px; right: 1px; min-width: 58px; height: 47px; padding: 0 13px; border: 0; border-radius: 0 11px 11px 0; background: transparent; color: #82a7ff; cursor: pointer; font-size: 11px; font-weight: 700; }
.withdraw-amount-control button:hover { background: rgba(49, 109, 255, .08); }
.withdraw-amount-control button:focus-visible { outline: 2px solid #82a7ff; outline-offset: -3px; }
.withdraw-amount-control button:disabled { color: #59667b; cursor: not-allowed; }
.withdraw-amount-field > small { color: var(--muted); font-size: 10px; }
.withdraw-amount-field > small strong { color: #c5cfdf; font-weight: 650; font-variant-numeric: tabular-nums; }
.withdraw-summary { display: grid; gap: 13px; margin: 3px 0 17px; padding: 13px; border-radius: 12px; background: rgba(4, 10, 22, .48); }
.withdraw-rules { display: flex; flex-wrap: wrap; gap: 6px; }
.withdraw-rules > span { padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.withdraw-rules strong { color: #cbd5e4; font-weight: 650; }
.withdraw-summary .withdraw-payout { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: 11px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.withdraw-summary .withdraw-payout strong { color: #63d8a5; font-size: 15px; font-variant-numeric: tabular-nums; text-align: right; }
.modal-backdrop { position: fixed; z-index: 40; inset: 0; display: grid; align-items: end; overscroll-behavior: contain; background: rgba(0, 3, 10, .72); backdrop-filter: blur(8px); }
.modal { width: min(100%, 680px); max-height: 88dvh; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; margin: 0 auto; padding: 22px 20px calc(24px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; background: #0c1628; border: 1px solid var(--line); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-head h2 { margin: 0; font-size: 19px; }
.security-modal { width: min(760px, 100%); }
.password-center { display: grid; gap: 14px; }
.password-center-intro { margin: -7px 0 2px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.password-panel { padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: #081222; }
.password-panel-head { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 16px; }
.password-panel-head > i { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(49, 109, 255, .12); color: #82a7ff; font-size: 18px; }
.password-panel-head h3 { margin: 0; font-size: 14px; }
.password-panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.password-panel .field { margin-bottom: 12px; }
.password-panel .primary { margin-top: 3px; }
.language-popover { position: fixed; z-index: 60; display: grid; max-height: min(420px, calc(100dvh - 24px)); gap: 3px; overflow-y: auto; overscroll-behavior: contain; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: #0c1628; box-shadow: 0 16px 44px rgba(0, 0, 0, .42); }
.language-option { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--text); cursor: pointer; text-align: left; }
.language-option i { opacity: 0; color: #77a0ff; font-size: 19px; }
.language-option:hover { background: rgba(255, 255, 255, .045); }
.language-option.active { background: rgba(49, 109, 255, .14); }
.language-option.active i { opacity: 1; }
.language-option:focus-visible { outline: 2px solid #82a7ff; outline-offset: -2px; }
.trade-backdrop { background: rgba(0, 3, 10, .28); backdrop-filter: none; }
.trade-modal { max-height: min(56dvh, 430px); padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -16px 48px rgba(0, 0, 0, .42); }
.trade-modal .modal-head { margin-bottom: 10px; }
.trade-modal .modal-head .icon-btn { min-height: 40px; height: 40px; }
.trade-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 10px 0 12px; border-bottom: 1px solid var(--line); }
.trade-summary div { min-width: 0; }
.trade-summary span, .trade-section legend, .trade-section-label { display: block; color: var(--muted); font-size: 10px; }
.trade-summary strong { display: block; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-variant-numeric: tabular-nums; }
.trade-side.up { color: var(--red); }
.trade-side.down { color: var(--green); }
.trade-section { min-width: 0; margin: 11px 0 0; padding: 0; border: 0; }
.trade-section legend, .trade-section-label { margin-bottom: 7px; }
.trade-modal .tier-grid, .trade-modal .amount-chips { display: flex; gap: 7px; margin: 0; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; scroll-snap-type: x proximity; cursor: grab; }
.trade-modal .tier-grid:focus-visible, .trade-modal .amount-chips:focus-visible { outline: 2px solid #82a7ff; outline-offset: 3px; }
.trade-modal .tier-grid.is-dragging, .trade-modal .amount-chips.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.trade-modal .tier-grid::-webkit-scrollbar, .trade-modal .amount-chips::-webkit-scrollbar { display: none; }
.trade-modal .tier-option { flex: 0 0 auto; width: max-content; min-width: 132px; max-width: min(260px, calc(100vw - 64px)); min-height: 64px; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; gap: 6px; align-content: center; padding: 9px 13px; scroll-snap-align: start; }
.trade-modal .tier-main { grid-column: 1; min-width: 0; width: auto; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; column-gap: 9px; row-gap: 3px; }
.trade-modal .tier-main strong { color: var(--text); font-size: 14px; font-variant-numeric: tabular-nums; }
.trade-modal .tier-main strong b { margin-left: 1px; font-size: 10px; font-weight: 700; }
.trade-modal .tier-main em { min-width: 0; color: #c7d2e5; font-size: 10px; font-style: normal; line-height: 1.35; overflow-wrap: anywhere; }
.trade-modal .tier-option small { grid-column: 1; width: auto; color: var(--muted); font-size: 9px; line-height: 1.3; white-space: nowrap; text-align: left; }
.trade-modal .tier-option.active { border-color: #4c7fff; background: rgba(49, 109, 255, .18); box-shadow: inset 0 -2px #4c7fff; }
.trade-balance { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 11px; padding: 9px 10px; border-radius: 12px; background: rgba(4,10,22,.48); }
.trade-balance div { min-width: 0; }
.trade-balance span, .trade-balance strong { display: block; }
.trade-balance span { color: var(--muted); font-size: 9px; }
.trade-balance strong { margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-size: 12px; font-variant-numeric: tabular-nums; }
.trade-balance button { flex: 0 0 auto; min-width: 58px; min-height: 34px; padding: 0 12px; border: 1px solid rgba(94,139,255,.5); border-radius: 9px; color: #dce7ff; background: rgba(49,109,255,.2); cursor: pointer; font-size: 11px; font-weight: 750; }
.trade-balance button:disabled { opacity: .4; cursor: not-allowed; }
.trade-modal .amount-chips button { flex: 0 0 auto; min-width: 74px; min-height: 40px; padding: 0 10px; scroll-snap-align: start; }
.trade-amount { grid-template-columns: 68px 1fr; align-items: center; gap: 9px; margin: 11px 0; }
.trade-amount label { margin: 0; }
.trade-amount input { height: 44px; }
.trade-modal .form-error { margin-bottom: 9px; }
.trade-modal .primary.block { min-height: 45px; }
.tracking-backdrop { background: rgba(0, 3, 10, .66); backdrop-filter: blur(7px); }
.tracking-modal { --tracking-color: #4b95ff; width: min(100%, 540px); padding: 18px 18px calc(20px + env(safe-area-inset-bottom)); background: radial-gradient(circle at 50% 18%, rgba(75, 149, 255, .12), transparent 34%), #0c1628; box-shadow: 0 -18px 58px rgba(0, 0, 0, .48); }
.tracking-modal.market-up { --tracking-color: var(--red); }
.tracking-modal.market-down { --tracking-color: var(--green); }
.tracking-modal.result-win { --tracking-color: var(--red); }
.tracking-modal.result-loss { --tracking-color: var(--green); }
.tracking-modal.result-tie { --tracking-color: #4b95ff; }
.tracking-modal .modal-head { margin-bottom: 2px; }
.tracking-modal .modal-head h2 { font-size: 17px; }
.tracking-symbol { color: #9aa8bd; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .05em; }
.tracking-ring { width: 132px; aspect-ratio: 1; display: grid; place-items: center; margin: 14px auto 18px; padding: 5px; border-radius: 50%; background: conic-gradient(var(--tracking-color) var(--progress), rgba(148, 163, 184, .13) 0); box-shadow: 0 0 28px color-mix(in srgb, var(--tracking-color) 24%, transparent); transition: background .22s ease, box-shadow .22s ease; }
.tracking-ring-inner { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid rgba(148, 163, 184, .13); border-radius: 50%; background: #091426; }
.tracking-ring strong { max-width: 100%; color: var(--tracking-color); font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; transition: color .18s ease; }
.tracking-ring span { margin-top: 6px; color: var(--muted); font-size: 9px; }
.tracking-ring em { max-width: 92px; margin-top: 6px; overflow: hidden; color: var(--tracking-color); text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-style: normal; font-variant-numeric: tabular-nums; transition: color .18s ease; }
.tracking-modal.is-settling .tracking-ring { animation: tracking-settling 1.1s ease-in-out infinite; }
.tracking-modal.is-settling .tracking-ring strong { max-width: 88px; font-size: 12px; text-align: center; line-height: 1.25; }
.tracking-modal.is-settled .tracking-ring strong { font-size: 40px; }
.tracking-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.tracking-stats > div { min-width: 0; padding: 11px 6px; border: 1px solid rgba(148, 163, 184, .1); border-radius: 11px; background: rgba(4, 10, 22, .47); text-align: center; }
.tracking-stats span { display: block; min-height: 2.4em; color: var(--muted); font-size: 9px; line-height: 1.2; }
.tracking-value { display: block; margin-top: 7px; overflow: hidden; color: var(--text); text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 780; font-variant-numeric: tabular-nums; }
.tracking-stats [data-tracking-price] { color: var(--tracking-color); transition: color .18s ease; }
.tracking-value.positive { color: var(--red); }
.tracking-value.negative { color: var(--green); }
.tracking-value.neutral { color: #8aabff; }
.tracking-result { display: grid; gap: 8px; margin-top: 12px; padding: 14px; border: 1px solid rgba(148, 163, 184, .12); border-radius: 12px; background: rgba(4, 10, 22, .55); }
.tracking-result[hidden] { display: none; }
.tracking-result-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 16px; }
.tracking-result-row span { color: var(--muted); font-size: 10px; }
.tracking-result-row strong { color: var(--text); font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; }
.tracking-result-total { display: flex; align-items: baseline; justify-content: flex-end; margin-top: 4px; padding-top: 11px; border-top: 1px solid var(--line); }
.tracking-result-total em { color: #8aabff; font-size: 20px; font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; }
.tracking-result.win .profit-row strong, .tracking-result.win .tracking-result-total em { color: var(--red); }
.tracking-result.loss .profit-row strong, .tracking-result.loss .tracking-result-total em { color: var(--green); }
.tracking-result.delayed { grid-template-columns: 1fr; }
.tracking-result.delayed > span { color: #d9b66e; font-size: 11px; line-height: 1.5; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.tracking-action { width: 100%; margin-top: 12px; }
@keyframes tracking-settling { 50% { opacity: .65; transform: scale(.985); } }
.record { padding: 15px 16px; }
.record p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.about-copy p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.75; }
.order-card { padding: 16px; }
.order-card-head, .order-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.order-symbol { display: flex; align-items: center; gap: 9px; min-width: 0; }
.order-symbol strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.order-direction { flex: none; padding: 4px 7px; border-radius: 7px; font-size: 10px; font-weight: 750; }
.order-direction.up { color: var(--red); background: rgba(255,100,119,.12); }
.order-direction.down { color: var(--green); background: rgba(46,210,155,.12); }
.order-countdown { color: #8aabff; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.order-profit { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.order-profit.win { color: var(--green); }
.order-profit.loss { color: var(--red); }
.order-card-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 15px 0; }
.order-card-stats div { min-width: 0; padding: 10px; border-radius: 10px; background: rgba(4,10,22,.42); }
.order-card-stats small { display: block; margin-bottom: 5px; color: var(--muted); font-size: 9px; }
.order-card-stats strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-variant-numeric: tabular-nums; }
.order-card-foot { color: var(--muted); font-size: 10px; }
.order-card-foot span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.amount-positive { color: var(--green); }
.amount-negative { color: var(--red); }
.status { padding: 5px 8px; border-radius: 8px; background: rgba(49,109,255,.12); color: #7ba3ff; font-size: 10px; }
.detail-header { height: 72px; display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; }
.detail-header h1 { font-size: 17px; text-align: center; letter-spacing: -.02em; }
.app-shell.support-view { height: 100vh; height: 100dvh; min-height: 0; display: grid; grid-template-rows: 72px minmax(0, 1fr); overflow: hidden; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
.support-page { width: min(100%, 920px); height: 100%; min-height: 0; margin: 0 auto; overflow: hidden; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 13px; }
.support-presence { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 12px; align-items: center; padding: 16px; border-radius: 16px; background: #0b1629; }
.support-presence-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: rgba(49, 109, 255, .16); color: #82a7ff; font-size: 23px; }
.support-presence-icon.has-logo { padding: 4px; }
.support-presence-icon img { display: block; width: 100%; height: 100%; border-radius: 10px; object-fit: contain; }
.support-presence > div { min-width: 0; display: grid; gap: 4px; }
.support-presence strong { font-size: 14px; }
.support-presence > div span { display: flex; align-items: center; gap: 6px; color: #9caac0; font-size: 10px; }
.support-presence > div span i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.support-presence > div span b { font: inherit; font-weight: 500; }
.support-presence.is-night > div span i { background: #f2ad4f; }
.support-presence > p { grid-column: 1 / -1; margin: 2px 0 0; color: #9caac0; font-size: 11px; line-height: 1.55; }
.support-prompts { display: flex; gap: 7px; overflow-x: auto; padding: 1px 0 3px; scrollbar-width: none; }
.support-prompts::-webkit-scrollbar { display: none; }
.support-prompts button { flex: none; min-height: 34px; padding: 0 11px; border: 1px solid rgba(130, 167, 255, .24); border-radius: 10px; background: rgba(49, 109, 255, .08); color: #a9c0ff; cursor: pointer; font-size: 10px; }
.support-prompts button:focus-visible, .support-composer textarea:focus-visible, .support-composer button:focus-visible { outline: 2px solid #82a7ff; outline-offset: 2px; }
.support-thread { min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; display: flex; flex-direction: column; gap: 14px; padding: 17px 4px 20px; }
.support-bubble { width: fit-content; max-width: min(86%, 640px); }
.support-bubble.mine { align-self: flex-end; }
.support-bubble.agent { align-self: flex-start; }
.support-bubble-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 4px 6px; color: #7f8da3; font-size: 9px; }
.support-bubble-meta strong { color: #a6b2c4; font-size: 10px; }
.support-bubble.automated .support-bubble-meta { justify-content: flex-end; }
.support-bubble.pending { opacity: .78; }
.support-bubble-delivery { display: inline-flex; align-items: center; gap: 4px; color: #9fb4e8; }
.support-bubble-delivery i { font-size: 10px; animation: support-send-spin .8s linear infinite; }
@keyframes support-send-spin { to { transform: rotate(360deg); } }
.support-bubble-copy { padding: 11px 13px; border-radius: 5px 15px 15px 15px; background: #121f34; color: #e8edf7; box-shadow: 0 8px 24px rgba(0, 0, 0, .16); font-size: 13px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.support-bubble.mine .support-bubble-copy { border-radius: 15px 5px 15px 15px; background: #316dff; color: #fff; }
.support-bubble.automated .support-bubble-copy { border: 1px solid rgba(130, 167, 255, .18); background: #0e1a2d; box-shadow: none; }
.support-bubble-attachment { min-width: 210px; max-width: 100%; display: flex; align-items: center; gap: 10px; margin-top: 5px; padding: 10px 12px; border: 1px solid rgba(130, 167, 255, .22); border-radius: 12px; background: #101d31; color: #e8edf7; text-decoration: none; overflow: hidden; }
.support-bubble.mine .support-bubble-attachment { border-color: rgba(255,255,255,.25); background: #255ddf; }
.support-bubble-attachment.pending-file { cursor: default; }
.support-bubble-attachment > i { flex: none; color: #8caaff; font-size: 24px; }
.support-bubble.mine .support-bubble-attachment > i { color: #fff; }
.support-bubble-attachment > span { min-width: 0; display: grid; gap: 3px; }
.support-bubble-attachment strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.support-bubble-attachment small { color: #8f9db2; font-size: 9px; }
.support-bubble.mine .support-bubble-attachment small { color: #cbd8ff; }
.support-bubble-attachment.image { display: grid; padding: 6px; }
.support-bubble-attachment.image img { display: block; width: min(300px, 100%); max-height: 240px; border-radius: 9px; object-fit: contain; background: #08111f; }
.support-empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 36px 20px; color: #8491a7; text-align: center; }
.support-empty i { color: #6687d9; font-size: 34px; }
.support-empty strong { color: #dbe3f0; font-size: 14px; }
.support-empty span { max-width: 34ch; font-size: 11px; line-height: 1.55; }
.support-loading { flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px; }
.support-loading span { width: 6px; height: 6px; border-radius: 50%; background: #6f8fdc; animation: support-loading .9s ease-in-out infinite alternate; }
.support-loading span:nth-child(2) { animation-delay: .15s; }
.support-loading span:nth-child(3) { animation-delay: .3s; }
@keyframes support-loading { to { transform: translateY(-5px); opacity: .45; } }
.support-composer { display: grid; grid-template-columns: 42px minmax(0, 1fr) 46px; align-items: end; gap: 7px; padding: 8px 9px; border: 1px solid rgba(130, 167, 255, .22); border-radius: 15px; background: #0b1629; }
.support-composer textarea { width: 100%; min-height: 42px; max-height: 130px; resize: vertical; border: 0; outline: 0; padding: 10px 8px; background: transparent; color: var(--text); font-size: 16px; line-height: 1.4; }
.support-composer textarea::placeholder { color: #6f7d93; }
.support-composer button { width: 46px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 12px; background: #316dff; color: #fff; cursor: pointer; font-size: 18px; }
.support-composer button:disabled { cursor: wait; opacity: .58; }
.support-composer-attach { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; color: #89a6eb; cursor: pointer; font-size: 20px; }
.support-composer-attach:hover { background: rgba(130, 167, 255, .08); }
.support-composer-attach input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.support-composer-file { grid-column: 1 / -1; min-width: 0; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 8px 9px; border-radius: 9px; background: rgba(130, 167, 255, .08); color: #a9b9d5; }
.support-composer-file[hidden] { display: none; }
.support-composer-file > i { font-size: 18px; }
.support-composer-file > span { min-width: 0; display: flex; gap: 7px; }
.support-composer-file strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #dbe4f3; font-size: 10px; }
.support-composer-file small { flex: none; color: #8291a9; font-size: 9px; }
.support-composer-file button { width: 28px; height: 28px; border-radius: 8px; background: transparent; color: #8f9db2; font-size: 14px; }
.support-external-fallback { display: grid; justify-items: center; gap: 14px; padding: 8px 2px 2px; text-align: center; }
.support-external-fallback > i { color: #82a7ff; font-size: 34px; }
.support-external-fallback p { max-width: 34ch; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.support-external-fallback a { display: grid; place-items: center; min-height: 46px; text-decoration: none; }
.quote-card { padding: 22px; }
.quote-main { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.quote-price { color: var(--red); font-size: 36px; font-weight: 820; letter-spacing: -.045em; font-variant-numeric: tabular-nums; transition: color .18s ease; }
.quote-price.down { color: var(--green); }
.quote-name { margin-top: 7px; color: var(--muted); font-size: 12px; }
.quote-change { font-size: 15px; font-weight: 750; color: var(--red); }
.quote-change.down { color: var(--green); }
.chart-card { margin-top: 12px; padding: 18px 16px 10px; }
.chart-wrap { position: relative; height: 400px; overflow: hidden; }
.chart-wrap svg { width: 100%; height: 100%; overflow: visible; }
.chart-legend { min-height: 22px; display: flex; gap: 11px; align-items: center; margin-bottom: 8px; color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.chart-legend strong { color: #e8edf6; }
.chart-legend .ma5 { color: #f0b45b; }
.chart-legend .ma10 { color: #8f76ff; }
.chart-legend .ma20 { color: #4b95ff; }
.chart-host { width: 100%; height: 400px; min-height: 400px; }
.chart-grid line { stroke: rgba(148,163,184,.1); stroke-width: 1; }
.chart-line { fill: none; stroke: #4b82ff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-area { fill: url(#chartFill); }
.period-tabs { display: grid; grid-template-columns: repeat(6,1fr); margin: 12px 0; padding: 5px; border-radius: 13px; background: var(--surface); }
.period-tabs button { height: 37px; color: var(--muted); border: 0; border-radius: 9px; background: none; cursor: pointer; font-size: 11px; }
.period-tabs button.active { color: var(--text); background: rgba(49,109,255,.16); box-shadow: inset 0 -2px #4b82ff; }
.market-stats { display: grid; grid-template-columns: repeat(4,1fr); margin-top: 17px; padding-top: 16px; border-top: 1px solid var(--line); }
.market-stats div { text-align: center; }
.market-stats small { display: block; color: var(--muted); font-size: 9px; margin-bottom: 6px; }
.market-stats strong { display: block; font-size: 11px; font-variant-numeric: tabular-nums; }
.trade-up { background: linear-gradient(135deg,#ff6c78,#d84258); }
.trade-down { background: linear-gradient(135deg,#2fc77c,#168859); }
.tier-grid { display: grid; gap: 8px; margin-bottom: 18px; }
.tier-option { width: 100%; min-height: 58px; display: grid; grid-template-columns: .65fr .8fr 1fr; align-items: center; padding: 0 13px; color: var(--text); border: 1px solid var(--line); border-radius: 12px; background: #081222; cursor: pointer; text-align: left; }
.tier-option small { color: var(--muted); }
.tier-option.active { border-color: #4c7fff; background: rgba(49,109,255,.11); }
.amount-chips { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-bottom: 14px; }
.amount-chips button { min-height: 38px; border: 1px solid var(--line); border-radius: 10px; background: #081222; color: #c6d0df; cursor: pointer; font-size: 11px; }
.order-summary { margin: 16px 0; padding: 13px; border-radius: 12px; background: rgba(4,10,22,.48); display: grid; gap: 9px; }
.order-summary div { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.order-summary strong { color: var(--text); }
.detail-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 4px; border-top: 1px solid var(--line); }
.detail-stats div { padding: 15px 7px 5px; text-align: center; }
.detail-stats small { display: block; color: var(--muted); font-size: 10px; margin-bottom: 6px; }
.detail-stats strong { font-size: 12px; font-variant-numeric: tabular-nums; }
.detail-copy { padding: 19px; }
.detail-copy h2 { margin: 0 0 11px; font-size: 16px; }
.detail-copy p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.fund-hero { padding: 25px 22px; background: radial-gradient(circle at 90% 0, rgba(46,210,155,.2), transparent 45%), linear-gradient(145deg, #101d31, #091322); }
.fund-hero .fund-rate { font-size: 42px; margin: 19px 0 4px; }
.detail-specs { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; margin-top: 12px; background: var(--line); }
.detail-specs div { background: #0b1526; padding: 17px; }
.detail-specs small { display: block; color: var(--muted); font-size: 10px; margin-bottom: 7px; }
.detail-specs strong { font-size: 13px; }
.detail-footer { position: fixed; z-index: 18; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100%,680px); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: rgba(7,14,27,.95); backdrop-filter: blur(18px); border-top: 1px solid var(--line); }
.empty { padding: 44px 20px; text-align: center; color: var(--muted); }
.empty i { display: block; margin-bottom: 12px; font-size: 35px; color: #40516c; }
.toast { position: fixed; z-index: 70; left: 50%; bottom: 96px; max-width: calc(100% - 40px); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 11px 15px; border-radius: 11px; background: #e9eef9; color: #08101d; box-shadow: 0 12px 40px rgba(0,0,0,.32); font-size: 12px; transition: .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.skeleton { min-height: 70px; opacity: 0; background: linear-gradient(90deg, #0d1728 25%, #152238 50%, #0d1728 75%); background-size: 200% 100%; animation: skeleton-reveal .12s .14s both, shimmer 1.3s .14s infinite; }
.route-view-skeleton { min-height: calc(100svh - 90px); }
.route-skeleton-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.route-skeleton-block, .detail-loading-summary span, .detail-loading-cards span, .chart-loading-placeholder span { display: block; border-radius: 14px; background: #101d31; animation: loading-pulse .8s ease-in-out infinite alternate; }
.route-skeleton-block { min-height: 154px; border: 1px solid rgba(148, 163, 184, .08); }
.route-skeleton-block.wide { grid-column: 1 / -1; min-height: 94px; }
.detail-loading-shell { padding-top: 12px; }
.detail-loading-summary { display: grid; grid-template-columns: 1.3fr repeat(2, 1fr); gap: 18px; min-height: 162px; padding: 24px; }
.detail-loading-summary span { min-height: 72px; align-self: center; }
.detail-loading-summary span:first-child { min-height: 104px; }
.detail-loading-cards { display: grid; gap: 12px; margin-top: 12px; }
.detail-loading-cards span { min-height: 106px; border: 1px solid rgba(148, 163, 184, .08); }
.chart-loading-placeholder { height: 100%; min-height: 280px; display: flex; align-items: flex-end; gap: 3%; padding: 8% 5%; overflow: hidden; }
.chart-loading-placeholder span { width: 17%; height: 34%; border-radius: 5px 5px 2px 2px; }
.chart-loading-placeholder span:nth-child(2) { height: 61%; }
.chart-loading-placeholder span:nth-child(3) { height: 45%; }
.chart-loading-placeholder span:nth-child(4) { height: 74%; }
.chart-loading-placeholder span:nth-child(5) { height: 56%; }
@keyframes loading-pulse { from { opacity: .42; } to { opacity: .82; } }
@keyframes skeleton-reveal { to { opacity: 1; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (pointer: coarse) {
  .icon-btn, .chip, .text-link, .nav-item, .period-tabs button, .amount-chips button { min-height: 44px; }
  .trade-balance button { min-height: 44px; }
  .trade-modal .tier-grid, .trade-modal .amount-chips { -webkit-overflow-scrolling: touch; }
}

@media (min-width: 681px) {
  .app-shell { width: 100%; padding-inline: clamp(28px, 5vw, 52px); }
  .app-shell.route-pending::after { width: 100%; }
  .bottom-nav { width: 100%; }
  .detail-footer { width: 100%; }
  .hero { min-height: 280px; }
  .quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quick-card { min-height: 126px; padding: 20px 16px; }
  .fund-list, .account-orders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .route-skeleton-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fund-card, .order-card { min-width: 0; }
  .auth-shell { grid-template-columns: minmax(260px, .9fr) minmax(360px, 1fr); align-items: center; gap: clamp(48px, 8vw, 100px); padding-inline: clamp(20px, 6vw, 72px); }
  .auth-brand { margin-bottom: 0; }
  .auth-language { position: fixed; z-index: 30; top: max(24px, env(safe-area-inset-top)); right: max(24px, env(safe-area-inset-right)); }
  .auth-brand-login .brand-mark { width: 92px; height: 92px; margin-inline: 0; border-radius: 25px; }
  .form-card { padding: 28px; }
  .modal-backdrop { align-items: center; padding: 28px; }
  .modal { width: min(620px, 100%); max-height: min(82dvh, 760px); padding: 26px; border-radius: 20px; box-shadow: 0 24px 80px rgba(0, 0, 0, .48); }
  .security-modal { width: min(760px, 100%); }
  .password-center { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .password-center-intro { grid-column: 1 / -1; }
  .trade-modal { max-height: min(680px, 86dvh); }
  .tracking-modal { width: min(540px, 100%); padding: 24px; }
}

@media (min-width: 1024px) {
  body { background: #050b18; }
  .app-shell { width: 100%; max-width: none; margin: 0; padding: 0 clamp(32px, 3vw, 64px) 64px 262px; background: radial-gradient(circle at 82% 0, rgba(16, 37, 74, .72) 0, rgba(5, 11, 24, .96) 34rem), #050b18; border: 0; box-shadow: none; overflow: visible; }
  .app-shell.auth-view { width: 100%; max-width: none; padding: 0 clamp(32px, 4vw, 72px); }
  .app-shell.detail-view { width: 100%; max-width: none; padding: 0 clamp(32px, 4vw, 72px) 92px; }
  .app-shell.route-pending::after { left: 0; width: 100%; transform: none; }
  .auth-shell { width: 100%; max-width: 1200px; margin-inline: auto; }
  .auth-brand-login { width: min(100%, 520px); justify-self: center; text-align: center; }
  .auth-brand-login .auth-brand-lockup { display: block; }
  .auth-brand-login .brand-mark { width: 104px; height: 104px; margin: 0 auto 30px; border-radius: 28px; }
  .auth-brand-login h1 { max-width: none; margin-inline: auto; }
  .auth-brand-login .auth-intro { margin: 22px auto 0; }
  .topbar { display: none; }
  .bottom-nav { inset: 0 auto 0 0; width: 220px; height: 100dvh; padding: 132px 18px 32px; transform: none; grid-template-columns: 1fr; grid-template-rows: repeat(5, 58px); align-content: start; gap: 6px; background: #081222; border: 0; border-right: 1px solid var(--line); backdrop-filter: none; }
  .nav-brand { position: absolute; top: 28px; left: 30px; right: 18px; display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 18px; font-weight: 780; letter-spacing: -.03em; }
  .nav-brand .brand-mark { flex: none; }
  .nav-brand > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bottom-nav .nav-language { position: absolute; left: 18px; right: 18px; bottom: 24px; width: calc(100% - 36px); min-height: 44px; display: inline-flex; justify-content: space-between; padding-inline: 14px; border-color: transparent; border-radius: 11px; background: rgba(255, 255, 255, .035); color: #9aa8bd; font-size: 12px; font-weight: 650; transition: color .18s ease, background .18s ease; }
  .bottom-nav .nav-language:hover, .bottom-nav .nav-language[aria-expanded="true"] { color: var(--text); background: rgba(49, 109, 255, .11); }
  .bottom-nav .nav-language i { flex: none; color: #6f7f97; font-size: 14px; transition: transform .18s ease; }
  .bottom-nav .nav-language[aria-expanded="true"] i { transform: rotate(180deg); }
  .bottom-nav::before { content: attr(data-label); position: absolute; top: 92px; left: 30px; color: #526078; font-size: 10px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
  .nav-item { min-height: 58px; padding: 0 14px; flex-direction: row; justify-content: flex-start; gap: 13px; border-radius: 13px; font-size: 13px; font-weight: 650; }
  .nav-item span { text-align: left; }
  .nav-item i { width: 26px; font-size: 22px; text-align: center; }
  .nav-item.active { color: #eef3ff; background: rgba(49,109,255,.16); box-shadow: inset 3px 0 #4b82ff; }
  .home-layout { padding-top: 18px; }
  .hero { min-height: 320px; border-radius: 28px; }
  h1 { font-size: clamp(34px, 4vw, 52px); }
  .page-title { margin: 22px 0 28px; }
  .page-title h1 { font-size: 38px; }
  .ticker { margin-block: 18px 30px; }
  .page-content { width: 100%; max-width: none; }
  .route-view-skeleton { padding-top: 1px; }
  .market-row { grid-template-columns: minmax(220px, 1.5fr) minmax(120px, .7fr) minmax(90px, .5fr) minmax(90px, .5fr); padding-inline: 22px; }
  .market-row.header { min-height: 48px; }
  .market-row:not(.header) { min-height: 78px; }
  .fund-list { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
  .account-overview { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: stretch; }
  .account-overview .quick-grid { height: 100%; }
  .account-overview .quick-card { min-height: 100%; }
  .account-orders { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
  .balance-card { padding: 30px; }
  .balance-value { font-size: 42px; }
  .user-page { max-width: 1180px; }
  .user-page .page-title { margin: 24px 0 30px; }
  .user-layout { grid-template-columns: 360px minmax(0, 1fr); gap: 24px; align-items: start; }
  .user-layout .profile-card { position: sticky; top: 24px; gap: 30px; padding: 30px; }
  .user-layout .profile-identity { align-items: flex-start; flex-direction: column; }
  .user-layout .avatar { width: 72px; height: 72px; border-radius: 22px; font-size: 27px; }
  .user-layout .profile-summary div { padding: 18px; }
  .user-layout .profile-summary dd { font-size: 15px; }
  .user-layout .profile-summary .credit-summary dd { font-size: 22px; }
  .user-layout .menu-list { margin-top: 0; padding: 4px 26px 10px; }
  .user-layout .menu-list-head { padding: 26px 0 20px; }
  .user-layout .menu-list-head h2 { font-size: 20px; }
  .user-layout .menu-item { min-height: 82px; }
  .user-layout .menu-item i:first-child { width: 42px; height: 42px; font-size: 21px; }
  .user-layout .menu-item span strong { font-size: 14px; }
  .detail-header { height: 88px; }
  .app-shell.support-view { height: 100dvh; min-height: 0; grid-template-rows: 88px minmax(0, 1fr); padding-bottom: 24px; overflow: hidden; }
  .support-page { height: 100%; min-height: 0; grid-template-columns: minmax(220px, .34fr) minmax(0, .66fr); grid-template-rows: auto auto minmax(0, 1fr) auto; column-gap: 24px; }
  .support-presence { grid-column: 1; grid-row: 1 / 3; align-content: start; }
  .support-prompts { grid-column: 1; grid-row: 3; align-content: start; flex-direction: column; overflow: visible; }
  .support-prompts button { width: 100%; min-height: 42px; text-align: left; }
  .support-thread { grid-column: 2; grid-row: 1 / 4; min-height: 0; padding-top: 4px; }
  .support-composer { grid-column: 2; grid-row: 4; }
  .detail-view .quote-card, .detail-view .chart-card, .detail-view .period-tabs, .detail-view .detail-copy { max-width: none; }
  .detail-footer { left: 0; width: 100%; padding: 14px clamp(32px, 4vw, 72px); transform: none; }
  .toast { left: 50%; bottom: 32px; }
}

@media (min-width: 1240px) {
  .home-layout { width: 100%; max-width: 1560px; margin-inline: auto; padding: 18px 0 40px; }
  .home-layout .hero { min-height: clamp(320px, 24vw, 420px); }
  .home-layout .ticker { min-height: 56px; margin: 18px 0 0; }
  .home-market { margin-top: 34px; }
  .home-market .section-head { min-height: 46px; margin: 0 2px 14px; align-items: center; }
  .home-market .market-row { grid-template-columns: minmax(260px, 1.5fr) minmax(120px, .7fr) minmax(90px, .5fr) minmax(90px, .5fr); padding-inline: 24px; }
  .home-market .market-row:not(.header) { min-height: 72px; }
}

@media (max-width: 380px) {
  .app-shell { padding-inline: 12px; }
  .topbar { height: 68px; }
  .top-actions .icon-btn { padding-inline: 10px; }
  .hero { min-height: 190px; }
  .quick-grid { gap: 7px; }
  .quick-card { padding-inline: 8px; }
  .trade-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
}

@media (max-width: 520px) {
  .top-actions .language-trigger { min-width: 44px; padding-inline: 11px; font-size: 11px; }
  .quick-card { min-height: 104px; }
  .quick-card small { line-height: 1.35; }
  .quote-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(118px, .9fr); align-items: center; gap: clamp(12px, 4vw, 18px); padding: clamp(16px, 5vw, 22px); }
  .quote-main { min-width: 0; align-items: flex-start; flex-direction: column; gap: 10px; }
  .quote-main > div:first-child { min-width: 0; }
  .quote-price { font-size: clamp(27px, 8vw, 34px); overflow-wrap: anywhere; }
  .quote-name { font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; }
  .quote-change { font-size: 13px; }
  .market-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; min-width: 0; margin: 0; padding: 2px 0 2px clamp(12px, 4vw, 18px); border-top: 0; border-left: 1px solid var(--line); }
  .market-stats div { min-width: 0; text-align: left; }
  .market-stats small { min-height: 2.8em; margin-bottom: 5px; line-height: 1.4; }
  .market-stats strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
  .profile-identity { align-items: center; }
  .profile-identity .avatar { width: 68px; height: 68px; border-radius: 21px; }
  .profile-meta { min-width: 0; }
  .score { padding-top: 12px; border-top: 1px solid var(--line); }
  .field input, .field select { font-size: 16px; }
  .modal { max-height: 92svh; }
  .detail-footer { width: 100%; padding-inline: max(12px, env(safe-area-inset-left)); }
  .market-row { grid-template-columns: minmax(0, 1.45fr) minmax(0, .9fr) minmax(0, .64fr) minmax(0, .64fr); gap: clamp(4px, 1.4vw, 8px); padding-inline: clamp(8px, 2.8vw, 14px); }
  .market-row.header { font-size: clamp(8px, 2.5vw, 11px); }
  .market-row.header span:first-child { padding-inline-start: calc(clamp(28px, 8.8vw, 36px) + clamp(5px, 2vw, 10px)); }
  .instrument-identity { gap: clamp(5px, 2vw, 10px); }
  .instrument-icon { width: clamp(28px, 8.8vw, 36px); height: clamp(28px, 8.8vw, 36px); font-size: clamp(8px, 2.4vw, 10px); }
  .symbol { font-size: clamp(10px, 3.35vw, 14px); }
  .symbol small { margin-top: clamp(3px, 1vw, 5px); font-size: clamp(8px, 2.65vw, 11px); }
  .market-price, .market-change { min-width: 0; padding-inline: clamp(2px, 1.5vw, 6px); font-size: clamp(9px, 2.75vw, 11px); }
  .market-status-badge { min-width: 0; min-height: 28px; padding-inline: clamp(2px, 1.5vw, 6px); white-space: nowrap; line-height: 1.1; text-align: center; font-size: clamp(8px, 2.3vw, 9px); }
}

@media (max-width: 350px) {
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-grid .quick-card:first-child { grid-column: 1 / -1; }
  .market-row { grid-template-columns: minmax(0, 1.5fr) minmax(0, .92fr) minmax(0, .64fr) minmax(0, .62fr); gap: 4px; padding-inline: 8px; }
  .market-row.header span:first-child { padding-inline-start: 32px; }
  .instrument-identity { gap: 5px; }
  .instrument-icon { width: 27px; height: 27px; }
  .symbol { font-size: 10px; }
  .symbol small { margin-top: 2px; font-size: 8px; }
  .market-price, .market-change { padding-inline: 2px; font-size: 9px; }
  .market-status-badge { padding-inline: 2px; font-size: 8px; }
  .fund-actions { grid-template-columns: 1fr; }
  .order-card-stats { grid-template-columns: 1fr; }
}

@media (orientation: landscape) and (max-height: 520px) and (max-width: 920px) {
  .topbar { height: 60px; }
  .hero { min-height: 190px; }
  .modal { max-height: 94svh; }
  .trade-modal { max-height: 94svh; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; } .ticker-track { animation: none !important; } .skeleton { opacity: 1; } }
