/* =====================================================================
   Ultraz Members – grid ([ultraz_members]) + single profile page
   ===================================================================== */

.uz-mgrid,
.uz-mprofile {
	--uzm-red: #ef2e2e;
	--uzm-red-2: #ff5126;
	--uzm-navy: #15296e;
	--uzm-blue: #1e46c4;
	--uzm-ink: #1b2130;
	--uzm-muted: #667085;
	--uzm-line: #e7eaf2;
	--uzm-shadow: 0 10px 30px rgba(18, 42, 99, .08);
	font-family: "Poppins", "Roboto", -apple-system, "Segoe UI", sans-serif;
}
.uz-mgrid *, .uz-mprofile * { box-sizing: border-box; }

/* ------------------------------ GRID ------------------------------ */
.uz-mgrid {
	display: grid;
	grid-template-columns: repeat(var(--uz-mgrid-cols, 4), minmax(0, 1fr));
	gap: 28px;
}
.uz-mgrid__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 34px 18px 26px;
	background: #fff;
	border: 1px solid var(--uzm-line);
	border-radius: 20px;
	box-shadow: var(--uzm-shadow);
	text-decoration: none !important;
	transition: transform .2s ease, box-shadow .2s ease;
}
.uz-mgrid__card:hover { transform: translateY(-5px); box-shadow: 0 18px 38px rgba(18, 42, 99, .14); }
.uz-mgrid__photo {
	width: 120px; height: 120px;
	border-radius: 50%;
	overflow: hidden;
	margin-bottom: 16px;
	background: linear-gradient(135deg, var(--uzm-blue), var(--uzm-navy));
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgba(239, 46, 46, .25);
}
.uz-mgrid__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.uz-mgrid__initials { color: #fff; font-weight: 700; font-size: 34px; }
.uz-mgrid__name { font-size: 18px; font-weight: 700; color: var(--uzm-ink); line-height: 1.3; }
.uz-mgrid__tagline { font-size: 13.5px; color: var(--uzm-muted); margin-top: 4px; }
.uz-mgrid__more {
	margin-top: 16px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--uzm-red);
	opacity: .85;
	transition: opacity .2s ease;
}
.uz-mgrid__card:hover .uz-mgrid__more { opacity: 1; }
.uz-mgrid__empty { padding: 20px; background: #fff7e6; border-radius: 10px; }

/* ----------------------------- PROFILE ----------------------------- */
.uz-mprofile { background: #f4f5fb; color: var(--uzm-ink); }
.uz-mprofile__wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.uz-mprofile__hero {
	position: relative;
	padding: 64px 0 110px;
	color: #fff;
	background:
		radial-gradient(600px 300px at 85% 20%, rgba(255, 81, 38, .25), transparent 70%),
		linear-gradient(120deg, #10246c 0%, #1e46c4 100%);
	overflow: hidden;
}
.uz-mprofile__hero-inner { position: relative; display: flex; align-items: center; gap: 48px; }
.uz-mprofile__photo {
	flex: 0 0 auto;
	width: 240px; height: 240px;
	border-radius: 50%;
	overflow: hidden;
	background: rgba(255, 255, 255, .12);
	border: 6px solid rgba(255, 255, 255, .9);
	box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
	display: flex;
	align-items: center;
	justify-content: center;
}
.uz-mprofile__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.uz-mprofile__initials { font-size: 72px; font-weight: 800; color: #fff; }

.uz-mprofile__back {
	display: inline-flex;
	gap: 8px;
	margin-bottom: 14px;
	color: rgba(255, 255, 255, .8) !important;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none !important;
}
.uz-mprofile__back:hover { color: #fff !important; }
.uz-mprofile__name {
	margin: 0 0 8px;
	font-size: 52px;
	font-weight: 800;
	font-style: italic;
	line-height: 1.05;
	letter-spacing: -.5px;
	color: #fff !important;
}
.uz-mprofile__tagline { margin: 0 0 18px; font-size: 19px; color: #ffb199; font-weight: 600; }
.uz-mprofile__chips { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.uz-mprofile__chips li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 8px 14px;
	border-radius: 30px;
	background: rgba(255, 255, 255, .12);
	font-size: 14px;
}
.uz-mprofile__chips svg { width: 13px; height: 13px; opacity: .85; }
.uz-mprofile__socials { display: flex; flex-wrap: wrap; gap: 10px; }
.uz-mprofile__social {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 30px;
	background: #fff;
	color: var(--uzm-navy) !important;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
	transition: transform .18s ease;
}
.uz-mprofile__social:hover { transform: translateY(-2px); }
.uz-mprofile__social svg { width: 15px; height: 15px; }
.uz-mprofile__social--strava { background: linear-gradient(90deg, #f04a10, #fc7a12); color: #fff !important; }

.uz-mprofile__body { padding: 0 0 70px; }

/* Personal bests strip overlaps the hero. */
.uz-mprofile__pbs {
	position: relative;
	margin-top: -60px;
	margin-bottom: 30px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 18px 46px rgba(20, 40, 100, .12);
	overflow: hidden;
}
.uz-mprofile__pb { padding: 24px 22px; border-left: 1px solid var(--uzm-line); }
.uz-mprofile__pb:first-child { border-left: 0; }
.uz-mprofile__pb-label { display: block; font-size: 13px; color: var(--uzm-muted); font-weight: 500; margin-bottom: 6px; }
.uz-mprofile__pb-value { display: block; font-size: 22px; font-weight: 700; color: var(--uzm-navy); line-height: 1.2; }

.uz-mprofile__cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; margin-top: -50px; position: relative; }
.uz-mprofile__pbs ~ .uz-mprofile__cols { margin-top: 0; }
.uz-mprofile__cols.is-single { grid-template-columns: 1fr; }
.uz-mprofile__card { background: #fff; border-radius: 20px; padding: 30px; box-shadow: var(--uzm-shadow); }
.uz-mprofile__h {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 18px;
	font-size: 22px;
	font-weight: 700;
	font-style: italic;
	color: var(--uzm-ink);
}
.uz-mprofile__bar { width: 5px; height: 22px; border-radius: 3px; background: var(--uzm-red); transform: skewX(-12deg); }
.uz-mprofile__content { font-size: 16px; line-height: 1.75; color: #3d4a66; }
.uz-mprofile__content > *:last-child { margin-bottom: 0; }
.uz-mprofile__achievements { list-style: none; margin: 0; padding: 0; }
.uz-mprofile__achievements li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin: 0;
	padding: 12px 0;
	border-bottom: 1px solid var(--uzm-line);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.45;
}
.uz-mprofile__achievements li:last-child { border-bottom: 0; }
.uz-mprofile__medal {
	flex: 0 0 auto;
	width: 30px; height: 30px;
	border-radius: 50%;
	background: #fff1e8;
	color: #f26a12;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.uz-mprofile__medal svg { width: 14px; height: 14px; }
.uz-mprofile__empty { margin-top: -40px; position: relative; background: #fff; border-radius: 16px; padding: 24px; text-align: center; color: var(--uzm-muted); }

/* --------------------------- RESPONSIVE --------------------------- */
@media (max-width: 1024px) {
	.uz-mgrid { grid-template-columns: repeat(min(var(--uz-mgrid-cols, 4), 3), minmax(0, 1fr)); }
}
@media (max-width: 860px) {
	.uz-mgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
	.uz-mprofile__hero-inner { flex-direction: column; text-align: center; gap: 24px; }
	.uz-mprofile__chips, .uz-mprofile__socials { justify-content: center; }
	.uz-mprofile__photo { width: 180px; height: 180px; }
	.uz-mprofile__name { font-size: 38px; }
	.uz-mprofile__cols { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
	.uz-mgrid { grid-template-columns: 1fr; }
	.uz-mprofile__hero { padding: 40px 0 90px; }
	.uz-mprofile__name { font-size: 32px; }
	.uz-mprofile__pbs { grid-template-columns: repeat(2, 1fr); }
	.uz-mprofile__pb { border-left: 0; border-top: 1px solid var(--uzm-line); padding: 16px; }
	.uz-mprofile__pb:nth-child(-n+2) { border-top: 0; }
	.uz-mprofile__pb:nth-child(even) { border-left: 1px solid var(--uzm-line); }
	.uz-mprofile__pb-value { font-size: 18px; }
	.uz-mprofile__card { padding: 22px; }
}
