.mph-home {
	--mph-bg: #f4f7fc;
	--mph-panel: rgba(255, 255, 255, 0.94);
	--mph-panel-strong: #ffffff;
	--mph-border: rgba(15, 23, 42, 0.08);
	--mph-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
	--mph-text: #10213e;
	--mph-muted: #66758f;
	--mph-primary: #1f6bff;
	--mph-primary-soft: rgba(31, 107, 255, 0.1);
	--mph-success: #179b53;
	--mph-warn: #d97706;
	position: relative;
	padding: 28px;
	border-radius: 30px;
	background:
		radial-gradient(circle at top left, rgba(31, 107, 255, 0.14), transparent 28%),
		radial-gradient(circle at top right, rgba(16, 185, 129, 0.08), transparent 24%),
		linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
	border: 1px solid rgba(31, 107, 255, 0.08);
	box-shadow: var(--mph-shadow);
	color: var(--mph-text);
}

.mph-home__loading,
.mph-home__guest,
.mph-home__error,
.mph-home__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	min-height: 320px;
	text-align: center;
	color: var(--mph-muted);
}

.mph-home__loading-orb {
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: conic-gradient(from 90deg, #1f6bff, rgba(31, 107, 255, 0.08));
	-webkit-mask: radial-gradient(circle at center, transparent 55%, #000 57%);
	animation: mph-spin 0.8s linear infinite;
}

.mph-home__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 20px;
	border-radius: 14px;
	background: linear-gradient(135deg, #1f6bff, #0d57e0);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 16px 32px rgba(31, 107, 255, 0.22);
}

.mph-home__hero {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr);
	gap: 24px;
	align-items: stretch;
}

.mph-home__hero-card,
.mph-home__warning-card,
.mph-home__section,
.mph-home__action {
	background: var(--mph-panel);
	border: 1px solid var(--mph-border);
	box-shadow: var(--mph-shadow);
}

.mph-home__hero-card {
	position: relative;
	overflow: hidden;
	padding: 28px;
	border-radius: 28px;
}

.mph-home__hero-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(135deg, rgba(31, 107, 255, 0.08), transparent 34%),
		linear-gradient(320deg, rgba(16, 185, 129, 0.08), transparent 42%);
	pointer-events: none;
}

.mph-home__hero-main,
.mph-home__hero-side {
	position: relative;
	z-index: 1;
}

.mph-home__profile {
	display: flex;
	align-items: center;
	gap: 18px;
}

.mph-home__avatar {
	flex: 0 0 84px;
	width: 84px;
	height: 84px;
	border-radius: 24px;
	object-fit: cover;
	box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
}

.mph-home__avatar--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #e0ebff, #f8fbff);
	font-size: 28px;
	font-weight: 800;
	color: var(--mph-primary);
}

.mph-home__eyebrow {
	display: inline-flex;
	align-items: center;
	padding: 7px 12px;
	border-radius: 999px;
	background: var(--mph-primary-soft);
	color: var(--mph-primary);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.mph-home__name {
	margin: 12px 0 0;
	font-size: clamp(28px, 4vw, 42px);
	line-height: 1.06;
	color: var(--mph-text);
}

.mph-home__headline {
	margin: 14px 0 0;
	color: var(--mph-muted);
	font-size: 15px;
	line-height: 1.8;
}

.mph-home__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}

.mph-home__pill {
	display: inline-flex;
	align-items: center;
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.82);
	border: 1px solid rgba(31, 107, 255, 0.12);
	color: var(--mph-text);
	font-size: 12px;
	font-weight: 600;
}

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

.mph-home__stat {
	padding: 18px;
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.88);
	border: 1px solid rgba(15, 23, 42, 0.06);
}

.mph-home__stat-label {
	color: var(--mph-muted);
	font-size: 12px;
	font-weight: 600;
}

.mph-home__stat-value {
	margin-top: 10px;
	color: var(--mph-text);
	font-size: 26px;
	font-weight: 800;
	line-height: 1.05;
}

.mph-home__stat-note {
	margin-top: 8px;
	color: var(--mph-muted);
	font-size: 12px;
	line-height: 1.6;
}

.mph-home__warnings {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-top: 20px;
}

.mph-home__warning-card {
	padding: 16px 18px;
	border-radius: 18px;
	background: linear-gradient(180deg, rgba(255, 245, 234, 0.98), rgba(255, 251, 244, 0.98));
	border-color: rgba(217, 119, 6, 0.18);
}

.mph-home__warning-title {
	color: var(--mph-warn);
	font-size: 13px;
	font-weight: 800;
}

.mph-home__warning-text {
	margin-top: 8px;
	color: #8a5b19;
	font-size: 13px;
	line-height: 1.7;
}

.mph-home__actions {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	margin-top: 22px;
}

.mph-home__action {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 18px;
	border-radius: 22px;
	color: inherit;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mph-home__action:hover {
	transform: translateY(-3px);
}

.mph-home__action-label {
	font-size: 18px;
	font-weight: 800;
	color: var(--mph-text);
}

.mph-home__action-desc {
	color: var(--mph-muted);
	font-size: 13px;
	line-height: 1.7;
}

.mph-home__sections {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin-top: 22px;
}

.mph-home__section {
	padding: 22px;
	border-radius: 26px;
}

.mph-home__section-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 18px;
}

.mph-home__section-title {
	margin: 0;
	font-size: 22px;
	line-height: 1.2;
	color: var(--mph-text);
}

.mph-home__section-desc {
	margin: 8px 0 0;
	color: var(--mph-muted);
	font-size: 13px;
	line-height: 1.7;
}

.mph-home__section-status {
	display: inline-flex;
	align-items: center;
	padding: 7px 10px;
	border-radius: 999px;
	background: rgba(23, 155, 83, 0.1);
	color: var(--mph-success);
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}

.mph-home__section-status.is-pending {
	background: rgba(217, 119, 6, 0.12);
	color: var(--mph-warn);
}

.mph-home__items {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.mph-home__item {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 14px;
	padding: 16px;
	border-radius: 18px;
	background: var(--mph-panel-strong);
	border: 1px solid rgba(15, 23, 42, 0.06);
}

.mph-home__item-title {
	font-size: 15px;
	font-weight: 800;
	color: var(--mph-text);
}

.mph-home__item-desc {
	margin-top: 8px;
	color: var(--mph-muted);
	font-size: 13px;
	line-height: 1.75;
}

.mph-home__item-meta,
.mph-home__item-value {
	color: var(--mph-muted);
	font-size: 12px;
	font-weight: 600;
}

.mph-home__item-value {
	color: var(--mph-primary);
}

.mph-home__item-link {
	display: inline-flex;
	align-items: center;
	margin-top: 10px;
	color: var(--mph-primary);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.mph-home__item-link:hover {
	text-decoration: underline;
}

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

@media (max-width: 1199px) {
	.mph-home__hero,
	.mph-home__sections {
		grid-template-columns: 1fr;
	}

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

@media (max-width: 767px) {
	.mph-home {
		padding: 18px;
		border-radius: 24px;
	}

	.mph-home__hero-card,
	.mph-home__section {
		padding: 18px;
		border-radius: 22px;
	}

	.mph-home__profile {
		align-items: flex-start;
	}

	.mph-home__stats,
	.mph-home__actions,
	.mph-home__sections {
		grid-template-columns: 1fr;
	}
}
