.phsg-account-dashboard {
	--phsg-accent: #f26f21;
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin-top: 12px;
}

.phsg-account-dashboard-active .woocommerce-MyAccount-content > p:nth-of-type(2) {
	display: none;
}

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

.phsg-account-tile {
	border: 1px solid #e2e7ed;
	border-radius: 12px;
	padding: 16px 18px;
	background: #ffffff;
	box-shadow: 0 6px 18px rgba(18, 36, 64, 0.08);
}

.phsg-account-tile__label {
	margin: 0 0 6px;
	font-size: 0.78em;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #7a8496;
	font-weight: 600;
}

.phsg-account-tile__value {
	margin: 0;
	font-size: 1.25em;
	font-weight: 700;
	color: #1f2937;
}

.phsg-account-tile__meta {
	margin: 6px 0 0;
	color: #556176;
}

.phsg-account-tile__link {
	display: inline-flex;
	margin-top: 10px;
	color: var(--phsg-accent);
	font-weight: 600;
	text-decoration: none;
}

.phsg-account-tile__link:hover,
.phsg-account-tile__link:focus {
	color: #cf5f1f;
	text-decoration: underline;
}

.phsg-account-cards {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
	gap: 20px;
}

.phsg-account-card,
.phsg-membership-card {
	border: 1px solid #d9dee3;
	border-radius: 12px;
	padding: 20px;
	background: #ffffff;
	box-shadow: 0 6px 18px rgba(18, 36, 64, 0.08);
}

.phsg-account-card--donations {
	background: linear-gradient(135deg, #fff7f1 0%, #ffffff 55%);
	border-color: #f1d6c4;
}

.phsg-account-card__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.phsg-account-card__title {
	margin: 0;
	font-size: 1.1em;
}

.phsg-account-metrics {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px;
	margin-bottom: 12px;
}

.phsg-account-metric__label {
	margin: 0 0 6px;
	font-size: 0.78em;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #7a8496;
	font-weight: 600;
}

.phsg-account-metric__value {
	margin: 0;
	font-size: 1.35em;
	font-weight: 700;
	color: #1f2937;
}

.phsg-donation-progress {
	margin: 10px 0 16px;
}

.phsg-donation-progress__summary,
.phsg-donation-progress__remaining {
	margin: 0 0 8px;
	color: #5c6677;
}

.phsg-donation-progress__bar {
	position: relative;
	height: 10px;
	border-radius: 999px;
	background: #f0f2f5;
	overflow: hidden;
}

.phsg-donation-progress__fill {
	display: block;
	height: 100%;
	background: var(--phsg-accent);
	border-radius: 999px;
}

.phsg-account-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.phsg-account-card__primary {
	margin-right: 6px;
}

.phsg-account-card__secondary {
	background: #eef2f6;
	color: #1c2533;
	border-color: #cfd6df;
}

.phsg-account-card__secondary:hover,
.phsg-account-card__secondary:focus {
	background: #e1e7ee;
	color: #1c2533;
}

.phsg-membership-card__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}

.phsg-membership-card__title {
	margin: 0;
	font-size: 1.05em;
}

.phsg-membership-card__status-label {
	display: inline-flex;
	align-items: center;
	padding: 6px 10px;
	border-radius: 999px;
	background: #eef2f7;
	color: #2f3747;
	font-size: 0.9em;
	font-weight: 600;
}

.phsg-membership-card__status--subscription,
.phsg-membership-card__status--active {
	background: #e5f6ef;
	color: #0f7a47;
}

.phsg-membership-card__status--expiring-soon {
	background: #fff7e6;
	color: #9a6b00;
}

.phsg-membership-card__status--expired {
	background: #fdecea;
	color: #a72828;
}

.phsg-membership-card__description {
	margin: 0 0 16px;
	color: #3c4656;
}

.phsg-membership-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.phsg-membership-card__primary {
	margin-right: 6px;
}

.phsg-membership-card__secondary {
	background: #eef2f6;
	color: #1c2533;
	border-color: #cfd6df;
}

.phsg-membership-card__secondary:hover,
.phsg-membership-card__secondary:focus {
	background: #e1e7ee;
	color: #1c2533;
}

@media (max-width: 900px) {
	.phsg-account-tiles {
		grid-template-columns: 1fr;
	}

	.phsg-account-cards {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.phsg-membership-card__header {
		align-items: flex-start;
		flex-direction: column;
	}
}
