: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%; width: 100%; max-width: 100%; overflow-x: hidden; overflow-x: clip; overscroll-behavior: none; }
body { background:
  linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
  linear-gradient(145deg, #1b2748 0%, #111a34 100%);
  background-size: 40px 40px, 40px 40px, auto, auto;
  color: var(--text);
  font-size: 15px;
  font-family: "Manrope", system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
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; color: #f7f9ff; text-shadow: 0 10px 30px rgba(0,0,0,.22); }
.front-stage p { margin: 0 0 20px; color: #c8d2ea; 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: #2f69e9; color: #fff; box-shadow: 0 18px 45px rgba(47,105,233,.24); }
.front-primary span { font-size: 24px; transform: translateY(-1px); }
.front-secondary { background: rgba(255,255,255,.045); border: 1px solid rgba(170,181,214,.14); color: #eef2ff; box-shadow: inset 0 1px 0 rgba(255,255,255,.03); }

.quote-card, .front-auth-card { width: min(560px, 100%); border: 1px solid rgba(170,181,214,.16); border-radius: 18px; background: rgba(10, 17, 34, .88); 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%); max-width: 100%; min-height: 100vh; margin: 0 auto; padding: 18px 16px 86px; background: transparent; overflow-x: hidden; overflow-x: clip; overscroll-behavior-x: none; }
.user-shell > * { max-width: 100%; min-width: 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); }
.history-link { width: 34px; height: 34px; display: grid; place-items: center; justify-self: end; border-radius: 50%; background: rgba(255,255,255,.08); color: #6af1ae; }
.history-link svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.balance-card { margin-top: 10px; padding: 24px 22px; border-radius: 18px; background: rgba(255,255,255,.05); box-shadow: 0 16px 40px rgba(0,0,0,.22); position: relative; overflow: hidden; }
.balance-card::after { content: ""; position: absolute; inset: auto -44px -76px auto; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,.035); pointer-events: none; }
.balance-card p { margin: 0 0 20px; color: #fff; font-weight: 800; }
.balance-card span { display: block; color: rgba(255,255,255,.7); 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: 12px; background: transparent; }
.balance-grid small { display: block; color: rgba(255,255,255,.7); margin-bottom: 5px; }
.balance-grid strong { font-size: 14px; color: #fff; }
.balance-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; position: relative; z-index: 1; }
.balance-actions a { min-height: 40px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.2); color: #fff; font-weight: 900; }
.balance-actions a:first-child { background: #fff; color: #4d668e; }
.balance-actions .balance-transfer-action { display: inline-flex; align-items: center; justify-content: center; gap: 5px; background: rgba(255,255,255,.12); border: 1px solid rgba(170,181,214,.28); box-shadow: none; }
.balance-actions .balance-transfer-action i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.2); color: #fff; font-size: 13px; font-style: normal; line-height: 1; }
.balance-actions .balance-transfer-action span { font-size: 12px; }
.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: 18px; background: rgba(255,255,255,.07); border: 1px solid rgba(170,181,214,.12); color: #fff; font-weight: 800; }
.shortcut-grid a i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,.08); font-style: normal; font-size: 16px; }
.home-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-shortcuts a { min-height: 82px; border-radius: 18px; }
.home-shortcuts a i { width: 40px; height: 40px; border-radius: 14px; font-size: 18px; }
.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; overscroll-behavior-x: contain; touch-action: pan-x; }
.hot-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: rgba(255,255,255,.06); border: 1px solid rgba(170,181,214,.12); color: #dfe6ff; 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: rgba(255,255,255,.06); color: #fff; border-color: rgba(170,181,214,.12); }
.market-cats button.active small { color: #7f8aad; }
.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: 6px; padding: 10px 16px 0; }
.trade-topbar { height: 38px; 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; }
.trade-chart { margin: 8px 16px 0; }
.trade-ticket { margin: 8px 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: 24px; 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 { min-height: 52px; display: grid; place-items: center; padding: 6px 4px; border-radius: 18px; text-align: center; color: #aeb7d6; }
.user-tabs a i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); color: currentColor; }
.user-tabs a i svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.user-tabs a.active { color: #fff; background: linear-gradient(180deg, rgba(104,129,255,.24), rgba(255,255,255,.08)); box-shadow: inset 0 0 0 1px rgba(170,181,214,.14), 0 10px 24px rgba(0,0,0,.16); }
.user-tabs a.active i { background: rgba(255,255,255,.14); }
.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: "Reply"; 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; }
.support-chat-card { min-height: auto; display: grid; grid-template-rows: auto auto auto auto; }
.support-thread { height: clamp(330px, calc(100dvh - 335px), 430px); overflow-y: auto; display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; padding: 14px; border-radius: 18px; background: rgba(3,7,17,.28); border: 1px solid rgba(170,181,214,.1); overscroll-behavior: contain; }
.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 { align-self: flex-end; justify-self: end; border-bottom-right-radius: 5px; background: linear-gradient(100deg, #366ef2, #a242e5); }
.support-thread .from-service { align-self: flex-start; justify-self: start; border-bottom-left-radius: 5px; background: rgba(255,255,255,.08); }
.support-message { width: fit-content; max-width: 88%; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px; background: transparent !important; }
.support-message p { max-width: 100%; }
.support-message.from-user p { background: linear-gradient(100deg, #366ef2, #a242e5); border-bottom-right-radius: 5px; }
.support-message.from-service p { background: rgba(255,255,255,.08); border-bottom-left-radius: 5px; }
.support-copy { height: 24px; border: 0; border-radius: 999px; padding: 0 8px; background: rgba(255,255,255,.1); color: #9be7bd; font-size: 11px; font-weight: 900; }
.support-message-actions { flex-basis: 100%; display: flex; justify-content: flex-end; gap: 5px; opacity: .72; }
.support-message-actions button { min-height: 22px; border: 0; border-radius: 999px; padding: 0 7px; background: rgba(255,255,255,.1); color: #b9c5e8; font-size: 10px; font-weight: 900; }
.support-image-wrap { width: fit-content; max-width: 88%; display: grid; gap: 5px; background: transparent !important; }
.support-image-wrap.from-user { align-self: flex-end; justify-items: end; }
.support-image-wrap.from-service { align-self: flex-start; justify-items: start; }
.support-image { width: fit-content; max-width: 82%; padding: 6px; border: 0; border-radius: 16px; background: rgba(255,255,255,.08); cursor: zoom-in; }
.support-image img { display: block; max-width: min(240px, 100%); max-height: 320px; border-radius: 12px; object-fit: contain; }
.chat-box { display: grid; grid-template-columns: minmax(0, 1fr) 54px 72px; gap: 10px; }
.chat-box > input[type="hidden"], .chat-box > input[type="file"] { display: none; }
.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; font-size: 16px; }
.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; }
.support-attach { background: rgba(255,255,255,.1) !important; color: #dfe6ff !important; }
.support-attach-label { grid-column: 1 / 3; color: #8f9ac2; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.support-attach-clear { grid-column: 3; height: 24px; border-radius: 999px !important; background: rgba(255,77,109,.15) !important; color: #ff9fb0 !important; font-size: 12px; }
.support-image-preview { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 22px; background: rgba(0,0,0,.78); backdrop-filter: blur(4px); }
.support-image-preview img { max-width: min(92vw, 820px); max-height: 86vh; border-radius: 16px; object-fit: contain; box-shadow: 0 24px 80px rgba(0,0,0,.45); transition: transform .16s ease; }
.support-image-preview-tools { position: fixed; right: 18px; top: 18px; display: flex; gap: 8px; }
.support-image-preview-tools button { width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; font-size: 24px; line-height: 1; }
.tg-link { display: grid; place-items: center; min-height: 48px; margin-top: 10px; margin-bottom: 8px; border-radius: 14px; background: rgba(40,199,111,.16); color: #85f1b3; font-weight: 900; }
body.support-page-active { position: fixed; inset: 0; width: 100%; height: var(--support-viewport-height, 100dvh); overflow: hidden; }
body.support-page-active.support-keyboard-active .user-tabs { display: none; }
.user-shell.support-shell { position: fixed; top: 0; bottom: auto; left: 0; right: 0; transform: none; width: 100%; max-width: 430px; height: var(--support-viewport-height, 100dvh); min-height: 0; overflow: hidden; padding: 18px 16px 0; }
.support-shell .support-chat-card { height: calc(var(--support-viewport-height, 100dvh) - 156px); min-height: 0; overflow: hidden; grid-template-rows: auto minmax(0, 1fr) auto auto; }
body.support-keyboard-active .support-shell .support-chat-card { height: calc(var(--support-viewport-height, 100dvh) - 66px); padding-bottom: 6px; }
body.support-keyboard-active .support-shell .support-status { margin-bottom: 10px; }
body.support-keyboard-active .support-shell .support-thread { margin-bottom: 8px; }
body.support-keyboard-active .support-shell .tg-link { display: none; }
.support-shell .support-thread { height: auto; min-height: 0; max-height: none; }
.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; }
.about-card { gap: 10px; padding: 17px 15px 18px; }
.about-card h3 { margin-bottom: 0; }
.about-card p { margin: 0 0 5px; line-height: 1.55; }
.about-card p:last-child { margin-bottom: 0; }
.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-coin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.deposit-coin { display: grid; gap: 4px; min-height: 68px; padding: 12px 10px; border-radius: 16px; border: 1px solid rgba(170,181,214,.14); background: rgba(255,255,255,.05); color: #bfc8ea; text-align: left; cursor: pointer; }
.deposit-coin strong { color: #fff; font-size: 18px; }
.deposit-coin small { color: #8f9bc2; }
.deposit-coin.active { border-color: rgba(91,226,156,.7); background: rgba(91,226,156,.09); box-shadow: 0 10px 26px rgba(91,226,156,.08); }
.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: 8px; }
.deposit-network { min-height: 48px; display: grid; place-items: center; padding: 8px 10px; border-radius: 10px; 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.active { border-color: rgba(91,226,156,.7); background: rgba(91,226,156,.08); color: #fff; }
.deposit-line-title { margin: 0; font-size: 15px; font-weight: 900; }
.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; }
.transfer-page { min-height: calc(100dvh - 104px); padding-bottom: 42px; }
.transfer-terminal { min-height: min(650px, calc(100dvh - 180px)); margin: 24px 4px 0; padding: 30px 18px; border-radius: 20px; background: #232a44; border: 1px solid rgba(126,145,193,.18); display: grid; align-content: start; gap: 26px; box-shadow: inset 0 1px 0 rgba(255,255,255,.025); }
.transfer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.transfer-head > div { display: grid; gap: 5px; color: #b8c2e9; font-size: 13px; }
.transfer-head small { color: #7f8aad; font-size: 11px; }
.transfer-head > strong { color: #5be29c; font-size: 15px; }
.transfer-balance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.transfer-balance-grid div, .transfer-direction > div { padding: 14px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(170,181,214,.13); }
.transfer-balance-grid small, .transfer-direction small { display: block; color: #8f9bc2; font-size: 12px; margin-bottom: 5px; }
.transfer-balance-grid strong, .transfer-direction strong { color: #fff; font-size: 16px; }
.transfer-form { display: grid; gap: 20px; margin-top: 4px; }
.transfer-direction { display: grid; grid-template-columns: 1fr 52px 1fr; gap: 10px; align-items: center; text-align: center; }
.transfer-swap, .transfer-amount-row button { border: 0; cursor: pointer; color: #fff; background: rgba(91,226,156,.18); }
.transfer-swap { width: 52px; height: 52px; border-radius: 50%; font-size: 24px; }
.transfer-form label { display: grid; gap: 8px; color: #b8c2e9; font-size: 13px; }
.transfer-amount-row { display: grid; grid-template-columns: 1fr 62px; overflow: hidden; border: 1px solid rgba(170,181,214,.18); border-radius: 14px; background: rgba(255,255,255,.05); }
.transfer-amount-row input { min-width: 0; border: 0; padding: 14px; background: transparent; color: #fff; outline: none; }
.transfer-amount-row button { font-weight: 900; }
.transfer-submit { min-height: 54px; border: 0; border-radius: 14px; color: #fff; background: linear-gradient(100deg, #366ef2, #a242e5); font-weight: 900; }
.transfer-terminal > p { margin: auto 0 0; padding-top: 10px; color: #8f9bc2; font-size: 12px; line-height: 1.7; }
.withdraw-page { min-height: calc(100dvh - 104px); display: flex; flex-direction: column; }
.withdraw-terminal { margin: 18px 4px 0; padding: 22px 18px; border-radius: 20px; background: #232a44; border: 1px solid rgba(126,145,193,.18); display: grid; gap: 18px; box-shadow: inset 0 1px 0 rgba(255,255,255,.025); }
.withdraw-section-head, .withdraw-amount-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.withdraw-section-head > div, .withdraw-amount-head > span:first-child { display: grid; gap: 5px; color: #b8c2e9; font-size: 13px; }
.withdraw-section-head small { color: #7f8aad; font-size: 11px; }
.withdraw-manage, .withdraw-add-address, .withdraw-cancel, .withdraw-save, .withdraw-amount-row button { border: 0; cursor: pointer; }
.withdraw-manage { padding: 0; background: transparent; color: #5be29c; font-size: 13px; font-weight: 900; }
.withdraw-address-box { display: grid; gap: 10px; padding: 14px; border: 1px solid rgba(126,145,193,.18); border-radius: 17px; background: rgba(42,51,82,.72); }
.withdraw-address-list { display: grid; gap: 8px; }
.withdraw-address-item { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border: 1px solid rgba(126,145,193,.16); border-radius: 14px; background: rgba(31,40,70,.76); color: #fff; text-align: left; cursor: pointer; }
.withdraw-address-item.active { border-color: rgba(91,226,156,.7); background: rgba(91,226,156,.09); }
.withdraw-address-item span { min-width: 0; display: grid; gap: 5px; }
.withdraw-address-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.withdraw-address-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #8f9bc2; font: 11px "DM Mono", monospace; }
.withdraw-address-item i { color: #5be29c; font-style: normal; font-weight: 1000; }
.withdraw-add-address { min-height: 64px; border: 1px dashed rgba(170,181,214,.3); border-radius: 14px; background: rgba(31,40,70,.42); color: #d8ddf7; font-weight: 900; }
.withdraw-add-address:hover { border-color: rgba(91,226,156,.6); color: #5be29c; }
.withdraw-address-editor { padding-top: 2px; }
.withdraw-editor-form { display: grid; gap: 10px; }
.withdraw-editor-form label { display: grid; gap: 6px; color: #cbd3ed; font-size: 12px; }
.withdraw-editor-form input, .withdraw-editor-form select { width: 100%; min-height: 44px; border: 1px solid rgba(126,145,193,.2); border-radius: 12px; padding: 0 12px; background: rgba(17,25,52,.62); color: #fff; outline: none; }
.withdraw-editor-actions { display: flex; justify-content: flex-end; gap: 8px; }
.withdraw-cancel, .withdraw-save { min-height: 38px; padding: 0 14px; border-radius: 11px; font-weight: 900; }
.withdraw-cancel { background: rgba(255,255,255,.08); color: #cbd3ed; }
.withdraw-save { background: #00c075; color: #fff; }
.withdraw-manage-list { display: grid; gap: 8px; padding-top: 2px; }
.withdraw-manage-list > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: 10px; background: rgba(31,40,70,.58); color: #aeb8db; font-size: 11px; }
.withdraw-manage-list span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.withdraw-manage-list button { border: 0; background: transparent; color: #ff8da1; cursor: pointer; font-size: 11px; }
.withdraw-amount-head { align-items: center; color: #b8c2e9; font-size: 13px; }
.withdraw-amount-head strong { color: #fff; font-size: 13px; }
.withdraw-spot-notice { margin: 14px 4px 0; color: #8f9bc2; font-size: 12px; line-height: 1.6; }
.withdraw-amount-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 3px 10px 3px 12px; border-radius: 14px; background: #e8f0fd; }
.withdraw-amount-row input { min-width: 0; height: 56px; border: 0; outline: none; background: transparent; color: #172342; font: 900 21px "DM Mono", monospace; }
.withdraw-amount-row input::placeholder { color: #8993a8; }
.withdraw-amount-row button { padding: 8px 4px; background: transparent; color: #00c075; font-size: 13px; font-weight: 1000; }
.withdraw-submit-form { margin: 34px 4px 0; }
.withdraw-submit-form button { width: 100%; min-height: 62px; border: 0; border-radius: 16px; background: #00c075; color: #fff; font-weight: 1000; cursor: pointer; box-shadow: 0 14px 30px rgba(0,192,117,.2); }
.withdraw-submit-form button:disabled { background: rgba(255,255,255,.16); color: #8792ad; cursor: not-allowed; box-shadow: none; }
.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: rgba(255,255,255,.055); }
.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: 10px; border-radius: 18px; background: rgba(8,13,29,.78); border: 1px solid rgba(170,181,214,.13); box-shadow: 0 20px 60px rgba(0,0,0,.26); }
.trade-ticket .dark-form { gap: 7px; }
.dark-form { display: grid; gap: 13px; }
.dark-form label { display: grid; gap: 6px; 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%; }
.trade-ticket .dark-form input, .trade-ticket .dark-form select { padding: 8px 10px; border-radius: 11px; }
.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: 200px; }
.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: 7px 6px; border-radius: 12px; 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: 70px; 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: 7px; border-radius: 12px; 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: 4px 0; color: #fff; font: 900 14px "DM Mono", monospace; }
.trade-period-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.trade-period-row button { display: grid; gap: 2px; padding: 7px 4px; border-radius: 12px; border: 1px solid rgba(170,181,214,.14); background: rgba(255,255,255,.06); color: #cbd3ed; cursor: pointer; }
.trade-period-row button.active { border-color: rgba(91,226,156,.72); background: rgba(91,226,156,.12); color: #fff; }
.trade-period-row strong { font-size: 13px; }
.trade-period-row small { color: #5be29c; font: 900 11px "DM Mono", monospace; }
.amount-field { display: grid; grid-template-columns: 1fr 64px; gap: 8px; }
.amount-field button { border: 0; border-radius: 12px; background: #366ef2; color: #fff; font-weight: 1000; }
.trade-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.trade-actions button { min-height: 44px; border: 0; border-radius: 14px; 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); }
.order-countdown { color: #5be29c; border-color: rgba(91,226,156,.3); background: rgba(91,226,156,.08); }
.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); }
.trade-ticket + .user-section { margin-top: 8px; }
.trade-ticket + .user-section h3 { margin-bottom: 8px; }
.trade-ticket + .user-section .order-list { gap: 7px; }
.trade-ticket + .user-section .order-list article { padding: 10px 12px; border-radius: 15px; }
.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; gap: 10px; margin-top: 12px; }
.profile-agent-card div { min-height: 86px; display: grid; place-items: center; align-content: center; padding: 18px 20px; border-radius: 20px; background: radial-gradient(circle at 16% 20%, rgba(126,157,255,.16), transparent 32%), linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.035)); border: 1px solid rgba(170,181,214,.12); box-shadow: 0 14px 32px rgba(0,0,0,.16); text-align: center; }
.profile-agent-card small { display: block; margin-bottom: 7px; color: #8995bd; font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.profile-agent-card strong { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #eef2ff; font-size: clamp(24px, 7vw, 30px); font-weight: 1000; letter-spacing: .02em; }
.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 { width: calc(100% + 32px); min-height: 100vh; margin: -18px -16px -86px; padding: 20px 16px 108px; color: #1d2440; background: radial-gradient(circle at top, #eef4ff 0%, #f8f9fd 46%, #f1f4fb 100%); }
.user-shell > .lottery-page { max-width: none; }
.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: min(300px, 100%); aspect-ratio: 1; height: auto; 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: 70px; max-height: 32px; margin-left: -35px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-align: center; line-height: 1.18; overflow-wrap: anywhere; transform: rotate(var(--turn)) translateY(-112px) rotate(calc(-1 * var(--turn))); transform-origin: center; color: #fff; font-size: 11px; font-weight: 900; text-shadow: 0 1px 3px rgba(0,0,0,.28); }
.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: not-allowed; }
.lottery-feedback { margin: 12px 2px 0; padding: 11px 14px; border-radius: 14px; color: #8a5a00; background: #fff5d8; border: 1px solid #f2d58b; font-size: 13px; font-weight: 800; line-height: 1.45; }
.lottery-feedback.is-error { color: #a03645; background: #fff0f2; border-color: #f5b9c1; }
.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); }

.front-lang { font-size: 13px; }
.front-stage p { font-size: 17px; }
.front-primary, .front-secondary { font-size: 19px; }
.front-auth-card h1 { font-size: 30px; }
.user-header h1 { font-size: 20px; }
.balance-card span { font-size: 12px; }
.balance-card h2 { font-size: 34px; }
.balance-grid strong { font-size: 13px; }
.market-list-title strong, .trade-topbar strong, .user-section h3, .form-card h3, .message-card h3 { font-size: 17px; }
.security-card h3, .about-card h3, .invite-card h3 { font-size: 18px; }
.profile-level-card strong { font-size: 20px; }
.profile-stat-grid strong { font-size: 18px; }
.lottery-hero h2 { font-size: 38px; }

@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(15px, 4vw, 16px); letter-spacing: .04em; }
  .front-stage h1 { width: 100%; max-width: 100%; font-size: clamp(34px, 11vw, 52px); letter-spacing: 0; line-height: .96; white-space: normal; overflow-wrap: anywhere; text-wrap: balance; }
  .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: 16px; 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-address-row { flex-direction: column; align-items: stretch; }
  .lottery-page { padding: 18px 16px 112px; }
  .lottery-status-card { padding: 16px; border-radius: 26px; }
  .lottery-status-card strong { font-size: 25px; }
  .lottery-status-card span { padding: 9px 12px; font-size: 11px; }
  .wheel-tabs { gap: 6px; padding: 7px; border-radius: 22px; }
  .wheel-tabs button { min-width: 0; padding: 10px 4px; border-radius: 16px; font-size: 14px; }
  .wheel-tabs small { font-size: 9px; line-height: 1.25; }
  .lucky-wheel-card { min-height: 0; padding: 16px 14px 18px; border-radius: 28px; }
  .lucky-wheel { width: min(250px, 100%); }
  .wheel-face { border-width: 8px; }
  .wheel-face span { width: 58px; max-height: 28px; margin-left: -29px; transform: rotate(var(--turn)) translateY(-92px) rotate(calc(-1 * var(--turn))); font-size: 9px; line-height: 1.18; }
  .wheel-center { inset: 28%; border-width: 6px; }
  .wheel-center b { font-size: 13px; }
  .wheel-center small { font-size: 11px; line-height: 1.25; }
  .lucky-wheel-card p { margin: 12px 0 0; font-size: 14px; line-height: 1.55; }
  .lottery-rules { margin-top: 14px; padding: 16px; border-radius: 26px; }
  .lottery-rules article { padding: 11px; border-radius: 16px; }
  .lottery-rules p { line-height: 1.55; }
}
