:root {
	--bg: #000000;
	--bg-1: #0b0b0c;
	--bg-2: #121214;
	--bg-3: #17181b;
	--bg-4: #1c1d21;
	--line: rgba(255, 255, 255, 0.08);
	--line-2: rgba(255, 255, 255, 0.12);
	--text: #ffffff;
	--text-2: rgba(255, 255, 255, 0.72);
	--text-3: rgba(255, 255, 255, 0.46);
	--text-dark: #111111;
	--okx-green: #18c55d;
	--okx-lime: #d3ff4c;
	--sell: #d7557a;
	--buy: #24c06f;
	--blue: #4f81ff;
	--yellow: #f8cc46;
	--shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
	--radius-xl: 28px;
	--radius-lg: 22px;
	--radius-md: 18px;
	--radius-sm: 14px;
	--font-ui: "Inter", "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
}

html,
body {
	margin: 0;
	padding: 0;
	min-height: 100%;
	background: radial-gradient(circle at top, #202226 0%, #0b0b0c 58%, #060606 100%);
	font-family: var(--font-ui);
}

button,
input {
	font: inherit;
	outline: none;
}

button {
	border: 0;
	cursor: pointer;
}

a {
	color: inherit;
}

.app-shell {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.phone-frame {
	position: relative;
	width: 390px;
	height: 844px;
	background: var(--bg);
	border-radius: 34px;
	overflow: hidden;
	box-shadow: 0 36px 84px rgba(0, 0, 0, 0.55);
}

.screen {
	position: absolute;
	inset: 0;
	display: none;
}

.screen.active {
	display: block;
}

/* Login */
.login-screen {
	background: #ffffff;
	color: var(--text-dark);
}

.login-wrap {
	padding: 18px 24px 26px;
}

.login-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 2px;
}

.icon-btn.ghost {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: transparent;
	color: #3a3a3a;
	font-size: 18px;
}

.muted-link {
	color: #626262;
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
}

.login-title {
	margin: 42px 0 30px;
	font-size: 42px;
	line-height: 1;
	letter-spacing: -0.04em;
	font-weight: 800;
}

.login-tabs {
	display: flex;
	gap: 18px;
	margin-bottom: 24px;
}

.tab-btn {
	padding: 0;
	background: transparent;
	color: #9b9b9b;
	font-size: 16px;
	line-height: 24px;
	font-weight: 600;
}

.tab-btn.active {
	color: #111111;
}

.input-group {
	margin-bottom: 16px;
}

.input-group label {
	display: block;
	margin-bottom: 10px;
	font-size: 13px;
	color: #4c4c4c;
	font-weight: 600;
}

.phone-input {
	min-height: 52px;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 14px;
	border-radius: 15px;
	background: #f3f3f3;
}

.phone-input input {
	flex: 1;
	border: none;
	background: transparent;
	color: #111111;
	font-size: 16px;
	font-weight: 600;
}

.phone-input input::placeholder {
	color: #b5b5b5;
	font-weight: 500;
}

.prefix {
	color: #1b1b1b;
	font-size: 15px;
	font-weight: 700;
}

.field-arrow {
	color: #878787;
	font-size: 13px;
}

.field-action {
	padding: 0;
	color: #666666;
	background: transparent;
	font-size: 12px;
	font-weight: 700;
}

.primary-login-btn {
	width: 100%;
	height: 52px;
	margin-top: 8px;
	border-radius: 26px;
	background: #111111;
	color: #ffffff;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: 0.01em;
}

.primary-login-btn:active {
	transform: scale(0.996);
}

.divider {
	position: relative;
	margin: 24px 0 14px;
	text-align: center;
	color: #a6a6a6;
	font-size: 12px;
	font-weight: 500;
}

.divider::before,
.divider::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 30%;
	height: 1px;
	background: #ececec;
}

.divider::before {
	left: 0;
}

.divider::after {
	right: 0;
}

.other-login-btn {
	width: 100%;
	height: 46px;
	border-radius: 23px;
	background: #f3f3f3;
	color: #111111;
	margin-bottom: 12px;
	font-size: 14px;
	font-weight: 700;
}

.register-tip,
.credential-tip {
	text-align: center;
	color: #6f6f6f;
}

.register-tip {
	margin: 14px 0 8px;
	font-size: 13px;
}

.register-tip a {
	text-decoration: none;
	color: #111111;
	font-weight: 800;
}

.credential-tip {
	margin: 0;
	font-size: 12px;
}

/* Main app */
.app-screen {
	background: var(--bg);
	color: var(--text);
}

.top-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 16px 8px;
}

.pair-left {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.back-btn,
.icon-plain {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	color: var(--text);
}

.back-btn {
	font-size: 26px;
	line-height: 1;
	margin-top: 2px;
}

.icon-plain {
	font-size: 18px;
}

.icon-plain.small {
	width: 22px;
	height: 22px;
	font-size: 14px;
	color: var(--text-2);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 2px;
}

.pair-name-row {
	display: flex;
	align-items: center;
	gap: 6px;
}

.pair-name {
	font-size: 22px;
	line-height: 1;
	letter-spacing: -0.04em;
	font-weight: 800;
}

.badge,
.lever {
	padding: 3px 6px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.12);
	color: var(--text-2);
	font-size: 10px;
	line-height: 1;
	font-weight: 700;
}

.lever {
	background: rgba(255, 255, 255, 0.08);
}

.pair-price-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 6px;
}

.pair-price {
	color: var(--okx-green);
	font-size: 15px;
	font-weight: 700;
}

.pair-change {
	color: var(--okx-green);
	font-size: 13px;
	font-weight: 600;
}

.subnav {
	display: flex;
	gap: 2px;
	overflow-x: auto;
	padding: 0 10px;
	scrollbar-width: none;
}

.subnav::-webkit-scrollbar {
	display: none;
}

.subnav-item {
	position: relative;
	flex: 0 0 auto;
	padding: 12px 8px 13px;
	background: transparent;
	color: var(--text-3);
	font-size: 15px;
	line-height: 1;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.subnav-item.active {
	color: var(--text);
	font-weight: 700;
}

.subnav-item.active::after {
	content: "";
	position: absolute;
	left: 18%;
	right: 18%;
	bottom: 2px;
	height: 3px;
	border-radius: 999px;
	background: var(--okx-lime);
}

.content-area {
	/* height: calc(100% - 148px); */
	height: calc(100%);
	overflow-y: auto;
	padding: 10px 14px 0;
	scrollbar-width: none;
}

.content-area::-webkit-scrollbar {
	display: none;
}

.page {
	display: none;
}

.page.active {
	display: block;
}

.quick-tools {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}

.tool-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 0;
	background: transparent;
	color: var(--text);
}

.tool-icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #141518;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
	font-size: 20px;
	font-weight: 700;
}

.tool-label {
	color: var(--text-2);
	font-size: 12px;
	line-height: 1.2;
	font-weight: 600;
}

.hero-card,
.coin-card,
.article-card,
.data-card,
.table-card,
.trade-chart-card,
.asset-card,
.gray-banner,
.trend-card,
.post-card,
.list-item {
	background: var(--bg-2);
	border-radius: 22px;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.hero-card {
	margin-top: 18px;
	padding: 18px;
}

.hero-title {
	font-size: 27px;
	line-height: 1.34;
	letter-spacing: -0.045em;
	font-weight: 800;
}

.hero-meta {
	margin-top: 10px;
	color: #d6d6d6;
	font-size: 13px;
	font-weight: 600;
}

.profit-list {
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.profit-list li {
	position: relative;
	padding-left: 18px;
	margin-bottom: 10px;
	color: var(--text-2);
	font-size: 13px;
	line-height: 1.45;
	font-weight: 600;
}

.profit-list li::before {
	content: "✦";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--okx-lime);
}

.profit-list span {
	color: #ff7c97;
	font-weight: 800;
}

.section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 22px 2px 12px;
}

.section-head h3 {
	margin: 0;
	font-size: 22px;
	line-height: 1;
	letter-spacing: -0.04em;
	font-weight: 800;
}

.inline-head h3 {
	font-size: 18px;
}

.text-btn {
	padding: 0;
	background: transparent;
	color: var(--okx-lime);
	font-size: 13px;
	font-weight: 700;
}

.strategy-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.list-item {
	width: 100%;
	padding: 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	color: var(--text);
	text-align: left;
}

.item-main strong {
	display: block;
	font-size: 15px;
	line-height: 1.35;
	font-weight: 800;
}

.item-main p {
	margin: 6px 0 0;
	color: var(--text-3);
	font-size: 12px;
	font-weight: 600;
}

.item-side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
}

.item-side small {
	color: var(--text-3);
	font-size: 11px;
	font-weight: 600;
}

.up {
	color: #ff6d8f;
	font-size: 17px;
	font-weight: 800;
	letter-spacing: -0.03em;
}

.segment-tabs,
.topic-tabs,
.range-tabs,
.chart-tabs {
	display: flex;
	align-items: center;
	gap: 8px;
	overflow-x: auto;
	scrollbar-width: none;
}

.segment-tabs::-webkit-scrollbar,
.topic-tabs::-webkit-scrollbar,
.range-tabs::-webkit-scrollbar,
.chart-tabs::-webkit-scrollbar {
	display: none;
}

.segment-tabs button,
.topic-tabs button,
.range-tabs button,
.chart-tabs button {
	flex: 0 0 auto;
	padding: 0;
	background: transparent;
	color: var(--text-3);
	font-size: 12px;
	line-height: 1;
	font-weight: 700;
}

.segment-tabs button.active,
.topic-tabs button.active,
.range-tabs button.active,
.chart-tabs button.active {
	color: var(--text);
}

.segment-tabs {
	margin-bottom: 14px;
}

.coin-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px;
}

.coin-logo {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #25262b;
	color: var(--text);
	font-weight: 800;
}

.coin-name {
	font-size: 17px;
	font-weight: 800;
}

.coin-name span,
.coin-sub {
	color: var(--text-3);
	font-size: 12px;
	font-weight: 600;
}

.metrics-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
	margin-top: 14px;
}

.metric-card {
	min-height: 84px;
	padding: 14px;
	border-radius: 18px;
	background: #121317;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.metric-card label {
	display: block;
	color: var(--text-3);
	font-size: 11px;
	font-weight: 700;
}

.metric-card strong {
	display: block;
	margin-top: 8px;
	font-size: 15px;
	line-height: 1.3;
	letter-spacing: -0.03em;
	font-weight: 800;
}

.article-card {
	margin-top: 14px;
	padding: 16px;
}

.article-card h3 {
	margin: 0 0 10px;
	font-size: 17px;
	font-weight: 800;
}

.article-card p {
	margin: 0;
	color: var(--text-2);
	font-size: 13px;
	line-height: 1.7;
	font-weight: 500;
}

.data-card {
	padding: 14px;
}

.range-tabs {
	margin-bottom: 14px;
}

.donut-wrap {
	display: flex;
	align-items: center;
	gap: 14px;
}

.donut-chart {
	width: 172px;
	height: 172px;
	border-radius: 50%;
	background: conic-gradient(#d7557a 0 36.5%, #24c06f 36.5% 78.1%, #4f81ff 78.1% 93.78%, #f8cc46 93.78% 100%);
	position: relative;
	flex: 0 0 auto;
}

.donut-chart::after {
	content: "";
	position: absolute;
	inset: 28px;
	border-radius: 50%;
	background: var(--bg);
}

.donut-hole {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	text-align: center;
}

.donut-hole span,
.donut-hole em {
	color: var(--text-3);
	font-size: 11px;
	font-style: normal;
	font-weight: 700;
}

.donut-hole strong {
	margin: 6px 0 2px;
	font-size: 22px;
	letter-spacing: -0.04em;
	font-weight: 800;
}

.legend-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	color: var(--text-2);
	font-size: 12px;
	font-weight: 700;
}

.dot {
	display: inline-block;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	margin-right: 8px;
}

.dot.green {
	background: var(--buy);
}

.dot.pink {
	background: var(--sell);
}

.dot.blue {
	background: var(--blue);
}

.dot.yellow {
	background: var(--yellow);
}

.table-card {
	margin-top: 14px;
	padding: 10px 14px 4px;
}

.table-head,
.table-row {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr;
	align-items: center;
	gap: 8px;
}

.table-head {
	padding: 6px 0 10px;
	color: var(--text-3);
	font-size: 11px;
	font-weight: 700;
}

.table-row {
	padding: 12px 0;
	border-top: 1px solid var(--line);
	color: var(--text-2);
	font-size: 13px;
	font-weight: 700;
}

.table-row .sell {
	color: var(--sell);
}

.table-row .buy {
	color: var(--buy);
}

.trend-card {
	padding: 18px 14px 10px;
}

.mini-chart-bars {
	height: 100px;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 8px;
}

.mini-chart-bars span {
	flex: 1;
	border-radius: 10px 10px 0 0;
	background: linear-gradient(180deg, #3ef07c, #1a9649);
}

.news-banner {
	padding: 14px 16px;
	border-radius: 18px;
	background: linear-gradient(180deg, #111316, #15171a);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
}

.news-tag {
	display: inline-flex;
	align-items: center;
	height: 22px;
	padding: 0 10px;
	border-radius: 999px;
	background: rgba(211, 255, 76, .12);
	color: var(--okx-lime);
	font-size: 11px;
	font-weight: 800;
}

.news-banner p {
	margin: 10px 0 0;
	color: #e6e6e6;
	font-size: 14px;
	line-height: 1.6;
	font-weight: 600;
}

.topic-tabs {
	margin: 16px 0 12px;
}

.post-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.post-card {
	width: 100%;
	padding: 14px;
	color: var(--text);
	text-align: left;
}

.post-user {
	display: flex;
	gap: 10px;
}

.avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: linear-gradient(135deg, #3e3f45, #1f2024);
}

.post-user strong {
	display: block;
	font-size: 14px;
	font-weight: 800;
}

.post-user p {
	margin: 6px 0 0;
	color: var(--text-2);
	font-size: 13px;
	line-height: 1.6;
	font-weight: 600;
}

.post-cover {
	height: 140px;
	margin-top: 12px;
	border-radius: 16px;
	background: linear-gradient(135deg, #2f3137, #121418 70%);
	position: relative;
	overflow: hidden;
}

.post-cover::before,
.post-cover::after {
	content: "";
	position: absolute;
	background: rgba(255, 255, 255, .18);
}

.post-cover::before {
	left: 20px;
	bottom: 26px;
	width: 120px;
	height: 80px;
	border-radius: 12px;
}

.post-cover::after {
	right: 26px;
	top: 30px;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	box-shadow: -14px 34px 0 10px rgba(211, 255, 76, .7);
}

.post-meta {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 12px;
	color: var(--text-3);
	font-size: 12px;
	font-weight: 700;
}

.float-action {
	position: fixed;
	right: calc(50% - 195px + 18px);
	bottom: calc(50vh - 422px + 86px);
	display: none;
}

.page#page-news.active~.float-action,
#page-news.active+.float-action {
	display: inline-flex;
}

.float-action {
	position: absolute;
	right: 18px;
	bottom: 96px;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--okx-lime);
	color: #0f0f0f;
	font-size: 22px;
	font-weight: 800;
	box-shadow: 0 14px 28px rgba(211, 255, 76, .24);
}

.trade-chart-card {
	padding: 16px;
}

.chart-header {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

.trade-price {
	color: var(--okx-green);
	font-size: 34px;
	line-height: 1;
	letter-spacing: -0.05em;
	font-weight: 800;
}

.trade-right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
	color: var(--text-3);
	font-size: 11px;
	font-weight: 700;
}

.chart-tabs {
	margin-top: 14px;
}

.fake-chart {
	height: 250px;
	margin-top: 16px;
	border-radius: 18px;
	background:
		linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 100% 20%,
		linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 20% 100%,
		#0f1013;
	overflow: hidden;
}

.fake-chart svg {
	width: 100%;
	height: 100%;
}

.fake-chart polyline {
	fill: none;
	stroke: #a55e72;
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.trade-actions {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr 1fr;
	gap: 10px;
	margin-top: 16px;
}

.trade-primary,
.trade-secondary {
	height: 46px;
	border-radius: 23px;
	font-size: 14px;
	font-weight: 800;
}

.trade-primary {
	background: #f3f3f3;
	color: #111111;
}

.trade-secondary {
	background: #16171b;
	color: var(--text-2);
}

.total-asset-card {
	padding: 16px;
	background: #ffffff;
	color: #111111;
}

.asset-top-row {
	display: flex;
	justify-content: space-between;
	gap: 14px;
}

.asset-top-row label {
	display: block;
	color: #656565;
	font-size: 12px;
	font-weight: 700;
}

.asset-top-row strong {
	display: block;
	margin-top: 10px;
	font-size: 42px;
	line-height: 1;
	letter-spacing: -0.05em;
	font-weight: 800;
}

.asset-top-row strong em {
	font-style: normal;
	font-size: 18px;
	font-weight: 700;
}

.asset-top-row p {
	margin: 10px 0 0;
	color: #808080;
	font-size: 12px;
	font-weight: 600;
}

.asset-wave {
	width: 108px;
	height: 60px;
	border-radius: 12px;
	align-self: center;
	background:
		linear-gradient(180deg, rgba(255, 80, 120, .25), rgba(255, 80, 120, .08)),
		repeating-linear-gradient(180deg, transparent 0 8px, rgba(255, 255, 255, .55) 8px 9px);
}

.asset-actions {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin: 16px 0;
}

.asset-actions button {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	background: transparent;
	color: var(--text);
}

.asset-actions button span {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #1f7d21;
	font-size: 18px;
	font-weight: 800;
}

.asset-actions button em {
	font-style: normal;
	color: #d5d5d5;
	font-size: 12px;
	font-weight: 700;
}

.gray-banner {
	padding: 16px;
	color: #333333;
	background: #efefef;
	font-size: 14px;
	line-height: 1.5;
	font-weight: 700;
	margin-top: 8px;
}

.asset-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

.asset-box {
	min-height: 86px;
	padding: 14px;
	text-align: left;
	border-radius: 18px;
	background: #f2f2f2;
	color: #111111;
}

.asset-box label {
	display: block;
	color: #666666;
	font-size: 12px;
	font-weight: 700;
}

.asset-box strong {
	display: block;
	margin-top: 14px;
	font-size: 20px;
	letter-spacing: -0.04em;
	font-weight: 800;
}

.empty-asset {
	margin-top: 26px;
	text-align: center;
	color: #4b4b4b;
}

.empty-icon {
	width: 58px;
	height: 58px;
	margin: 0 auto 12px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #d8d8d8;
	font-size: 28px;
	font-weight: 800;
}

.empty-asset strong {
	display: block;
	color: #222222;
	font-size: 16px;
	font-weight: 800;
}

.empty-asset p {
	margin: 8px 0 0;
	color: #8d8d8d;
	font-size: 12px;
	font-weight: 600;
}

.bottom-nav {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 84px;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	padding: 8px 8px 14px;
	background: rgba(0, 0, 0, 0.94);
	backdrop-filter: blur(12px);
	border-top: 1px solid rgba(255, 255, 255, .05);
}

.bottom-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	background: transparent;
	color: #74767b;
}

.nav-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	font-size: 18px;
	line-height: 1;
}

.nav-text {
	font-size: 16px;
	line-height: 1;
	letter-spacing: -0.01em;
	font-weight: 700;
}

.bottom-item.active {
	color: #ffffff;
}

.bottom-item.active .nav-text {
	font-weight: 800;
}

.toast {
	position: fixed;
	left: 50%;
	bottom: 52px;
	transform: translateX(-50%) translateY(10px);
	min-width: 160px;
	max-width: calc(100vw - 40px);
	padding: 12px 16px;
	border-radius: 14px;
	background: rgba(20, 20, 20, 0.92);
	color: #ffffff;
	text-align: center;
	font-size: 14px;
	line-height: 1.4;
	font-weight: 700;
	opacity: 0;
	pointer-events: none;
	transition: all .2s ease;
	z-index: 50;
}

.toast.show {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 60;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	background: rgba(0, 0, 0, 0.56);
}

.modal-overlay.hidden {
	display: none;
}

.modal-sheet {
	width: min(390px, 100vw);
	min-height: 280px;
	max-height: 78vh;
	padding: 10px 16px 22px;
	border-radius: 28px 28px 0 0;
	background: #ffffff;
	color: #111111;
	overflow: auto;
}

.sheet-handle {
	width: 54px;
	height: 5px;
	margin: 2px auto 18px;
	border-radius: 999px;
	background: #d7d7d7;
}

.modal-title {
	font-size: 24px;
	line-height: 1.1;
	letter-spacing: -0.04em;
	font-weight: 800;
}

.modal-desc {
	margin-top: 12px;
	color: #555555;
	font-size: 14px;
	line-height: 1.7;
	font-weight: 500;
}

.modal-list {
	margin: 16px 0 0;
	padding-left: 18px;
	color: #222222;
}

.modal-list li {
	margin-bottom: 10px;
	font-size: 14px;
	line-height: 1.6;
	font-weight: 600;
}

.modal-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-top: 24px;
}

.modal-actions button {
	height: 48px;
	border-radius: 24px;
	font-size: 15px;
	font-weight: 800;
}

.modal-actions .line {
	background: #f1f1f1;
	color: #111111;
}

.modal-actions .solid {
	background: #111111;
	color: #ffffff;
}

@media (max-width: 420px) {
	.app-shell {
		padding: 0;
	}

	.phone-frame {
		width: 100vw;
		height: 100vh;
		border-radius: 0;
	}

	.float-action {
		right: 18px;
		bottom: 92px;
	}

	.modal-sheet {
		width: 100vw;
	}
}


.phone {
	width: 100%;
	max-width: 430px;
	min-height: 100vh;
	background: linear-gradient(180deg, #11151c 0%, #0b0d12 42%, #0a0b0f 100%);
	border-radius: 28px;
	overflow: hidden;
	position: relative;
	box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
}

.hero {
	padding: 18px 18px 0;
	background:
		radial-gradient(circle at 82% 8%, rgba(255, 199, 77, .18), transparent 26%),
		radial-gradient(circle at 12% 18%, rgba(255, 255, 255, .08), transparent 20%),
		linear-gradient(180deg, #171c25 0%, #0f1319 100%);
}

.topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
}

.back,
.filter-btn {
	border: 0;
	cursor: pointer;
	color: #fff;
	background: rgba(255, 255, 255, .06);
	height: 34px;
	padding: 0 14px;
	border-radius: 999px;
	font-size: 13px;
}

.back {
	width: 34px;
	padding: 0;
	font-size: 18px;
}

.summary-card {
	position: relative;
	overflow: hidden;
	border-radius: 24px;
	padding: 22px 18px 18px;
	background: linear-gradient(135deg, #1f2430 0%, #2a313f 42%, #444f63 72%, #d4a94d 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 16px 44px rgba(0, 0, 0, .28);
}

.summary-card::before {
	content: "";
	position: absolute;
	right: -50px;
	bottom: -90px;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 65%);
}

.summary-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(0, 0, 0, .18);
	font-size: 12px;
	color: #fff5d7;
	margin-bottom: 14px;
}

.summary-title {
	margin: 0;
	font-size: 28px;
	line-height: 1.2;
	font-weight: 800;
	color: #fff;
}

.summary-desc {
	margin: 10px 0 0;
	color: rgba(255, 255, 255, .86);
	font-size: 14px;
	line-height: 1.7;
	max-width: 280px;
}

.summary-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin-top: 18px;
}

.stat {
	border-radius: 18px;
	padding: 12px;
	background: rgba(0, 0, 0, .16);
	border: 1px solid rgba(255, 255, 255, .12);
}

.stat-label {
	font-size: 12px;
	color: rgba(255, 255, 255, .72);
	margin-bottom: 6px;
}

.stat-value {
	font-size: 16px;
	color: #fff;
	font-weight: 800;
	line-height: 1.4;
}

.content {
	padding: 18px;
}

.section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}

.section-head h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 800;
	color: #fff;
}

.section-head span {
	font-size: 12px;
	color: #8f98a7;
}

.record-group {
	margin-bottom: 16px;
}

.group-date {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
	color: #f2cb7b;
	font-size: 13px;
	font-weight: 700;
}

.group-date::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: linear-gradient(135deg, #f1c56c, #a56b18);
	box-shadow: 0 0 12px rgba(241, 197, 108, .4);
}

.record-list {
	display: grid;
	gap: 10px;
}

.record-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px;
	border-radius: 18px;
	background: linear-gradient(180deg, #151922 0%, #10141b 100%);
	border: 1px solid rgba(255, 255, 255, .06);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}

.record-left {
	min-width: 0;
}

.record-title {
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	margin-bottom: 5px;
}

.record-time {
	font-size: 12px;
	color: #8f98a7;
}

.record-right {
	text-align: right;
	flex-shrink: 0;
}

.record-amount {
	font-size: 20px;
	font-weight: 800;
	color: #f2cb7b;
	line-height: 1.1;
}

.record-status {
	margin-top: 5px;
	font-size: 12px;
	color: #57d18c;
}

.bottom-bar {
	position: sticky;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
	background: linear-gradient(180deg, rgba(10, 11, 15, 0) 0%, rgba(10, 11, 15, .92) 22%, #0a0b0f 100%);
	backdrop-filter: blur(8px);
}

.bottom-note {
	border-radius: 18px;
	padding: 14px 16px;
	background: #171c25;
	color: #aab3bf;
	font-size: 13px;
	line-height: 1.7;
	border: 1px solid rgba(255, 255, 255, .06);
}

.toast {
	position: fixed;
	left: 50%;
	bottom: 36px;
	transform: translateX(-50%) translateY(20px);
	min-width: 140px;
	max-width: 84vw;
	padding: 12px 16px;
	border-radius: 14px;
	background: rgba(17, 17, 17, .94);
	color: #fff;
	font-size: 14px;
	text-align: center;
	opacity: 0;
	pointer-events: none;
	transition: .22s ease;
	z-index: 20;
}

.toast.show {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}