:root {
	color-scheme: dark;
	--app-bg: #050505;
	--app-surface: #0d0d0f;
	--app-raised: #151518;
	--app-border: #242428;
	--app-text: #ffffff;
	--app-muted: #8d949e;
	--app-blue: #5a0010;
	--app-green: #25d3a1;
	--app-red: #ff6a80;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 80px; }
body { min-width: 320px; margin: 0; background: var(--app-bg); color: var(--app-text); font: 13px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select { font: inherit; }
button { color: inherit; }
button:not(:disabled) { transition: transform .16s ease,filter .16s ease,background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease; }
button:active:not(:disabled) { transform: scale(.97); }
button:focus-visible { outline: 2px solid rgba(91,190,255,.9); outline-offset: 3px; }
@media (hover: hover) {
	button:not(:disabled):hover { transform: translateY(-1px); }
}
.app-shell { min-height: 100vh; }
.app-sidebar { position: fixed; z-index: 10; inset: 0 auto 0 0; display: flex; width: 226px; flex-direction: column; padding: 20px 14px; border-right: 1px solid var(--app-border); background: #080f18; }
.app-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 23px; color: var(--app-text); font-size: 14px; font-weight: 760; letter-spacing: -.035em; }
.app-brand .brand-mark { display: grid; width: 52px; height: 52px; flex: 0 0 52px; overflow: hidden; place-items: center; border: 1px solid rgba(54,174,255,.35); border-radius: 10px; background: #07162a; }
.app-brand .brand-mark img { width: 52px; height: 52px; object-fit: contain; }
.app-brand span:last-child span { color: #39bff5; }
.account-switcher { display: flex; align-items: center; gap: 9px; padding: 10px 9px; margin-bottom: 22px; border: 1px solid var(--app-border); border-radius: 9px; background: #0b1622; text-align: left; cursor: pointer; }
.account-avatar, .user-avatar { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: linear-gradient(140deg,#235586,#112943); color: #cfeaff; font-size: 10px; font-weight: 700; }
.account-name { flex: 1; font-size: 10px; font-weight: 650; }
.account-name small { display: block; color: var(--app-muted); font-size: 9px; font-weight: 450; }
.account-switcher > b { color: var(--app-muted); }
.sidebar-label { padding: 0 10px 7px; color: #687c91; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.app-nav { display: grid; gap: 4px; }
.app-nav button { display: flex; min-height: 39px; align-items: center; gap: 11px; padding: 0 11px; border: 0; border-radius: 8px; background: transparent; color: #96a7b9; font-size: 11px; text-align: left; cursor: pointer; transition: background .15s,color .15s; }
.app-nav button:hover { background: #101d2b; color: #e5effa; }
.app-nav button[aria-current="page"] { background: #102a44; color: #62c4ff; }
.nav-icon { display: inline-grid; width: 18px; place-items: center; color: #93a9bf; font-size: 15px; text-align: center; }
.nav-icon svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.app-nav button[aria-current="page"] .nav-icon { color: #62c4ff; }
.nav-counter { margin-left: auto; padding: 1px 6px; border-radius: 8px; background: #172c41; color: #b1c4d8; font-size: 9px; }
.sidebar-bottom { display: grid; gap: 4px; margin-top: auto; }
.app-sidebar .sidebar-bottom button { display: flex; align-items: center; gap: 10px; padding: 10px; border: 0; background: transparent; color: #91a3b7; font-size: 10px; text-align: left; cursor: pointer; }
.sidebar-user { display: flex; align-items: center; gap: 8px; padding: 13px 6px 0; border-top: 1px solid var(--app-border); }
.sidebar-user > span:nth-child(2) { font-size: 10px; font-weight: 600; }
.sidebar-user small { display: block; color: var(--app-muted); font-size: 9px; font-weight: 400; }
.app-main { min-height: 100vh; margin-left: 226px; }
.app-topbar { position: sticky; z-index: 5; top: 0; display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 20px; padding: 0 30px; border-bottom: 1px solid var(--app-border); background: rgba(7,13,21,.9); backdrop-filter: blur(18px); }
.app-centered-brand { position: absolute; top: 50%; left: 50%; display: grid; width: 116px; height: 48px; place-items: center; transform: translate(-50%,-50%); }
.app-centered-brand img { display: block; width: 52px; height: 52px; object-fit: contain; }
.breadcrumb { color: var(--app-muted); font-size: 11px; }
.breadcrumb strong { color: #e7eef7; font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.icon-button { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--app-border); border-radius: 8px; background: #0b1622; color: #b3c2d1; cursor: pointer; }
.icon-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.icon-button:hover { border-color: #317ab6; color: #fff; }
.topbar-user { display: flex; align-items: center; gap: 8px; padding-left: 7px; }
.topbar-user > span:last-child { font-size: 10px; font-weight: 600; }
.topbar-user small { display: block; color: var(--app-muted); font-size: 9px; font-weight: 400; }
.app-content { width: min(1220px,100%); padding: 26px 30px 50px; margin: 0 auto; }
.welcome-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.welcome-row h1 { margin: 0; font-size: 24px; font-weight: 650; letter-spacing: -.045em; }
.welcome-row p { margin: 4px 0 0; color: var(--app-muted); font-size: 11px; }
.date-pill { padding: 6px 9px; border: 1px solid var(--app-border); border-radius: 7px; color: #a0b1c3; font-size: 9px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(235px,.85fr); align-items: stretch; gap: 15px; }
.dashboard-grid > *, .content-grid > *, .trade-layout > *, .profile-layout > * { min-width: 0; }
.surface { border: 1px solid var(--app-border); border-radius: 11px; background: linear-gradient(145deg,#0d1926,#0b1520); }
.balance-overview { position: relative; min-height: 226px; overflow: hidden; padding: 19px 20px 16px; background: #111e2d; }
.balance-overview::after { content: none; }
.balance-head, .surface-heading { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.muted-label { color: #92a4b7; font-size: 10px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; clip-path: inset(50%); }
.balance-currency-picker { position: relative; display: inline-flex; align-items: center; }
.balance-currency-picker select { min-width: 72px; padding: 5px 19px 5px 7px; border: 1px solid #2a4055; border-radius: 8px; appearance: none; background: #102030; color: #b9d9f1; font: inherit; font-size: 10px; font-weight: 650; text-align: center; cursor: pointer; }
.demo-balance-currency { min-width: 72px; padding: 5px 7px; border: 1px solid #2a4055; border-radius: 8px; background: #102030; color: #b9d9f1; font-size: 10px; font-weight: 650; text-align: center; }
.balance-currency-chevron { position: absolute; top: calc(50% - 5px); right: 9px; width: 7px; height: 7px; border-right: 1.5px solid #d9dde3; border-bottom: 1.5px solid #d9dde3; transform: rotate(45deg); pointer-events: none; }
.balance-currency-picker select:focus-visible { outline: 2px solid rgba(91,190,255,.9); outline-offset: 2px; }
.balance-currency-picker select:disabled { color: #71859a; cursor: wait; }
.balance-fx-note { position: relative; z-index: 1; min-height: 14px; margin-top: 5px; color: #8095aa; font-size: 9px; }
.balance-head .icon-button { width: 29px; height: 29px; border: 0; background: rgba(8,18,29,.65); }
.balance-total { position: relative; z-index: 1; display: flex; align-items: baseline; gap: 11px; margin-top: 8px; }
.balance-total strong { font-size: clamp(28px,3vw,37px); font-weight: 620; letter-spacing: -.055em; }
.balance-total .balance-delta { color: var(--app-green); font-size: 10px; }
.balance-total .balance-delta small { color: #8da1b5; }
.balance-meta { position: relative; z-index: 1; display: flex; gap: 15px; margin-top: 2px; color: #8da0b5; font-size: 9px; }
.balance-meta b { color: #d9e5f0; font-weight: 600; }
.spark-chart { position: absolute; right: 17px; bottom: 11px; left: 18px; width: calc(100% - 35px); height: 70px; overflow: visible; }
.spark-chart .chart-fill { fill: url(#dashboard-fill); }
.spark-chart .chart-stroke { fill: none; stroke: #16b8e7; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.dashboard-side { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; }
.quick-actions { padding: 16px; }
.surface-heading { margin: 0 0 13px; font-size: 11px; font-weight: 650; }
.action-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; }
.action-button { display: grid; min-width: 0; justify-items: center; gap: 6px; padding: 5px 1px; border: 0; background: transparent; color: #a6b8ca; font-size: 8px; cursor: pointer; }
.action-button:hover { color: #fff; }
.action-icon { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(96,160,215,.14); border-radius: 10px; background: #112437; color: #6ccaff; font-size: 16px; }
.action-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.account-mini { padding: 14px 15px; }
.account-mini-row { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.account-mini-name { color: #dce7f1; font-size: 9px; }
.account-mini-name small { display: block; color: var(--app-muted); font-size: 8px; }
.account-mini-row > span:last-child { text-align: right; }
.account-mini-row strong { display: block; font-size: 12px; }
.account-mini-row > span:last-child small { display: block; }
.account-mini-row .positive { color: var(--app-green); font-size: 8px; }
.account-progress { height: 4px; margin-top: 12px; overflow: hidden; border-radius: 9px; background: #192838; }
.account-progress span { display: block; width: 68%; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#087ef3,#25cbeb); }
.account-foot { display: flex; justify-content: space-between; margin-top: 6px; color: var(--app-muted); font-size: 8px; }
.content-grid { display: grid; grid-template-columns: minmax(0,1.28fr) minmax(255px,.92fr); gap: 15px; margin-top: 15px; }
.home-markets-panel { min-width: 0; }
.market-panel-subtitle { display: block; margin-top: 3px; color: var(--app-muted); font-size: 8px; }
.home-markets-panel .page-table-wrap { max-height: 980px; overflow-y: auto; scrollbar-color: #263b50 transparent; scrollbar-width: thin; }
.home-markets-panel .market-assets-table { min-width: 520px; }
.home-markets-panel .market-assets-table td, .home-markets-panel .market-assets-table th { padding-block: 8px; }
.home-markets-panel .page-table-wrap { max-height: none; overflow-y: visible; }
.home-markets-panel .market-row-actions .secondary-action { min-height: 26px; padding-inline: 9px; font-size: 8px; }
.home-markets-panel .favorite-button { width: 25px; height: 25px; }
.cards-page { display: grid; gap: 16px; }
.cards-page .welcome-row { margin-bottom: 0; }
.card-preview-panel { display: grid; min-height: 310px; grid-template-columns: minmax(240px,.9fr) minmax(0,1.1fr); align-items: center; gap: clamp(24px,5vw,64px); padding: clamp(22px,4vw,46px); overflow: hidden; }
.demo-payment-card { position: relative; display: flex; min-height: 220px; flex-direction: column; justify-content: space-between; padding: 22px; overflow: hidden; border: 1px solid rgba(156,202,242,.22); border-radius: 18px; background: radial-gradient(ellipse at 90% 10%,rgba(37,160,233,.45),transparent 39%),linear-gradient(140deg,#1a3651,#102238 55%,#0c1827); box-shadow: 0 22px 44px rgba(0,0,0,.25); transform: rotate(-3deg); }
.demo-payment-card::after { position: absolute; right: -34px; bottom: -87px; width: 210px; height: 210px; border: 1px solid rgba(134,203,252,.16); border-radius: 50%; box-shadow: 0 0 0 18px rgba(134,203,252,.035),0 0 0 40px rgba(134,203,252,.025); content: ""; }
.demo-card-top, .demo-card-bottom { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.demo-card-top > span:last-child { padding: 4px 7px; border: 1px solid rgba(215,230,244,.2); border-radius: 5px; color: #c5d9ec; font-size: 7px; letter-spacing: .12em; }
.demo-card-brand { font-size: 14px; font-weight: 750; letter-spacing: -.04em; }
.demo-card-brand b { color: #54c7f4; }
.demo-card-chip { position: relative; z-index: 1; width: 31px; height: 24px; border: 1px solid rgba(239,206,135,.6); border-radius: 6px; background: linear-gradient(140deg,rgba(233,193,108,.8),rgba(119,91,53,.7)); }
.demo-card-number { position: relative; z-index: 1; color: #d6e5f2; font-size: 12px; letter-spacing: .17em; }
.demo-card-bottom > span { font-size: 8px; letter-spacing: .08em; }
.demo-card-bottom small { display: block; margin-top: 4px; color: #8da6bc; font-size: 6px; }
.demo-card-bottom > strong { color: #e3edf7; font-size: 16px; font-style: italic; }
.card-preview-copy h2 { margin: 7px 0; font-size: clamp(21px,3vw,29px); letter-spacing: -.04em; }
.card-preview-copy p { max-width: 410px; margin: 0 0 17px; color: var(--app-muted); font-size: 10px; }
.card-feature-list { display: grid; gap: 9px; margin-bottom: 20px; color: #b4c5d5; font-size: 9px; }
.card-feature-list span::first-letter { color: var(--app-green); }
.card-preview-copy .primary-action { min-height: 39px; }
.card-safety-note { display: flex; flex-wrap: wrap; gap: 8px; padding: 13px 15px; color: var(--app-muted); font-size: 9px; }
.card-safety-note strong { color: #e7c275; }
.panel { padding: 17px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.panel-heading h2 { margin: 0; font-size: 12px; font-weight: 650; }
.panel-link { padding: 0; border: 0; background: transparent; color: #48b8fb; font-size: 9px; cursor: pointer; }
.home-see-more {
	position: relative;
	display: flex;
	width: 100%;
	min-height: 52px;
	align-items: center;
	gap: 3px 10px;
	padding: 9px 44px 9px 14px;
	margin-top: 9px;
	border: 1px solid rgba(81,177,223,.27);
	border-radius: 14px;
	background: linear-gradient(105deg,rgba(25,132,175,.19),rgba(60,91,166,.16));
	color: #eaf6ff;
	text-align: left;
	cursor: pointer;
	box-shadow: inset 0 1px rgba(255,255,255,.045);
}
.home-see-more:hover { border-color: rgba(91,195,242,.58); background: linear-gradient(105deg,rgba(25,151,190,.28),rgba(75,104,189,.24)); box-shadow: 0 7px 20px rgba(16,118,177,.13),inset 0 1px rgba(255,255,255,.07); }
.home-see-more > span:first-child { font-size: 11px; font-weight: 680; }
.home-see-more-count { color: #9bb7cb; font-size: 8px; }
.home-see-more svg { position: absolute; top: 50%; right: 14px; width: 19px; height: 19px; fill: none; stroke: #76d7ff; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; transform: translateY(-50%); transition: transform .16s ease; }
.home-see-more:hover svg { transform: translate(3px,-50%); }
.asset-table { width: 100%; border-collapse: collapse; }
.asset-table th { padding: 9px 6px; border-bottom: 1px solid var(--app-border); color: #71859a; font-size: 8px; font-weight: 500; text-align: left; }
.asset-table td { padding: 10px 6px; border-bottom: 1px solid rgba(147,174,204,.08); font-size: 9px; }
.asset-table tbody tr:last-child td { border-bottom: 0; }
.asset-cell { display: flex; align-items: center; gap: 8px; }
.asset-cell strong, .asset-cell small { display: block; }
.asset-cell strong { font-size: 9px; font-weight: 600; }
.asset-cell small { color: var(--app-muted); font-size: 8px; }
.coin-icon { display: grid; width: 25px; height: 25px; flex: 0 0 auto; place-items: center; overflow: hidden; border-radius: 50%; background: #26344a; }
.coin-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.coin-icon.btc, .coin-icon.eth, .coin-icon.sol, .coin-icon.usdt, .coin-icon.bnb { background: transparent; }
.positive { color: var(--app-green); }
.negative { color: var(--app-red); }
.market-change { font-size: 8px; }
.activity-list { display: grid; }
.activity-item { display: flex; align-items: center; gap: 9px; padding: 10px 0; border-bottom: 1px solid rgba(147,174,204,.08); }
.activity-item:last-child { border-bottom: 0; }
.activity-icon { display: grid; width: 29px; height: 29px; flex: 0 0 auto; place-items: center; border-radius: 9px; background: #142539; color: #71c9ff; font-size: 14px; }
.activity-description { flex: 1; }
.activity-description strong, .activity-description small { display: block; }
.activity-description strong { font-size: 9px; font-weight: 570; }
.activity-description small { color: var(--app-muted); font-size: 8px; }
.activity-amount { font-size: 9px; font-weight: 620; text-align: right; }
.activity-amount small { display: block; color: var(--app-muted); font-size: 7px; font-weight: 400; }
.disclaimer { margin: 14px 0 0; color: #74879c; font-size: 8px; }
.page-panel { min-height: 420px; padding: 22px; }
.page-panel h2 { margin: 0 0 5px; font-size: 19px; letter-spacing: -.03em; }
.page-description { margin: 0 0 20px; color: var(--app-muted); font-size: 10px; }
.market-search { width: 100%; max-width: 350px; padding: 9px 11px; margin-bottom: 15px; border: 1px solid var(--app-border); border-radius: 8px; outline: 0; background: #09131e; color: var(--app-text); font-size: 10px; }
.market-search:focus, .form-field input:focus, .form-field select:focus { border-color: #1787d9; }
.page-table-wrap { max-width: 100%; min-width: 0; overflow-x: auto; }
.page-table-wrap .asset-table { min-width: 530px; }
.chart-panel { padding: 20px; }
.trade-chart-wrap { height: 230px; margin-top: 15px; background-image: linear-gradient(rgba(122,156,190,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(122,156,190,.07) 1px,transparent 1px); background-size: 100% 46px,14.2% 100%; }
.trade-chart-wrap canvas { width: 100%; height: 100%; }
.chart-asset-price { margin-top: 14px; font-size: 27px; font-weight: 650; letter-spacing: -.04em; }
.chart-asset-price span { margin-left: 8px; color: var(--app-green); font-size: 10px; letter-spacing: 0; }
.chart-toolbar { display: flex; gap: 6px; margin-top: 15px; }
.chart-toolbar button { padding: 5px 8px; border: 1px solid var(--app-border); border-radius: 6px; background: #0b1520; color: #94a8bc; font-size: 8px; cursor: pointer; }
.chart-toolbar button.selected { border-color: #21496a; background: #102b43; color: #67c6ff; }
.trade-layout { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(240px,.8fr); gap: 15px; }
.trade-form { display: grid; gap: 13px; padding: 17px; }
.trade-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 7px; background: #08121d; }
.trade-tabs button { min-height: 30px; border: 0; border-radius: 5px; background: transparent; color: #9caec0; font-size: 10px; cursor: pointer; }
.trade-tabs button.selected.buy { background: #104234; color: #56dfb0; }
.trade-tabs button.selected.sell { background: #47202c; color: #ff91a0; }
.form-field { display: grid; gap: 5px; color: #9aacc0; font-size: 9px; }
.form-field input, .form-field select { width: 100%; min-height: 36px; padding: 0 10px; border: 1px solid var(--app-border); border-radius: 7px; outline: 0; background: #08121d; color: #e8f0f8; font-size: 10px; }
.form-help { margin-top: -9px; color: #72869b; font-size: 8px; }
.primary-action, .secondary-action { display: inline-flex; min-height: 37px; align-items: center; justify-content: center; gap: 6px; padding: 0 14px; border: 1px solid transparent; border-radius: 7px; background: linear-gradient(100deg,#087af5,#139ce7); color: #fff; font-size: 10px; font-weight: 650; cursor: pointer; }
.primary-action:hover { filter: brightness(1.1); }
.secondary-action { border-color: var(--app-border); background: #0c1825; color: #bfccda; }
.wallet-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-bottom: 15px; }
.wallet-card { padding: 15px; }
.wallet-card small, .wallet-card strong, .wallet-card span { display: block; }
.wallet-card small { color: var(--app-muted); font-size: 9px; }
.wallet-card strong { margin-top: 5px; font-size: 18px; letter-spacing: -.035em; }
.wallet-card span { margin-top: 3px; color: var(--app-green); font-size: 8px; }
.profile-layout { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 14px; }
.profile-card { display: grid; justify-items: center; align-content: start; padding: 25px 15px; text-align: center; }
.profile-card .user-avatar { width: 61px; height: 61px; font-size: 17px; }
.profile-card h3 { margin: 11px 0 1px; font-size: 13px; }
.profile-card p { margin: 0; color: var(--app-muted); font-size: 9px; }
.verified-badge { padding: 3px 7px; margin-top: 9px; border-radius: 12px; background: #10342d; color: #50d5a9; font-size: 8px; }
.profile-details { padding: 18px; }
.profile-line { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--app-border); font-size: 9px; }
.profile-line:last-child { border-bottom: 0; }
.profile-line span { color: var(--app-muted); }
.profile-page { display: grid; gap: 16px; max-width: 1120px; margin-inline: auto; }
.profile-hero { display: grid; min-height: 138px; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 16px; padding: 21px 24px; }
.profile-avatar { display: grid; width: 64px; height: 64px; place-items: center; border: 1px solid #5a0010; border-radius: 50%; background: #230006; color: #e5e7eb; font-size: 20px; font-weight: 750; }
.profile-identity .eyebrow { color: #8d949e; }
.profile-identity h1 { margin: 3px 0; font-size: 21px; letter-spacing: -.025em; }
.profile-identity p { margin: 0; color: #8d949e; font-size: 11px; }
.profile-demo-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid #5a0010; border-radius: 20px; background: #220006; color: #e5e7eb; font-size: 9px; font-weight: 750; letter-spacing: .08em; }
.profile-demo-badge i { width: 6px; height: 6px; border-radius: 50%; background: #a50022; }
.profile-id { display: grid; grid-column: 2 / 4; grid-template-columns: auto auto; justify-content: end; gap: 8px; color: #8d949e; font-size: 10px; }
.profile-id strong { color: #c5cad1; font-size: 10px; }
.profile-summary-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.profile-summary { display: grid; gap: 4px; padding: 15px 17px; }
.profile-summary > span, .profile-summary small { color: #8d949e; font-size: 10px; }
.profile-summary strong { color: #e5e7eb; font-size: 15px; }
.profile-summary .profile-status-pending { color: #c5cad1; }
.profile-content-grid { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(250px,.8fr); align-items: start; gap: 14px; }
.profile-groups, .profile-side { display: grid; gap: 14px; }
.profile-group { overflow: hidden; padding: 0 17px; }
.profile-group-heading { padding: 16px 0 10px; }
.profile-group-heading h2, .profile-account-status h2 { margin: 0; color: #fff; font-size: 13px; }
.profile-group-heading p { margin: 3px 0 0; color: #8d949e; font-size: 10px; }
.profile-row { display: flex; width: 100%; min-height: 62px; align-items: center; gap: 12px; padding: 9px 1px; border: 0; border-top: 1px solid #242428; background: transparent; color: #fff; text-align: left; cursor: pointer; }
.profile-session-form { margin: 0; }
.profile-row:hover .profile-row-copy strong { color: #e5e7eb; }
.profile-row-icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border: 1px solid #242428; border-radius: 10px; background: #151518; color: #c5cad1; }
.profile-row-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.profile-row-copy { display: grid; min-width: 0; flex: 1; gap: 2px; }
.profile-row-copy strong { font-size: 11px; font-weight: 600; }
.profile-row-copy small { overflow: hidden; color: #8d949e; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.profile-row-chevron { width: 15px; height: 15px; flex: 0 0 15px; fill: none; stroke: #737982; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.profile-account-status { padding-top: 16px; }
.profile-account-status h2 { padding-bottom: 9px; }
.profile-portfolio-total { display: grid; gap: 3px; padding: 10px 0 13px; }
.profile-portfolio-total span { color: #8d949e; font-size: 10px; }
.profile-portfolio-total strong { color: #e5e7eb; font-size: 22px; letter-spacing: -.035em; }
.profile-status-line { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid #242428; font-size: 10px; }
.profile-status-line span { color: #8d949e; }
.profile-status-line strong { color: #c5cad1; font-size: 10px; text-align: right; }
.profile-demo-notice { padding: 15px 16px; border: 1px solid #3a0008; border-radius: 12px; background: #160307; }
.profile-demo-notice strong { color: #e5e7eb; font-size: 11px; }
.profile-demo-notice p { margin: 5px 0 0; color: #aeb2b9; font-size: 10px; line-height: 1.6; }
.app-modal { width: min(420px,calc(100% - 28px)); padding: 0; border: 1px solid rgba(141,174,206,.2); border-radius: 13px; background: #0c1723; color: var(--app-text); box-shadow: 0 28px 100px #000a; }
.app-modal::backdrop { background: rgba(0,0,0,.68); backdrop-filter: blur(5px); }
.modal-content { padding: 19px; }
.modal-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.modal-heading h2 { margin: 0; font-size: 16px; }
.modal-heading .icon-button { width: 28px; height: 28px; }
.modal-content > p { margin: 0 0 17px; color: var(--app-muted); font-size: 10px; }
.modal-content form { display: grid; gap: 13px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }
.toast { position: fixed; z-index: 20; right: 20px; bottom: 20px; max-width: min(380px,calc(100% - 40px)); padding: 12px 15px; border: 1px solid rgba(55,212,161,.3); border-radius: 9px; background: #10271f; color: #baf4df; font-size: 10px; box-shadow: 0 12px 35px #0006; animation: toast-in .2s ease-out; }
.toast[hidden] { display: none; }
.empty-state { padding: 25px 10px; color: var(--app-muted); font-size: 10px; text-align: center; }
.app-bottom-nav { display: none; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 1500px) {
	.app-content { padding-top: 33px; }
	.balance-overview { min-height: 250px; }
}

@media (max-width: 1050px) {
	.app-sidebar { width: 190px; }
	.app-main { margin-left: 190px; }
	.app-topbar { padding-inline: 21px; }
	.app-content { padding-inline: 21px; }
	.dashboard-grid { grid-template-columns: minmax(0,1.25fr) minmax(210px,.85fr); }
	.content-grid { grid-template-columns: 1fr; }
	.activity-panel { min-height: 0; }
}

@media (max-width: 1024px) {
	body { padding-bottom: 61px; }
	.app-sidebar { display: none; }
	.app-main { margin-left: 0; }
	.app-topbar { min-height: 55px; padding-inline: 15px; }
	.app-content { padding: 19px 15px 30px; }
	.dashboard-grid { grid-template-columns: 1fr; }
	.dashboard-side { grid-template-columns: 1.1fr .9fr; grid-template-rows: 1fr; }
	.balance-overview { min-height: 210px; }
	.content-grid { grid-template-columns: 1fr; }
	.app-bottom-nav { position: fixed; z-index: 12; right: 0; bottom: 0; left: 0; display: grid; width: auto; max-width: 440px; min-height: 72px; padding: 7px 10px calc(7px + env(safe-area-inset-bottom)); margin-inline: auto; border: 1px solid rgba(147,174,204,.1); border-bottom: 0; border-radius: 17px 17px 0 0; background: rgba(10,17,27,.97); grid-template-columns: repeat(5,minmax(0,1fr)); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); box-shadow: 0 -10px 30px rgba(0,0,0,.16); }
	.app-bottom-nav button { display: grid; min-width: 0; justify-items: center; align-content: center; gap: 4px; border: 0; border-radius: 11px; background: transparent; color: #78899d; font-size: 10px; font-weight: 550; cursor: pointer; transition: color .16s ease,background .16s ease; }
	.app-bottom-nav button .nav-icon { display: grid; width: 42px; height: 28px; place-items: center; border-radius: 14px; color: inherit; }
	.app-bottom-nav button .nav-icon svg { width: 21px; height: 21px; stroke-width: 1.75; }
	.app-bottom-nav button[aria-current="page"] { color: #58bfff; }
	.app-bottom-nav button[aria-current="page"] .nav-icon { background: rgba(38,143,219,.15); }
	.app-bottom-nav button.nav-trade .nav-icon { width: 42px; height: 34px; border: 1px solid rgba(72,175,255,.3); background: linear-gradient(145deg,#1269a7,#164572); color: #ecf8ff; box-shadow: 0 5px 16px rgba(0,120,220,.23),inset 0 1px rgba(255,255,255,.12); }
	.app-bottom-nav button.nav-trade[aria-current="page"] .nav-icon { background: linear-gradient(145deg,#168cff,#1465ac); }
	.app-bottom-nav button:active { transform: scale(.96); }
	.trade-layout { grid-template-columns: 1fr; }
	.trade-chart-wrap { height: 190px; }
	.profile-content-grid { grid-template-columns: minmax(0,1.35fr) minmax(220px,.8fr); }
	.profile-card { padding: 18px; }
}

@media (max-width: 520px) {
	.app-content { padding-inline: 12px; }
	.app-topbar { padding-inline: 12px; }
	.welcome-row { align-items: flex-start; }
	.welcome-row h1 { font-size: 21px; }
	.date-pill { flex: 0 0 auto; font-size: 8px; white-space: nowrap; }
	.dashboard-side { grid-template-columns: 1fr; grid-template-rows: auto auto; }
	.quick-actions { padding: 14px 12px; }
	.action-button { font-size: 8px; }
	.action-icon { width: 37px; height: 37px; }
	.account-mini { padding: 13px; }
	.panel { padding: 13px 10px; }
	.asset-table th { font-size: 7px; }
	.asset-table td { padding-inline: 4px; font-size: 8px; }
	.asset-cell { gap: 5px; }
	.coin-icon { width: 22px; height: 22px; }
	.wallet-cards { grid-template-columns: 1fr; }
	.wallet-card { padding: 12px; }
	.wallet-card strong { font-size: 16px; }
	.page-panel { padding: 16px 12px; }
	.topbar-user > span:last-child { display: none; }
	.toast { right: 12px; bottom: 72px; }
}

@media (max-width: 1024px) {
	body { padding-bottom: 0; }
	.app-shell { width: min(100%,440px); min-height: 100dvh; margin: 0 auto; border-right: 1px solid rgba(147,174,204,.1); border-left: 1px solid rgba(147,174,204,.1); background: #080e16; box-shadow: 0 0 45px rgba(0,0,0,.2); }
	.app-main { min-height: 100dvh; }
	.app-content { width: 100%; padding: 18px 18px calc(92px + env(safe-area-inset-bottom)); }
	body { font-size: 14px; }
	.welcome-row h1, .markets-heading h1, .terminal-topline h1 { font-size: 24px; }
	.welcome-row p, .page-description { font-size: 12px; }
	.mode-banner { padding: 7px 9px; margin-bottom: 13px; border: 0; border-left: 2px solid rgba(51,172,234,.5); border-radius: 0; background: rgba(14,55,78,.14); font-size: 9px; line-height: 1.4; }
	.app-bottom-nav { right: 0; left: 0; width: auto; max-width: 440px; margin-inline: auto; }
	body {
		padding-bottom: 0;
		background:
			radial-gradient(ellipse at 80% 0, rgba(20, 107, 183, .08), transparent 28%),
			#080e16;
		-webkit-font-smoothing: antialiased;
	}

	.app-topbar {
		position: sticky;
		z-index: 5;
		top: 0;
		display: flex;
		min-height: 62px;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 0 15px;
		border-bottom: 1px solid rgba(150,179,208,.08);
		background: #080e16;
	}
	.app-centered-brand { width: 108px; height: 40px; }
	.breadcrumb { display: none; }
	.topbar-actions { gap: 0; margin-left: auto; }
	.topbar-actions > .icon-button:not(.topbar-profile-button) { display: none; }
	.topbar-actions > .topbar-profile-button {
		width: 38px;
		height: 38px;
		border: 1px solid rgba(111,178,231,.22);
		border-radius: 50%;
		background: #101d2b;
		color: #c7d8e8;
	}
	.topbar-profile-button svg { width: 19px; height: 19px; }

	.app-content { padding: 18px 18px calc(92px + env(safe-area-inset-bottom)); }
	.welcome-row { align-items: center; margin: 2px 0 18px; }
	.welcome-row h1 { font-size: 22px; font-weight: 620; letter-spacing: -.045em; }
	.welcome-row p { margin-top: 3px; font-size: 10px; }
	.welcome-row > .date-pill { display: none; }
	.welcome-row > .primary-action { min-height: 37px; padding-inline: 10px; white-space: nowrap; }

	.dashboard-grid { gap: 13px; }
	.dashboard-side { display: block; }
	.dashboard-side .account-mini { display: none; }
	.balance-overview {
		min-height: 194px;
		padding: 17px 17px 14px;
		border: 1px solid rgba(88, 151, 208, .2);
		border-radius: 18px;
		background:
			radial-gradient(ellipse at 100% 0, rgba(23, 132, 226, .15), transparent 47%),
			linear-gradient(145deg, #112338, #0d1b2b 63%, #0b1724);
		box-shadow: 0 12px 35px rgba(0, 0, 0, .17);
	}

	.balance-overview::after { top: -127px; right: -85px; opacity: .55; }
	.balance-head .muted-label { font-size: 10px; }
	.balance-head .icon-button { width: 32px; height: 32px; border: 1px solid rgba(155,190,221,.12); border-radius: 10px; }
	.balance-total { align-items: center; flex-wrap: wrap; gap: 4px 9px; margin-top: 9px; }
	.balance-total strong { font-size: 31px; font-weight: 630; }
	.balance-total .balance-delta { padding: 3px 6px; border-radius: 6px; background: rgba(32,194,148,.1); font-size: 9px; }
	.balance-total .balance-delta small { display: none; }
	.balance-meta { gap: 8px; margin-top: 10px; font-size: 8px; }
	.balance-meta > span { padding: 5px 7px; border: 1px solid rgba(149,181,211,.1); border-radius: 6px; background: rgba(5,14,23,.27); }
	.balance-meta b { margin-left: 2px; font-size: 8px; }
	.spark-chart { right: 13px; bottom: 7px; left: 14px; width: calc(100% - 27px); height: 48px; opacity: .8; }

	.quick-actions { padding: 2px 0 0; border: 0; background: transparent; }
	.surface-heading { margin: 0 0 13px; font-size: 12px; font-weight: 650; }
	.action-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; }
	.action-button { gap: 7px; padding: 0; color: #a9b8c8; font-size: 10px; font-weight: 550; }
	.action-button .action-icon { width: 48px; height: 48px; border: 1px solid rgba(100,165,217,.12); border-radius: 16px; background: linear-gradient(145deg,#14283a,#102033); color: #75caff; font-size: 19px; box-shadow: inset 0 1px rgba(255,255,255,.035); }
	.action-button:nth-child(2) .action-icon { color: #65d4b5; }
	.action-button:nth-child(3) .action-icon { color: #a8a4ff; }
	.action-button:nth-child(4) .action-icon { color: #f3c66f; }
	.action-button:active .action-icon { transform: scale(.96); }
	.home-see-more { min-height: 56px; padding-inline: 15px 46px; margin-top: 11px; border-radius: 15px; }
	.home-see-more > span:first-child { font-size: 12px; }
	.home-see-more-count { font-size: 9px; }

	.content-grid { gap: 18px; margin-top: 25px; }
	.content-grid .surface.panel { padding: 0; border: 0; border-radius: 0; background: transparent; }
	.panel-heading { margin-bottom: 8px; }
	.panel-heading h2 { font-size: 13px; font-weight: 650; }
	.panel-link { font-size: 9px; }
	.asset-table.market-assets-table { display: block; width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; }
	.market-assets-table thead { display: none; }
	.market-assets-table tbody { display: grid; }
	.market-assets-table tbody tr { display: grid; min-height: 61px; align-items: center; padding: 7px 0; border-bottom: 1px solid rgba(143,174,204,.09); grid-template-columns: minmax(0,1fr) auto; grid-template-rows: 1fr 1fr; }
	.market-assets-table tbody tr:last-child { border-bottom: 0; }
	.market-assets-table tbody td { display: block; width: auto; padding: 0; border: 0; }
	.market-assets-table tbody td:first-child { grid-area: 1 / 1 / 3 / 2; }
	.market-assets-table tbody td:nth-child(2) { grid-area: 1 / 2 / 2 / 3; color: #e7eef7; font-size: 10px; font-weight: 620; text-align: right; }
	.market-assets-table tbody td:nth-child(3) { grid-area: 2 / 2 / 3 / 3; font-size: 8px; text-align: right; }
	.market-assets-table tbody td:nth-child(n+4) { display: none; }
	.asset-cell { gap: 9px; }
	.asset-cell strong { font-size: 13px; font-weight: 600; }
	.asset-cell small { margin-top: 2px; font-size: 10px; }
	.coin-icon { width: 34px; height: 34px; }
	.disclaimer { margin-top: 7px; font-size: 8px; }
	.activity-list { padding: 2px 13px; border: 1px solid rgba(143,174,204,.1); border-radius: 14px; background: linear-gradient(145deg,#0d1925,#0b1520); }
	.activity-item { min-height: 57px; gap: 10px; }
	.activity-icon { width: 34px; height: 34px; border-radius: 11px; }
	.activity-description strong { font-size: 9px; }
	.activity-description small { margin-top: 2px; font-size: 8px; }
	.activity-amount { font-size: 9px; }
	.activity-amount small { margin-top: 2px; font-size: 7px; }

	.page-panel { min-height: 0; padding: 0; border: 0; background: transparent; }
	.page-panel h2 { margin-bottom: 4px; font-size: 21px; }
	.page-description { margin-bottom: 16px; font-size: 12px; }
	.market-search { max-width: none; min-height: 44px; padding: 0 13px; margin-bottom: 14px; border-radius: 12px; background: #101a26; font-size: 16px; }
	.page-table-wrap .asset-table.market-assets-table { min-width: 0; }
	.page-table-wrap .asset-table.market-assets-table tbody tr { min-height: 70px; }
	.page-table-wrap .asset-table.market-assets-table tbody td:nth-child(2) { font-size: 12px; }
	.wallet-cards { display: flex; overflow-x: auto; gap: 9px; padding: 2px 19px 5px 0; margin: 0 -19px 17px 0; scrollbar-width: none; scroll-snap-type: x mandatory; }
	.wallet-cards::-webkit-scrollbar { display: none; }
	.wallet-card { min-width: 153px; padding: 13px; border-radius: 14px; scroll-snap-align: start; }
	.wallet-card strong { font-size: 17px; }
	.wallet-cards + .surface.panel { padding: 0; border: 0; background: transparent; }
	.wallet-assets-table { display: block; width: 100%; min-width: 0 !important; table-layout: fixed; }
	.wallet-assets-table thead { display: none; }
	.wallet-assets-table tbody { display: grid; }
	.wallet-assets-table tbody tr { display: grid; min-height: 62px; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(143,174,204,.09); grid-template-columns: minmax(0,1fr) auto; }
	.wallet-assets-table tbody td { display: none; padding: 0; border: 0; }
	.wallet-assets-table tbody td:first-child, .wallet-assets-table tbody td:nth-child(4) { display: block; }
	.wallet-assets-table tbody td:nth-child(4) { color: #e7eef7; font-size: 10px; font-weight: 620; text-align: right; }
	.wallet-assets-table .asset-cell strong { font-size: 10px; }
	.wallet-assets-table .asset-cell small { font-size: 8px; }
	.wallet-cards + .surface.panel .panel-heading { margin-bottom: 11px; }
	.wallet-cards + .surface.panel .panel-link { font-size: 8px; }
	.wallet-cards + .surface.panel .disclaimer { font-size: 8px; }

	.trade-layout { gap: 12px; }
	.chart-panel { padding: 16px 13px; border-radius: 15px; }
	.chart-asset-price { font-size: 25px; }
	.trade-chart-wrap { height: 185px; }
	.trade-form { gap: 14px; padding: 16px 14px; border-radius: 15px; }
	.trade-tabs { border-radius: 10px; }
	.trade-tabs button { min-height: 40px; font-size: 11px; }
	.form-field { gap: 6px; font-size: 9px; }
	.form-field input, .form-field select { min-height: 45px; border-radius: 10px; font-size: 16px; }
	.primary-action, .secondary-action { min-height: 45px; border-radius: 10px; font-size: 11px; }
	.form-help { font-size: 8px; }
	.profile-card { border-radius: 15px; }
	.profile-details { padding: 16px; border-radius: 15px; }
	.profile-line { padding: 14px 0; font-size: 10px; }
	.profile-line strong { text-align: right; }
	.profile-page { gap: 12px; }
	.profile-hero { min-height: 112px; gap: 10px; padding: 15px; }
	.profile-avatar { width: 48px; height: 48px; font-size: 15px; }
	.profile-identity h1 { font-size: 17px; }
	.profile-identity p { max-width: 220px; font-size: 9px; line-height: 1.4; }
	.profile-demo-badge { align-self: start; padding: 5px 7px; font-size: 8px; }
	.profile-id { grid-column: 2 / 4; font-size: 9px; }
	.profile-id strong { font-size: 9px; }
	.profile-summary-grid { gap: 7px; }
	.profile-summary { gap: 3px; padding: 11px 9px; }
	.profile-summary > span, .profile-summary small { font-size: 8px; line-height: 1.35; }
	.profile-summary strong { font-size: 11px; }
	.profile-content-grid { grid-template-columns: 1fr; gap: 12px; }
	.profile-groups, .profile-side { gap: 12px; }
	.profile-group { padding-inline: 13px; }
	.profile-group-heading { padding-top: 14px; }
	.profile-row { min-height: 59px; gap: 10px; }
	.profile-row-icon { width: 32px; height: 32px; flex-basis: 32px; }
	.profile-row-copy strong { font-size: 10px; }
	.profile-row-copy small { font-size: 8px; }
	.profile-status-line { font-size: 9px; }
	.profile-portfolio-total strong { font-size: 20px; }

	.app-bottom-nav {
		min-height: 66px;
		padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
		border-top: 1px solid rgba(143,174,204,.11);
		background: rgba(8,14,22,.96);
		box-shadow: 0 -8px 25px rgba(0,0,0,.16);
		backdrop-filter: blur(24px);
		-webkit-backdrop-filter: blur(24px);
	}
	.app-bottom-nav button { align-content: center; gap: 4px; border-radius: 12px; color: #8193a7; font-size: 10px; font-weight: 550; transition: color .15s,background .15s; }
	.app-bottom-nav button .nav-icon { display: grid; width: 42px; height: 28px; place-items: center; border-radius: 14px; color: inherit; }
	.app-bottom-nav button[aria-current="page"] { background: transparent; color: #55bfff; font-weight: 650; }
	.app-bottom-nav button[aria-current="page"] .nav-icon { background: rgba(30,129,201,.16); }
	.app-modal { position: fixed; inset: auto 0 0; width: 100%; max-width: none; max-height: 88dvh; margin: 0; overflow-y: auto; border-right: 0; border-bottom: 0; border-left: 0; border-radius: 21px 21px 0 0; }
	.modal-content { padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); }
	.modal-heading h2 { font-size: 18px; }
	.modal-content > p { font-size: 11px; }
	.toast { right: 14px; bottom: calc(78px + env(safe-area-inset-bottom)); left: 14px; max-width: none; padding: 13px 15px; border-radius: 12px; text-align: center; }
}

@media (max-width: 390px) {
	.app-topbar { min-height: 58px; padding-inline: 15px; }
	.app-content { padding: 17px 15px calc(92px + env(safe-area-inset-bottom)); }
	.welcome-row h1 { font-size: 20px; }
	.balance-overview { min-height: 187px; }
	.balance-total strong { font-size: 29px; }
	.balance-meta { gap: 6px; }
	.balance-meta > span { padding-inline: 5px; font-size: 7px; }
	.balance-meta b { font-size: 7px; }
	.wallet-cards { padding-right: 15px; margin-right: -15px; }
}
.mode-banner { padding: 9px 11px; border: 1px solid rgba(38,166,225,.2); border-radius: 8px; background: rgba(13,73,110,.16); color: #9bcdf0; font-size: 9px; }
.api-error { padding: 10px 12px; border: 1px solid rgba(255,106,128,.25); border-radius: 8px; color: #ff9aaa; }
.form-field[hidden] { display: none; }
.app-modal #modal-description { white-space: pre-line; }
.app-modal #modal-fields:empty { display: none; }
.market-source-badge, .data-status { display: inline-flex; min-height: 25px; align-items: center; gap: 7px; padding: 0 9px; border: 1px solid rgba(81,176,145,.17); border-radius: 7px; background: rgba(19,83,64,.15); color: #7cd7b6; font-size: 8px; font-weight: 700; letter-spacing: .07em; white-space: nowrap; }
.market-source-badge i, .data-status i { width: 6px; height: 6px; border-radius: 50%; background: #45d2a1; box-shadow: 0 0 9px rgba(69,210,161,.5); }
.market-source-badge.is-unavailable, .data-status.is-unavailable { border-color: rgba(236,165,89,.2); background: rgba(88,55,20,.13); color: #d5a86b; }
.market-source-badge.is-unavailable i, .data-status.is-unavailable i { background: #d7a04e; box-shadow: none; }
.markets-page, .terminal-page { display: grid; gap: 14px; }
.markets-heading, .terminal-topline { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.eyebrow { color: #6b9ab9; font-size: 8px; font-weight: 700; letter-spacing: .14em; }
.markets-heading h1, .terminal-topline h1 { margin: 3px 0 0; font-size: 23px; font-weight: 650; letter-spacing: -.04em; }
.markets-heading .page-description { margin: 4px 0 0; }
.market-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.market-search-wrap { display: flex; width: min(420px,100%); min-height: 38px; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--app-border); border-radius: 8px; background: #09131e; color: #7990a5; }
.market-search-wrap > span { font-size: 16px; }
.market-search-wrap .market-search { max-width: none; min-height: 34px; padding: 0; margin: 0; border: 0; background: transparent; font-size: 10px; }
.market-search-wrap kbd { padding: 1px 5px; border: 1px solid var(--app-border); border-radius: 4px; color: #8293a5; font-size: 8px; }
.market-count { color: var(--app-muted); font-size: 9px; white-space: nowrap; }
.market-categories { display: flex; gap: 5px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.market-categories::-webkit-scrollbar { display: none; }
.market-category { min-height: 30px; padding: 0 10px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #8498ac; font-size: 9px; white-space: nowrap; cursor: pointer; }
.market-category:hover { color: #dce9f5; }
.market-category.selected { border-color: rgba(59,146,204,.18); background: rgba(21,77,117,.22); color: #78caff; }
.markets-table-card { padding: 5px 13px 12px; }
.markets-table-card .page-table-wrap .asset-table { min-width: 680px; }
.markets-table-card .asset-table td, .markets-table-card .asset-table th { padding: 12px 8px; }
.markets-table-card .asset-cell strong { font-size: 10px; }
.markets-table-card .asset-cell small { font-size: 8px; }
.market-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.favorite-button { width: 29px; height: 29px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #73899e; font-size: 15px; cursor: pointer; }
.favorite-button:hover, .favorite-button[aria-pressed="true"] { background: rgba(183,147,53,.12); color: #f1c96b; }
.terminal-topline { margin-bottom: -2px; }
.terminal-marketbar { display: grid; grid-template-columns: minmax(150px,1.2fr) repeat(4,minmax(100px,1fr)); align-items: center; gap: 15px; padding: 13px 16px; }
.pair-picker { display: grid; gap: 5px; }
.pair-picker .muted-label, .terminal-stat small { color: #7d91a5; font-size: 8px; letter-spacing: .08em; }
.pair-picker select { width: 100%; border: 0; outline: 0; background: transparent; color: #ecf4fb; font-size: 14px; font-weight: 650; }
.pair-picker option { background: #0c1723; }
.terminal-price { display: grid; gap: 2px; }
.terminal-price strong { font-size: 17px; letter-spacing: -.025em; }
.terminal-price > span { font-size: 9px; }
.terminal-price small { color: var(--app-muted); font-size: 8px; }
.terminal-stat { display: grid; gap: 6px; }
.terminal-stat strong { color: #b8c5d2; font-size: 10px; font-weight: 550; }
.terminal-grid { display: grid; grid-template-columns: minmax(0,1fr) 294px; align-items: start; gap: 12px; }
.terminal-primary { display: grid; gap: 12px; min-width: 0; }
.terminal-chart, .terminal-book, .terminal-orders { min-width: 0; padding: 14px; }
.terminal-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.terminal-section-heading h2, .order-form-heading h2 { margin: 0; font-size: 11px; font-weight: 650; }
.terminal-section-heading > div > span, .terminal-orders .terminal-section-heading > div > span { display: block; margin-top: 3px; color: #7d90a4; font-size: 8px; }
.terminal-section-heading .chart-toolbar { margin: 0; }
.terminal-section-heading .chart-toolbar button { min-height: 25px; }
.chart-unavailable { display: grid; min-height: 245px; align-content: center; justify-items: center; padding: 22px; border-top: 1px solid rgba(147,174,204,.08); margin-top: 12px; background: linear-gradient(180deg,rgba(15,31,46,.25),transparent); text-align: center; }
.chart-unavailable-icon { display: grid; width: 43px; height: 43px; place-items: center; border: 1px solid rgba(100,157,202,.16); border-radius: 13px; background: #102033; color: #69bafa; font-size: 21px; }
.chart-unavailable strong { margin-top: 10px; font-size: 11px; }
.chart-unavailable p { max-width: 280px; margin: 5px 0 0; color: #778ba0; font-size: 9px; }
.local-demo-chart { min-height: 220px; align-content: end; justify-items: stretch; gap: 7px; padding: 18px 15px 14px; }
.local-demo-chart svg { display: block; width: 100%; max-height: 165px; overflow: visible; }
.local-demo-chart strong { justify-self: center; }
.local-demo-chart p { max-width: none; margin: 0; }
.demo-orderbook { display: grid; gap: 7px; padding-top: 4px; }
.demo-orderbook > div { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 8px; align-items: center; text-align: right; color: #c1ceda; font-size: 9px; }
.demo-orderbook > div:first-child { color: #8294a7; font-size: 7px; }
.demo-orderbook > div > :first-child { text-align: left; }
.demo-orderbook p { margin: 4px 0 0; color: #8294a7; font-size: 8px; text-align: center; }
.terminal-book .terminal-section-heading { margin-bottom: 12px; }
.terminal-book .data-status { border-color: rgba(236,165,89,.15); background: rgba(88,55,20,.13); color: #d5a86b; }
.terminal-book .data-status i { background: #d7a04e; box-shadow: none; }
.empty-data-row { padding: 15px 10px; border-top: 1px solid rgba(147,174,204,.08); color: #7c8fa3; font-size: 9px; text-align: center; }
.terminal-order-form { gap: 12px; padding: 15px; }
.order-form-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.order-form-heading > span { color: #cfaa65; font-size: 8px; }
.terminal-order-form .form-field { gap: 6px; font-size: 9px; }
.terminal-order-form .form-field input, .terminal-order-form .form-field select { min-height: 37px; }
.amount-input-wrap { display: flex; min-width: 0; align-items: center; padding-right: 10px; border: 1px solid var(--app-border); border-radius: 7px; background: #08121d; }
.amount-input-wrap input { min-width: 0; border: 0; background: transparent; }
.amount-input-wrap > span { color: #9bacc0; font-size: 9px; }
.order-available, .order-summary span { display: flex; justify-content: space-between; gap: 8px; color: #8194a8; font-size: 8px; }
.order-available strong { color: #c6d3df; font-size: 8px; font-weight: 600; }
.order-summary { display: grid; gap: 7px; padding: 10px 0; border-top: 1px solid rgba(147,174,204,.08); border-bottom: 1px solid rgba(147,174,204,.08); }
.order-summary b { color: #b8c5d2; font-weight: 550; }
.terminal-order-form > .primary-action { width: 100%; }
.terminal-orders { padding-bottom: 9px; }
.terminal-orders .terminal-section-heading { margin-bottom: 12px; }
.order-panel-tabs { display: flex; gap: 15px; overflow-x: auto; border-bottom: 1px solid var(--app-border); }
.order-panel-tabs button { min-height: 33px; padding: 0 2px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #8799ad; font-size: 9px; white-space: nowrap; cursor: pointer; }
.order-panel-tabs button.selected { border-bottom-color: #27a9ec; color: #cceaff; }
.terminal-orders-table { min-width: 640px; }
.terminal-orders-table th, .terminal-orders-table td { padding: 10px 7px; }
.terminal-orders-table td { font-size: 9px; }
.terminal-orders-table .secondary-action { min-height: 26px; padding: 0 8px; font-size: 8px; }
.mode-banner { margin-bottom: 13px; }

@media (max-width: 1024px) {
	.markets-page, .terminal-page { gap: 13px; }
	.markets-heading h1, .terminal-topline h1 { font-size: 21px; }
	.market-toolbar { align-items: flex-start; }
	.market-search-wrap { min-height: 42px; border-radius: 11px; }
	.market-search-wrap .market-search { min-height: 38px; font-size: 14px; }
	.market-search-wrap kbd { display: none; }
	.market-category { min-height: 38px; }
	.markets-table-card { padding: 0; border: 0; background: transparent; }
	.markets-table-card .page-table-wrap .asset-table { min-width: 0; }
	.markets-table-card .market-assets-table { display: block; width: 100%; }
	.markets-table-card .market-assets-table thead { display: none; }
	.markets-table-card .market-assets-table tbody { display: grid; }
	.markets-table-card .market-assets-table tbody tr { display: grid; min-height: 68px; grid-template-columns: minmax(0,1fr) auto; grid-template-rows: 1fr 1fr; align-items: center; padding: 7px 0; border-bottom: 1px solid rgba(143,174,204,.1); }
	.markets-table-card .market-assets-table tbody td { display: none; padding: 0; border: 0; }
	.markets-table-card .market-assets-table tbody td:first-child { display: block; grid-area: 1 / 1 / 3 / 2; }
	.markets-table-card .market-assets-table tbody td:nth-child(2), .markets-table-card .market-assets-table tbody td:nth-child(3) { display: block; text-align: right; }
	.markets-table-card .market-assets-table tbody td:nth-child(2) { grid-area: 1 / 2; font-size: 10px; }
	.markets-table-card .market-assets-table tbody td:nth-child(3) { grid-area: 2 / 2; font-size: 8px; }
	.markets-table-card .market-assets-table tbody td:nth-child(4), .markets-table-card .market-assets-table tbody td:nth-child(5) { display: none; }
	.markets-table-card .asset-cell strong { font-size: 10px; }
	.market-count { padding-top: 12px; }
	.terminal-marketbar { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; padding: 13px; }
	.terminal-stat { padding-top: 8px; border-top: 1px solid rgba(147,174,204,.08); }
	.terminal-grid { grid-template-columns: minmax(0,1fr); }
	.terminal-primary { order: 0; }
	.terminal-order-form { order: 1; }
	.terminal-chart, .terminal-book, .terminal-orders { padding: 13px; border-radius: 14px; }
	.chart-unavailable { min-height: 190px; }
	.terminal-section-heading .chart-toolbar { max-width: 52%; overflow-x: auto; }
	.terminal-section-heading .chart-toolbar button { min-width: 30px; padding-inline: 5px; }
	.terminal-orders .page-table-wrap { margin-inline: -13px; }
	.order-panel-tabs { gap: 13px; }
	.home-markets-panel .page-table-wrap { max-height: 74vh; }
	.card-preview-panel { grid-template-columns: 1fr; gap: 26px; padding: 24px 20px; }
	.demo-payment-card { width: min(100%,360px); min-height: 200px; justify-self: center; }
	.card-preview-copy { text-align: center; }
	.card-preview-copy p { margin-inline: auto; }
	.card-feature-list { justify-items: center; }
}

.live-chart-wrap { position: relative; min-height: 300px; margin-top: 12px; overflow: hidden; border-top: 1px solid rgba(147,174,204,.08); background-image: linear-gradient(rgba(122,156,190,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(122,156,190,.07) 1px,transparent 1px); background-size: 100% 25%,12.5% 100%; }
.live-chart-meta { position: absolute; z-index: 1; top: 11px; right: 12px; left: 12px; display: flex; align-items: center; gap: 8px; color: #7e91a5; font-size: 8px; pointer-events: none; }
.live-chart-meta strong { color: #e4edf7; font-size: 10px; font-weight: 600; }
.chart-feed-label { margin-left: auto; }
.live-chart-wrap canvas { display: block; width: 100%; height: 300px; }
.chart-overlay { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; padding: 25px; background: rgba(7,13,21,.58); color: #9aacbf; font-size: 10px; text-align: center; pointer-events: none; }
.chart-overlay[hidden] { display: none; }
.live-chart-wrap[data-status="connecting"] .chart-overlay::before, .live-chart-wrap[data-status="reconnecting"] .chart-overlay::before { width: 15px; height: 15px; border: 2px solid rgba(112,183,230,.25); border-top-color: #65bfff; border-radius: 50%; margin-bottom: 10px; animation: live-feed-spin .8s linear infinite; content: ""; }
.live-orderbook { overflow-x: auto; }
.coin-placeholder { border: 1px solid rgba(133,174,211,.16); background: linear-gradient(145deg,#253e58,#142333); color: #c4ddf2; font-size: 8px; font-weight: 700; letter-spacing: -.03em; }
.book-head, .book-row { display: grid; min-width: 390px; grid-template-columns: minmax(74px,1fr) minmax(58px,.8fr) minmax(74px,1fr) minmax(58px,.8fr); align-items: center; gap: 7px; }
.book-head { padding: 0 2px 8px; border-bottom: 1px solid rgba(147,174,204,.08); color: #73869a; font-size: 7px; }
.book-row { min-height: 27px; font-variant-numeric: tabular-nums; font-size: 9px; }
.book-row > span:nth-child(2), .book-row > span:nth-child(4) { color: #b5c3d1; text-align: right; }
.book-total { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 6px; padding-top: 9px; border-top: 1px solid rgba(147,174,204,.08); color: #8194a8; font-size: 8px; }
.book-total strong { color: #c9d5e0; font-size: 8px; font-weight: 600; }
.market-source-badge.is-unavailable i, .data-status.is-unavailable i { animation: live-feed-pulse 1.4s ease-in-out infinite; }
.primary-action:disabled { filter: grayscale(.55); opacity: .5; cursor: not-allowed; }
.empty-market-cell .secondary-action { margin-left: 8px; }

@keyframes live-feed-spin { to { transform: rotate(360deg); } }
@keyframes live-feed-pulse { 50% { opacity: .4; } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-width: 1024px) {
	.live-chart-wrap, .live-chart-wrap canvas { min-height: 240px; height: 240px; }
	.chart-feed-label { font-size: 7px; }
	.book-head, .book-row { min-width: 350px; }
	.book-total { min-width: 350px; }
}

@media (max-width: 1024px) {
	.app-topbar {
		min-height: 70px;
		padding-inline: 18px;
		border-bottom: 1px solid rgba(147,174,204,.07);
		background: #080e16;
	}
	.app-centered-brand { width: 108px; height: 40px; }
	.topbar-actions { gap: 0; margin-left: auto; }
	.topbar-actions > .icon-button:not(.topbar-profile-button) { display: none; }
	.topbar-actions > .topbar-profile-button {
		width: 38px;
		height: 38px;
		border: 1px solid rgba(111,178,231,.22);
		border-radius: 50%;
		background: #101d2b;
		color: #c7d8e8;
	}
	.topbar-profile-button svg { width: 19px; height: 19px; }
	.app-content { padding-top: 15px; }
	.mode-banner { display: none; }
	.balance-overview {
		position: relative;
		display: grid;
		min-height: 0;
		gap: 0;
		overflow: hidden;
		padding: 18px 18px 20px;
		border: 1px solid #253a50;
		border-radius: 15px;
		background: #111e2d;
		box-shadow: 0 8px 18px rgba(0,0,0,.18);
	}
	.balance-overview::before {
		position: absolute;
		z-index: 0;
		top: 0;
		left: 18px;
		width: 34px;
		height: 3px;
		border-radius: 0 0 2px 2px;
		background: #2fa8ff;
		content: "";
	}
	.balance-overview::after { content: none; }
	.balance-head { position: relative; z-index: 1; display: flex; min-height: 28px; justify-content: flex-start; gap: 8px; }
	.balance-head .muted-label { color: #a8b9ca; font-size: 11px; font-weight: 550; letter-spacing: 0; text-transform: none; }
	.balance-head .icon-button {
		width: 32px;
		height: 32px;
		margin-left: auto;
		border: 1px solid #2a4055;
		border-radius: 9px;
		background: #102030;
		color: #a9bdd0;
	}
	.balance-head .icon-button svg { width: 18px; height: 18px; }
	.balance-total { position: relative; z-index: 1; display: block; margin-top: 9px; }
	.balance-total strong {
		display: block;
		font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
		font-size: clamp(34px,8.2vw,40px);
		font-weight: 650;
		font-variant-numeric: tabular-nums;
		letter-spacing: -.055em;
		line-height: 1.12;
	}
}

@media (max-width: 1024px) {
	.app-centered-brand {
		width: 76px;
		height: 64px;
	}

	.app-centered-brand img {
		width: 64px;
		height: 64px;
	}
}

.app-sidebar,
.app-shell,
.app-topbar,
.app-bottom-nav {
	background-color: #090909;
}

body {
	background: #050505;
}

.app-brand .brand-mark,
.account-avatar,
.user-avatar {
	border-color: #242428;
	background: #151518;
	color: #e5e7eb;
}

.app-nav button:hover {
	background: #151518;
	color: #e5e7eb;
}

.app-nav button[aria-current="page"] {
	background: #3a0008;
	color: #e5e7eb;
}

.app-nav button[aria-current="page"] .nav-icon,
.app-brand span:last-child span {
	color: #d9dde3;
}

.surface,
.panel,
.activity-list,
.terminal-chart,
.terminal-book,
.terminal-orders,
.quick-actions,
.account-switcher {
	border-color: #242428;
	background: #0d0d0f;
}

.balance-overview {
	border-color: #242428;
	background: #0d0d0f;
	box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
}

.balance-overview::before {
	background: #5a0010;
}

.account-progress {
	background: #242428;
}

.account-progress span {
	background: linear-gradient(90deg, #3a0008, #800018);
}

.demo-payment-card {
	border-color: #242428;
	background: linear-gradient(140deg, #3a0008, #151518 55%, #0d0d0f);
}

.demo-card-brand b,
.card-safety-note strong,
.order-form-heading > span {
	color: #d9dde3;
}

.demo-card-chip {
	border-color: rgba(217, 221, 227, .6);
	background: linear-gradient(140deg, #e5e7eb, #555b64);
}

.icon-button,
.balance-currency-picker select,
.form-field input,
.form-field select,
.form-field textarea,
.amount-input-wrap,
.chart-toolbar button,
.market-search-wrap {
	border-color: #242428;
	background-color: #151518;
	color: #c5cad1;
}

.topbar-actions > .topbar-profile-button,
.balance-head .icon-button {
	border-color: #242428;
	background: #151518;
	color: #d9dde3;
}

.icon-button:hover,
.market-category.selected,
.order-panel-tabs button.selected {
	border-color: #800018;
	background-color: #3a0008;
	color: #ffffff;
}

.primary-action,
.app-bottom-nav button.nav-trade .nav-icon {
	border-color: #5a0010;
	background: linear-gradient(145deg, #3a0008, #5a0010);
	color: #ffffff;
	box-shadow: 0 5px 16px rgba(90, 0, 16, .25);
}

.app-centered-brand {
	width: 76px;
	height: 64px;
}

.app-centered-brand img {
	width: 64px;
	height: 64px;
}

.primary-action:hover,
.app-bottom-nav button.nav-trade[aria-current="page"] .nav-icon {
	background: #800018;
}

.home-see-more {
	border-color: #5a0010;
	background: linear-gradient(105deg, #3a0008, #5a0010);
	color: #ffffff;
}

.home-see-more:hover {
	border-color: #a50022;
	background: #800018;
	box-shadow: 0 7px 20px rgba(90, 0, 16, .24);
}

.favorite-button:hover,
.favorite-button[aria-pressed="true"] {
	background: #3a0008;
}

.home-see-more svg,
.action-icon,
.action-button .action-icon,
.chart-unavailable-icon,
.favorite-button:hover,
.favorite-button[aria-pressed="true"],
.panel-link {
	color: #d9dde3;
}

.action-icon,
.action-button .action-icon,
.chart-unavailable-icon {
	border-color: #242428;
	background: #151518;
}

.market-source-badge.is-unavailable,
.data-status.is-unavailable,
.terminal-book .data-status {
	border-color: #242428;
	background: #151518;
	color: #c5cad1;
}

.market-source-badge.is-unavailable i,
.data-status.is-unavailable i,
.terminal-book .data-status i {
	background: #8d949e;
}

.coin-placeholder {
	border-color: #242428;
	background: linear-gradient(145deg, #151518, #0d0d0f);
	color: #d9dde3;
}

.secondary-action {
	border-color: #242428;
	background: #151518;
	color: #d9dde3;
}

.secondary-action:hover {
	border-color: #5a0010;
	background: #3a0008;
	color: #ffffff;
}

.action-button:nth-child(2) .action-icon,
.action-button:nth-child(3) .action-icon,
.action-button:nth-child(4) .action-icon {
	color: #d9dde3;
}

.app-bottom-nav {
	border-color: #242428;
	background: rgba(9, 9, 9, .98);
}

.app-bottom-nav button[aria-current="page"] {
	color: #ffffff;
}

.app-bottom-nav button[aria-current="page"] .nav-icon {
	background: #3a0008;
}

button:focus-visible,
.balance-currency-picker select:focus-visible {
	outline-color: #800018;
}

.spark-chart .chart-stroke {
	stroke: #c5cad1;
}

@media (max-width: 1024px) {
	.balance-overview {
		border-color: #242428;
		border-color: #5a0010;
		background: #3a0008;
	}

	.balance-overview::before {
		content: none;
	}

	.balance-head .muted-label,
	.balance-fx-note {
		color: #c5cad1;
	}

	.balance-currency-picker select,
	.balance-head .icon-button {
		border-color: #5a0010;
		background: #090909;
		color: #e5e7eb;
	}

	.quick-actions {
		border-color: transparent;
		background: transparent;
		box-shadow: none;
	}

	.action-button .action-icon {
		border-color: #3a0008;
		background: #151518;
		color: #e5e7eb;
	}

	.app-bottom-nav button[aria-current="page"] {
		color: #ffffff;
	}

	.app-bottom-nav button[aria-current="page"] .nav-icon {
		background: #3a0008;
	}

	.app-bottom-nav button.nav-trade .nav-icon {
		border-color: #5a0010;
		background: linear-gradient(145deg, #3a0008, #5a0010);
		color: #ffffff;
	}

	.app-topbar .topbar-actions { gap: 6px; }

	.app-topbar > .topbar-profile-button {
		width: 34px;
		height: 34px;
		flex: 0 0 34px;
		border-radius: 50%;
		background: #151518;
		color: #d9dde3;
	}

	.app-topbar .topbar-actions > .icon-button:not(.topbar-profile-button) {
		display: grid;
		width: 34px;
		height: 34px;
		border: 1px solid #242428;
		border-radius: 50%;
		background: #151518;
		color: #d9dde3;
	}
}

@media (min-width: 1025px) {
	.dashboard-grid { align-items: start; }

	.balance-overview {
		min-height: 152px;
		padding: 15px 18px 13px;
	}

	.spark-chart {
		height: 48px;
	}
}

@media (min-width: 1500px) {
	.balance-overview { min-height: 156px; }
}

.app-sidebar {
	background: linear-gradient(180deg, #0d0d0f, #090909 65%);
}

.app-nav { gap: 6px; }

.app-nav button {
	min-height: 46px;
	gap: 12px;
	padding-inline: 9px;
	border: 1px solid transparent;
	border-radius: 11px;
	font-size: 11px;
	font-weight: 550;
}

.app-nav button:hover {
	border-color: #242428;
	background: #151518;
}

.app-nav button[aria-current="page"] {
	border-color: #3a0008;
	background: linear-gradient(100deg, #3a0008, #151518 84%);
	color: #ffffff;
}

.app-nav button .nav-icon,
.app-sidebar .sidebar-bottom button .nav-icon {
	display: grid;
	width: 32px;
	height: 32px;
	flex: 0 0 32px;
	place-items: center;
	border: 1px solid #242428;
	border-radius: 10px;
	background: #151518;
	color: #c5cad1;
}

.app-nav button .nav-icon svg,
.app-sidebar .sidebar-bottom button .nav-icon svg {
	width: 17px;
	height: 17px;
	stroke-width: 1.8;
}

.app-nav button[aria-current="page"] .nav-icon {
	border-color: #5a0010;
	background: #5a0010;
	color: #ffffff;
}

.app-sidebar .sidebar-bottom button {
	min-height: 42px;
	gap: 12px;
	padding: 5px 9px;
	border-radius: 10px;
}

.app-sidebar .sidebar-bottom button:hover {
	background: #151518;
	color: #ffffff;
}

.settings-page { max-width: 900px; }
.settings-section { padding: 18px; }
.settings-section-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.settings-section-heading h2 { margin: 0; color: #fff; font-size: 15px; }
.settings-section-heading p { margin: 5px 0 0; color: #8d949e; font-size: 11px; }
.settings-section-icon { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #3a0008; border-radius: 11px; background: #220006; color: #e5e7eb; font-size: 17px; }
.settings-language-control .language-picker { display: flex; max-width: 420px; align-items: center; gap: 10px; }
.settings-language-control .language-picker > svg { width: 17px; height: 17px; flex: 0 0 17px; fill: none; stroke: #c5cad1; stroke-width: 1.7; }
.settings-language-control .language-picker select { width: 100%; min-height: 43px; padding: 0 38px 0 12px; border: 1px solid #35353a; border-radius: 10px; background: #151518; color: #e5e7eb; font: inherit; font-size: 12px; }
.settings-language-control .language-setup-note { color: #8d949e; font-size: 10px; }
.settings-language-note { max-width: 600px; margin: 13px 0 0; color: #8d949e; font-size: 10px; line-height: 1.6; }
.profile-card .secondary-action { margin-top: 16px; }

.membership-page, .referrals-page { display: grid; gap: 16px; max-width: 900px; margin-inline: auto; }
.membership-hero { padding: 24px; border-color: #3a0008; background: linear-gradient(145deg, #190308, #0d0d0f 65%); }
.membership-hero h1, .referrals-heading h1 { margin: 5px 0 8px; color: #fff; font-size: clamp(22px, 3vw, 30px); }
.membership-hero p, .referrals-heading p { max-width: 620px; margin: 0; color: #c5cad1; font-size: 12px; line-height: 1.65; }
.membership-hero .eyebrow, .referrals-heading .eyebrow { color: #d9dde3; letter-spacing: .14em; }
.membership-content { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; }
.membership-card, .membership-referral-card, .referral-link-card, .referral-activity-card { padding: 18px; }
.membership-card h2, .membership-referral-card h2, .referral-link-card h2, .referral-activity-card h2 { margin: 0 0 8px; color: #fff; font-size: 14px; }
.membership-price { display: block; margin: 15px 0; color: #fff; font-size: 30px; font-weight: 750; }
.membership-price small { color: #8d949e; font-size: 11px; font-weight: 500; }
.membership-card > p, .membership-referral-card > p, .referral-program-note { color: #8d949e; font-size: 11px; line-height: 1.6; }
.membership-card .form-field { margin: 14px 0; }
.membership-card .primary-action { width: 100%; min-height: 44px; background: #5a0010; }
.membership-card .primary-action:hover { background: #800018; filter: none; }
.membership-referral-code { display: inline-flex; margin-top: 10px; padding: 8px 11px; border: 1px solid #3a0008; border-radius: 8px; background: #151518; color: #e5e7eb; font: 700 13px/1.2 ui-monospace, monospace; letter-spacing: .08em; }
.membership-referral-card .secondary-action, .referral-copy-row .secondary-action { min-height: 36px; background: #151518; border-color: #35353a; color: #e5e7eb; }
.referral-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.referral-stat { padding: 15px; }
.referral-stat span, .referral-stat small { display: block; color: #8d949e; font-size: 10px; }
.referral-stat strong { display: block; margin: 8px 0 4px; color: #fff; font-size: 19px; }
.referral-link-card .form-field input { font-family: ui-monospace, monospace; }
.referral-copy-row { display: flex; gap: 8px; align-items: end; }
.referral-copy-row .form-field { flex: 1; min-width: 0; }
.referral-table { width: 100%; border-collapse: collapse; color: #c5cad1; font-size: 11px; }
.referral-table th, .referral-table td { padding: 10px 8px; border-bottom: 1px solid #242428; text-align: left; }
.referral-table th { color: #8d949e; font-size: 9px; letter-spacing: .07em; }
.referral-empty { color: #8d949e; font-size: 11px; }
.membership-alert { padding: 12px; border: 1px solid #7a1d26; border-radius: 9px; background: #21090d; color: #f0b7be; font-size: 11px; }
.referral-program-note { margin: 0; }

.tpg-app-auth-page { min-height: 100vh; background: radial-gradient(ellipse at 14% 14%, rgba(113,0,25,.34), transparent 35%), radial-gradient(ellipse at 87% 83%, rgba(86,40,26,.16), transparent 34%), #050505; color: #e5e7eb; font-family: var(--app-font, Arial, sans-serif); }
.auth-shell { position: relative; z-index: 0; display: grid; min-height: 100vh; box-sizing: border-box; grid-template-columns: minmax(0,1fr); place-items: center; padding: 44px 20px; }
.auth-card { position: relative; width: min(100%, 456px); box-sizing: border-box; overflow: hidden; padding: 38px 40px 34px; border: 1px solid rgba(221,188,158,.17); border-radius: 22px; background: linear-gradient(145deg, rgba(19,17,19,.97), rgba(8,8,10,.98)); box-shadow: 0 30px 100px rgba(0,0,0,.56), 0 0 60px rgba(90,0,16,.12); backdrop-filter: blur(22px); }
.auth-card::before { position: absolute; top: 0; right: 12%; left: 12%; height: 1px; background: linear-gradient(90deg, transparent, rgba(229,231,235,.52), rgba(128,0,24,.72), transparent); content: ""; }
.auth-brand { display: flex; width: 100%; justify-content: center; margin-bottom: 24px; }
.auth-brand img { width: 128px; height: 72px; object-fit: contain; }
.auth-eyebrow { margin: 0 0 9px; color: #c5cad1; font-size: 10px; font-weight: 700; letter-spacing: .18em; text-align: center; }
.auth-card h1 { margin: 0; color: #fff; font-size: 29px; letter-spacing: -.04em; text-align: center; }
.auth-intro { max-width: 330px; margin: 10px auto 22px; color: #9da3ac; font-size: 13px; line-height: 1.65; text-align: center; }
.auth-referral-note, .auth-notice { padding: 11px 12px; border-radius: 9px; font-size: 11px; line-height: 1.5; }
.auth-referral-note { border: 1px solid #3a0008; background: #190308; color: #e5e7eb; }
.auth-notice-error { border: 1px solid #7a1d26; background: #21090d; color: #f0b7be; }
.auth-notice-success { border: 1px solid #28533b; background: #0d1d13; color: #b8e1c5; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 4px; margin: 22px 0; border: 1px solid #29292e; border-radius: 12px; background: #080809; }
.auth-tabs a { padding: 11px 8px; border-radius: 8px; color: #9298a2; font-size: 12px; font-weight: 650; text-align: center; text-decoration: none; transition: color .18s ease, background .18s ease; }
.auth-tabs a[aria-current="page"] { background: linear-gradient(105deg,#710018,#920d23); color: #fff; }
.auth-social-options { display: grid; grid-template-columns: 1fr; gap: 10px; }
.auth-social-button.auth-apple-option { display: none; }
.auth-social-button { display: flex; min-height: 47px; align-items: center; justify-content: center; gap: 9px; padding: 0 10px; border: 1px solid #34343a; border-radius: 11px; background: linear-gradient(180deg, #17171a, #121214); color: #eef0f3; font: inherit; font-size: 11px; font-weight: 650; white-space: nowrap; cursor: pointer; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.auth-social-button:hover { transform: translateY(-1px); border-color: #62636a; background: #1c1c20; }
.auth-social-button:focus-visible { outline: 2px solid #d9dde3; outline-offset: 3px; }
.auth-provider-icon { display: inline-grid; width: 19px; height: 19px; flex: 0 0 19px; place-items: center; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: #7d838d; font-size: 10px; }
.auth-divider::before, .auth-divider::after { height: 1px; flex: 1; background: #242428; content: ""; }
.auth-provider-status { padding: 9px 11px; margin: -5px 0 14px; border: 1px solid #3a0008; border-radius: 8px; background: #190308; color: #e5e7eb; font-size: 10px; line-height: 1.5; }
.auth-provider-status[hidden] { display: none; }
.auth-google-icon { overflow: visible; }
.auth-apple-icon { fill: #fff; }
.auth-method-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 0 16px; border: 1px solid #29292e; border-radius: 11px; background: #080809; }
.auth-method-tabs[hidden] { display: none; }
.auth-method-tabs button { min-height: 38px; border: 0; border-radius: 8px; background: transparent; color: #9298a2; font: inherit; font-size: 11px; font-weight: 650; cursor: pointer; transition: color .18s ease, background .18s ease; }
.auth-method-tabs button[aria-pressed="true"] { background: #5a0010; color: #fff; }
.auth-form { display: grid; gap: 10px; }
.auth-form > [data-auth-email-fields], .auth-form > [data-preview-email-fields], .auth-credentials, .auth-phone-fields { display: grid; gap: 10px; }
.auth-form > [hidden], .auth-phone-fields[hidden] { display: none; }
.auth-credentials { max-height: 420px; overflow: hidden; opacity: 1; transform: translateY(0); transition: max-height .34s cubic-bezier(.2,.75,.25,1), opacity .24s ease, transform .34s cubic-bezier(.2,.75,.25,1); }
.auth-credentials[aria-hidden="true"] { max-height: 0; opacity: 0; transform: translateY(-10px); pointer-events: none; }
.auth-form label { margin-top: 5px; color: #d3d6dc; font-size: 12px; font-weight: 600; }
.auth-form input { width: 100%; min-height: 49px; box-sizing: border-box; padding: 0 14px; border: 1px solid #35353a; border-radius: 11px; outline: none; background: #131315; color: #fff; font: inherit; font-size: 14px; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.auth-form input:focus { border-color: #a50022; box-shadow: 0 0 0 3px rgba(128,0,24,.2); }
.auth-form input::placeholder { color: #747982; }
.auth-password-help, .auth-security-note { color: #8d949e; font-size: 10px; line-height: 1.6; }
.auth-password-help { margin: 0 0 5px; }
.auth-forgot { display: flex; justify-content: flex-end; margin: 2px 0 6px; }
.auth-forgot[hidden], #main-app-auth-confirm-wrap[hidden] { display: none; }
.auth-forgot a { color: #d9dde3; font-size: 11px; text-decoration: none; }
.auth-forgot a:hover { color: #fff; text-decoration: underline; }
.auth-submit { min-height: 49px; margin-top: 7px; border: 1px solid rgba(255,255,255,.08); border-radius: 11px; background: linear-gradient(110deg, #710018, #a40c27); color: #fff; font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .01em; cursor: pointer; transition: background .18s ease, transform .18s ease, box-shadow .18s ease; }
.auth-submit:hover { transform: translateY(-1px); background: #800018; }
.auth-submit:hover { box-shadow: 0 8px 24px rgba(90,0,16,.28); }
.auth-send-code { min-height: 43px; border: 1px solid #35353a; border-radius: 9px; background: #151518; color: #e5e7eb; font: inherit; font-size: 11px; font-weight: 650; cursor: pointer; }
.auth-send-code:hover { border-color: #555b64; background: #1c1c20; }
.auth-phone-help { margin: 0; color: #8d949e; font-size: 10px; line-height: 1.5; }
.auth-phone-fields[hidden] { display: none; }
.auth-submit:focus-visible, .auth-tabs a:focus-visible { outline: 2px solid #d9dde3; outline-offset: 3px; }
.auth-security-note { padding-top: 16px; margin: 18px 0 0; border-top: 1px solid #242428; color: #9298a2; text-align: center; }
.app-logout-link { margin-left: auto; color: #c5cad1; font-size: 10px; text-decoration: none; }
.app-logout-link:hover { color: #fff; }
.profile-logout-row { text-decoration: none; }
.profile-logout-row:hover .profile-row-copy strong { color: #e5e7eb; }

@media (prefers-reduced-motion: reduce) {
	.auth-credentials { transition: none; }
}

@media (max-width: 680px) {
	.auth-social-options { grid-template-columns: 1fr 1fr; }
	.auth-social-button.auth-apple-option { display: flex; }
	.auth-social-button { gap: 6px; padding-right: 4px; padding-left: 4px; font-size: 9px; }
	.membership-content { grid-template-columns: 1fr; }
	.referral-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.membership-hero, .membership-card, .membership-referral-card, .referral-link-card, .referral-activity-card { padding: 15px; }
	.referral-copy-row { align-items: stretch; flex-direction: column; }
	.referral-copy-row .secondary-action { width: 100%; }
	.referral-table { min-width: 430px; }
	.referral-activity-card { overflow-x: auto; }
}

@media (max-width: 480px) {
	.auth-shell { min-height: 100svh; padding: 20px 13px; }
	.auth-card { padding: 27px 21px 24px; border-radius: 18px; }
	.auth-brand { margin-bottom: 20px; }
	.auth-brand img { width: 112px; height: 62px; }
	.auth-card h1 { font-size: 25px; }
	.auth-intro { margin-bottom: 18px; font-size: 12px; }
	.auth-tabs { margin: 19px 0; }
	.auth-security-note { padding-top: 13px; margin-top: 15px; font-size: 9px; }
}

@media (max-width: 520px) {
	.app-topbar .topbar-actions { gap: 4px; }
	.app-topbar > .topbar-profile-button { width: 32px; height: 32px; flex-basis: 32px; }
	.app-topbar .topbar-actions > .icon-button:not(.topbar-profile-button) { width: 32px; height: 32px; }
	.settings-section { padding: 15px; }
}

.futures-page .surface,
.futures-page .futures-data-panel {
	border-color: #242428;
	background: #0d0d0f;
}
.trade-mode-switch {
	display: inline-flex;
	width: fit-content;
	gap: 4px;
	padding: 4px;
	border: 1px solid #242428;
	border-radius: 10px;
	background: #0d0d0f;
}
.trade-mode-switch button {
	min-height: 34px;
	padding: 0 13px;
	border: 1px solid transparent;
	border-radius: 7px;
	background: transparent;
	color: #8d949e;
	font-size: 10px;
	font-weight: 650;
	cursor: pointer;
}
.trade-mode-switch button.selected {
	border-color: #5a0010;
	background: #5a0010;
	color: #fff;
}
.trade-mode-switch button small {
	margin-left: 5px;
	color: #c5cad1;
	font-size: 7px;
	letter-spacing: .06em;
}
.futures-page .eyebrow { color: #c5cad1; }
.futures-page .terminal-marketbar {
	grid-template-columns: minmax(150px,1.3fr) repeat(5,minmax(85px,1fr));
}
.futures-marketbar,
.futures-terminal-grid .terminal-chart,
.futures-terminal-grid .terminal-book,
.futures-order-card,
.futures-data-panel {
	border-color: #242428;
	background: #0d0d0f;
}
.futures-page .terminal-stat strong,
.futures-page .terminal-price strong { color: #e5e7eb; }
.futures-page .terminal-stat small,
.futures-page .pair-picker .muted-label { color: #8d949e; }
.futures-page .terminal-price > span.positive,
.futures-table .positive { color: #31c995; }
.futures-page .terminal-price > span.negative,
.futures-table .negative { color: #ff7183; }
.futures-page .pair-picker select,
.futures-page .pair-picker option,
.futures-page .form-field input,
.futures-page .form-field select {
	background-color: #151518;
	color: #e5e7eb;
}
.futures-page .pair-picker select { border: 1px solid #242428; border-radius: 7px; padding: 7px; }
.futures-subnav {
	display: flex;
	gap: 5px;
	overflow-x: auto;
	padding-bottom: 2px;
	scrollbar-width: thin;
}
.futures-subnav button {
	min-height: 33px;
	flex: 0 0 auto;
	padding: 0 11px;
	border: 1px solid #242428;
	border-radius: 8px;
	background: #0d0d0f;
	color: #aeb4bd;
	font-size: 9px;
	cursor: pointer;
}
.futures-subnav button[aria-current="page"] {
	border-color: #5a0010;
	background: #3a0008;
	color: #fff;
}
.futures-safety-note {
	display: flex;
	min-height: 40px;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	border: 1px solid #3a0008;
	border-radius: 9px;
	background: #160609;
	color: #c5cad1;
	font-size: 9px;
}
.futures-safety-note strong { color: #e5e7eb; font-size: 8px; letter-spacing: .06em; }
.futures-safety-note button {
	min-height: 27px;
	padding: 0 9px;
	border: 1px solid #5a0010;
	border-radius: 6px;
	margin-left: auto;
	background: #5a0010;
	color: #fff;
	font-size: 8px;
	cursor: pointer;
}
.futures-terminal-grid { grid-template-columns: minmax(0,1fr) minmax(270px,310px); }
.futures-order-card {
	display: grid;
	align-content: start;
	gap: 12px;
	min-width: 0;
	padding: 14px;
	border: 1px solid #242428;
	border-radius: 11px;
}
.futures-order-card .order-form-heading > span { color: #e5e7eb; }
.futures-side-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.futures-side-tabs button {
	min-height: 36px;
	border: 1px solid #242428;
	border-radius: 8px;
	background: #151518;
	color: #c5cad1;
	font-size: 9px;
	cursor: pointer;
}
.futures-side-tabs button.selected.buy { border-color: #23684f; background: #123326; color: #70dfb2; }
.futures-side-tabs button.selected.sell { border-color: #8a2030; background: #3a1018; color: #ff9aa5; }
.futures-risk-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.futures-order-form { display: grid; gap: 10px; }
.futures-order-form .form-field { min-width: 0; }
.futures-order-form .amount-input-wrap { border-color: #242428; background: #151518; }
.futures-order-form .amount-input-wrap input { background: transparent; }
.futures-reduce-only { display: grid; grid-template-columns: 16px 1fr; align-items: center; gap: 3px 7px; color: #c5cad1; font-size: 9px; }
.futures-reduce-only input { grid-row: span 2; accent-color: #800018; }
.futures-reduce-only small { color: #8d949e; font-size: 8px; }
.futures-order-estimate {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 7px 10px;
	padding: 10px;
	border: 1px solid #242428;
	border-radius: 8px;
	background: #090909;
	color: #8d949e;
	font-size: 8px;
}
.futures-order-estimate strong { color: #e5e7eb; font-size: 9px; font-weight: 600; text-align: right; }
.futures-order-form .futures-submit { width: 100%; border-color: #5a0010; background: #5a0010; }
.futures-order-form .futures-submit:hover:not(:disabled) { background: #800018; }
.futures-order-form .futures-submit:disabled { opacity: .52; }
.futures-setup-callout {
	padding: 10px;
	border: 1px solid #3a0008;
	border-radius: 8px;
	background: #160609;
	color: #e5e7eb;
	font-size: 9px;
}
.futures-setup-callout p { margin: 5px 0 0; color: #aeb4bd; font-size: 8px; line-height: 1.6; }
.futures-page .futures-safety-note + .futures-data-panel,
.futures-data-panel { padding: 14px; }
.futures-empty-state {
	display: grid;
	min-height: 140px;
	align-content: center;
	justify-items: center;
	gap: 6px;
	padding: 20px;
	border-top: 1px solid #242428;
	color: #e5e7eb;
	text-align: center;
}
.futures-empty-state span { max-width: 460px; color: #8d949e; font-size: 9px; }
.futures-account-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding-top: 14px; }
.futures-account-card { display: grid; gap: 7px; padding: 15px; border: 1px solid #242428; border-radius: 9px; background: #151518; }
.futures-account-card span { color: #8d949e; font-size: 9px; }
.futures-account-card strong { color: #e5e7eb; font-size: 16px; }
.futures-table { min-width: 850px; }
.futures-page .secondary-action { border-color: #35353a; background: #151518; color: #e5e7eb; }
.futures-confirmation-list { display: grid; gap: 7px; padding: 0 0 0 17px; margin: 0; color: #c5cad1; font-size: 10px; }
.futures-confirmation-list li::marker { color: #a50022; }
.app-modal .primary-action:disabled { opacity: .55; }

@media (max-width: 1050px) {
	.futures-page .terminal-marketbar { grid-template-columns: repeat(3,minmax(0,1fr)); }
	.futures-terminal-grid { grid-template-columns: minmax(0,1fr); }
	.futures-order-card { order: 0; }
}
@media (max-width: 620px) {
	.trade-mode-switch { width: 100%; }
	.trade-mode-switch button { flex: 1; padding-inline: 7px; }
	.futures-page .terminal-marketbar { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
	.futures-safety-note { align-items: flex-start; flex-wrap: wrap; }
	.futures-safety-note button { margin-left: 0; }
	.futures-subnav button { min-height: 31px; }
	.futures-account-grid { grid-template-columns: 1fr; }
	.futures-risk-settings { gap: 6px; }
	.futures-order-card { padding: 12px; }
}

@media (min-width: 1025px) {
	.app-shell {
		display: grid;
		grid-template-columns: 226px minmax(0, 1fr);
		align-items: stretch;
	}

	.app-sidebar {
		position: relative;
		top: auto;
		height: auto;
		min-height: 100vh;
		overflow: visible;
	}

	.app-main {
		min-width: 0;
		margin-left: 0;
	}

	.dashboard-layout {
		display: grid;
		grid-template-columns: minmax(0, 1.55fr) minmax(235px, .85fr);
		align-items: start;
		gap: 15px;
	}

	.dashboard-primary-column,
	.dashboard-secondary-column {
		display: grid;
		min-width: 0;
		align-content: start;
		gap: 15px;
	}

	.dashboard-layout .dashboard-side {
		grid-template-rows: auto auto;
	}
}

@media (min-width: 1025px) and (max-width: 1050px) {
	.app-shell {
		grid-template-columns: 190px minmax(0, 1fr);
	}

	.dashboard-layout {
		grid-template-columns: minmax(0, 1.25fr) minmax(210px, .85fr);
	}
}

@media (max-width: 1024px) {
	.dashboard-layout {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 15px;
	}

	.dashboard-primary-column,
	.dashboard-secondary-column {
		display: grid;
		min-width: 0;
		gap: 15px;
	}
}

.balance-head-copy {
	display: grid;
	justify-items: start;
	gap: 5px;
}

.balance-fx-note,
.balance-fx-disclaimer {
	max-width: 100%;
	overflow-wrap: anywhere;
	line-height: 1.5;
}

.balance-fx-disclaimer {
	position: relative;
	z-index: 1;
	margin: 0;
	color: #71859a;
	font-size: 8px;
}

.recorded-credit-balance-note,
.recorded-credit-error {
	position: relative;
	z-index: 1;
	margin: 5px 0 0;
	color: #8095aa;
	font-size: 9px;
	line-height: 1.45;
}

.recorded-credit-error {
	color: #ffc0c0;
}

@media (max-width: 1024px) {
	.home-markets-panel .page-table-wrap {
		max-height: none;
		overflow-y: visible;
	}
}
