.member-login-hidden .member-login-link {
	display: none !important;
}

.member-public-main,
.member-portal-main {
	min-height: 70vh;
}

.member-login-section,
.member-portal {
	padding: clamp(40px, 7vw, 88px) 0 90px;
}

.member-login-wrap {
	display: grid;
	place-items: center;
}

.member-login-card {
	width: min(100%, 520px);
	padding: clamp(28px, 5vw, 48px);
	border: 1px solid rgba(239, 43, 120, 0.14);
	border-radius: 28px;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 25px 70px rgba(64, 28, 58, 0.13);
}

.member-kicker {
	margin: 0 0 8px;
	color: var(--pink);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.member-login-card h1,
.member-heading h1 {
	margin: 0 0 12px;
	color: #1d1820;
	font-family: Poppins, Inter, Arial, sans-serif;
	font-size: clamp(28px, 4vw, 42px);
	line-height: 1.1;
}

.member-login-card > p,
.member-heading > p:last-child {
	color: #6e6470;
	line-height: 1.65;
}

.member-form {
	display: grid;
	gap: 10px;
	margin-top: 24px;
}

.member-form label {
	margin-top: 7px;
	color: #302733;
	font-size: 13px;
	font-weight: 750;
}

.member-form input {
	width: 100%;
	min-height: 50px;
	padding: 12px 15px;
	border: 1px solid #ded6df;
	border-radius: 13px;
	background: #fff;
	color: #241d26;
	font: inherit;
}

.member-form input:focus {
	border-color: var(--pink);
	box-shadow: 0 0 0 4px rgba(239, 43, 120, 0.1);
	outline: none;
}

.member-form button,
.member-primary-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin-top: 12px;
	padding: 12px 20px;
	border: 0;
	border-radius: 13px;
	background: var(--pink);
	color: #fff;
	font: inherit;
	font-weight: 800;
	text-decoration: none;
	cursor: pointer;
}

.member-back-link {
	display: inline-block;
	margin-top: 22px;
	color: #6e6470;
	font-weight: 700;
	text-decoration: none;
}

.member-alert {
	margin: 18px 0;
	padding: 13px 15px;
	border-radius: 12px;
	font-weight: 700;
	line-height: 1.45;
}

.member-alert.is-error {
	border: 1px solid #f1b8c7;
	background: #fff0f4;
	color: #a01e43;
}

.member-alert.is-success {
	border: 1px solid #b7e0c5;
	background: #edf9f1;
	color: #176b38;
}

.member-portal-grid {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 28px;
	align-items: start;
}

.member-sidebar {
	position: sticky;
	top: 20px;
	padding: 20px;
	border: 1px solid rgba(239, 43, 120, 0.12);
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 18px 50px rgba(64, 28, 58, 0.09);
}

.member-identity {
	display: flex;
	gap: 12px;
	align-items: center;
	padding-bottom: 18px;
	border-bottom: 1px solid #eee7ef;
}

.member-identity img {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #fff1f7;
	object-fit: contain;
}

.member-identity small,
.member-identity strong {
	display: block;
}

.member-identity small {
	margin-bottom: 2px;
	color: #877c89;
	font-size: 11px;
}

.member-identity strong {
	color: #2c242e;
	font-size: 14px;
}

.member-menu {
	display: grid;
	gap: 6px;
	margin: 18px 0;
}

.member-menu a {
	padding: 11px 13px;
	border-radius: 11px;
	color: #5c5260;
	font-weight: 750;
	text-decoration: none;
}

.member-menu a:hover,
.member-menu a.active {
	background: #fff0f6;
	color: var(--pink);
}

.member-logout {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid #ded6df;
	border-radius: 11px;
	background: #fff;
	color: #6f6572;
	font: inherit;
	font-weight: 750;
	cursor: pointer;
}

.member-content {
	min-width: 0;
}

.member-heading {
	margin-bottom: 26px;
}

.member-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 15px;
	margin-bottom: 22px;
}

.member-stat,
.member-card {
	border: 1px solid rgba(239, 43, 120, 0.1);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 16px 42px rgba(64, 28, 58, 0.07);
}

.member-stat {
	padding: 22px;
}

.member-stat strong,
.member-stat span {
	display: block;
}

.member-stat strong {
	margin-bottom: 6px;
	color: var(--pink);
	font-family: Poppins, Inter, Arial, sans-serif;
	font-size: 30px;
}

.member-stat span {
	color: #6f6572;
	font-size: 13px;
	line-height: 1.4;
}

.member-card {
	margin-bottom: 20px;
	padding: clamp(18px, 3vw, 28px);
}

.member-card h2 {
	margin: 0 0 15px;
	color: #2b232d;
	font-family: Poppins, Inter, Arial, sans-serif;
	font-size: 20px;
}

.member-card-head {
	display: flex;
	gap: 15px;
	align-items: center;
	justify-content: space-between;
}

.member-card-head a,
.member-download-link {
	color: var(--pink);
	font-size: 13px;
	font-weight: 800;
	text-decoration: none;
}

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

.member-table-wrap {
	overflow-x: auto;
}

.member-table {
	width: 100%;
	border-collapse: collapse;
}

.member-table th,
.member-table td {
	padding: 12px 10px;
	border-bottom: 1px solid #eee8ef;
	text-align: left;
	white-space: nowrap;
}

.member-table th {
	color: #887d8a;
	font-size: 11px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.member-table td {
	color: #443a47;
	font-size: 13px;
}

.member-status {
	display: inline-flex;
	padding: 5px 9px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 800;
}

.member-status.is-paid {
	background: #e8f8ee;
	color: #14723a;
}

.member-status.is-unpaid {
	background: #fff0f3;
	color: #a92147;
}

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

.member-field-wide {
	grid-column: 1 / -1;
}

.member-profile-form hr {
	width: 100%;
	margin: 25px 0 12px;
	border: 0;
	border-top: 1px solid #eee7ef;
}

.member-help {
	margin: -8px 0 8px;
	color: #817683;
	font-size: 13px;
}

.member-trainer-card {
	display: flex;
	gap: 24px;
	align-items: center;
	max-width: 560px;
}

.member-trainer-card img {
	width: 110px;
	height: 110px;
	border-radius: 24px;
	background: #fff0f6;
	object-fit: contain;
}

.member-trainer-card small {
	color: #817683;
}

.member-trainer-card h2 {
	margin-top: 7px;
}

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

.member-document-card {
	display: flex;
	flex-direction: column;
	min-height: 230px;
}

.member-document-card p {
	color: #716774;
	line-height: 1.6;
}

.member-document-card .member-primary-link {
	align-self: flex-start;
	margin-top: auto;
}

.member-document-card.is-disabled {
	opacity: 0.62;
}

.member-empty {
	padding: 22px;
	border: 1px dashed #d9cedb;
	border-radius: 14px;
	color: #7c7180;
	text-align: center;
}

@media (max-width: 1020px) {
	.member-portal-grid {
		grid-template-columns: 1fr;
	}

	.member-sidebar {
		position: static;
	}

	.member-menu {
		grid-template-columns: repeat(5, max-content);
		overflow-x: auto;
	}
}

@media (max-width: 760px) {
	.member-stats,
	.member-dashboard-columns,
	.member-document-grid,
	.member-form-grid {
		grid-template-columns: 1fr;
	}

	.member-field-wide {
		grid-column: auto;
	}

	.member-menu {
		grid-template-columns: 1fr 1fr;
	}

	.member-trainer-card {
		align-items: flex-start;
		flex-direction: column;
	}
}
