:root {
  color-scheme: dark;
  --bg: #101a36;
  --panel: rgba(17, 26, 52, .74);
  --line: rgba(118, 139, 188, .18);
  --text: #f5f7ff;
  --muted: #a8b0c8;
  --positive: #5be29c;
  --negative: #ff8da1;
  --accent: #7391ff;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body { background:
  linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
  radial-gradient(circle at 50% 38%, rgba(62,83,143,.28), transparent 26%),
  linear-gradient(90deg, #172342 0%, #13203d 28%, #111a34 50%, #121b35 72%, #101831 100%);
  background-size: 40px 40px, 40px 40px, auto, auto;
  color: var(--text);
  font-family: "Manrope", system-ui, sans-serif;
}
a { color: inherit; text-decoration: none; }
a, button { touch-action: manipulation; }
button, input, select, textarea { font: inherit; }

.front-shell { min-height: 100vh; min-height: 100dvh; display: grid; place-items: start center; padding: 24px 18px; position: relative; overflow-x: hidden; }
.front-shell::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.025), transparent 29%, transparent 71%, rgba(255,255,255,.025)); pointer-events: none; }
.front-home { width: min(532px, 100%); position: relative; z-index: 1; min-height: calc(100vh - 48px); display: flex; flex-direction: column; }
.front-lang { display: flex; justify-content: flex-start; margin: 0 0 84px; color: #d4d9e9; font-size: 14px; }
.front-lang a { display: inline-flex; align-items: center; justify-content: center; height: 36px; min-width: 65px; padding: 0 14px; border: 1px solid rgba(170,181,214,.22); border-radius: 999px; background: rgba(255,255,255,.06); opacity: .96; }
.front-stage { display: grid; justify-items: center; text-align: center; gap: 18px; flex: 1; }
.front-stage h1 { margin: 0; font-size: clamp(44px, 6vw, 58px); letter-spacing: .01em; font-weight: 900; line-height: 1; background: linear-gradient(90deg, #5fa2ff 4%, #9d7cff 42%, #ff73c5 94%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.front-stage p { margin: 0 0 20px; color: #e9edf8; font-size: 18px; letter-spacing: .02em; font-weight: 500; }
.front-entry { justify-self: center; width: min(484px, 100%); display: grid; gap: 16px; margin-top: auto; padding-bottom: 32px; }
.front-primary, .front-secondary { width: 100%; min-height: 68px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 24px; border-radius: 15px; font-size: 20px; font-weight: 900; text-align: center; }
.front-primary { background: linear-gradient(100deg, #2f69e9, #a83ee1 58%, #db2a86); color: #fff; box-shadow: 0 18px 45px rgba(91,114,255,.22); }
.front-primary span { font-size: 24px; transform: translateY(-1px); }
.front-secondary { background: rgba(255,255,255,.055); border: 1px solid rgba(170,181,214,.18); color: #eef2ff; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }

.quote-card, .front-auth-card { width: min(560px, 100%); border: 1px solid var(--line); border-radius: 18px; background: rgba(8, 13, 29, .78); box-shadow: 0 22px 80px rgba(0,0,0,.28); backdrop-filter: blur(14px); }
.quote-card { width: min(448px, 100%); max-width: 100%; padding: 18px 16px 16px; text-align: left; }
.quote-head { display: flex; align-items: center; gap: 9px; justify-content: space-between; color: var(--muted); font-size: 12px; }
.quote-head span { width: 8px; height: 8px; border-radius: 50%; background: var(--positive); box-shadow: 0 0 0 6px rgba(91,226,156,.11); }
.quote-head strong { margin-right: auto; color: #f7f8ff; }
.quote-list { display: grid; gap: 0; margin-top: 18px; }
.market-card { padding: 11px 0; border: 0; border-radius: 0; background: transparent; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; min-height: 44px; }
.market-card span { color: #f0f3ff; font-size: 15px; font-weight: 800; }
.market-card strong { display: block; margin: 0; font: 900 16px "DM Mono", monospace; letter-spacing: -0.02em; white-space: nowrap; text-align: right; color: #f7f8ff; }
.market-card small { display: block; margin-top: 2px; font: 800 13px "DM Mono", monospace; text-align: right; }
.market-value { min-width: 70px; text-align: right; }
.positive { color: var(--positive); }
.negative { color: var(--negative); }

.front-auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 20px; background:
  linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
  radial-gradient(circle at 50% 38%, rgba(62,83,143,.25), transparent 28%),
  linear-gradient(90deg, #172342, #101831);
  background-size: 40px 40px, 40px 40px, auto, auto;
}
.auth-wrap { width: min(440px, 100%); position: relative; }
.back-link { position: absolute; left: 0; top: -46px; color: #cfd7f6; font-size: 28px; }
.front-auth-card { padding: 32px; display: grid; gap: 15px; background: rgba(17,26,52,.82); }
.front-auth-card h1 { margin: 0; font-size: 32px; letter-spacing: .01em; }
.front-auth-card p { margin: 0 0 8px; color: #d5dcf5; letter-spacing: .08em; }
.front-auth-card label { display: grid; gap: 8px; color: #cfd6f5; font-size: 13px; letter-spacing: .05em; }
.front-auth-card input { width: 100%; padding: 14px; border-radius: 12px; border: 1px solid rgba(170,181,214,.2); background: rgba(3,7,17,.36); color: var(--text); outline: none; }
.front-auth-card button { margin-top: 4px; min-height: 50px; border: 0; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #6686ff, #9b69ef); font-weight: 800; }
.front-auth-card small { color: var(--muted); }
.front-auth-card small a { color: #dbe4ff; }

.user-shell { width: min(430px, 100%); min-height: 100vh; margin: 0 auto; padding: 18px 16px 86px; background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0)); }
.user-header { height: 48px; display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; }
.user-header h1 { margin: 0; text-align: center; font-size: 22px; font-weight: 900; }
.user-back { font-size: 34px; color: #d8ddf3; }
.bell { position: relative; width: 34px; height: 34px; display: grid; place-items: center; justify-self: end; border-radius: 50%; background: rgba(255,255,255,.08); color: #6af1ae; }
.bell svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.bell small { position: absolute; right: -4px; top: -5px; min-width: 17px; height: 17px; padding: 0 4px; display: grid; place-items: center; border-radius: 999px; background: #ff4d6d; color: #fff; font-size: 10px; font-weight: 1000; box-shadow: 0 0 0 2px #101a36; }
.bell.has-badge { color: #fff; background: rgba(255,77,109,.18); }
.balance-card { margin-top: 10px; padding: 24px 22px; border-radius: 28px; background: linear-gradient(145deg, rgba(50,74,149,.96), rgba(32,44,94,.98)); box-shadow: 0 24px 70px rgba(0,0,0,.32); position: relative; overflow: hidden; }
.balance-card::after { content: ""; position: absolute; inset: auto -36px -70px auto; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,.08); }
.balance-card p { margin: 0 0 20px; color: #dfe5ff; font-weight: 800; }
.balance-card span { display: block; color: #aeb9e2; font-size: 13px; }
.balance-card em { float: right; margin-top: -18px; color: #6cf0a8; font-style: normal; font-weight: 800; }
.balance-card h2 { margin: 6px 0 20px; font-size: 38px; letter-spacing: -.04em; }
.balance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.balance-grid div { padding: 12px 10px; border-radius: 16px; background: rgba(255,255,255,.08); }
.balance-grid small { display: block; color: #b8c2e9; margin-bottom: 5px; }
.balance-grid strong { font-size: 14px; }
.balance-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; position: relative; z-index: 1; }
.balance-actions a { min-height: 44px; display: grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,.14); color: #fff; font-weight: 900; }
.balance-actions a:first-child { background: linear-gradient(100deg, #366ef2, #b041e7); }
.shortcut-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0; }
.shortcut-grid a { min-height: 72px; display: grid; place-items: center; gap: 6px; border-radius: 20px; background: rgba(255,255,255,.075); border: 1px solid rgba(170,181,214,.14); color: #eef2ff; font-weight: 800; }
.shortcut-grid a i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.1); font-style: normal; font-size: 16px; }
.home-shortcuts a { min-height: 76px; }
.home-balance { padding-top: 26px; }
.hot-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: 144px; gap: 14px; overflow-x: auto; padding: 0 2px 6px; scroll-behavior: auto; scrollbar-width: none; }
.hot-scroll::-webkit-scrollbar, .strip-tabs::-webkit-scrollbar, .strip-scroll::-webkit-scrollbar { display: none; }
.hot-card { display: grid; gap: 4px; padding: 14px 12px; border-radius: 18px; background: rgba(255,255,255,.07); border: 1px solid rgba(170,181,214,.12); min-height: 132px; scroll-snap-align: start; }
.hot-card strong { font-size: 13px; }
.hot-card span { font: 900 16px "DM Mono", monospace; }
.coin-badge { width: 36px; min-width: 36px; max-width: 36px; height: 36px; min-height: 36px; max-height: 36px; box-sizing: border-box; flex: 0 0 36px; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: linear-gradient(135deg, rgba(54,110,242,.95), rgba(162,66,229,.95)); color: #fff; font: 1000 11px/1 "DM Mono", monospace; letter-spacing: -.04em; text-transform: uppercase; }
.market-terminal { display: grid; grid-template-columns: 92px 1fr; gap: 10px; margin-top: 12px; }
.market-cats { display: grid; gap: 8px; align-content: start; }
.market-cats button { min-height: 54px; display: grid; align-content: center; gap: 3px; border: 1px solid rgba(170,181,214,.12); border-radius: 16px; background: rgba(255,255,255,.06); color: #aeb8db; font-weight: 900; }
.market-cats button span, .market-cats button small { display: block; }
.market-cats button small { color: #7f8aad; font: 800 10px "DM Mono", monospace; }
.market-cats button.active { background: linear-gradient(100deg, #366ef2, #a242e5); color: #fff; border-color: transparent; }
.market-cats button.active small { color: rgba(255,255,255,.76); }
.market-cats button { cursor: pointer; }
.market-list-pro { display: grid; gap: 10px; }
.market-list-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 2px 4px; }
.market-list-title strong { font-size: 18px; font-weight: 1000; }
.market-list-title span { color: var(--muted); font-size: 12px; font-weight: 800; }
.quote-tile { display: grid; grid-template-columns: minmax(0, 1fr) 56px 76px; align-items: center; gap: 8px; padding: 14px 12px; border-radius: 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(170,181,214,.12); }
.quote-tile[hidden] { display: none !important; }
.quote-mid { width: 56px; min-width: 56px; overflow: hidden; justify-self: center; }
.quote-mid .sparkline { width: 54px; height: 30px; overflow: hidden; }
.quote-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.quote-left > div { min-width: 0; }
.quote-left strong, .quote-right b { display: block; }
.quote-left strong { max-width: 100%; overflow: visible; white-space: nowrap; }
.quote-left small { color: var(--muted); font-size: 11px; }
.quote-right { min-width: 0; text-align: right; }
.quote-right b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 900 15px "DM Mono", monospace; }
.quote-right span { display: block; margin-top: 4px; font: 900 11px "DM Mono", monospace; }
.trade-terminal-head { margin-top: 10px; padding: 16px 16px 0; }
.trade-topbar { height: 44px; display: grid; grid-template-columns: 36px 1fr 36px; align-items: center; gap: 10px; }
.trade-topbar strong { text-align: center; font-size: 18px; font-weight: 900; }
.trade-topbar .bell { justify-self: end; }
.big-quote { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin-top: 10px; padding: 18px 16px; border-radius: 26px; background: linear-gradient(145deg, rgba(21,30,61,.96), rgba(10,15,31,.96)); border: 1px solid rgba(170,181,214,.12); box-shadow: 0 20px 60px rgba(0,0,0,.24); }
.big-quote strong { display: block; font: 1000 38px "DM Mono", monospace; letter-spacing: -.04em; }
.big-quote span { display: inline-block; margin-top: 6px; font-weight: 900; }
.big-quote aside { display: grid; gap: 6px; align-content: center; text-align: right; }
.big-quote small { display: block; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .2em; }
.big-quote b { margin-left: 8px; color: #fff; font: 900 14px "DM Mono", monospace; }
.trade-chart { margin: 12px 16px 0; }
.market-strip { margin: 12px 16px 0; padding: 14px; border-radius: 22px; background: rgba(8,13,29,.72); border: 1px solid rgba(170,181,214,.13); }
.strip-tabs { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 12px; scrollbar-width: none; }
.strip-tabs span, .strip-tabs button { flex: none; padding: 8px 12px; border: 0; border-radius: 999px; color: #aeb8db; background: rgba(255,255,255,.055); font-size: 12px; font-weight: 900; cursor: pointer; }
.strip-tabs span.active, .strip-tabs button.active { color: #fff; background: linear-gradient(100deg, #366ef2, #a242e5); }
.strip-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: 102px; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.strip-scroll a { width: 102px; min-width: 0; box-sizing: border-box; overflow: hidden; padding: 12px 10px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(170,181,214,.12); }
.strip-scroll a[hidden] { display: none !important; }
.strip-scroll a.active { border-color: rgba(91,226,156,.6); background: rgba(91,226,156,.08); }
.strip-scroll strong, .strip-scroll small { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.strip-scroll strong { margin-bottom: 6px; }
.trade-ticket { margin: 12px 16px 0; }
.user-section { margin-top: 18px; }
.user-section h3, .form-card h3 { margin: 0 0 12px; font-size: 18px; }
.pair-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pair-grid article { padding: 16px; min-height: 76px; border-radius: 18px; background: rgba(255,255,255,.07); border: 1px solid rgba(170,181,214,.12); }
.pair-grid span { display: block; color: #c7d0ef; font-weight: 900; }
.pair-grid strong { display: block; margin-top: 8px; font: 900 18px "DM Mono", monospace; color: #fff; }
.news-list { display: grid; gap: 12px; }
.news-list article { display: grid; grid-template-columns: 1fr 54px; gap: 12px; padding: 14px; border-radius: 18px; background: rgba(255,255,255,.07); border: 1px solid rgba(170,181,214,.12); }
.news-list strong { display: block; line-height: 1.35; }
.news-list small { display: block; color: var(--muted); margin-top: 6px; }
.news-list span { display: grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,.1); color: #aebcf1; font-size: 12px; }
.accordion-news article.news-item { display: block; padding: 0; overflow: hidden; }
.news-summary { width: 100%; display: grid; grid-template-columns: 1fr 28px; gap: 10px; align-items: start; padding: 15px; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.news-summary small { display: flex; align-items: center; gap: 10px; color: #7f8aad; }
.news-summary small b { color: #7391ff; }
.news-summary small em { color: #6f789a; font-style: normal; }
.news-summary span { width: 26px; height: 26px; background: rgba(255,255,255,.08); transition: transform .2s ease; }
.news-detail { max-height: 0; opacity: 0; overflow: hidden; border-top: 1px solid rgba(170,181,214,0); background: rgba(255,255,255,.025); transition: max-height .24s ease, opacity .2s ease, border-color .2s ease; }
.news-detail p { margin: 0; padding: 0 15px 15px; color: #c7d0eb; font-size: 13px; line-height: 1.65; }
.news-item.expanded .news-detail { max-height: 180px; opacity: 1; border-color: rgba(170,181,214,.08); }
.news-item.expanded .news-summary span { transform: rotate(180deg); }
.user-tabs { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(398px, calc(100% - 28px)); display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 8px; border-radius: 22px; background: rgba(8,13,29,.88); border: 1px solid rgba(170,181,214,.16); backdrop-filter: blur(16px); box-shadow: 0 14px 45px rgba(0,0,0,.32); z-index: 5; }
.user-tabs a { padding: 10px 4px; border-radius: 15px; text-align: center; color: #aeb7d6; font-size: 12px; font-weight: 900; }
.user-tabs a.active { color: #fff; background: linear-gradient(100deg, #366ef2, #a242e5); }
.message-list { display: grid; gap: 14px; margin-top: 12px; }
.message-card, .history-card, .support-card, .form-card { padding: 18px; border-radius: 22px; background: rgba(255,255,255,.075); border: 1px solid rgba(170,181,214,.13); }
.message-card h3 { margin: 0 0 8px; font-size: 18px; }
.message-card h3 em { margin-left: 8px; padding: 3px 7px; border-radius: 999px; font-style: normal; font-size: 11px; font-weight: 1000; vertical-align: middle; }
.message-card h3 em.unread { color: #fff; background: #ff4d6d; }
.message-card h3 em.read { color: #8f9ac2; background: rgba(255,255,255,.08); }
.message-card p, .history-card p, .notice { color: #c8d0eb; line-height: 1.55; }
.message-card small { color: #8f9ac2; }
.message-card.support-notice { position: relative; display: grid; gap: 12px; border-color: rgba(91,226,156,.34); background: rgba(91,226,156,.09); }
.message-card.support-notice.is-unread { border-color: rgba(255,77,109,.48); background: rgba(255,77,109,.09); }
.message-open { position: relative; display: grid; gap: 0; text-align: left; border: 0; padding: 0; background: transparent; color: inherit; cursor: pointer; }
.message-card.support-notice .message-open { padding-right: 58px; }
.message-card.support-notice .message-open::after { content: "去回复"; position: absolute; right: 0; top: 2px; color: #5be29c; font-size: 12px; font-weight: 1000; }
.message-open h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.message-delete { justify-self: end; min-width: 72px; border: 0; border-radius: 999px; padding: 8px 12px; background: rgba(255,255,255,.1); color: #fff; font-size: 12px; font-weight: 900; cursor: pointer; }
.message-card.support-notice .message-delete { background: rgba(255,77,109,.16); color: #ff9fb0; }
.history-card { text-align: center; color: #cfd7f6; }
.support-status { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.support-status span { width: 10px; height: 10px; border-radius: 50%; background: var(--positive); box-shadow: 0 0 0 6px rgba(91,226,156,.13); }
.support-status em { margin-left: auto; color: var(--positive); font-style: normal; font-weight: 900; }
.quick-replies { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.quick-replies button { border: 1px solid rgba(170,181,214,.16); background: rgba(255,255,255,.07); color: #eaf0ff; border-radius: 999px; padding: 9px 12px; }
.support-thread { min-height: 220px; max-height: 360px; overflow-y: auto; display: grid; gap: 10px; align-content: end; margin-bottom: 14px; padding: 14px; border-radius: 18px; background: rgba(3,7,17,.28); border: 1px solid rgba(170,181,214,.1); }
.support-thread p { width: fit-content; max-width: 82%; margin: 0; padding: 10px 12px; border-radius: 15px; color: #eef2ff; line-height: 1.45; }
.support-thread .from-user { justify-self: end; border-bottom-right-radius: 5px; background: linear-gradient(100deg, #366ef2, #a242e5); }
.support-thread .from-service { justify-self: start; border-bottom-left-radius: 5px; background: rgba(255,255,255,.08); }
.chat-box { display: grid; grid-template-columns: 1fr 72px; gap: 10px; }
.chat-box input, .form-card input { border: 1px solid rgba(170,181,214,.18); background: rgba(3,7,17,.35); color: #fff; border-radius: 14px; padding: 13px 14px; outline: none; }
.chat-box button, .form-card button { border: 0; border-radius: 14px; color: #fff; background: linear-gradient(100deg, #366ef2, #a242e5); font-weight: 900; }
.chat-box button:disabled, .form-card button:disabled { opacity: .65; cursor: wait; }
.tg-link { display: grid; place-items: center; min-height: 48px; margin-top: 14px; border-radius: 14px; background: rgba(40,199,111,.16); color: #85f1b3; font-weight: 900; }
.form-card { display: grid; gap: 13px; margin-top: 12px; }
.security-card, .about-card, .invite-card { display: grid; gap: 13px; margin-top: 12px; padding: 18px; border-radius: 22px; background: rgba(255,255,255,.075); border: 1px solid rgba(170,181,214,.13); }
.form-card label { display: grid; gap: 7px; color: #cbd3ed; }
.security-form-card form { display: grid; gap: 12px; }
.security-card h3, .about-card h3, .invite-card h3 { margin: 0 0 4px; font-size: 20px; }
.about-card p, .invite-card p { margin: 0; color: #c8d0eb; line-height: 1.65; }
.wallet-row { display: grid; gap: 7px; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.06); }
.wallet-row span { font-family: "DM Mono", monospace; color: #f7f8ff; word-break: break-all; }
.wallet-row small { color: var(--muted); }
.invite-card { justify-items: center; text-align: center; }
.invite-qr { width: 196px; height: 196px; display: grid; grid-template-columns: repeat(21, 1fr); grid-template-rows: repeat(21, 1fr); gap: 2px; padding: 14px; border-radius: 22px; background: #fff; box-shadow: 0 18px 45px rgba(0,0,0,.22); }
.invite-qr i { border-radius: 1px; background: #edf1f8; }
.invite-qr i.dark { background: #101828; }
.invite-code-row { width: 100%; padding: 15px; border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(170,181,214,.1); }
.invite-code-row small, .invite-code-row strong { display: block; }
.invite-code-row small { color: #8f9ac2; font-weight: 900; }
.invite-code-row strong { margin-top: 6px; color: #5be29c; font: 1000 26px "DM Mono", monospace; letter-spacing: .02em; }
.invite-link-row { width: 100%; display: grid; grid-template-columns: 1fr 88px; gap: 10px; align-items: stretch; }
.invite-link-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 13px 14px; border-radius: 14px; background: rgba(3,7,17,.32); color: #cbd3ed; text-align: left; }
.invite-link-row button { border: 0; border-radius: 14px; color: #fff; background: linear-gradient(100deg, #366ef2, #a242e5); font-weight: 900; }
.deposit-terminal { margin-top: 12px; padding: 18px; border-radius: 24px; background: rgba(8,13,29,.8); border: 1px solid rgba(170,181,214,.13); display: grid; gap: 14px; }
.deposit-topline { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.deposit-topline p { margin: 0; color: #9ca8d8; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.deposit-topline h3 { margin: 6px 0 0; font-size: 26px; line-height: 1.1; }
.deposit-mini-copy, .deposit-copy, .deposit-upload-btn { border: 1px solid rgba(170,181,214,.18); background: rgba(255,255,255,.08); color: #fff; border-radius: 14px; padding: 10px 14px; font-weight: 800; }
.deposit-section-label { color: #b8c2e9; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.deposit-crypto-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border-radius: 18px; background: rgba(255,255,255,.07); border: 1px solid rgba(170,181,214,.13); }
.deposit-crypto-card strong { display: block; font-size: 28px; }
.deposit-crypto-card span { color: #d8ddf7; font-size: 14px; }
.deposit-crypto-card em { font-style: normal; font-size: 12px; font-weight: 900; color: #9ca8d8; padding: 8px 10px; border-radius: 999px; background: rgba(255,255,255,.08); }
.deposit-network-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.deposit-network { display: grid; gap: 4px; min-height: 72px; padding: 12px 10px; border-radius: 16px; border: 1px solid rgba(170,181,214,.14); background: rgba(255,255,255,.05); color: #bfc8ea; cursor: pointer; }
.deposit-network strong { font-size: 16px; }
.deposit-network small { color: #8f9bc2; }
.deposit-network.active { border-color: rgba(91,226,156,.7); background: rgba(91,226,156,.08); color: #fff; }
.deposit-qr-card { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; padding: 16px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(170,181,214,.13); }
.deposit-qr { width: 96px; height: 96px; border-radius: 16px; display: grid; place-items: center; background:
  linear-gradient(90deg, rgba(255,255,255,.12) 50%, transparent 0) 0 0/14px 14px,
  linear-gradient(rgba(255,255,255,.12) 50%, transparent 0) 0 0/14px 14px,
  rgba(255,255,255,.05); color: #fff; font-weight: 900; letter-spacing: .16em; }
.deposit-qr-meta p, .deposit-line-title { margin: 0; font-size: 15px; font-weight: 900; }
.deposit-qr-meta small { display: block; margin-top: 6px; color: var(--muted); }
.deposit-address-card { padding: 16px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(170,181,214,.13); }
.deposit-address-row { margin-top: 10px; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.deposit-address-row strong { font: 900 14px "DM Mono", monospace; word-break: break-all; }
.deposit-form { display: grid; gap: 13px; padding-top: 2px; }
.deposit-form label { display: grid; gap: 7px; color: #cbd3ed; }
.deposit-form input { width: 100%; border: 1px solid rgba(170,181,214,.18); background: rgba(3,7,17,.35); color: #fff; padding: 14px 16px; border-radius: 14px; outline: none; }
.deposit-upload-card { display: grid; place-items: center; gap: 6px; padding: 18px 14px; border: 1px dashed rgba(170,181,214,.25); border-radius: 18px; background: rgba(255,255,255,.03); color: #d6def8; text-align: center; }
.deposit-upload-card small { color: var(--muted); }
.deposit-submit { min-height: 56px; border: 0; border-radius: 16px; color: #fff; background: linear-gradient(100deg, #366ef2, #a242e5); font-weight: 1000; }
.deposit-warning { margin: 0; color: #cfd7f2; line-height: 1.6; }
.user-market-list { gap: 8px; }
.user-market-list .market-card { padding: 14px 0; border-bottom: 1px solid rgba(170,181,214,.12); }
.market-board { margin-top: 12px; padding: 14px; border-radius: 24px; background: rgba(8,13,29,.72); border: 1px solid rgba(170,181,214,.13); box-shadow: 0 20px 60px rgba(0,0,0,.24); }
.market-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.market-tabs span { text-align: center; padding: 10px 0; border-radius: 999px; color: #aeb8db; background: rgba(255,255,255,.055); font-size: 12px; font-weight: 900; }
.market-tabs span.active { color: #fff; background: linear-gradient(100deg, #366ef2, #a242e5); }
.market-head { display: grid; grid-template-columns: 1fr 98px 88px; gap: 12px; color: #7e89ad; font-size: 12px; padding: 4px 4px 8px; }
.market-row-pro { display: grid; grid-template-columns: 1fr 98px 88px; align-items: center; gap: 12px; min-height: 62px; border-bottom: 1px solid rgba(170,181,214,.1); }
.market-row-pro strong { color: #fff; }
.market-row-pro b { font: 900 15px "DM Mono", monospace; color: #fff; }
.sparkline { width: 92px; height: 36px; overflow: hidden; }
.hot-card .sparkline { overflow: visible; }
.sparkline path { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.sparkline path.up { stroke: #5be29c; }
.sparkline path.down { stroke: #ff8da1; }
.quote-flash { color: #ffe38f !important; transition: color .18s ease; }
.terminal-head { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 10px; margin-top: 12px; }
.terminal-head div { padding: 14px 12px; border-radius: 18px; background: rgba(255,255,255,.07); border: 1px solid rgba(170,181,214,.12); }
.terminal-head small { display: block; color: var(--muted); margin-bottom: 6px; }
.terminal-head strong { display: block; color: #fff; font-size: 17px; font-weight: 1000; }
.terminal-head em { font-style: normal; font-weight: 1000; }
.trade-card { margin-top: 12px; padding: 14px; border-radius: 24px; background: rgba(8,13,29,.78); border: 1px solid rgba(170,181,214,.13); box-shadow: 0 20px 60px rgba(0,0,0,.26); }
.dark-form { display: grid; gap: 13px; }
.dark-form label { display: grid; gap: 7px; color: #cbd3ed; }
.dark-form input, .dark-form select, .dark-form textarea { border: 1px solid rgba(170,181,214,.18); background: rgba(3,7,17,.35); color: #fff; border-radius: 14px; padding: 13px 14px; outline: none; width: 100%; }
.chart-shell { position: relative; overflow: hidden; border-radius: 22px; background: #07101f; border: 1px solid rgba(170,181,214,.14); }
.chart-shell canvas { display: block; width: 100%; height: 268px; }
.chart-metrics { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; pointer-events: none; }
.chart-metrics div { padding: 9px 8px; border-radius: 13px; background: rgba(255,255,255,.065); border: 1px solid rgba(170,181,214,.1); }
.chart-metrics small, .chart-metrics strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart-metrics small { color: #7f8aad; font-size: 10px; font-weight: 900; }
.chart-metrics strong { margin-top: 3px; color: #fff; font: 900 12px "DM Mono", monospace; }
.chart-toolbar { position: absolute; left: 12px; top: 78px; display: flex; gap: 6px; z-index: 2; }
.chart-toolbar button { border: 0; padding: 6px 9px; border-radius: 999px; color: #8d98bd; background: rgba(255,255,255,.06); font-size: 11px; font-weight: 900; cursor: pointer; }
.chart-toolbar button.active { color: #07101f; background: #5be29c; }
.orderbook { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.orderbook div { padding: 12px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(170,181,214,.1); }
.orderbook strong, .orderbook small { display: block; color: var(--muted); font-size: 12px; }
.orderbook span { display: block; margin: 5px 0; color: #fff; font: 900 15px "DM Mono", monospace; }
.trade-rule-card { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.trade-rule-card article { display: grid; gap: 4px; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(170,181,214,.1); cursor: pointer; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.trade-rule-card article:hover { transform: translateY(-1px); border-color: rgba(91,226,156,.35); }
.trade-rule-card article.active { border-color: rgba(91,226,156,.7); background: rgba(91,226,156,.11); box-shadow: 0 10px 24px rgba(91,226,156,.08); }
.trade-rule-card strong { color: #fff; font-size: 14px; }
.trade-rule-card small { color: #c8d0eb; }
.trade-rule-card span { color: #5be29c; font: 900 12px "DM Mono", monospace; }
.quick-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.quick-amounts button { border: 1px solid rgba(170,181,214,.14); border-radius: 13px; background: rgba(255,255,255,.07); color: #dfe6ff; padding: 11px 0; font-weight: 900; }
.trade-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.trade-actions button { min-height: 52px; border: 0; border-radius: 16px; color: #07111e; font-weight: 1000; background: #5be29c; }
.trade-actions button:last-child { background: #ff8da1; }
.trade-actions button:disabled, .dark-form button:disabled { opacity: .55; cursor: not-allowed; filter: grayscale(.35); }
.trade-password-warning { padding: 12px 14px; border: 1px solid rgba(255,209,102,.28); border-radius: 14px; background: rgba(255,209,102,.08); color: #ffd166; line-height: 1.55; font-size: 13px; }
.trade-password-warning a { color: #fff; font-weight: 1000; text-decoration: underline; }
.order-list, .record-list { display: grid; gap: 10px; }
.order-list article, .record-list article { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px; border-radius: 18px; background: rgba(255,255,255,.07); border: 1px solid rgba(170,181,214,.12); }
.order-list small, .record-list small { grid-column: 1 / -1; color: var(--muted); }
.order-list .order-pnl { font-weight: 900; }
.order-list .order-pnl.positive { color: var(--positive); }
.order-list .order-pnl.negative { color: var(--negative); }
.order-list span { color: #ffe38f; font-weight: 900; }
.order-list b, .record-list span { color: #fff; }
.order-list em { grid-column: 2; color: var(--positive); font-style: normal; font-size: 12px; }
.asset-card { margin-top: 12px; }
.profile-level-card { margin-top: 12px; min-height: 90px; display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 14px; padding: 20px; border-radius: 18px; background: radial-gradient(circle at 86% 10%, rgba(255,215,0,.2), transparent 30%), rgba(255,255,255,.055); border: 1px solid rgba(255,215,0,.16); box-shadow: 0 16px 40px rgba(0,0,0,.18); }
.profile-medal { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg, #ffd86b, #a87917); color: #1b1304; font-size: 22px; font-weight: 1000; }
.profile-level-card strong { display: block; color: #ffd700; font-size: 22px; font-weight: 1000; }
.profile-level-card span { display: block; margin-top: 5px; color: rgba(255,215,0,.72); font-size: 12px; font-weight: 800; }
.profile-level-card em { padding: 7px 10px; border-radius: 999px; background: rgba(91,226,156,.1); color: #5be29c; font-style: normal; font-size: 12px; font-weight: 900; }
.profile-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.profile-stat-grid article { min-height: 82px; padding: 15px 10px; border-radius: 16px; background: rgba(255,255,255,.055); border: 1px solid rgba(170,181,214,.1); }
.profile-stat-grid strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 1000 20px "DM Mono", monospace; color: #fff; }
.profile-stat-grid span { display: block; margin-top: 9px; color: #7f8aad; font-size: 12px; font-weight: 900; }
.profile-agent-card { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.profile-agent-card div { padding: 13px 14px; border-radius: 16px; background: rgba(255,255,255,.045); border: 1px solid rgba(170,181,214,.08); }
.profile-agent-card small { display: block; margin-bottom: 6px; color: #7f8aad; }
.profile-agent-card strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #eef2ff; }
.profile-menu { display: grid; gap: 0; margin-top: 24px; padding: 8px; border-radius: 24px; background: rgba(255,255,255,.055); border: 1px solid rgba(170,181,214,.1); }
.profile-menu-item { min-height: 72px; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 16px; padding: 0 16px; border-radius: 16px; color: #eef2ff; font-weight: 850; }
.profile-menu-item + .profile-menu-item { border-top: 1px solid rgba(170,181,214,.06); }
.profile-menu-item i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,.075); color: #9eb4ff; font-style: normal; font-size: 17px; }
.profile-menu-item span { color: #e5e7eb; }
.profile-menu-item em { color: #7f8aad; font-style: normal; font-size: 13px; font-weight: 900; }
.profile-menu button { margin-top: 18px; min-height: 54px; width: 100%; border: 1px solid rgba(239,68,68,.16); border-radius: 16px; background: rgba(239,68,68,.05); color: #ef4444; font-weight: 1000; }
.lottery-hero { margin-top: 14px; padding: 28px 22px; border-radius: 28px; background: radial-gradient(circle at 80% 20%, rgba(255,221,112,.3), transparent 28%), linear-gradient(145deg, rgba(120,58,210,.96), rgba(34,58,140,.98)); box-shadow: 0 24px 70px rgba(0,0,0,.32); text-align: center; }
.lottery-hero p { margin: 0; color: #ffe7a8; font-weight: 900; }
.lottery-hero h2 { margin: 10px 0; font-size: 42px; letter-spacing: -.03em; }
.lottery-hero span { display: block; color: #dfe6ff; line-height: 1.55; }
.lottery-hero button { margin-top: 20px; width: 100%; min-height: 52px; border: 0; border-radius: 16px; background: linear-gradient(100deg, #ffd166, #ff7ab6); color: #23162b; font-weight: 1000; }
.prize-list { display: grid; gap: 10px; }
.prize-list article { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px; border-radius: 18px; background: rgba(255,255,255,.07); border: 1px solid rgba(170,181,214,.12); }
.prize-list span { color: #ffe38f; font-weight: 900; }
.prize-list small { grid-column: 1 / -1; color: var(--muted); }
.lottery-page { min-height: 100vh; margin: -18px -16px -86px; padding: 20px 16px 96px; color: #1d2440; background: radial-gradient(circle at top, #eef4ff 0%, #f8f9fd 46%, #f1f4fb 100%); }
.lottery-silver { --wheel-a: #cfd6e3; --wheel-b: #79859b; --wheel-c: #f7f9fd; --wheel-text: #485267; --wheel-glow: rgba(118,130,155,.24); }
.lottery-gold { --wheel-a: #ffe08a; --wheel-b: #d59118; --wheel-c: #fff7d6; --wheel-text: #7a4f07; --wheel-glow: rgba(214,151,26,.28); background: radial-gradient(circle at top, #fff6d9 0%, #fffaf0 46%, #f6f0df 100%); }
.lottery-diamond { --wheel-a: #aee9ff; --wheel-b: #6868ff; --wheel-c: #eef4ff; --wheel-text: #3340a0; --wheel-glow: rgba(92,98,255,.28); background: radial-gradient(circle at top, #eaf8ff 0%, #f5f7ff 46%, #eef1ff 100%); }
.lottery-page .user-tabs { color: var(--text); }
.lottery-status-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px; border-radius: 30px; background: rgba(255,255,255,.92); box-shadow: 0 14px 38px rgba(75,85,120,.1); }
.lottery-status-card small { display: block; color: #9aa0b5; }
.lottery-status-card strong { display: block; color: var(--wheel-text, #56607c); font-size: 28px; }
.lottery-status-card span { padding: 10px 14px; border-radius: 999px; color: var(--wheel-text, #7f86a6); background: color-mix(in srgb, var(--wheel-a, #e8ebf3) 25%, #fff); font-size: 12px; font-weight: 900; }
.wheel-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; padding: 8px; border-radius: 24px; background: rgba(255,255,255,.92); box-shadow: 0 10px 30px rgba(75,85,120,.08); }
.wheel-tabs button { border: 0; border-radius: 18px; padding: 12px 6px; background: transparent; color: #9299b3; font-weight: 900; }
.wheel-tabs button.active { color: var(--wheel-text, #4b5676); background: linear-gradient(145deg, var(--wheel-a, #e8ebf3), #fff); box-shadow: inset 0 0 0 1px rgba(148,157,190,.15), 0 8px 22px var(--wheel-glow, rgba(75,85,120,.12)); }
.wheel-tabs small { display: block; margin-top: 4px; font-size: 10px; font-weight: 700; opacity: .75; }
.lucky-wheel-card { margin-top: 14px; padding: 20px 16px; border-radius: 32px; background: linear-gradient(180deg, #fbfcff, #fff); box-shadow: 0 16px 40px rgba(75,85,120,.12); text-align: center; }
.lucky-wheel { position: relative; width: 300px; height: 300px; max-width: 100%; margin: 0 auto; border-radius: 50%; }
.wheel-face { position: absolute; inset: 0; border-radius: 50%; border: 10px solid #fff; background: conic-gradient(var(--wheel-b, #667085) 0 12.5%, var(--wheel-a, #f4c969) 12.5% 25%, var(--wheel-c, #9aa4bd) 25% 37.5%, var(--wheel-b, #f6e7a8) 37.5% 50%, var(--wheel-a, #7d89a6) 50% 62.5%, var(--wheel-c, #ffe5a3) 62.5% 75%, var(--wheel-b, #aeb7cc) 75% 87.5%, var(--wheel-a, #f7d671) 87.5% 100%); box-shadow: inset 0 0 0 1px rgba(80,88,120,.08), 0 18px 44px var(--wheel-glow, rgba(92,100,135,.22)); transform: rotate(-90deg); transform-origin: center; will-change: transform; }
.lucky-wheel::before { content: ""; position: absolute; left: 50%; top: -10px; transform: translateX(-50%); border-left: 13px solid transparent; border-right: 13px solid transparent; border-top: 28px solid var(--wheel-b, #6b728a); z-index: 4; }
.wheel-face span { position: absolute; left: 50%; top: 50%; width: 78px; margin-left: -39px; transform: rotate(var(--turn)) translateY(-112px) rotate(calc(-1 * var(--turn))); transform-origin: center; color: #fff; font-size: 12px; font-weight: 900; text-shadow: 0 1px 2px rgba(0,0,0,.18); }
.wheel-center { position: absolute; inset: 86px; display: grid; place-items: center; border: 8px solid rgba(255,255,255,.7); border-radius: 50%; background: linear-gradient(180deg, #fff, var(--wheel-c, #f3f5fb)); color: var(--wheel-text, #596174); box-shadow: 0 10px 28px var(--wheel-glow, rgba(75,85,120,.2)); z-index: 3; }
.wheel-center b, .wheel-center small { display: block; }
.wheel-center b { font-size: 15px; }
.wheel-center small { color: #9aa0b5; }
.wheel-center:disabled { opacity: .72; cursor: wait; }
.lucky-wheel-card p { color: #727a98; line-height: 1.6; }
.lottery-rules { margin-top: 14px; padding: 18px; border-radius: 28px; background: #fff; box-shadow: 0 10px 30px rgba(75,85,120,.08); }
.lottery-rules h3 { margin: 0 0 12px; }
.lottery-rules article { padding: 12px; border-radius: 18px; background: #f7f8fe; }
.lottery-rules article + article { margin-top: 10px; }
.lottery-rules strong { color: #1d2440; }
.lottery-rules p { margin: 6px 0 0; color: #6d7392; line-height: 1.65; }
.lottery-page .user-section h3 { color: #1d2440; }
.lottery-page .message-card, .lottery-page .history-card { background: #fff; color: #1d2440; box-shadow: 0 10px 30px rgba(75,85,120,.08); }

@media (max-width: 820px) {
  .front-lang { margin-bottom: 64px; }
}
@media (max-width: 560px) {
  .front-shell { padding: 20px 16px; place-items: start stretch; }
  .front-home { width: 100%; min-height: calc(100dvh - 40px); }
  .front-lang { margin-bottom: clamp(44px, 9vh, 72px); }
  .front-stage { gap: 16px; }
  .front-stage p { margin-bottom: 14px; font-size: clamp(16px, 4.4vw, 17px); letter-spacing: .04em; }
  .front-stage h1 { width: 100%; font-size: clamp(46px, 18vw, 72px); letter-spacing: .01em; white-space: nowrap; }
  .quote-card { width: 100%; padding: 16px 14px 14px; border-radius: 28px; }
  .quote-head, .quote-list, .market-card { min-width: 0; }
  .front-entry { width: 100%; gap: 14px; padding-bottom: 26px; }
  .front-primary, .front-secondary { min-height: 58px; font-size: 17px; border-radius: 28px; }
  .quote-tile { grid-template-columns: minmax(0, 1fr) 52px 68px; gap: 6px; padding: 12px 10px; }
  .quote-mid { width: 52px; min-width: 52px; }
  .quote-mid .sparkline { width: 50px; height: 28px; }
  .quote-right b { font-size: 13px; }
  .deposit-network-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deposit-qr-card { grid-template-columns: 1fr; justify-items: start; }
  .deposit-address-row { flex-direction: column; align-items: stretch; }
}
