:root {
	--bg: #f5f7fb;
	--surface: #ffffff;
	--surface-soft: #f8fafc;
	--surface-tint: #eef4ff;
	--line: #e2e8f0;
	--line-strong: #cbd5e1;
	--text: #0f172a;
	--text-soft: #475569;
	--muted: #64748b;
	--primary: #2563eb;
	--primary-dark: #1d4ed8;
	--primary-soft: #dbeafe;
	--success: #16a34a;
	--warning: #b7791f;
	--danger: #dc2626;
	--danger-dark: #b91c1c;
	--shadow: 0 18px 45px rgba(15, 23, 42, .08);
	--shadow-soft: 0 8px 24px rgba(15, 23, 42, .06);
	--radius: 14px;
	--radius-sm: 10px;
	--font: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
}

* {
	box-sizing: border-box;
}

html,
body {
	min-height: 100%;
}

body {
	margin: 0;
	font-family: var(--font);
	color: var(--text);
	background:
		linear-gradient(135deg, rgba(37, 99, 235, .08), transparent 34%),
		linear-gradient(180deg, #f8fafc 0%, var(--bg) 100%);
	font-size: 14px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

body.query-loading-lock {
	overflow: hidden;
}

.hidden,
.modal.hidden {
	display: none !important;
}

a {
	color: var(--primary);
	text-decoration: none;
	font-weight: 700;
}

a:hover {
	color: var(--primary-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
}

h1,
h2,
h3,
p {
	margin-top: 0;
}

button,
input,
select {
	font: inherit;
}

button {
	cursor: pointer;
}

input,
select {
	width: 100%;
	height: 42px;
	border: 1px solid var(--line-strong);
	border-radius: 10px;
	background: #fff;
	color: var(--text);
	padding: 0 12px;
	outline: none;
	transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

input::placeholder {
	color: #94a3b8;
}

input:hover,
select:hover {
	border-color: #94a3b8;
}

input:focus,
select:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 4px rgba(37, 99, 235, .13);
}

input:disabled {
	background: #f1f5f9;
	color: #94a3b8;
	cursor: not-allowed;
}

.page {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 28px;
}

.auth-page {
	background:
		linear-gradient(160deg, rgba(37, 99, 235, .10), transparent 36%),
		linear-gradient(180deg, #f8fafc, #eef2f7);
}

.card {
	background: rgba(255, 255, 255, .96);
	border: 1px solid rgba(226, 232, 240, .85);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 28px;
}

.auth-card {
	width: 100%;
	max-width: 440px;
}

.register-card {
	max-width: 880px;
}

.auth-heading {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 24px;
}

.auth-heading h1,
.sidebar-brand h2 {
	margin: 0;
	color: var(--text);
	font-size: 24px;
	font-weight: 850;
	letter-spacing: 0;
}

.auth-heading p,
.sidebar-brand p {
	margin: 4px 0 0;
	color: var(--muted);
	font-size: 13px;
}

.brand-badge {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--primary);
	color: #fff;
	font-size: 18px;
	font-weight: 900;
	box-shadow: 0 10px 24px rgba(37, 99, 235, .24);
}

.form {
	display: grid;
	gap: 14px;
}

.form label {
	display: grid;
	gap: 7px;
	min-width: 0;
	color: var(--text-soft);
	font-size: 13px;
	font-weight: 750;
}

.login-form label,
.register-form label,
.pay-query-form label,
.inline-form label {
	display: grid;
	gap: 7px;
	align-items: initial;
}

.login-form label span,
.register-form label span,
.inline-form label span,
.pay-query-form label span {
	white-space: nowrap;
	text-align: left;
	width: auto;
	flex: none;
}

.register-form label input,
.register-form label select,
.register-form .captcha-inline-row,
.login-form label input,
.inline-form label input,
.inline-form label select,
.pay-query-form label input,
.pay-query-form label select {
	flex: none;
	min-width: 0;
}

.grid-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.grid-form.register-form {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-form .full,
.grid-form .captcha-wrap,
.grid-form .captcha-inline-label {
	grid-column: 1 / -1;
}

.captcha-inline-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
}

.captcha-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
}

.captcha-img {
	width: 132px;
	height: 42px;
	border: 1px solid var(--line-strong);
	border-radius: 10px;
	object-fit: contain;
	object-position: center;
	display: block;
	background: #fff;
	cursor: pointer;
	transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.captcha-img:hover {
	border-color: var(--primary);
	box-shadow: 0 8px 18px rgba(37, 99, 235, .12);
	transform: translateY(-1px);
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	border: 1px solid transparent;
	border-radius: 10px;
	padding: 0 16px;
	font-weight: 800;
	white-space: nowrap;
	transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease, opacity .16s ease;
}

.btn:hover {
	transform: translateY(-1px);
	box-shadow: var(--shadow-soft);
}

.btn:active {
	transform: translateY(0);
	box-shadow: none;
}

.btn:disabled,
button:disabled {
	opacity: .58;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.btn-primary {
	background: var(--primary);
	border-color: var(--primary);
	color: #fff;
}

.btn-primary:hover {
	background: var(--primary-dark);
	border-color: var(--primary-dark);
}

.btn-light {
	background: #f1f5f9;
	border-color: var(--line);
	color: var(--text);
}

.btn-light:hover {
	background: #e2e8f0;
}

.full {
	width: 100%;
}

.helper-text {
	margin: 18px 0 0;
	color: var(--muted);
	font-size: 13px;
	text-align: center;
}

.layout {
	min-height: 100vh;
	height: 100vh;
	display: grid;
	grid-template-columns: 248px minmax(0, 1fr);
	background: var(--bg);
}

.sidebar {
	min-width: 0;
	background: #0f172a;
	color: #e2e8f0;
	padding: 18px 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	border-right: 1px solid rgba(148, 163, 184, .22);
}

.sidebar-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 8px 18px;
	margin-bottom: 8px;
	border-bottom: 1px solid rgba(148, 163, 184, .18);
}

.sidebar-brand h2 {
	color: #fff;
	font-size: 18px;
}

.sidebar-brand p {
	color: #94a3b8;
}

.sidebar .brand-badge {
	width: 38px;
	height: 38px;
	border-radius: 11px;
	box-shadow: none;
}

.nav-btn {
	width: 100%;
	min-height: 42px;
	border: 1px solid transparent;
	border-radius: 10px;
	background: transparent;
	color: #cbd5e1;
	text-align: left;
	padding: 0 12px;
	font-weight: 760;
	transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}

.nav-btn:hover {
	background: rgba(148, 163, 184, .14);
	color: #fff;
	transform: translateX(2px);
}

.nav-btn.active {
	background: var(--primary);
	border-color: rgba(255, 255, 255, .12);
	color: #fff;
	box-shadow: 0 10px 22px rgba(37, 99, 235, .24);
}

.nav-btn.danger {
	margin-top: auto;
	color: #fecaca;
}

.nav-btn.danger:hover {
	background: rgba(220, 38, 38, .18);
	color: #fff;
}

.content {
	min-width: 0;
	height: 100vh;
	overflow: hidden;
	padding: 22px;
}

.panel {
	display: none;
	background: var(--surface);
	border: 1px solid rgba(226, 232, 240, .86);
	border-radius: var(--radius);
	box-shadow: var(--shadow-soft);
	padding: 20px;
}

.panel.active {
	display: flex;
	flex-direction: column;
	height: calc(100vh - 44px);
	min-height: 0;
	overflow: auto;
}

.panel h1 {
	margin: 0 0 18px;
	color: var(--text);
	font-size: 22px;
	font-weight: 850;
}

.panel h2 {
	margin: 20px 0 12px;
	color: var(--text);
	font-size: 17px;
	font-weight: 820;
}

.info-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 14px;
}

.info-grid > div {
	min-width: 0;
	padding: 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--surface-soft);
	color: var(--text-soft);
}

.info-grid strong {
	color: var(--text);
}

.action-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
}

.brief-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 16px;
}

.brief-card {
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	padding: 14px;
	background: linear-gradient(180deg, #fff, var(--surface-soft));
	display: grid;
	gap: 9px;
}

.brief-card h3 {
	margin: 0 0 2px;
	font-size: 14px;
	color: var(--text);
	font-weight: 820;
}

.brief-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	color: var(--muted);
}

.brief-row strong {
	font-size: 17px;
	color: var(--primary-dark);
}

.info-share-wrap {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
}

#infoShare {
	word-break: break-all;
}

.copy-link-btn {
	display: inline-grid;
	place-items: center;
	height: 28px;
	min-width: 28px;
	padding: 0 7px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #fff;
	color: var(--text-soft);
	font-size: 14px;
	line-height: 1;
	transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.copy-link-btn:hover {
	background: var(--surface-tint);
	border-color: #bfdbfe;
	transform: translateY(-1px);
}

.copy-link-btn:disabled {
	opacity: .5;
	cursor: not-allowed;
	transform: none;
}

.inline-form {
	display: flex;
	align-items: end;
	gap: 12px;
	margin-bottom: 16px;
	padding: 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--surface-soft);
}

.inline-form label {
	min-width: 240px;
}

.query-submit {
	width: auto;
	min-width: 96px;
}

.inline-form .query-submit {
	margin-left: auto;
}

.grid-form .query-submit {
	grid-column: 1 / -1;
	justify-self: end;
}

.pay-query-form {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	align-items: end;
	column-gap: 12px;
	row-gap: 14px;
	margin-bottom: 16px;
	padding: 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--surface-soft);
}

.pay-query-form input[type="text"],
.pay-query-form select,
.pay-query-form .pay-date-label input {
	width: 100%;
	padding-right: 10px;
}

.pay-query-form .query-submit {
	grid-column: 4;
	justify-self: end;
	align-self: end;
}

.compact {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-bottom: 16px;
}

.table-wrap {
	overflow: auto;
	flex: 1 1 auto;
	height: 100%;
	min-height: 0;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--surface);
}

table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	min-width: 820px;
}

th,
td {
	border-bottom: 1px solid var(--line);
	padding: 11px 12px;
	text-align: left;
	font-size: 13px;
	vertical-align: middle;
}

th {
	background: #f8fafc;
	color: #334155;
	font-weight: 820;
}

tbody tr {
	transition: background .14s ease;
}

tbody tr:hover {
	background: #f8fbff;
}

.empty-cell {
	text-align: center !important;
	color: var(--muted);
	padding: 28px 12px;
}

.result-table th,
.result-table td {
	border-right: 1px solid var(--line);
}

.result-table th:last-child,
.result-table td:last-child {
	border-right: none;
}

.table-wrap thead th {
	position: sticky;
	top: 0;
	z-index: 2;
	background: #f8fafc;
	box-shadow: inset 0 -1px var(--line);
}

.sortable-th {
	cursor: pointer;
	user-select: none;
	white-space: nowrap;
}

.sortable-th:hover {
	color: var(--primary);
}

.sortable-th .sort-indicator {
	display: inline-block;
	min-width: 1em;
	margin-left: 4px;
	font-weight: 900;
	color: var(--primary);
}

.data-count {
	margin-bottom: 10px;
	font-size: 14px;
	color: var(--muted);
}

.list-footer {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 10px;
	margin-top: 12px;
}

.pay-sticky-footer {
	margin-top: 0;
	padding: 8px 10px;
	background: #fff;
	border: 1px solid var(--line);
	border-top: none;
	border-radius: 0 0 var(--radius-sm) var(--radius-sm);
	box-shadow: 0 -8px 18px rgba(15, 23, 42, .05);
	position: sticky;
	bottom: 0;
	z-index: 3;
}

#paySection .table-wrap {
	border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.pager {
	grid-column: 2;
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	justify-content: center;
}

.page-item {
	height: 32px;
	min-width: 34px;
	padding: 0 10px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #fff;
	color: var(--text-soft);
	font-size: 13px;
	cursor: pointer;
	transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.page-item:hover {
	border-color: #bfdbfe;
	background: var(--surface-tint);
	color: var(--primary);
}

.page-item.current {
	background: var(--primary);
	border-color: var(--primary);
	color: #fff;
	font-weight: 800;
}

.page-size-wrap {
	grid-column: 3;
	justify-self: end;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--muted);
}

.page-size-wrap select {
	width: 86px;
	height: 34px;
}

.sub-list {
	margin: 0;
	padding-left: 16px;
}

.stats-toggle,
.agent-status-action {
	border: none;
	background: transparent;
	padding: 0;
	color: var(--primary);
	cursor: pointer;
	font-size: 13px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-weight: 750;
}

.stats-toggle:hover,
.agent-status-action:hover {
	color: var(--primary-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.stats-toggle-text {
	line-height: 1.2;
}

.stats-toggle-icon {
	width: 0;
	height: 0;
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
	border-left: 8px solid currentColor;
	line-height: 1;
	transition: transform .16s ease;
}

.stats-toggle.is-expanded .stats-toggle-icon {
	transform: rotate(90deg);
}

.stats-sub-row > td,
.agent-sub-row > td {
	background: #f8fbff;
	padding: 0;
	border-top: 1px solid #bfdbfe;
}

.stats-sub-wrap,
.agent-sub-wrap {
	width: 100%;
	overflow-x: auto;
	background: #eff6ff;
}

.stats-sub-table,
.agent-sub-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	min-width: 760px;
	background: #eff6ff;
	table-layout: fixed;
	margin: 0 auto;
}

.stats-main-table,
.agent-main-table,
.stats-sub-table,
.agent-sub-table {
	table-layout: fixed;
}

.stats-main-table th,
.stats-main-table td,
.stats-sub-table th,
.stats-sub-table td,
.agent-main-table th,
.agent-main-table td,
.agent-sub-table th,
.agent-sub-table td {
	word-break: break-all;
}

.stats-sub-table thead th,
.agent-sub-table thead th {
	background: #dbeafe;
	color: #1e3a8a;
}

.agent-main-table td.agent-usdt-cell,
.agent-sub-table td.agent-usdt-cell {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	word-break: normal;
}

.agent-status-icon {
	font-size: 12px;
	line-height: 1;
}

.agent-status-text {
	font-weight: 800;
}

.agent-status-text.status-pass {
	color: var(--success);
}

.agent-status-text.status-wait {
	color: var(--primary);
}

.agent-status-text.status-reject {
	color: var(--warning);
}

.agent-status-text.status-ban {
	color: #7f1d1d;
}

.agent-status-tip {
	margin: 0;
	font-size: 14px;
	color: var(--text);
}

.agent-status-choices {
	display: flex;
	gap: 16px;
	font-size: 14px;
	color: var(--text);
}

.agent-status-choices label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.agent-status-choices input {
	width: 16px;
	height: 16px;
}

.modal {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, .46);
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	z-index: 30;
}

.modal-box {
	width: 100%;
	max-width: 440px;
	border: 1px solid rgba(226, 232, 240, .88);
	border-radius: var(--radius);
	background: #fff;
	padding: 22px;
	box-shadow: var(--shadow);
}

.modal-box h3 {
	margin: 0 0 16px;
	font-size: 18px;
	font-weight: 850;
}

.modal-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 4px;
}

.app-message-overlay,
.app-query-loading-overlay {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	z-index: 80;
}

.app-message-overlay {
	background: rgba(15, 23, 42, .28);
	backdrop-filter: blur(4px);
}

.app-message-box {
	width: min(380px, calc(100vw - 32px));
	background: #fff;
	border: 1px solid rgba(226, 232, 240, .9);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 22px;
	display: grid;
	gap: 14px;
}

.app-message-title {
	margin: 0;
	font-size: 18px;
	font-weight: 850;
	line-height: 1.4;
	color: var(--text);
}

.app-message-text {
	margin: 0;
	font-size: 14px;
	line-height: 1.7;
	word-break: break-word;
	overflow-wrap: anywhere;
	white-space: normal;
	color: var(--text-soft);
}

.app-message-actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	padding-top: 4px;
}

.app-message-btn {
	flex: 0 0 auto;
	width: auto;
	min-width: 86px;
}

.app-query-loading-overlay {
	background: rgba(15, 23, 42, .34);
	cursor: wait;
}

.app-query-loading-box {
	min-width: 188px;
	padding: 20px 22px;
	background: rgba(15, 23, 42, .92);
	border: 1px solid rgba(148, 163, 184, .6);
	border-radius: var(--radius);
	display: grid;
	justify-items: center;
	gap: 12px;
	box-shadow: var(--shadow);
}

.app-query-loading-spinner {
	width: 30px;
	height: 30px;
	border: 3px solid rgba(255, 255, 255, .28);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: app-query-spin .8s linear infinite;
}

.app-query-loading-text {
	margin: 0;
	color: #f8fafc;
	font-size: 14px;
	line-height: 1.4;
}

@keyframes app-query-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 1180px) {
	.brief-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.compact,
	.pay-query-form {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pay-query-form .query-submit {
		grid-column: 2;
	}
}

@media (max-width: 860px) {
	.page {
		align-items: flex-start;
		padding: 18px;
	}

	.card {
		padding: 22px;
	}

	.grid-form,
	.grid-form.register-form {
		grid-template-columns: 1fr;
	}

	.layout {
		height: auto;
		min-height: 100vh;
		grid-template-columns: 1fr;
	}

	.sidebar {
		position: sticky;
		top: 0;
		z-index: 20;
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 8px;
		padding: 12px;
	}

	.sidebar-brand {
		grid-column: 1 / -1;
		padding: 2px 4px 10px;
		margin: 0;
	}

	.nav-btn {
		text-align: center;
		padding: 0 8px;
	}

	.nav-btn.danger {
		margin-top: 0;
	}

	.content {
		height: auto;
		overflow: visible;
		padding: 14px;
	}

	.panel.active {
		display: block;
		height: auto;
		max-height: none;
		overflow: visible;
	}

	.table-wrap {
		flex: initial;
		height: auto;
		max-height: calc(100vh - 280px);
	}

	.info-grid,
	.brief-grid,
	.compact,
	.pay-query-form {
		grid-template-columns: 1fr;
	}

	.inline-form {
		flex-direction: column;
		align-items: stretch;
	}

	.inline-form label {
		min-width: 0;
	}

	.inline-form .query-submit,
	.pay-query-form .query-submit {
		grid-column: 1;
		justify-self: stretch;
		margin-left: 0;
		width: 100%;
	}

	.list-footer {
		grid-template-columns: 1fr;
		row-gap: 8px;
	}

	.pager,
	.page-size-wrap {
		grid-column: 1;
	}

	.page-size-wrap {
		justify-self: end;
	}
}

@media (max-width: 520px) {
	body {
		font-size: 13px;
	}

	.auth-heading {
		align-items: flex-start;
	}

	.auth-heading h1 {
		font-size: 21px;
	}

	.captcha-inline-row {
		grid-template-columns: 1fr;
	}

	.captcha-img {
		width: 100%;
	}

	.sidebar {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.panel {
		padding: 14px;
	}

	.panel h1 {
		font-size: 20px;
	}

	.modal-actions,
	.app-message-actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.modal-actions .btn,
	.app-message-actions .btn {
		width: 100%;
	}
}

/* ===================================
	Minimal glass system
====================================== */
:root {
	--bg: #0f2a32;
	--surface: rgba(24, 55, 64, .68);
	--surface-soft: rgba(255, 255, 255, .105);
	--surface-tint: rgba(101, 231, 200, .18);
	--line: rgba(255, 255, 255, .2);
	--line-strong: rgba(255, 255, 255, .32);
	--text: #f7fbff;
	--text-soft: rgba(236, 247, 255, .76);
	--muted: rgba(224, 240, 250, .66);
	--primary: #65e7c8;
	--primary-dark: #64b7ff;
	--primary-soft: rgba(101, 231, 200, .17);
	--success: #72f2a7;
	--warning: #ffd07a;
	--danger: #ff6f91;
	--danger-dark: #ff557e;
	--shadow: 0 28px 80px rgba(0, 0, 0, .25);
	--shadow-soft: 0 18px 48px rgba(0, 0, 0, .18);
	--radius: 24px;
	--radius-sm: 16px;
}

body {
	color: var(--text);
	background:
		linear-gradient(135deg, rgba(101, 231, 200, .24), transparent 34%),
		linear-gradient(235deg, rgba(100, 183, 255, .22), transparent 42%),
		linear-gradient(180deg, #12313b 0%, #153b46 56%, #102b33 100%);
	letter-spacing: 0;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px),
		linear-gradient(180deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
	background-size: 58px 58px;
	mask-image: linear-gradient(180deg, rgba(0, 0, 0, .75), transparent 78%);
}

a {
	color: var(--primary);
}

a:hover {
	color: var(--primary-dark);
}

input,
select {
	height: 46px;
	border-color: var(--line);
	border-radius: 14px;
	background: rgba(255, 255, 255, .12);
	color: var(--text);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
	transition: border-color .24s cubic-bezier(.2, .8, .2, 1), box-shadow .24s cubic-bezier(.2, .8, .2, 1), background .24s cubic-bezier(.2, .8, .2, 1), transform .24s cubic-bezier(.2, .8, .2, 1);
}

input::placeholder {
	color: rgba(236, 247, 255, .42);
}

input:hover,
select:hover {
	border-color: rgba(255, 255, 255, .32);
	background: rgba(255, 255, 255, .16);
}

input:focus,
select:focus {
	border-color: rgba(101, 231, 200, .82);
	background: rgba(255, 255, 255, .18);
	box-shadow: 0 0 0 5px rgba(101, 231, 200, .13), inset 0 1px 0 rgba(255, 255, 255, .08);
}

input:disabled {
	color: rgba(236, 247, 255, .44);
	background: rgba(255, 255, 255, .04);
}

select option {
	color: #071318;
	background: #f7fbff;
}

.page {
	padding: 34px;
}

.auth-page {
	background:
		linear-gradient(180deg, rgba(12, 34, 40, .08), rgba(12, 34, 40, .64)),
		linear-gradient(145deg, rgba(101, 231, 200, .24), transparent 38%),
		linear-gradient(235deg, rgba(100, 183, 255, .24), transparent 44%),
		url("../admin-bg-glass.png") center center / cover fixed no-repeat,
		linear-gradient(180deg, #12313b, #153b46);
}

.card,
.panel,
.modal-box,
.app-message-box,
.app-query-loading-box {
	border: 1px solid var(--line);
	background: var(--surface);
	-webkit-backdrop-filter: blur(26px) saturate(1.35);
	backdrop-filter: blur(26px) saturate(1.35);
	box-shadow: var(--shadow);
}

.auth-card {
	max-width: 460px;
	padding: 32px;
}

.register-card {
	max-width: 900px;
}

.auth-heading {
	gap: 16px;
	margin-bottom: 26px;
}

.auth-heading h1,
.sidebar-brand h2,
.panel h1,
.panel h2,
.modal-box h3,
.app-message-title {
	color: var(--text);
	letter-spacing: 0;
}

.auth-heading h1 {
	font-size: clamp(24px, 3vw, 32px);
	line-height: 1.16;
}

.auth-heading p,
.sidebar-brand p,
.helper-text,
.form label,
.brief-row,
.data-count,
.page-size-wrap,
.app-message-text {
	color: var(--text-soft);
}

.brand-badge {
	width: 48px;
	height: 48px;
	border-radius: 16px;
	color: #071318;
	background: linear-gradient(135deg, var(--primary), var(--primary-dark));
	box-shadow: 0 18px 36px rgba(84, 210, 206, .25);
}

.sidebar .brand-badge {
	width: 42px;
	height: 42px;
	border-radius: 14px;
}

.btn,
.nav-btn,
.copy-link-btn,
.page-item,
.app-message-btn {
	transition: transform .24s cubic-bezier(.2, .8, .2, 1), box-shadow .24s cubic-bezier(.2, .8, .2, 1), background .24s cubic-bezier(.2, .8, .2, 1), border-color .24s cubic-bezier(.2, .8, .2, 1), color .24s cubic-bezier(.2, .8, .2, 1), opacity .24s cubic-bezier(.2, .8, .2, 1);
}

.btn {
	min-height: 46px;
	border-radius: 999px;
	padding: 0 20px;
}

.btn-primary,
.btn-primary:hover,
.nav-btn.active,
.nav-btn.active:hover,
.page-item.current {
	color: #071318;
	border-color: rgba(255, 255, 255, .42);
	background: linear-gradient(135deg, var(--primary), var(--primary-dark));
	box-shadow: 0 18px 42px rgba(78, 188, 218, .24);
}

.btn-light,
.btn-light:hover,
.copy-link-btn,
.page-item {
	color: var(--text);
	border-color: var(--line);
	background: rgba(255, 255, 255, .12);
}

.btn:hover,
.copy-link-btn:hover,
.page-item:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-soft);
}

.layout {
	background:
		linear-gradient(180deg, rgba(12, 34, 40, .12), rgba(12, 34, 40, .72)),
		linear-gradient(130deg, rgba(101, 231, 200, .2), transparent 38%),
		linear-gradient(230deg, rgba(100, 183, 255, .21), transparent 46%),
		url("../admin-bg-glass.png") center center / cover fixed no-repeat,
		linear-gradient(180deg, #12313b, #153b46);
	gap: 18px;
	padding: 18px;
}

.sidebar {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: rgba(17, 42, 50, .62);
	-webkit-backdrop-filter: blur(24px) saturate(1.35);
	backdrop-filter: blur(24px) saturate(1.35);
	box-shadow: var(--shadow-soft);
	padding: 16px;
}

.sidebar-brand {
	padding: 8px 6px 18px;
	border-bottom-color: var(--line);
}

.nav-btn {
	min-height: 44px;
	border-radius: 999px;
	color: rgba(236, 247, 255, .76);
	background: transparent;
}

.nav-btn:hover {
	color: var(--text);
	border-color: var(--line);
	background: rgba(255, 255, 255, .13);
	transform: translateX(3px);
}

.nav-btn.danger {
	color: #ffb9c8;
}

.nav-btn.danger:hover {
	color: #fff;
	border-color: rgba(255, 111, 145, .28);
	background: rgba(255, 111, 145, .16);
}

.content {
	padding: 0;
}

.panel {
	padding: 24px;
}

.panel.active {
	height: calc(100vh - 36px);
}

.panel h1 {
	margin-bottom: 20px;
	font-size: clamp(24px, 2.2vw, 34px);
	line-height: 1.16;
	font-weight: 850;
}

.panel h2 {
	margin: 22px 0 14px;
	font-size: 18px;
}

.info-grid > div,
.brief-card,
.inline-form,
.pay-query-form,
.table-wrap,
.pay-sticky-footer,
.stats-sub-wrap,
.agent-sub-wrap {
	border-color: var(--line);
	background: rgba(255, 255, 255, .105);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.info-grid > div,
.brief-card {
	border-radius: 18px;
}

.info-grid strong,
.brief-card h3,
.agent-status-tip {
	color: var(--text);
}

.brief-card {
	background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .075));
}

.brief-row strong {
	color: var(--primary);
}

.table-wrap {
	border-radius: 18px;
}

table {
	color: var(--text-soft);
}

th,
td {
	border-bottom-color: var(--line);
}

th,
.table-wrap thead th {
	color: rgba(247, 251, 255, .86);
	background: rgba(255, 255, 255, .14);
	box-shadow: inset 0 -1px var(--line);
}

tbody tr:hover {
	background: rgba(101, 231, 200, .12);
}

.result-table th,
.result-table td {
	border-right-color: var(--line);
}

.empty-cell {
	color: var(--muted);
}

.pay-sticky-footer {
	background: rgba(20, 47, 56, .78);
	border-top: 0;
	box-shadow: 0 -12px 30px rgba(0, 0, 0, .22);
}

.stats-toggle,
.agent-status-action,
.sortable-th:hover {
	color: var(--primary);
}

.stats-toggle:hover,
.agent-status-action:hover {
	color: var(--primary-dark);
}

.stats-sub-row > td,
.agent-sub-row > td,
.stats-sub-wrap,
.agent-sub-wrap,
.stats-sub-table,
.agent-sub-table {
	background: rgba(101, 231, 200, .075);
}

.stats-sub-table thead th,
.agent-sub-table thead th {
	color: #071318;
	background: linear-gradient(135deg, rgba(101, 231, 200, .86), rgba(100, 183, 255, .82));
}

.modal {
	background: rgba(3, 10, 13, .54);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}

.app-message-overlay {
	background: rgba(3, 10, 13, .48);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.app-query-loading-overlay {
	background: rgba(3, 10, 13, .5);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.app-query-loading-box {
	background: rgba(20, 47, 56, .82);
}

.app-query-loading-spinner {
	border-color: rgba(255, 255, 255, .24);
	border-top-color: var(--primary);
}

.app-query-loading-text {
	color: var(--text);
}

.captcha-img {
	height: 46px;
	border-color: var(--line);
	border-radius: 14px;
	background: rgba(255, 255, 255, .88);
}

@media (max-width: 860px) {
	.page {
		padding: 20px;
	}

	.layout {
		display: block;
		padding: 12px;
	}

	.sidebar {
		margin-bottom: 12px;
		border-radius: 20px;
	}

	.content {
		padding: 0;
	}

	.panel.active {
		height: auto;
	}
}

@media (max-width: 520px) {
	.auth-card,
	.register-card,
	.panel,
	.modal-box {
		padding: 20px;
	}

	.auth-heading {
		gap: 12px;
	}

	.brand-badge {
		width: 42px;
		height: 42px;
		border-radius: 14px;
	}
}

/* ===================================
   Sunlight tuning
====================================== */
:root {
	--bg: #276b78;
	--surface: rgba(54, 96, 106, .52);
	--surface-soft: rgba(255, 255, 255, .14);
	--surface-tint: rgba(101, 231, 200, .24);
	--line: rgba(255, 255, 255, .28);
	--line-strong: rgba(255, 255, 255, .4);
	--text-soft: rgba(236, 247, 255, .8);
}

body {
	background:
		linear-gradient(135deg, rgba(101, 231, 200, .32), transparent 34%),
		linear-gradient(235deg, rgba(100, 183, 255, .3), transparent 42%),
		linear-gradient(180deg, #276b78 0%, #2f7f8c 56%, #23626d 100%);
}

.auth-page {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(18, 70, 78, .34)),
		linear-gradient(145deg, rgba(101, 231, 200, .3), transparent 38%),
		linear-gradient(235deg, rgba(100, 183, 255, .3), transparent 44%),
		url("../admin-bg-glass.png") center center / cover fixed no-repeat,
		linear-gradient(180deg, #d9f8fb, #27717d);
}

.layout {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(18, 70, 78, .42)),
		linear-gradient(130deg, rgba(101, 231, 200, .28), transparent 38%),
		linear-gradient(230deg, rgba(100, 183, 255, .28), transparent 46%),
		url("../admin-bg-glass.png") center center / cover fixed no-repeat,
		linear-gradient(180deg, #d9f8fb, #27717d);
}

.sidebar {
	background: rgba(49, 93, 103, .5);
}

.panel,
.card,
.modal-box,
.app-message-box,
.app-query-loading-box {
	background: rgba(54, 96, 106, .52);
}

.brief-card,
.info-item,
.table-wrap,
.table-footer,
.agent-sub-wrap {
	background: rgba(255, 255, 255, .14);
}

th {
	background: rgba(82, 134, 144, .78);
}

/* ===================================
   Unified Frosted Glass
====================================== */
:root {
	--glass-blur: 30px;
	--glass-saturate: 1.55;
	--glass-frost: rgba(255, 255, 255, .13);
	--glass-frost-strong: rgba(50, 105, 116, .48);
	--glass-shadow: 0 26px 72px rgba(14, 61, 74, .22);
}

.card,
.auth-card,
.sidebar,
.panel,
.modal-box,
.brief-card,
.info-grid > div,
.table-wrap,
.result-table,
.app-message-box,
.app-query-loading-box,
.pay-sticky-footer {
	border: 1px solid var(--line-strong);
	background:
		linear-gradient(145deg, var(--glass-frost-strong), rgba(255, 255, 255, .08));
	-webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
	backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
	box-shadow: var(--glass-shadow), inset 0 1px rgba(255, 255, 255, .28);
}

input,
select,
textarea,
.btn,
.nav-btn,
.captcha-inline-row,
.copy-link-btn,
.page-size-wrap,
.pager button {
	-webkit-backdrop-filter: blur(20px) saturate(1.35);
	backdrop-filter: blur(20px) saturate(1.35);
}

.table-wrap thead th,
th {
	background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .1));
}

.auth-card,
.panel,
.modal-box {
	background:
		linear-gradient(145deg, rgba(54, 112, 124, .54), rgba(255, 255, 255, .12));
}

/* ===================================
   Contrast tuning for glass panels
====================================== */
:root {
	--ink-strong: #062833;
	--ink: #123d48;
	--ink-soft: rgba(18, 61, 72, .76);
}

.auth-card,
.auth-card h1,
.auth-card h2,
.auth-card h3,
.auth-card p,
.auth-card label,
.auth-card label span,
.helper-text,
.panel,
.panel h1,
.panel h2,
.panel h3,
.info-grid,
.brief-card,
.brief-card h3,
.brief-row,
.modal-box,
.modal-box h3,
.modal-box label span {
	color: var(--ink-strong);
	text-shadow: none;
}

.auth-card p,
.helper-text,
.panel .info-grid span,
.brief-row span,
.modal-box label span {
	color: var(--ink-soft);
}

.auth-card a,
.panel a,
.helper-text a {
	color: #007f72;
	font-weight: 800;
}

input,
select,
textarea {
	color: var(--ink-strong);
	background: rgba(255, 255, 255, .36);
}

input::placeholder,
textarea::placeholder {
	color: rgba(6, 40, 51, .52);
}

.nav-btn {
	color: rgba(238, 250, 255, .9);
}

.result-table th,
.result-table td,
table th,
table td {
	color: var(--ink);
}

/* ===================================
   Lingjing unified brand icon
====================================== */
.brand-badge,
.sidebar .brand-badge {
	display: block;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid var(--line-strong);
	border-radius: 15px;
	object-fit: cover;
	background:
		url("../lingjing-icon.png?v=2026072821") center / cover no-repeat,
		rgba(255, 255, 255, .28);
	box-shadow: 0 14px 30px rgba(14, 61, 74, .24), inset 0 1px rgba(255, 255, 255, .3);
	font-size: 0;
	line-height: 0;
	overflow: hidden;
}

.sidebar .brand-badge {
	width: 42px;
	height: 42px;
	border-radius: 13px;
}

/* ===================================
   Final typography polish
====================================== */
.auth-heading h1,
.sidebar-brand h2 {
	color: #073240;
	font-size: 24px;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: 0 !important;
	text-shadow: none;
}

.auth-heading p,
.sidebar-brand p {
	color: rgba(7, 50, 64, .68);
	font-size: 13px;
	font-weight: 560;
	line-height: 1.45;
	text-shadow: none;
}

.sidebar .nav-btn {
	font-weight: 720;
}
