.clientPage {
	background: #f5f5f7;
	color: #1d1d1f;
	min-height: 100vh;
}

.topbar {
	position: sticky;
	top: 0;
	z-index: 100;
	backdrop-filter: saturate(180%) blur(20px);
	background: rgba(255, 255, 255, 0.78);
	border-bottom: 1px solid rgba(210, 210, 215, 0.9);
}

.topbarInner {
	width: min(calc(100% - 64px), 1240px);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 180px 1fr 220px;
	align-items: center;
	height: 52px;
	gap: 24px;
}

.backLink,
.helpText,
.ghostLink,
.progress span,
.logoutButton {
	font-size: 12px;
	line-height: 1;
}

.backLink {
	font-weight: 600;
	text-decoration: none;
}

.progress {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	gap: 22px;
	color: #6e6e73;
}

.progressActive {
	color: #1d1d1f;
	font-weight: 600;
}

.topbarActions {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 12px;
}

.helpText {
	margin: 0;
	color: #6e6e73;
}

.logoutButton {
	padding: 7px 14px;
	border-radius: 999px;
	border: 1px solid #d2d2d7;
	background: #fff;
	cursor: pointer;
}

.hero {
	padding: 72px 32px 36px;
}

.heroInner {
	width: min(100%, 1240px);
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
	gap: 32px;
	align-items: end;
}

.eyebrow,
.sectionKicker {
	margin: 0 0 12px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #6e6e73;
}

.heroTitle {
	margin: 0;
	font-size: clamp(42px, 6vw, 72px);
	line-height: 0.95;
	letter-spacing: -0.05em;
	max-width: 11ch;
}

.heroBody {
	max-width: 62ch;
	margin: 22px 0 0;
	font-size: 18px;
	line-height: 1.55;
	color: #424245;
}

.heroMeta {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;

	div {
		padding: 18px 18px 20px;
		border-radius: 24px;
		background: linear-gradient(180deg, #ffffff 0%, #f9f9fb 100%);
		border: 1px solid #e5e5ea;
		box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
	}

	strong,
	span {
		display: block;
	}

	strong {
		font-size: 16px;
		margin-bottom: 6px;
	}

	span {
		font-size: 14px;
		line-height: 1.45;
		color: #6e6e73;
	}
}

.dashboardSection {
	padding: 28px 32px 72px;
}

.dashboardShell {
	width: min(100%, 1240px);
	margin: 0 auto;
	display: grid;
	gap: 24px;
}

.loginPanel,
.dashboardPanel,
.panel,
.summaryCard,
.stockCard,
.orderCard {
	background: #ffffff;
	border: 1px solid #e5e5ea;
	border-radius: 32px;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.loginPanel,
.dashboardPanel,
.panel {
	padding: 24px;
}

.panelHeader {
	display: grid;
	gap: 8px;
	margin-bottom: 20px;

	h2 {
		margin: 0;
		font-size: 32px;
		line-height: 1;
		letter-spacing: -0.04em;
	}

	p:last-child {
		margin: 0;
		font-size: 15px;
		color: #6e6e73;
	}
}

.loginForm {
	display: grid;
	gap: 18px;
	max-width: 560px;
}

.field,
.inlineField {
	display: grid;
	gap: 8px;

	span {
		font-size: 13px;
		font-weight: 600;
		color: #424245;
	}

	input {
		width: 100%;
		border: 1px solid #d2d2d7;
		border-radius: 18px;
		padding: 14px 16px;
		font-size: 14px;
		background: #fff;
	}
	}

.loginActions {
	display: flex;
	justify-content: flex-start;
}

.primaryCta,
.secondaryCta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 18px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	border: 0;
	cursor: pointer;
	text-decoration: none;
}

.primaryCta {
	background: #0071e3;
	color: #fff;
}

.secondaryCta {
	background: #f5f5f7;
	color: #1d1d1f;
	border: 1px solid #d2d2d7;
}

.formStatus,
.dashboardStatus {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: #6e6e73;

	&[data-state="success"] {
		color: #1f7a36;
	}

	&[data-state="error"] {
		color: #b42318;
	}
}

.dangerPanel {
	padding: 24px;
	background: linear-gradient(180deg, #fff8f7 0%, #ffffff 100%);
	border: 1px solid rgba(220, 38, 38, 0.14);
	border-radius: 32px;
	box-shadow: 0 24px 60px rgba(127, 29, 29, 0.08);
}

.dangerList {
	margin: 0 0 24px;
	padding-left: 18px;
	display: grid;
	gap: 10px;
	color: #424245;
	font-size: 15px;
	line-height: 1.55;
}

.dangerAction {
	display: grid;
	gap: 14px;
	justify-items: flex-start;
}

.dangerNote {
	margin: 0;
	max-width: 70ch;
	font-size: 13px;
	line-height: 1.6;
	color: #8a1c1c;
}

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

.ghostLink {
	font-size: inherit;
	line-height: inherit;
	color: #6e6e73;
	text-decoration: none;

	&:hover {
		color: #1d1d1f;
	}
}

.summaryCard {
	padding: 20px;
	display: grid;
	gap: 8px;

	strong {
		font-size: clamp(28px, 4vw, 42px);
		line-height: 1;
		letter-spacing: -0.04em;
	}

	span {
		font-size: 13px;
		line-height: 1.55;
		color: #6e6e73;
	}
}

.dashboardGrid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}

.toolbar {
	display: grid;
	gap: 20px;
	margin-bottom: 24px;
}

.searchControls {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr) auto;
	gap: 14px;
	align-items: end;
}

.searchActions {
	display: flex;
	gap: 10px;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: wrap;
}

.searchHint {
	margin: 0;
	font-size: 13px;
	line-height: 1.55;
	color: #6e6e73;
}

.selectField,
.textareaField {
	display: grid;
	gap: 8px;

	span {
		font-size: 13px;
		font-weight: 600;
		color: #424245;
	}

	select,
	textarea {
		width: 100%;
		border: 1px solid #d2d2d7;
		border-radius: 18px;
		padding: 14px 16px;
		font-size: 14px;
		background: #fff;
		font-family: inherit;
	}

	textarea {
		resize: vertical;
		min-height: 112px;
	}
}

.ordersWorkspace {
	display: grid;
	grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
	gap: 24px;
	align-items: start;
}

.orderResults,
.stickyDetail {
	display: grid;
	gap: 16px;
}

.stickyDetail {
	position: sticky;
	top: 84px;
	align-self: start;
}

.statRow {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;

	strong {
		font-size: 13px;
		font-weight: 600;
	}
}

.resultCard {
	width: 100%;
	display: grid;
	gap: 12px;
	padding: 18px;
	border-radius: 28px;
	border: 1px solid #e5e5ea;
	background: #fff;
	box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
	cursor: pointer;
	text-align: left;
	transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;

	&:hover {
		transform: translateY(-1px);
		border-color: #c8d8f8;
		box-shadow: 0 22px 52px rgba(15, 23, 42, 0.08);
	}
}

.resultCardActive {
	border-color: rgba(0, 113, 227, 0.24);
	box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.08), 0 22px 52px rgba(15, 23, 42, 0.08);
	background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.resultCustomer {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;

	strong,
	p {
		margin: 0;
	}

	strong {
		font-size: 17px;
		letter-spacing: -0.03em;
	}

	p {
		font-size: 13px;
		line-height: 1.5;
		color: #6e6e73;
	}
}

.resultMeta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;

	span {
		display: inline-flex;
		align-items: center;
		padding: 7px 11px;
		border-radius: 999px;
		background: #f5f5f7;
		border: 1px solid #ececf1;
		font-size: 12px;
		color: #424245;
	}
}

.resultSummary {
	margin: 0;
	font-size: 13px;
	line-height: 1.55;
	color: #6e6e73;
}

.resultFooter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;

	span {
		display: inline-flex;
		align-items: center;
		padding: 7px 11px;
		border-radius: 999px;
		background: #fbfbfd;
		border: 1px solid #ececf1;
		font-size: 12px;
		color: #6e6e73;
	}
}

.detailPanel {
	padding: 24px;
	background: #ffffff;
	border: 1px solid #e5e5ea;
	border-radius: 32px;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
	display: grid;
	gap: 20px;
}

.detailSection {
	display: grid;
	gap: 12px;
}

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

	div {
		padding: 16px 18px;
		border-radius: 24px;
		background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
		border: 1px solid #e8eef9;
		display: grid;
		gap: 6px;
	}

	span {
		font-size: 12px;
		color: #6e6e73;
		text-transform: uppercase;
		letter-spacing: 0.08em;
		font-weight: 600;
	}

	strong {
		font-size: 14px;
		line-height: 1.55;
		font-weight: 600;
	}
}

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

	div {
		padding: 14px;
		border-radius: 20px;
		background: #f9f9fb;
		border: 1px solid #ececf1;
		display: grid;
		gap: 4px;
	}

	span {
		font-size: 12px;
		color: #6e6e73;
	}

	strong {
		font-size: 14px;
		line-height: 1.45;
	}
}

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

.detailAddress {
	display: grid;
	gap: 6px;
	padding: 16px 18px;
	border-radius: 24px;
	background: #f9f9fb;
	border: 1px solid #ececf1;

	span {
		font-size: 14px;
		line-height: 1.5;
	}
}

.detailItems {
	margin: 0;
	padding-left: 18px;
	display: grid;
	gap: 10px;

	li {
		font-size: 13px;
		line-height: 1.5;
		color: #424245;
		display: grid;
		gap: 3px;
	}

	span {
		color: #6e6e73;
	}
}

.detailForm {
	display: grid;
	gap: 16px;
	padding-top: 8px;
}

.detailFormFooter {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.stockGrid,
.ordersList {
	display: grid;
	gap: 16px;
}

.stockCard {
	display: grid;
	grid-template-columns: 132px minmax(0, 1fr);
	gap: 16px;
	padding: 16px;
}

.stockCardMedia {
	border-radius: 22px;
	border: 1px solid rgba(210, 210, 215, 0.72);
	padding: 14px;
	display: grid;
	place-items: center;
	min-height: 120px;

	img {
		display: block;
		width: 100%;
		max-width: 100px;
		height: auto;
		object-fit: contain;
	}
}

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

.stockCardHeader {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: flex-start;
}

.stockTitle,
.stockSubtitle,
.orderTitle,
.orderSubtitle,
.orderNotes,
.stockMeta {
	margin: 0;
}

.stockTitle,
.orderTitle {
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.03em;
}

.stockSubtitle,
.orderSubtitle,
.stockMeta,
.orderNotes {
	font-size: 13px;
	line-height: 1.5;
	color: #6e6e73;
}

.stockBadge,
.orderBadge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 12px;
	border-radius: 999px;
	background: #f5f5f7;
	border: 1px solid #e5e5ea;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}

.orderBadge[data-status="paid"] {
	background: rgba(34, 197, 94, 0.12);
	color: #166534;
	border-color: rgba(34, 197, 94, 0.2);
}

.orderBadge[data-status="pending"],
.orderBadge[data-status="processing"] {
	background: rgba(245, 158, 11, 0.12);
	color: #92400e;
	border-color: rgba(245, 158, 11, 0.2);
}

.orderBadge[data-status="packed"] {
	background: rgba(59, 130, 246, 0.1);
	color: #1d4ed8;
	border-color: rgba(59, 130, 246, 0.18);
}

.orderBadge[data-status="shipped"] {
	background: rgba(139, 92, 246, 0.12);
	color: #6d28d9;
	border-color: rgba(139, 92, 246, 0.2);
}

.orderBadge[data-status="delivered"] {
	background: rgba(16, 185, 129, 0.12);
	color: #047857;
	border-color: rgba(16, 185, 129, 0.2);
}

.orderBadge[data-status="failed"],
.orderBadge[data-status="canceled"],
.orderBadge[data-status="cancelled"] {
	background: rgba(239, 68, 68, 0.12);
	color: #991b1b;
	border-color: rgba(239, 68, 68, 0.2);
}

.stockCardFooter {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}

.orderCard {
	padding: 18px;
	display: grid;
	gap: 16px;
}

.orderCardHeader {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: flex-start;
}

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

	div {
		padding: 14px;
		border-radius: 20px;
		background: #f9f9fb;
		border: 1px solid #ececf1;
		display: grid;
		gap: 4px;
	}

	span {
		font-size: 12px;
		color: #6e6e73;
	}

	strong {
		font-size: 14px;
		line-height: 1.4;
	}
}

.orderItems {
	margin: 0;
	padding-left: 18px;
	display: grid;
	gap: 8px;

	li {
		font-size: 13px;
		line-height: 1.5;
		color: #424245;
	}
}

.emptyState {
	padding: 20px;
	border-radius: 24px;
	background: #f9f9fb;
	border: 1px dashed #d2d2d7;
	font-size: 14px;
	color: #6e6e73;
}

@media (max-width: 1080px) {
	.topbarInner,
	.heroInner,
	.dashboardShell {
		width: min(calc(100% - 32px), 100%);
	}

	.heroInner,
	.dashboardGrid,
	.ordersWorkspace {
		grid-template-columns: 1fr;
	}

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

	.searchControls {
		grid-template-columns: 1fr;
	}

	.detailCallout,
	.detailSubgrid {
		grid-template-columns: 1fr;
	}

	.stickyDetail {
		position: static;
	}
}

@media (max-width: 720px) {
	.topbarInner {
		grid-template-columns: 1fr;
		height: auto;
		padding: 14px 0;
		gap: 12px;
	}

	.progress,
	.topbarActions {
		justify-content: flex-start;
	}

	.hero,
	.dashboardSection {
		padding-left: 16px;
		padding-right: 16px;
	}

	.heroMeta,
	.summaryGrid,
	.orderMetaGrid,
	.detailGrid,
	.detailCallout,
	.detailSubgrid {
		grid-template-columns: 1fr;
	}

	.stockCard {
		grid-template-columns: 1fr;
	}

	.stockCardFooter,
	.orderCardHeader,
	.stockCardHeader,
	.detailFormFooter {
		flex-direction: column;
		align-items: flex-start;
	}
}
