:root {
	--cgc-brand: #7c3aed;
	--cgc-accent: #22c55e;
	--cgc-bg: #0b1020;
	--cgc-card: #151b2e;
	--cgc-text: #f7f8fc;
	--cgc-muted: #aab2c8;
	--cgc-border: rgba(255, 255, 255, 0.10);
	--cgc-danger: #ef4444;
	--cgc-warning: #f59e0b;
	--cgc-radius: 18px;
	--cgc-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.cgc-shell,
.cgc-shell * {
	box-sizing: border-box;
}

.cgc-shell {
	width: min(1180px, calc(100% - 28px));
	margin: 28px auto;
	padding: 24px;
	color: var(--cgc-text);
	background:
		radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--cgc-brand) 26%, transparent), transparent 34%),
		var(--cgc-bg);
	border-radius: 26px;
	box-shadow: var(--cgc-shadow);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.55;
}

.cgc-shell a {
	color: inherit;
}

.cgc-shell h1,
.cgc-shell h2,
.cgc-shell h3,
.cgc-shell p {
	margin-top: 0;
}

.cgc-shell h1 {
	margin-bottom: 4px;
	font-size: clamp(2rem, 5vw, 3.5rem);
	line-height: 1.04;
	letter-spacing: -0.04em;
}

.cgc-shell h2 {
	margin-bottom: 18px;
	font-size: clamp(1.25rem, 2.5vw, 1.8rem);
	letter-spacing: -0.025em;
}

.cgc-kicker {
	display: inline-block;
	margin-bottom: 8px;
	color: color-mix(in srgb, var(--cgc-brand) 70%, white);
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.cgc-panel {
	padding: 24px;
	background: color-mix(in srgb, var(--cgc-card) 94%, transparent);
	border: 1px solid var(--cgc-border);
	border-radius: var(--cgc-radius);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
	backdrop-filter: blur(14px);
}

.cgc-page-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 22px;
}

.cgc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.cgc-button,
.cgc-shell input[type="submit"],
.cgc-shell button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 11px 18px;
	color: white;
	background: linear-gradient(135deg, var(--cgc-brand), color-mix(in srgb, var(--cgc-brand) 68%, #111827));
	border: 0;
	border-radius: 999px;
	box-shadow: 0 10px 24px color-mix(in srgb, var(--cgc-brand) 30%, transparent);
	font: inherit;
	font-weight: 750;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: transform 160ms ease, opacity 160ms ease, box-shadow 160ms ease;
}

.cgc-button:hover,
.cgc-button:focus-visible,
.cgc-shell input[type="submit"]:hover,
.cgc-shell button[type="submit"]:hover {
	color: white;
	transform: translateY(-1px);
	box-shadow: 0 14px 30px color-mix(in srgb, var(--cgc-brand) 38%, transparent);
}

.cgc-button:disabled,
.cgc-shell button:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
}

.cgc-button--ghost {
	color: var(--cgc-text);
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid var(--cgc-border);
	box-shadow: none;
}

.cgc-button--large {
	min-height: 52px;
	padding-inline: 26px;
	font-size: 1.04rem;
}

.cgc-text-button {
	padding: 6px 0;
	color: var(--cgc-muted);
	background: transparent;
	border: 0;
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

.cgc-form {
	display: grid;
	gap: 16px;
}

.cgc-form label,
.cgc-directory-controls label {
	display: grid;
	gap: 7px;
	color: var(--cgc-muted);
	font-size: 0.92rem;
	font-weight: 650;
}

.cgc-form input:not([type="checkbox"]):not([type="file"]),
.cgc-form textarea,
.cgc-form select,
.cgc-directory-controls input,
.cgc-directory-controls select,
.cgc-message-form textarea {
	width: 100%;
	min-height: 46px;
	padding: 11px 13px;
	color: var(--cgc-text);
	background: rgba(255, 255, 255, 0.055);
	border: 1px solid var(--cgc-border);
	border-radius: 12px;
	outline: none;
	font: inherit;
}

.cgc-form textarea,
.cgc-message-form textarea {
	resize: vertical;
}

.cgc-form input:focus,
.cgc-form textarea:focus,
.cgc-form select:focus,
.cgc-directory-controls input:focus,
.cgc-directory-controls select:focus,
.cgc-message-form textarea:focus {
	border-color: color-mix(in srgb, var(--cgc-brand) 70%, white);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--cgc-brand) 18%, transparent);
}

.cgc-form input[type="file"] {
	max-width: 100%;
	padding: 10px;
	color: var(--cgc-muted);
	background: rgba(255, 255, 255, 0.04);
	border: 1px dashed var(--cgc-border);
	border-radius: 12px;
}

.cgc-form small {
	color: var(--cgc-muted);
	font-weight: 500;
}

.cgc-check {
	display: flex !important;
	align-items: flex-start;
	gap: 10px !important;
	font-weight: 500 !important;
}

.cgc-check input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	accent-color: var(--cgc-brand);
}

.cgc-check--compact {
	align-self: end;
	min-height: 46px;
	align-items: center;
}

.cgc-honeypot {
	position: absolute !important;
	left: -99999px !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.cgc-auth-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: 18px;
}

.cgc-auth-grid .login-username,
.cgc-auth-grid .login-password,
.cgc-auth-grid .login-remember {
	display: grid;
	gap: 7px;
}

.cgc-auth-grid .login-remember {
	display: flex;
	align-items: center;
}

.cgc-auth-grid .input {
	width: 100%;
	min-height: 46px;
	padding: 11px 13px;
	color: var(--cgc-text);
	background: rgba(255, 255, 255, 0.055);
	border: 1px solid var(--cgc-border);
	border-radius: 12px;
}

.cgc-auth-welcome {
	text-align: center;
}

.cgc-auth-welcome .cgc-actions {
	justify-content: center;
}

.cgc-notice {
	margin-bottom: 18px;
	padding: 13px 16px;
	border: 1px solid var(--cgc-border);
	border-radius: 14px;
}

.cgc-notice--success {
	background: color-mix(in srgb, var(--cgc-accent) 16%, var(--cgc-card));
	border-color: color-mix(in srgb, var(--cgc-accent) 42%, transparent);
}

.cgc-notice--warning {
	background: color-mix(in srgb, var(--cgc-warning) 16%, var(--cgc-card));
	border-color: color-mix(in srgb, var(--cgc-warning) 42%, transparent);
}

.cgc-notice--error {
	background: color-mix(in srgb, var(--cgc-danger) 16%, var(--cgc-card));
	border-color: color-mix(in srgb, var(--cgc-danger) 42%, transparent);
}

.cgc-directory-controls {
	display: grid;
	grid-template-columns: minmax(160px, 1fr) minmax(160px, 0.7fr) auto auto;
	align-items: end;
	gap: 14px;
	margin-bottom: 20px;
}

.cgc-directory {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.cgc-profile-card {
	position: relative;
	min-height: 340px;
	overflow: hidden;
	background: var(--cgc-card);
	border: 1px solid var(--cgc-border);
	border-radius: 18px;
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
	text-decoration: none;
	isolation: isolate;
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.cgc-profile-card:hover,
.cgc-profile-card:focus-visible {
	transform: translateY(-4px);
	box-shadow: 0 22px 42px rgba(0, 0, 0, 0.28);
}

.cgc-profile-card > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 320ms ease;
}

.cgc-profile-card:hover > img {
	transform: scale(1.035);
}

.cgc-profile-card::after {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(to top, rgba(3, 7, 18, 0.96), rgba(3, 7, 18, 0.08) 62%);
	content: "";
}

.cgc-profile-card__overlay {
	position: absolute;
	inset: auto 0 0;
	z-index: 1;
	display: grid;
	gap: 4px;
	padding: 18px;
}

.cgc-profile-card__title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 1.15rem;
}

.cgc-profile-card__meta,
.cgc-profile-card__looking {
	color: rgba(255, 255, 255, 0.76);
	font-size: 0.88rem;
}

.cgc-profile-card__looking {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
}

.cgc-online-dot {
	width: 10px;
	height: 10px;
	background: var(--cgc-accent);
	border: 2px solid white;
	border-radius: 50%;
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--cgc-accent) 24%, transparent);
}

.cgc-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 20px;
}

.cgc-page-button {
	width: 42px;
	height: 42px;
	color: var(--cgc-text);
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid var(--cgc-border);
	border-radius: 50%;
	cursor: pointer;
}

.cgc-page-label {
	color: var(--cgc-muted);
	font-weight: 700;
}

.cgc-loading,
.cgc-empty {
	grid-column: 1 / -1;
	padding: 36px;
	color: var(--cgc-muted);
	text-align: center;
}

.cgc-empty--small {
	padding: 20px 12px;
	font-size: 0.9rem;
}

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

.cgc-profile-form {
	gap: 18px;
}

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

.cgc-media-preview > div {
	display: grid;
	align-content: start;
	gap: 10px;
}

.cgc-profile-thumb {
	width: 160px;
	aspect-ratio: 1;
	object-fit: cover;
	border: 2px solid color-mix(in srgb, var(--cgc-brand) 50%, white);
	border-radius: 22px;
}

.cgc-edit-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
	gap: 12px;
	margin-top: 18px;
}

.cgc-edit-gallery label {
	display: grid;
	gap: 7px;
}

.cgc-edit-gallery img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 12px;
}

.cgc-location-status {
	display: inline-block;
	margin-left: 10px;
	color: var(--cgc-muted);
}

.cgc-back {
	display: inline-block;
	margin-bottom: 14px;
	color: var(--cgc-muted) !important;
	text-decoration: none;
}

.cgc-member-profile {
	display: grid;
	gap: 18px;
}

.cgc-member-hero {
	position: relative;
	min-height: min(72vh, 720px);
	overflow: hidden;
	border-radius: 24px;
	background: var(--cgc-card);
}

.cgc-member-hero > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cgc-member-hero::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(3, 7, 18, 0.96), transparent 62%);
	content: "";
}

.cgc-member-overlay {
	position: absolute;
	inset: auto 0 0;
	z-index: 1;
	padding: clamp(20px, 5vw, 44px);
}

.cgc-member-title {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}

.cgc-member-title h1 {
	margin: 0;
}

.cgc-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	color: var(--cgc-muted);
	background: rgba(255, 255, 255, 0.08);
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 700;
}

.cgc-status.is-online {
	color: #d9ffe7;
	background: color-mix(in srgb, var(--cgc-accent) 22%, transparent);
}

.cgc-profile-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr);
	gap: 18px;
}

.cgc-profile-actions {
	display: grid;
	align-content: start;
	gap: 10px;
}

.cgc-bio {
	white-space: normal;
}

.cgc-facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 20px 0 0;
}

.cgc-facts div {
	padding: 13px;
	background: rgba(255, 255, 255, 0.045);
	border: 1px solid var(--cgc-border);
	border-radius: 12px;
}

.cgc-facts dt {
	color: var(--cgc-muted);
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
}

.cgc-facts dd {
	margin: 4px 0 0;
	font-weight: 650;
}

.cgc-gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.cgc-gallery img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 14px;
}

.cgc-current-video video,
.cgc-member-profile video {
	width: 100%;
	max-height: 620px;
	border-radius: 16px;
	background: #000;
}

.cgc-messenger {
	display: grid;
	grid-template-columns: minmax(240px, 0.34fr) minmax(0, 1fr);
	min-height: 680px;
	overflow: hidden;
	background: var(--cgc-card);
	border: 1px solid var(--cgc-border);
	border-radius: 22px;
}

.cgc-conversations {
	border-right: 1px solid var(--cgc-border);
	background: rgba(255, 255, 255, 0.018);
}

.cgc-conversations-title,
.cgc-chat-header {
	min-height: 72px;
	padding: 20px;
	border-bottom: 1px solid var(--cgc-border);
	font-weight: 800;
}

.cgc-conversation {
	position: relative;
	display: flex;
	width: 100%;
	gap: 12px;
	padding: 14px 16px;
	color: var(--cgc-text);
	background: transparent;
	border: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	text-align: left;
	cursor: pointer;
}

.cgc-conversation:hover,
.cgc-conversation.is-active {
	background: color-mix(in srgb, var(--cgc-brand) 12%, transparent);
}

.cgc-conversation img,
.cgc-chat-person img {
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 50%;
}

.cgc-conversation__body {
	position: relative;
	display: grid;
	min-width: 0;
	flex: 1;
	gap: 4px;
}

.cgc-conversation__top {
	display: flex;
	justify-content: space-between;
	gap: 8px;
}

.cgc-conversation__top strong,
.cgc-conversation__last {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cgc-conversation__top small,
.cgc-conversation__last {
	color: var(--cgc-muted);
	font-size: 0.78rem;
}

.cgc-unread {
	position: absolute;
	right: 0;
	bottom: 0;
	display: grid;
	width: 22px;
	height: 22px;
	place-items: center;
	color: white;
	background: var(--cgc-brand);
	border-radius: 50%;
	font-size: 0.72rem;
	font-weight: 800;
}

.cgc-chat {
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	min-width: 0;
}

.cgc-chat-person {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
}

.cgc-message-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-height: 0;
	max-height: 570px;
	padding: 20px;
	overflow-y: auto;
}

.cgc-message {
	display: grid;
	max-width: min(78%, 620px);
	gap: 4px;
}

.cgc-message.is-mine {
	align-self: end;
	justify-items: end;
}

.cgc-message.is-theirs {
	align-self: start;
	justify-items: start;
}

.cgc-message__bubble {
	padding: 11px 14px;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	border-radius: 17px;
}

.cgc-message.is-mine .cgc-message__bubble {
	background: linear-gradient(135deg, var(--cgc-brand), color-mix(in srgb, var(--cgc-brand) 68%, #111827));
	border-bottom-right-radius: 5px;
}

.cgc-message.is-theirs .cgc-message__bubble {
	background: rgba(255, 255, 255, 0.075);
	border: 1px solid var(--cgc-border);
	border-bottom-left-radius: 5px;
}

.cgc-message__time {
	color: var(--cgc-muted);
	font-size: 0.72rem;
}

.cgc-message-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 10px;
	padding: 14px;
	border-top: 1px solid var(--cgc-border);
}

.cgc-message-form[hidden] {
	display: none;
}

.cgc-message-form.is-busy {
	opacity: 0.7;
	pointer-events: none;
}


.cgc-message-form textarea {
	grid-column: 1 / -1;
}

.cgc-message-attachments {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.cgc-message-attachments small {
	color: var(--cgc-muted);
}

.cgc-message-attachments small.is-error {
	color: var(--cgc-danger);
	font-weight: 700;
}

.cgc-file-button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 9px 14px;
	color: var(--cgc-text);
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid var(--cgc-border);
	border-radius: 999px;
	font-size: 0.88rem;
	font-weight: 750;
	cursor: pointer;
	overflow: hidden;
}

.cgc-file-button input {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
}

.cgc-message__text {
	white-space: pre-wrap;
}

.cgc-message-media-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 7px;
	margin-top: 8px;
}

.cgc-private-media-link {
	position: relative;
	display: block;
	min-width: 0;
	overflow: hidden;
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.25);
}

.cgc-private-media-link img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
}

.cgc-private-media-badge,
.cgc-broadcast-badge {
	display: inline-flex;
	align-items: center;
	width: max-content;
	padding: 3px 7px;
	border-radius: 999px;
	font-size: 0.68rem;
	font-weight: 850;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.cgc-private-media-badge {
	position: absolute;
	top: 7px;
	right: 7px;
	color: #fff;
	background: rgba(0, 0, 0, 0.78);
}

.cgc-broadcast-badge {
	margin-bottom: 7px;
	color: var(--cgc-text);
	background: rgba(255, 255, 255, 0.16);
}

.cgc-private-media-hidden,
.cgc-nsfw-placeholder {
	display: grid;
	place-items: center;
	gap: 6px;
	min-height: 150px;
	padding: 18px;
	color: var(--cgc-muted);
	background: repeating-linear-gradient(
		135deg,
		rgba(255, 255, 255, 0.035),
		rgba(255, 255, 255, 0.035) 12px,
		rgba(255, 255, 255, 0.065) 12px,
		rgba(255, 255, 255, 0.065) 24px
	);
	border: 1px dashed var(--cgc-border);
	border-radius: 14px;
	text-align: center;
}

.cgc-nsfw-placeholder strong {
	color: var(--cgc-text);
}

.cgc-gallery .cgc-nsfw-placeholder {
	aspect-ratio: 1;
	min-height: 0;
}

@media (max-width: 980px) {
	.cgc-directory {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

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

	.cgc-profile-layout {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 760px) {
	.cgc-shell {
		width: min(100% - 12px, 1180px);
		margin: 6px auto;
		padding: 14px;
		border-radius: 20px;
	}

	.cgc-page-header {
		align-items: flex-start;
		flex-direction: column;
	}

	.cgc-auth-grid,
	.cgc-form-grid,
	.cgc-media-preview {
		grid-template-columns: 1fr;
	}

	.cgc-directory {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 9px;
	}

	.cgc-profile-card {
		min-height: 260px;
		border-radius: 14px;
	}

	.cgc-profile-card__overlay {
		padding: 13px;
	}

	.cgc-profile-card__title {
		font-size: 1rem;
	}

	.cgc-facts {
		grid-template-columns: 1fr;
	}

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

	.cgc-messenger {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.cgc-conversations {
		max-height: 280px;
		overflow-y: auto;
		border-right: 0;
		border-bottom: 1px solid var(--cgc-border);
	}

	.cgc-message-list {
		min-height: 430px;
		max-height: 58vh;
	}

	.cgc-member-hero {
		min-height: 64vh;
	}
}

@media (max-width: 520px) {
	.cgc-panel {
		padding: 17px;
	}

	.cgc-directory-controls {
		grid-template-columns: 1fr;
	}

	.cgc-profile-card {
		min-height: 230px;
	}

	.cgc-profile-card__looking {
		display: none;
	}

	.cgc-message-form {
		grid-template-columns: 1fr;
	}

	.cgc-actions {
		width: 100%;
	}

	.cgc-actions .cgc-button {
		flex: 1;
	}
}


/* ConnectGrid toolbar */
body.cgc-has-toolbar {
	padding-top: 64px !important;
}

.cgc-toolbar {
	position: fixed;
	inset: 0 0 auto;
	z-index: 99990;
	height: 64px;
	background: var(--cgc-bg, #0b1020);
	background: color-mix(in srgb, var(--cgc-bg, #0b1020) 94%, transparent);
	border-bottom: 1px solid rgba(255,255,255,.12);
	backdrop-filter: blur(18px);
	color: #fff;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cgc-toolbar * {
	box-sizing: border-box;
}

.cgc-toolbar__inner {
	width: min(1440px, 100%);
	height: 100%;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: center;
	gap: 24px;
}

.cgc-toolbar a {
	color: inherit;
	text-decoration: none;
}

.cgc-toolbar__brand {
	display: flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
}

.cgc-toolbar__brand > span {
	color: var(--cgc-brand, #7c3aed);
}

.cgc-toolbar__brand small {
	padding: 2px 7px;
	border-radius: 999px;
	background: rgba(255,255,255,.12);
	font-size: 11px;
}

.cgc-toolbar__links {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-right: auto;
}

.cgc-toolbar__links a,
.cgc-toolbar__account a {
	opacity: .82;
}

.cgc-toolbar__links a,
.cgc-toolbar__messages summary,
.cgc-toolbar__register,
.cgc-toolbar__mobile-links > a {
	font-size: var(--cgc-toolbar-menu-font-size, 15px);
}

.cgc-toolbar__links a:hover,
.cgc-toolbar__account a:hover {
	opacity: 1;
}

.cgc-toolbar__messages {
	position: relative;
}

.cgc-toolbar__messages summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 9px 12px;
	border-radius: 10px;
	background: rgba(255,255,255,.08);
}

.cgc-toolbar__messages summary::-webkit-details-marker {
	display: none;
}

.cgc-toolbar__messages summary b {
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 999px;
	display: grid;
	place-items: center;
	background: var(--cgc-brand, #7c3aed);
	font-size: 11px;
}

.cgc-toolbar__dropdown {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	width: min(390px, calc(100vw - 24px));
	padding: 16px;
	border: 1px solid rgba(255,255,255,.14);
	border-radius: 14px;
	background: var(--cgc-card, #151b2e);
	box-shadow: 0 22px 60px rgba(0,0,0,.38);
}

.cgc-toolbar__dropdown > strong {
	display: block;
	margin-bottom: 10px;
}

.cgc-toolbar__dropdown ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.cgc-toolbar__dropdown li + li {
	border-top: 1px solid rgba(255,255,255,.09);
}

.cgc-toolbar__dropdown li a {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 0;
}

.cgc-toolbar__dropdown img {
	width: 42px;
	height: 42px;
	object-fit: cover;
	border-radius: 50%;
}

.cgc-toolbar__dropdown li span {
	min-width: 0;
	display: grid;
}

.cgc-toolbar__dropdown small {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	opacity: .7;
}

.cgc-toolbar__dropdown i {
	width: 9px;
	height: 9px;
	margin-left: auto;
	border-radius: 50%;
	background: var(--cgc-accent, #22c55e);
}

.cgc-toolbar__all {
	display: block;
	padding-top: 10px;
	border-top: 1px solid rgba(255,255,255,.09);
	text-align: center;
	font-weight: 700;
}

.cgc-toolbar__account {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
}

.cgc-toolbar__account span {
	max-width: 120px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Groups and forum */
.cgc-community-area {
	display: grid;
	gap: 20px;
}

.cgc-section-header {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 20px;
}

.cgc-section-header h1 {
	margin-bottom: 4px;
}

.cgc-section-header p {
	margin: 0;
	opacity: .75;
}

.cgc-create-box > summary {
	cursor: pointer;
	font-weight: 800;
	font-size: 1.08rem;
}

.cgc-create-box[open] > summary {
	margin-bottom: 18px;
}

.cgc-group-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 18px;
}

.cgc-group-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-height: 230px;
}

.cgc-group-card h2 {
	margin: 12px 0 8px;
}

.cgc-group-card h2 a {
	color: inherit;
	text-decoration: none;
}

.cgc-group-card p {
	flex: 1;
}

.cgc-group-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 12px;
	opacity: .75;
}

.cgc-group-card__meta span,
.cgc-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 9px;
	border-radius: 999px;
	background: rgba(255,255,255,.09);
	font-size: 12px;
}

.cgc-button--small {
	padding: 8px 12px;
	font-size: 13px;
}

.cgc-button--danger {
	background: #b91c1c !important;
}

.cgc-group-hero {
	padding-block: clamp(24px, 5vw, 48px);
}

.cgc-member-chips {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 12px;
}

.cgc-member-chips > a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px;
	border: 1px solid rgba(255,255,255,.1);
	border-radius: 12px;
	color: inherit;
	text-decoration: none;
}

.cgc-member-chips img {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 50%;
}

.cgc-member-chips span {
	display: grid;
}

.cgc-member-chips small {
	opacity: .65;
}

.cgc-tabs {
	display: flex;
	gap: 8px;
}

.cgc-tabs a {
	padding: 9px 15px;
	border-radius: 999px;
	background: rgba(255,255,255,.08);
	color: inherit;
	text-decoration: none;
}

.cgc-tabs a.is-active {
	background: var(--cgc-brand, #7c3aed);
}

.cgc-topic-list {
	display: grid;
	gap: 12px;
}

.cgc-topic-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 20px;
	color: inherit;
	text-decoration: none;
}

.cgc-topic-row h2 {
	margin: 0 0 6px;
	font-size: 1.15rem;
}

.cgc-topic-row p {
	margin: 0;
	opacity: .75;
}

.cgc-topic-row__meta {
	min-width: 150px;
	display: grid;
	justify-items: end;
	align-content: center;
	gap: 4px;
	font-size: 12px;
	opacity: .72;
}

.cgc-forum-post {
	display: grid;
	gap: 16px;
}

.cgc-forum-post--topic {
	border-color: color-mix(in srgb, var(--cgc-brand, #7c3aed) 55%, transparent);
}

.cgc-forum-author {
	display: flex;
	align-items: center;
	gap: 10px;
}

.cgc-forum-author img {
	width: 46px;
	height: 46px;
	object-fit: cover;
	border-radius: 50%;
}

.cgc-forum-author > div {
	display: grid;
}

.cgc-forum-author a {
	color: inherit;
	text-decoration: none;
}

.cgc-forum-author small {
	opacity: .65;
}

.cgc-forum-content {
	white-space: normal;
	overflow-wrap: anywhere;
}

.cgc-moderation-box form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

@media (max-width: 860px) {
	body.cgc-has-toolbar {
		padding-top: 58px !important;
	}

	.cgc-toolbar {
		height: 58px;
	}

	.cgc-toolbar__inner {
		gap: 10px;
		padding: 0 10px;
	}

	.cgc-toolbar__links {
		display: none;
	}

	.cgc-toolbar__brand {
		margin-right: auto;
	}

	.cgc-toolbar__account span {
		display: none;
	}

	.cgc-toolbar__messages summary span:nth-child(2) {
		display: none;
	}

	.cgc-section-header {
		align-items: flex-start;
		flex-direction: column;
	}

	.cgc-topic-row {
		grid-template-columns: 1fr;
	}

	.cgc-topic-row__meta {
		min-width: 0;
		justify-items: start;
	}
}

body.admin-bar .cgc-toolbar {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .cgc-toolbar {
		top: 46px;
	}
}


/* Toolbar logo, guest login, likes and matches */
.cgc-toolbar__logo {
	display: block;
	width: auto;
	height: var(--cgc-toolbar-logo-height, 44px);
	max-width: 220px;
	object-fit: contain;
}

.cgc-toolbar__guest {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-left: auto;
}

.cgc-toolbar__guest form {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.cgc-toolbar__guest form p {
	margin: 0;
}

.cgc-toolbar__guest .login-username label,
.cgc-toolbar__guest .login-password label,
.cgc-toolbar__guest .login-remember {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.cgc-toolbar__guest input[type="text"],
.cgc-toolbar__guest input[type="password"] {
	width: 180px;
	height: 38px;
	padding: 8px 11px;
	color: #fff;
	background: rgba(255,255,255,.08);
	border: 1px solid rgba(255,255,255,.16);
	border-radius: 10px;
	font: inherit;
}

.cgc-toolbar__guest input::placeholder {
	color: rgba(255,255,255,.58);
}

.cgc-toolbar__guest input[type="submit"],
.cgc-toolbar__register {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 8px 14px;
	border: 0;
	border-radius: 999px;
	background: var(--cgc-brand, #7c3aed);
	color: #fff;
	font: inherit;
	font-weight: 750;
	cursor: pointer;
	text-decoration: none;
}

.cgc-toolbar__register {
	background: rgba(255,255,255,.10);
	border: 1px solid rgba(255,255,255,.18);
}

.cgc-registration-panel {
	width: min(720px, 100%);
	margin-inline: auto;
}

.cgc-auth-switch {
	margin-top: 18px;
}

.cgc-like-button {
	background: linear-gradient(135deg, #ec4899, #db2777);
}

.cgc-like-button.is-liked {
	background: linear-gradient(135deg, #ef4444, #db2777);
}

.cgc-like-button.is-match {
	background: linear-gradient(135deg, var(--cgc-accent, #22c55e), #059669);
}

.cgc-like-button span {
	font-size: 1.2em;
	line-height: 1;
}

.cgc-match-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 18px;
}

.cgc-match-card {
	overflow: hidden;
	background: color-mix(in srgb, var(--cgc-card) 96%, transparent);
	border: 1px solid var(--cgc-border);
	border-radius: var(--cgc-radius);
	box-shadow: 0 12px 30px rgba(0,0,0,.16);
}

.cgc-match-card__profile {
	display: grid;
	grid-template-columns: 110px minmax(0, 1fr);
	align-items: center;
	gap: 14px;
	padding: 14px;
	color: inherit;
	text-decoration: none;
}

.cgc-match-card__profile img {
	width: 110px;
	height: 130px;
	object-fit: cover;
	border-radius: 14px;
}

.cgc-match-card__profile h2 {
	margin: 0 0 5px;
	font-size: 1.15rem;
}

.cgc-match-card__profile p {
	margin: 0;
	color: var(--cgc-muted);
}

.cgc-match-card__actions {
	display: flex;
	gap: 8px;
	padding: 0 14px 14px;
}

@media (max-width: 980px) {
	body.cgc-has-guest-toolbar {
		padding-top: 116px !important;
	}

	.cgc-toolbar.is-guest {
		height: 116px;
	}

	.cgc-toolbar.is-guest .cgc-toolbar__inner {
		height: auto;
		min-height: 116px;
		flex-wrap: wrap;
		align-content: center;
		padding-block: 8px;
	}

	.cgc-toolbar__guest {
		width: 100%;
		margin-left: 0;
	}

	.cgc-toolbar__guest form {
		flex: 1;
	}

	.cgc-toolbar__guest .login-username,
	.cgc-toolbar__guest .login-password {
		flex: 1;
	}

	.cgc-toolbar__guest input[type="text"],
	.cgc-toolbar__guest input[type="password"] {
		width: 100%;
	}
}

@media (max-width: 620px) {
	body.cgc-has-guest-toolbar {
		padding-top: 170px !important;
	}

	.cgc-toolbar.is-guest {
		height: 170px;
	}

	.cgc-toolbar.is-guest .cgc-toolbar__inner {
		min-height: 170px;
	}

	.cgc-toolbar__brand strong {
		max-width: 130px;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.cgc-toolbar__guest {
		align-items: stretch;
		flex-wrap: wrap;
	}

	.cgc-toolbar__guest form {
		width: 100%;
		flex-wrap: wrap;
	}

	.cgc-toolbar__guest .login-username,
	.cgc-toolbar__guest .login-password {
		flex: 1 1 calc(50% - 4px);
	}

	.cgc-toolbar__guest .login-submit {
		flex: 1 1 100%;
	}

	.cgc-toolbar__guest input[type="submit"],
	.cgc-toolbar__register {
		width: 100%;
	}

	.cgc-toolbar__register {
		flex: 1 1 100%;
	}

	.cgc-match-card__profile {
		grid-template-columns: 88px minmax(0, 1fr);
	}

	.cgc-match-card__profile img {
		width: 88px;
		height: 105px;
	}
}


/* Trust, role and temporary-closure indicators. */
.cgc-display-name,
.cgc-name-with-badges {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 5px;
}

.cgc-user-badge,
.cgc-name-with-badges .cgc-badge,
.cgc-profile-card__title .cgc-badge {
	display: inline-grid;
	place-items: center;
	width: 1.25em;
	height: 1.25em;
	flex: 0 0 auto;
	padding: 0;
	border-radius: 50%;
	font-size: .82em;
	font-weight: 900;
	line-height: 1;
	vertical-align: middle;
}

.cgc-user-badge--staff,
.cgc-badge--staff {
	color: #3d2a00;
	background: #f6c445;
	box-shadow: 0 0 0 2px rgba(246, 196, 69, .22);
}

.cgc-user-badge--verified,
.cgc-badge--verified {
	color: #fff;
	background: #16a34a;
	box-shadow: 0 0 0 2px rgba(22, 163, 74, .2);
}

.cgc-toolbar__pause {
	padding: 7px 16px;
	background: rgba(245, 158, 11, .14);
	border-top: 1px solid rgba(245, 158, 11, .28);
}

.cgc-toolbar__pause .cgc-notice {
	max-width: 1180px;
	margin: 0 auto;
	padding: 7px 12px;
}

.cgc-toolbar__pause .cgc-notice p {
	display: inline;
	margin: 0 0 0 8px;
}

.cgc-verification-panel {
	margin-top: 20px;
}

.cgc-private-media-link {
	user-select: none;
	-webkit-user-select: none;
}

.cgc-private-media-link video {
	display: block;
	width: 100%;
	max-height: 440px;
	background: #000;
}

.cgc-private-media-expiry {
	position: absolute;
	right: 6px;
	bottom: 6px;
	max-width: calc(100% - 12px);
	padding: 3px 6px;
	border-radius: 6px;
	color: #fff;
	background: rgba(0, 0, 0, .72);
	font-size: .66rem;
	line-height: 1.2;
	pointer-events: none;
}

@media (max-width: 760px) {
	.cgc-toolbar__pause .cgc-notice p {
		display: block;
		margin: 4px 0 0;
	}
}

.cgc-profile-name-badges { margin-top: 7px; font-weight: 800; }


/* Ranking, blog and front-end moderation */
.cgc-ranking-card{max-width:760px;margin-inline:auto}
.cgc-ranking-photo{margin:0 0 1rem;text-align:center}
.cgc-ranking-photo img{display:block;width:100%;max-height:680px;object-fit:contain;border-radius:18px;background:#070b16}
.cgc-ranking-photo figcaption{margin-top:.65rem;font-size:.85rem;opacity:.72}
.cgc-star-form fieldset{border:0;padding:0;margin:0 0 1rem;display:flex;gap:.65rem;flex-wrap:wrap}
.cgc-star-form legend{width:100%;font-weight:700;margin-bottom:.4rem}
.cgc-star-form label{cursor:pointer}
.cgc-star-form input{position:absolute;opacity:0;pointer-events:none}
.cgc-star-form label span{display:inline-flex;min-height:44px;align-items:center;padding:.65rem .85rem;border:1px solid rgba(255,255,255,.18);border-radius:12px;font-size:1.15rem}
.cgc-star-form input:checked+span,.cgc-star-form label:hover span{border-color:var(--cgc-accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--cgc-accent) 25%,transparent)}
.cgc-ranking-submissions{display:grid;gap:.75rem}
.cgc-ranking-submissions article{display:grid;grid-template-columns:minmax(120px,1fr) auto;gap:.35rem 1rem;align-items:center;padding:1rem;border:1px solid rgba(255,255,255,.12);border-radius:14px}
.cgc-ranking-submissions small,.cgc-ranking-submissions form{grid-column:1/-1}
.cgc-status{font-size:.8rem;padding:.3rem .55rem;border-radius:999px;background:rgba(255,255,255,.09)}
.cgc-leaderboard{list-style:none;margin:0;padding:0;display:grid;gap:.8rem}
.cgc-leaderboard li{display:grid;grid-template-columns:48px 96px 1fr;gap:1rem;align-items:center;padding:.8rem;border:1px solid rgba(255,255,255,.12);border-radius:16px}
.cgc-leaderboard img{width:96px;height:96px;object-fit:cover;border-radius:12px;background:#070b16}
.cgc-leaderboard__place{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:var(--cgc-brand);font-weight:800;font-size:1.15rem}
.cgc-leaderboard li>div{display:grid;gap:.25rem}
.cgc-leaderboard a{font-size:1.08rem;font-weight:700;text-decoration:none}
.cgc-dashboard-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.8rem;margin:1rem 0}
.cgc-dashboard-cards>div{display:grid;gap:.15rem;padding:1rem;border:1px solid rgba(255,255,255,.12);border-radius:14px}
.cgc-dashboard-cards strong{font-size:1.8rem}
.cgc-dashboard-cards span{font-size:.85rem;opacity:.78}
.cgc-mod-list{display:grid;gap:.8rem}
.cgc-mod-list article{display:grid;grid-template-columns:64px minmax(160px,1fr) auto;gap:1rem;align-items:center;padding:1rem;border:1px solid rgba(255,255,255,.12);border-radius:14px}
.cgc-mod-list article>img{width:64px;height:64px;object-fit:cover;border-radius:50%}
.cgc-mod-list article>div{min-width:0}
.cgc-mod-list article p{margin:.45rem 0 0}
.cgc-review-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem}
.cgc-review-card{padding:1rem;border:1px solid rgba(255,255,255,.12);border-radius:16px}
.cgc-review-card>img{display:block;width:100%;height:300px;object-fit:contain;border-radius:12px;background:#070b16}
.cgc-review-card h3{margin:.8rem 0 .35rem}
.cgc-danger{color:#fca5a5!important}
.cgc-blog-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:1rem}
.cgc-blog-card{display:flex;flex-direction:column;gap:.7rem}
.cgc-blog-card h2{margin:0}
.cgc-blog-card h2 a{text-decoration:none}
.cgc-blog-card__image{display:block;margin:-1.25rem -1.25rem .4rem}
.cgc-blog-card__image img{display:block;width:100%;height:220px;object-fit:cover;border-radius:16px 16px 0 0}
.cgc-blog-card__excerpt{flex:1}
.cgc-pagination{display:flex;justify-content:center;gap:.45rem;margin:1.25rem 0}
.cgc-pagination .page-numbers{padding:.55rem .8rem;border-radius:10px;background:var(--cgc-card);text-decoration:none}
.cgc-pagination .current{background:var(--cgc-brand)}
@media (max-width:760px){
	.cgc-leaderboard li{grid-template-columns:38px 72px 1fr}
	.cgc-leaderboard img{width:72px;height:72px}
	.cgc-mod-list article{grid-template-columns:52px 1fr}
	.cgc-mod-list article>img{width:52px;height:52px}
	.cgc-mod-list article>.cgc-actions{grid-column:1/-1}
}


/* Beta access */
.cgc-user-badge--beta,
.cgc-badge--beta {
	color: #fff;
	background: #16a34a;
	box-shadow: 0 0 0 2px rgba(22, 163, 74, .22);
	font-weight: 900;
}

.cgc-registration-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.cgc-beta-apply-button span,
.cgc-beta-badge-large {
	display: inline-grid;
	place-items: center;
	color: #fff;
	background: #16a34a;
	border-radius: 999px;
	font-weight: 900;
}

.cgc-beta-apply-button span {
	width: 24px;
	height: 24px;
}

.cgc-beta-badge-large {
	width: 64px;
	height: 64px;
	margin: 0 auto 14px;
	font-size: 2rem;
	box-shadow: 0 0 0 7px rgba(22, 163, 74, .18);
}

.cgc-beta-application-form {
	display: flex;
	justify-content: center;
	margin: 18px 0;
}

.cgc-beta-application-form.is-compact {
	display: inline-flex;
	margin: 0;
}

.cgc-beta-registration-note p:last-child {
	margin-bottom: 0;
}

.cgc-toolbar__beta {
	border-top-color: rgba(22, 163, 74, .45);
}


/* v1.12: mobile-first toolbar and responsive hardening */
.cgc-toolbar__mobile-toggle,
.cgc-toolbar__mobile-panel {
	display: none;
}

.cgc-toolbar__mobile-toggle {
	margin-left: auto;
	position: relative;
	width: 44px;
	height: 44px;
	padding: 0;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(255,255,255,.16);
	border-radius: 12px;
	background: rgba(255,255,255,.08);
	color: #fff;
	cursor: pointer;
}

.cgc-toolbar__mobile-toggle-icon {
	display: grid;
	gap: 4px;
	width: 20px;
}

.cgc-toolbar__mobile-toggle-icon i {
	display: block;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform .18s ease, opacity .18s ease;
}

.cgc-toolbar__mobile-toggle[aria-expanded="true"] .cgc-toolbar__mobile-toggle-icon i:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.cgc-toolbar__mobile-toggle[aria-expanded="true"] .cgc-toolbar__mobile-toggle-icon i:nth-child(2) {
	opacity: 0;
}

.cgc-toolbar__mobile-toggle[aria-expanded="true"] .cgc-toolbar__mobile-toggle-icon i:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

.cgc-toolbar__mobile-toggle > b {
	position: absolute;
	top: -5px;
	right: -5px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	display: grid;
	place-items: center;
	border-radius: 999px;
	background: #dc2626;
	color: #fff;
	box-shadow: 0 0 0 2px #fff;
	font-size: 11px;
	line-height: 1;
}

.cgc-toolbar__mobile-panel[hidden] {
	display: none !important;
}

.cgc-logout-panel {
	max-width: 720px;
	margin-inline: auto;
	text-align: center;
}

.cgc-logout-panel .cgc-actions {
	justify-content: center;
}

.cgc-logout-icon {
	display: grid;
	place-items: center;
	width: 68px;
	height: 68px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--cgc-accent, #22c55e) 18%, transparent);
	border: 1px solid color-mix(in srgb, var(--cgc-accent, #22c55e) 50%, transparent);
	color: var(--cgc-accent, #22c55e);
	font-size: 2rem;
	font-weight: 900;
}

body.cgc-toolbar-has-status {
	padding-top: 108px !important;
}

.cgc-toolbar {
	height: auto;
	min-height: 64px;
}

.cgc-toolbar__inner {
	height: 64px;
}

html.cgc-mobile-menu-open,
html.cgc-mobile-menu-open body {
	overflow: hidden;
}

@media (max-width: 980px) {
	body.cgc-has-toolbar,
	body.cgc-has-toolbar.cgc-has-guest-toolbar {
		padding-top: 58px !important;
	}

	body.cgc-has-toolbar.cgc-toolbar-has-status,
	body.cgc-has-toolbar.cgc-has-guest-toolbar.cgc-toolbar-has-status {
		padding-top: 122px !important;
	}

	.cgc-toolbar,
	.cgc-toolbar.is-guest {
		height: auto;
		min-height: 58px;
	}

	.cgc-toolbar__inner,
	.cgc-toolbar.is-guest .cgc-toolbar__inner {
		height: 58px;
		min-height: 58px;
		padding: 0 10px;
		gap: 10px;
		flex-wrap: nowrap;
		align-content: normal;
	}

	.cgc-toolbar__brand {
		min-width: 0;
		margin-right: auto;
	}

	.cgc-toolbar__brand strong {
		max-width: min(42vw, 190px);
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.cgc-toolbar__logo {
		max-width: min(38vw, 175px);
		height: min(var(--cgc-toolbar-logo-height, 44px), 40px);
	}

	.cgc-toolbar__desktop-only {
		display: none !important;
	}

	.cgc-toolbar__mobile-toggle {
		display: inline-flex;
		flex: 0 0 auto;
	}

	.cgc-toolbar__mobile-panel:not([hidden]) {
		position: fixed;
		top: 58px;
		left: 0;
		right: 0;
		z-index: 99989;
		display: block;
		max-height: calc(100dvh - 58px);
		padding: 14px;
		overflow-y: auto;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
		background: var(--cgc-bg, #0b1020);
		border-top: 1px solid rgba(255,255,255,.12);
		border-bottom: 1px solid rgba(255,255,255,.12);
		box-shadow: 0 24px 60px rgba(0,0,0,.38);
	}

	body.admin-bar .cgc-toolbar__mobile-panel:not([hidden]) {
		top: 90px;
		max-height: calc(100dvh - 90px);
	}

	.cgc-toolbar.is-mobile-open .cgc-toolbar__pause {
		display: none;
	}

	.cgc-toolbar__mobile-account {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
		padding: 8px 4px 14px;
		border-bottom: 1px solid rgba(255,255,255,.1);
	}

	.cgc-toolbar__mobile-account > strong {
		min-width: 0;
	}

	.cgc-toolbar__mobile-account small {
		flex: 0 0 auto;
		padding: 3px 8px;
		border-radius: 999px;
		background: rgba(255,255,255,.08);
	}

	.cgc-toolbar__mobile-links {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
		padding: 12px 0;
	}

	.cgc-toolbar__mobile-links > a {
		min-height: 46px;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
		padding: 10px 12px;
		border: 1px solid rgba(255,255,255,.12);
		border-radius: 12px;
		background: rgba(255,255,255,.055);
		font-weight: 700;
	}

	.cgc-toolbar__mobile-links > a:hover,
	.cgc-toolbar__mobile-links > a:focus-visible {
		background: rgba(255,255,255,.1);
	}

	.cgc-toolbar__mobile-links .cgc-toolbar__mobile-logout {
		color: #fecaca;
		border-color: rgba(248,113,113,.28);
	}

	.cgc-toolbar__mobile-message-link b {
		min-width: 22px;
		height: 22px;
		padding: 0 6px;
		display: grid;
		place-items: center;
		border-radius: 999px;
		background: var(--cgc-brand, #7c3aed);
		font-size: 11px;
	}

	.cgc-toolbar__mobile-latest {
		display: grid;
		gap: 6px;
		padding-top: 12px;
		border-top: 1px solid rgba(255,255,255,.1);
	}

	.cgc-toolbar__mobile-latest > strong {
		margin-bottom: 4px;
	}

	.cgc-toolbar__mobile-latest > a {
		display: grid;
		grid-template-columns: 42px minmax(0, 1fr) auto;
		align-items: center;
		gap: 10px;
		padding: 8px;
		border-radius: 12px;
		background: rgba(255,255,255,.04);
	}

	.cgc-toolbar__mobile-latest img {
		width: 42px;
		height: 42px;
		object-fit: cover;
		border-radius: 50%;
	}

	.cgc-toolbar__mobile-latest a > span {
		min-width: 0;
		display: grid;
	}

	.cgc-toolbar__mobile-latest small {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		opacity: .68;
	}

	.cgc-toolbar__mobile-latest i {
		width: 9px;
		height: 9px;
		border-radius: 50%;
		background: var(--cgc-accent, #22c55e);
	}

	.cgc-toolbar__mobile-login {
		display: grid;
		grid-template-columns: 1fr;
		gap: 7px;
		padding-bottom: 12px;
		border-bottom: 1px solid rgba(255,255,255,.1);
	}

	.cgc-toolbar__mobile-login label {
		font-size: .8rem;
		font-weight: 700;
		opacity: .8;
	}

	.cgc-toolbar__mobile-login input[type="text"],
	.cgc-toolbar__mobile-login input[type="password"] {
		width: 100%;
		min-height: 46px;
		padding: 10px 12px;
		border: 1px solid rgba(255,255,255,.16);
		border-radius: 11px;
		background: rgba(255,255,255,.07);
		color: #fff;
		font: inherit;
		font-size: 16px;
	}

	.cgc-toolbar__mobile-login button {
		min-height: 46px;
		margin-top: 4px;
		padding: 10px 14px;
		border: 0;
		border-radius: 999px;
		background: var(--cgc-brand, #7c3aed);
		color: #fff;
		font: inherit;
		font-weight: 800;
	}

	.cgc-toolbar__pause {
		font-size: .82rem;
		line-height: 1.35;
	}

	/* Community components stay inside the viewport and use touch-sized controls. */
	.cgc-shell,
	.cgc-panel,
	.cgc-community-area,
	.cgc-messenger,
	.cgc-member-profile,
	.cgc-ranking-card,
	.cgc-registration-panel {
		max-width: 100%;
		min-width: 0;
	}

	.cgc-shell {
		overflow-x: clip;
	}

	.cgc-shell img,
	.cgc-shell video,
	.cgc-shell iframe {
		max-width: 100%;
	}

	.cgc-shell input:not([type="checkbox"]):not([type="radio"]),
	.cgc-shell select,
	.cgc-shell textarea {
		max-width: 100%;
		min-width: 0;
		font-size: 16px;
	}

	.cgc-button,
	.cgc-file-button,
	.cgc-page-button,
	.cgc-star-form label span {
		min-height: 44px;
	}

	.cgc-tabs {
		max-width: 100%;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scrollbar-width: thin;
		-webkit-overflow-scrolling: touch;
	}

	.cgc-tabs a {
		flex: 0 0 auto;
	}

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

	.cgc-ranking-submissions article {
		grid-template-columns: 1fr;
	}

	.cgc-ranking-submissions article > * {
		grid-column: 1;
	}

	.cgc-leaderboard li {
		grid-template-columns: 38px 74px minmax(0, 1fr);
		gap: 10px;
	}

	.cgc-leaderboard img {
		width: 74px;
		height: 74px;
	}

	.cgc-leaderboard__place {
		width: 36px;
		height: 36px;
		font-size: 1rem;
	}

	.cgc-shell table {
		display: block;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.cgc-moderation-box form {
		align-items: stretch;
	}

	.cgc-moderation-box form > * {
		max-width: 100%;
	}
}

@media (max-width: 782px) {
	body.admin-bar .cgc-toolbar__mobile-panel:not([hidden]) {
		top: 104px;
		max-height: calc(100dvh - 104px);
	}
}

@media (max-width: 620px) {
	.cgc-toolbar__mobile-panel:not([hidden]) {
		padding: 10px;
	}

	.cgc-toolbar__mobile-links {
		grid-template-columns: 1fr;
	}

	.cgc-match-grid,
	.cgc-group-grid,
	.cgc-member-chips {
		grid-template-columns: 1fr;
	}

	.cgc-match-card__actions,
	.cgc-actions {
		flex-wrap: wrap;
	}

	.cgc-match-card__actions .cgc-button,
	.cgc-actions .cgc-button {
		flex: 1 1 140px;
	}

	.cgc-leaderboard li {
		grid-template-columns: 34px 60px minmax(0, 1fr);
		padding: 10px;
	}

	.cgc-leaderboard img {
		width: 60px;
		height: 60px;
	}

	.cgc-ranking-photo img {
		max-height: 65vh;
	}

	.cgc-message-list {
		min-height: 48vh;
		max-height: 58vh;
	}

	.cgc-chat-header,
	.cgc-conversations-title {
		min-height: 58px;
		padding: 14px;
	}

	.cgc-message-form {
		padding: 10px;
	}

	.cgc-message-form textarea {
		min-height: 88px;
	}

	.cgc-profile-card {
		min-height: 210px;
	}
}

@media (max-width: 420px) {
	.cgc-toolbar__brand strong {
		max-width: 34vw;
	}

	.cgc-toolbar__brand small {
		display: none;
	}

	.cgc-directory {
		grid-template-columns: 1fr;
	}

	.cgc-profile-card {
		min-height: 330px;
	}

	.cgc-gallery {
		grid-template-columns: 1fr 1fr;
	}

	.cgc-match-card__profile {
		grid-template-columns: 76px minmax(0, 1fr);
	}

	.cgc-match-card__profile img {
		width: 76px;
		height: 92px;
	}

	.cgc-leaderboard li {
		grid-template-columns: 32px 52px minmax(0, 1fr);
		gap: 8px;
	}

	.cgc-leaderboard img {
		width: 52px;
		height: 52px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cgc-toolbar__mobile-toggle-icon i {
		transition: none;
	}
}


/* Profile activity: visitors (24h) and received likes */
.cgc-activity-columns {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.cgc-activity-heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 14px;
}

.cgc-activity-heading h2 {
	margin-bottom: 0;
}

.cgc-activity-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid var(--cgc-border);
	border-radius: 999px;
	font-weight: 800;
}

.cgc-activity-list {
	display: grid;
	gap: 10px;
}

.cgc-activity-person {
	display: grid;
	grid-template-columns: 58px minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	padding: 10px;
	color: var(--cgc-text);
	background: rgba(255, 255, 255, 0.035);
	border: 1px solid var(--cgc-border);
	border-radius: 14px;
	text-decoration: none;
	transition: background 160ms ease, transform 160ms ease;
}

.cgc-activity-person:hover,
.cgc-activity-person:focus-visible {
	background: rgba(255, 255, 255, 0.07);
	transform: translateY(-1px);
}

.cgc-activity-person > img {
	width: 58px;
	height: 58px;
	object-fit: cover;
	border-radius: 14px;
}

.cgc-activity-person__body {
	display: grid;
	min-width: 0;
	gap: 2px;
}

.cgc-activity-person__body small {
	overflow: hidden;
	color: var(--cgc-muted);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cgc-match-pill {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 5px 10px;
	color: white;
	background: color-mix(in srgb, var(--cgc-accent) 28%, transparent);
	border: 1px solid color-mix(in srgb, var(--cgc-accent) 48%, transparent);
	border-radius: 999px;
	font-size: 0.76rem;
	font-weight: 800;
}

@media (max-width: 820px) {
	.cgc-activity-columns {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.cgc-activity-person {
		grid-template-columns: 50px minmax(0, 1fr);
	}

	.cgc-activity-person > img {
		width: 50px;
		height: 50px;
	}

	.cgc-match-pill {
		grid-column: 2;
		justify-self: start;
	}
}


/* Community pages: hide the theme/site header by default when enabled in settings.
   The selectors intentionally target common theme/page-builder header wrappers only,
   leaving the ConnectGrid toolbar and content headers untouched. */
body.cgc-community-page.cgc-hide-theme-header .site-header,
body.cgc-community-page.cgc-hide-theme-header #masthead,
body.cgc-community-page.cgc-hide-theme-header #site-header,
body.cgc-community-page.cgc-hide-theme-header header#header,
body.cgc-community-page.cgc-hide-theme-header .elementor-location-header,
body.cgc-community-page.cgc-hide-theme-header .et-l--header,
body.cgc-community-page.cgc-hide-theme-header .fl-builder-content[data-type="header"],
body.cgc-community-page.cgc-hide-theme-header .bricks-site-header,
body.cgc-community-page.cgc-hide-theme-header .wp-site-blocks > header.wp-block-template-part,
body.cgc-community-page.cgc-hide-theme-header .wp-site-blocks > .wp-block-template-part > header {
	display: none !important;
}


/* v1.15: home shortcut and popup chat layer */
.cgc-toolbar__home {
	display: inline-grid;
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	place-items: center;
	border: 1px solid rgba(255,255,255,.14);
	border-radius: 12px;
	background: rgba(255,255,255,.065);
	color: #fff;
	transition: background .18s ease, transform .18s ease;
}

.cgc-toolbar__home:hover,
.cgc-toolbar__home:focus-visible {
	background: rgba(255,255,255,.13);
	transform: translateY(-1px);
}

.cgc-toolbar__home svg {
	width: 22px;
	height: 22px;
	overflow: visible;
	fill: currentColor;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.cgc-toolbar__home svg path:first-child {
	stroke: none;
}

.cgc-messenger.is-layer-mode {
	grid-template-columns: 1fr;
	min-height: 0;
}

.cgc-messenger.is-layer-mode .cgc-conversations {
	max-height: min(70vh, 720px);
	overflow-y: auto;
	border-right: 0;
}

.cgc-messenger.is-layer-mode .cgc-chat {
	display: none;
}

.cgc-chat-layer[hidden] {
	display: none !important;
}

.cgc-chat-layer {
	position: fixed;
	inset: 0;
	z-index: 100120;
	display: grid;
	align-items: end;
	justify-items: end;
	padding: 20px;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cgc-chat-layer__backdrop {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: rgba(2, 6, 23, .68);
	backdrop-filter: blur(5px);
	cursor: default;
}

.cgc-chat-layer__dialog {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	width: min(560px, calc(100vw - 40px));
	height: min(760px, calc(100dvh - 96px));
	min-height: 420px;
	overflow: hidden;
	color: var(--cgc-text, #f8fafc);
	background: var(--cgc-card, #151b2e);
	border: 1px solid rgba(255,255,255,.15);
	border-radius: 22px;
	box-shadow: 0 30px 90px rgba(0,0,0,.52);
}

.cgc-chat-layer__header {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	border-bottom: 1px solid var(--cgc-border, rgba(255,255,255,.12));
}

.cgc-chat-layer__header .cgc-chat-header {
	min-width: 0;
	min-height: 68px;
	padding: 10px 12px;
	border-bottom: 0;
}

.cgc-chat-layer__close {
	width: 44px;
	height: 44px;
	margin-right: 10px;
	display: grid;
	place-items: center;
	color: inherit;
	background: rgba(255,255,255,.07);
	border: 1px solid rgba(255,255,255,.13);
	border-radius: 50%;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.cgc-chat-layer__close:hover,
.cgc-chat-layer__close:focus-visible {
	background: rgba(255,255,255,.13);
}

.cgc-chat-layer__messages {
	min-height: 0;
	max-height: none;
	padding: 18px;
	overscroll-behavior: contain;
}

.cgc-chat-layer__form {
	background: color-mix(in srgb, var(--cgc-card, #151b2e) 96%, #000);
}

.cgc-chat-layer__form textarea {
	min-height: 58px;
	max-height: 150px;
	resize: vertical;
}

html.cgc-chat-layer-open,
html.cgc-chat-layer-open body {
	overflow: hidden !important;
}

@media (max-width: 980px) {
	.cgc-toolbar__home {
		width: 40px;
		height: 40px;
		border-radius: 11px;
	}

	.cgc-toolbar__home svg {
		width: 21px;
		height: 21px;
	}
}

@media (max-width: 760px) {
	.cgc-chat-layer {
		padding: 0;
		align-items: stretch;
		justify-items: stretch;
	}

	.cgc-chat-layer__dialog {
		width: 100%;
		height: 100dvh;
		min-height: 0;
		max-height: none;
		border: 0;
		border-radius: 0;
	}

	.cgc-chat-layer__header {
		padding-top: env(safe-area-inset-top);
	}

	.cgc-chat-layer__messages {
		padding: 14px;
	}

	.cgc-chat-layer__form {
		padding-bottom: max(14px, env(safe-area-inset-bottom));
	}

	.cgc-chat-layer__form .cgc-message-attachments {
		gap: 7px;
	}

	.cgc-chat-layer__form .cgc-file-button {
		min-height: 42px;
	}
}

@media (max-width: 420px) {
	.cgc-toolbar__inner {
		gap: 7px;
	}

	.cgc-toolbar__home {
		width: 38px;
		height: 38px;
	}

	.cgc-toolbar__brand {
		gap: 5px;
	}

	.cgc-toolbar__brand strong {
		max-width: 105px;
	}
}


/* Generic profile/ranking popup layer. */
.cgc-content-layer {
	position: fixed;
	inset: 0;
	z-index: 100100;
	display: grid;
	place-items: center;
	padding: clamp(12px, 3vw, 32px);
}

.cgc-content-layer[hidden] {
	display: none !important;
}

.cgc-content-layer__backdrop {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	background: rgba(3, 7, 18, 0.78);
	border: 0;
	backdrop-filter: blur(10px);
	cursor: pointer;
}

.cgc-content-layer__dialog {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr);
	width: min(980px, 100%);
	max-height: min(92vh, 980px);
	overflow: hidden;
	color: var(--cgc-text);
	background: var(--cgc-bg);
	border: 1px solid var(--cgc-border);
	border-radius: 24px;
	box-shadow: 0 32px 90px rgba(0, 0, 0, 0.48);
}

.cgc-content-layer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	min-height: 58px;
	padding: 10px 14px 10px 20px;
	background: color-mix(in srgb, var(--cgc-card) 96%, transparent);
	border-bottom: 1px solid var(--cgc-border);
}

.cgc-content-layer__header strong {
	font-size: 1rem;
}

.cgc-content-layer__close {
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	color: var(--cgc-text);
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid var(--cgc-border);
	border-radius: 50%;
	font: inherit;
	font-size: 1.55rem;
	line-height: 1;
	cursor: pointer;
}

.cgc-content-layer__body {
	min-height: 220px;
	padding: 0;
	overflow: auto;
	overscroll-behavior: contain;
}

.cgc-content-layer__body > .cgc-shell {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: clamp(16px, 3vw, 28px);
	background: transparent;
	border-radius: 0;
	box-shadow: none;
}

.cgc-content-layer__body .cgc-back {
	display: none;
}

.cgc-content-layer__body .cgc-member-hero {
	border-radius: 18px;
}

.cgc-layer-loading {
	margin: 28px;
}

html.cgc-content-layer-open,
html.cgc-content-layer-open body {
	overflow: hidden !important;
}

@media (max-width: 720px) {
	.cgc-content-layer {
		align-items: end;
		padding: 0;
	}

	.cgc-content-layer__dialog {
		width: 100%;
		height: min(94dvh, 100%);
		max-height: 94dvh;
		border-radius: 22px 22px 0 0;
	}

	.cgc-content-layer__header {
		min-height: 54px;
		padding-left: 16px;
	}

	.cgc-content-layer__body > .cgc-shell {
		padding: 14px;
	}

	.cgc-content-layer__body .cgc-member-hero {
		min-height: 52dvh;
	}
}


/* v1.17: notification badges, richer profiles and social connections */
.cgc-toolbar__links a,
.cgc-toolbar__mobile-links > a {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.cgc-toolbar-badge {
	position: relative;
	top: -0.55em;
	display: inline-grid;
	place-items: center;
	min-width: 19px;
	height: 19px;
	padding: 0 5px;
	color: #fff;
	background: #dc2626;
	border: 2px solid color-mix(in srgb, var(--cgc-bg, #0b1020) 88%, black);
	border-radius: 999px;
	box-shadow: 0 4px 12px rgba(220, 38, 38, .36);
	font-size: 10px;
	font-weight: 900;
	line-height: 1;
}

.cgc-toolbar__mobile-links .cgc-toolbar-badge {
	top: -0.35em;
	margin-left: auto;
}

.cgc-profile-detail-block {
	margin-top: 18px;
	padding: 16px;
	background: rgba(255,255,255,.035);
	border: 1px solid var(--cgc-border);
	border-radius: 14px;
}

.cgc-profile-detail-block h3 {
	margin: 0 0 8px;
	font-size: 1rem;
}

.cgc-profile-detail-block p {
	margin: 0;
	white-space: pre-wrap;
}

.cgc-connection-list {
	display: grid;
	gap: 12px;
}

.cgc-connection-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px;
	background: rgba(255,255,255,.035);
	border: 1px solid var(--cgc-border);
	border-radius: 16px;
}

.cgc-connection-card > a {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}

.cgc-connection-card img {
	flex: 0 0 auto;
	width: 58px;
	height: 58px;
	object-fit: cover;
	border-radius: 14px;
}

.cgc-connection-card > a > span {
	display: grid;
	min-width: 0;
	gap: 3px;
}

.cgc-connection-card small {
	color: var(--cgc-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cgc-button.is-success {
	background: color-mix(in srgb, var(--cgc-accent) 74%, #111827);
}

.cgc-button.is-muted {
	opacity: .72;
}

@media (max-width: 640px) {
	.cgc-connection-card {
		align-items: stretch;
		flex-direction: column;
	}

	.cgc-connection-card .cgc-actions,
	.cgc-connection-card > button {
		width: 100%;
	}

	.cgc-connection-card .cgc-actions .cgc-button,
	.cgc-connection-card > .cgc-button {
		flex: 1 1 auto;
		width: 100%;
	}

	.cgc-toolbar-badge {
		top: -0.35em;
	}
}


/* v1.18: couple-profile registration and badge */
.cgc-user-badge--couple,
.cgc-badge--couple {
	color: #fff;
	background: #dc2626;
	box-shadow: 0 0 0 2px rgba(220, 38, 38, .24);
}

.cgc-user-badge--couple svg,
.cgc-badge--couple svg {
	width: 1em;
	height: 1em;
	overflow: visible;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.45;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.cgc-profile-type-switch {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.cgc-profile-type-switch legend {
	margin-bottom: 8px;
	font-weight: 800;
}

.cgc-profile-type-switch > small {
	display: block;
	margin-top: 8px;
	color: var(--cgc-muted);
	line-height: 1.45;
}

.cgc-segmented-control {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px;
	padding: 5px;
	border: 1px solid var(--cgc-border);
	border-radius: 14px;
	background: rgba(255, 255, 255, .035);
}

.cgc-segmented-control label {
	position: relative;
	margin: 0;
	cursor: pointer;
}

.cgc-segmented-control input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.cgc-segmented-control span {
	display: flex;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	padding: 9px 12px;
	border: 1px solid transparent;
	border-radius: 10px;
	color: var(--cgc-muted);
	font-weight: 800;
	text-align: center;
	transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.cgc-segmented-control input:checked + span {
	color: #fff;
	background: color-mix(in srgb, var(--cgc-brand) 78%, #fff 0%);
	border-color: color-mix(in srgb, var(--cgc-brand) 72%, #fff 14%);
	box-shadow: 0 8px 20px rgba(0, 0, 0, .16);
}

.cgc-segmented-control input:focus-visible + span {
	outline: 3px solid color-mix(in srgb, var(--cgc-accent) 55%, transparent);
	outline-offset: 2px;
}

.cgc-segmented-control .cgc-couple-choice::before {
	display: inline-block;
	margin-right: 7px;
	color: #ef4444;
	content: "●●";
	font-size: .7em;
	letter-spacing: -2px;
}

@media (max-width: 520px) {
	.cgc-segmented-control {
		grid-template-columns: 1fr 1fr;
	}

	.cgc-segmented-control span {
		padding-inline: 8px;
	}
}


/* v1.19: reliable single/couple registration switching.
   Theme/author label rules can otherwise override the browser's [hidden] rule. */
.cgc-registration-form [data-cgc-couple-field][hidden],
.cgc-registration-form [data-cgc-couple-note][hidden] {
	display: none !important;
}

/* Friends shown directly inside a member profile. */
.cgc-profile-friends {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--cgc-border, rgba(255,255,255,.1));
}
.cgc-profile-friends > h3 {
	margin: 0 0 12px;
}
.cgc-profile-friends__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
	gap: 12px;
	margin-bottom: 10px;
}
.cgc-profile-friend {
	display: grid;
	gap: 7px;
	min-width: 0;
	color: inherit;
	text-decoration: none;
	text-align: center;
}
.cgc-profile-friend img {
	width: 64px;
	height: 64px;
	margin-inline: auto;
	border-radius: 50%;
	object-fit: cover;
}
.cgc-profile-friend > span {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: .86rem;
}

/* Community pages use their own in-plugin headings. Hide the theme page title
   and collapse common theme wrappers so content starts directly below the toolbar. */
body.cgc-community-page .entry-header,
body.cgc-community-page .page-header,
body.cgc-community-page .wp-block-post-title,
body.cgc-community-page h1.entry-title,
body.cgc-community-page h1.page-title {
	display: none !important;
}
body.cgc-community-page .site-content,
body.cgc-community-page #content,
body.cgc-community-page #primary,
body.cgc-community-page .content-area,
body.cgc-community-page .site-main,
body.cgc-community-page main.site-main,
body.cgc-community-page article.page,
body.cgc-community-page .entry-content,
body.cgc-community-page .wp-block-post-content {
	margin-top: 0 !important;
	padding-top: 0 !important;
}
body.cgc-community-page .entry-content > :first-child,
body.cgc-community-page .wp-block-post-content > :first-child,
body.cgc-community-page article.page > :first-child {
	margin-top: 0 !important;
}
body.cgc-community-page .cgc-shell {
	margin-top: 0;
}
@media (max-width: 640px) {
	.cgc-profile-friends__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.cgc-profile-friend img {
		width: 58px;
		height: 58px;
	}
}


/* v1.20: true full-width Community pages.
   Theme content containers are flattened only on ConnectGrid pages. */
body.cgc-community-page {
	overflow-x: hidden;
}
body.cgc-community-page .site-content,
body.cgc-community-page #content,
body.cgc-community-page #primary,
body.cgc-community-page .content-area,
body.cgc-community-page .site-main,
body.cgc-community-page main.site-main,
body.cgc-community-page article.page,
body.cgc-community-page .entry-content,
body.cgc-community-page .wp-block-post-content,
body.cgc-community-page .wp-site-blocks,
body.cgc-community-page .wp-site-blocks > main,
body.cgc-community-page .wp-site-blocks > .wp-block-group {
	width: 100% !important;
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}
body.cgc-community-page #content > .ast-container,
body.cgc-community-page .site-content > .ast-container,
body.cgc-community-page #content > .container,
body.cgc-community-page .site-content > .container,
body.cgc-community-page .content-container.site-container,
body.cgc-community-page .site-main > .container,
body.cgc-community-page main > .container {
	width: 100% !important;
	max-width: none !important;
	margin-inline: 0 !important;
	padding-inline: 0 !important;
}
body.cgc-community-page .wp-block-post-content.alignfull,
body.cgc-community-page .entry-content.alignfull,
body.cgc-community-page .is-layout-constrained > .wp-block-post-content {
	max-width: none !important;
	margin-inline: 0 !important;
}
body.cgc-community-page .cgc-shell {
	width: 100% !important;
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	border-radius: 0;
}
@media (max-width: 760px) {
	body.cgc-community-page .cgc-shell {
		width: 100% !important;
		margin: 0 !important;
		padding-left: 8px !important;
		padding-right: 8px !important;
		border-radius: 0 !important;
	}
	body.cgc-community-page .cgc-panel {
		border-radius: 14px;
	}
}
@supports (padding: max(0px)) {
	@media (max-width: 760px) {
		body.cgc-community-page .cgc-shell {
			padding-left: max(8px, env(safe-area-inset-left)) !important;
			padding-right: max(8px, env(safe-area-inset-right)) !important;
		}
	}
}


/* v1.22: profile IDs, blocked-user management and notification settings */
.cgc-profile-code {
	margin: 12px 4px 0;
	text-align: right;
	opacity: .68;
	letter-spacing: .04em;
}
.cgc-blocked-users {
	display: grid;
	gap: 10px;
	margin: 14px 0;
}
.cgc-blocked-user {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 10px 12px;
	border: 1px solid rgba(255,255,255,.1);
	border-radius: 12px;
}
.cgc-blocked-user__identity {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}
.cgc-blocked-user__identity img {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 auto;
}
.cgc-notification-settings {
	margin-top: 8px;
}
.cgc-notification-settings h3 {
	margin-bottom: 6px;
}
@media (max-width: 640px) {
	.cgc-blocked-user {
		align-items: stretch;
		flex-direction: column;
	}
	.cgc-blocked-user .cgc-button {
		width: 100%;
	}
	.cgc-profile-code {
		text-align: left;
	}
}


/* Gayivo-Club (prepared premium dummy) */
.cgc-user-badge--club,
.cgc-badge--club {
	color: #2b1d00;
	background: #d4af37;
	box-shadow: 0 0 0 2px rgba(212, 175, 55, .24);
	font-weight: 900;
}

.cgc-club-page {
	display: grid;
	gap: 18px;
}

.cgc-club-hero {
	display: grid;
	grid-template-columns: 86px minmax(0, 1fr);
	gap: 20px;
	align-items: center;
	background:
		radial-gradient(circle at 100% 0, rgba(212, 175, 55, .18), transparent 42%),
		var(--cgc-card);
}

.cgc-club-mark {
	display: grid;
	place-items: center;
	width: 78px;
	height: 78px;
	border-radius: 50%;
	background: linear-gradient(145deg, #f9df7a, #b8860b);
	color: #2b1d00;
	font-size: 2.1rem;
	font-weight: 950;
	box-shadow: 0 12px 30px rgba(212, 175, 55, .22);
}

.cgc-club-hero h1 {
	margin: 0 0 8px;
}

.cgc-club-coming-soon {
	display: inline-flex;
	padding: 5px 10px;
	margin-bottom: 10px;
	border: 1px solid rgba(212, 175, 55, .45);
	border-radius: 999px;
	color: #f8df84;
	background: rgba(212, 175, 55, .12);
	font-size: .82rem;
	font-weight: 850;
	text-transform: uppercase;
	letter-spacing: .06em;
}

.cgc-club-teasers {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 16px 0;
}

.cgc-club-teasers > div {
	display: grid;
	gap: 5px;
	padding: 14px;
	border: 1px solid rgba(212, 175, 55, .2);
	border-radius: 14px;
	background: rgba(212, 175, 55, .05);
}

.cgc-club-teasers span {
	font-size: .9rem;
	opacity: .78;
}

@media (max-width: 700px) {
	.cgc-club-hero {
		grid-template-columns: 62px minmax(0, 1fr);
		gap: 14px;
	}
	.cgc-club-mark {
		width: 58px;
		height: 58px;
		font-size: 1.55rem;
	}
	.cgc-club-teasers {
		grid-template-columns: 1fr;
	}
}


/* v1.24: Gayivo-Club launch notification */
.cgc-club-notify form {
	margin-top: 14px;
}
.cgc-club-notify .cgc-muted {
	margin-top: 12px;
}


/* Pressezugänge: gesperrte Community-Funktionen bleiben sichtbar, aber klar deaktiviert. */
.cgc-toolbar__disabled {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	opacity: .48;
	cursor: not-allowed;
	user-select: none;
	font-size: var(--cgc-toolbar-menu-font-size, 15px);
}
.cgc-toolbar__disabled i {
	font-style: normal;
	font-size: .78em;
}
.cgc-toolbar__mobile-links > .cgc-toolbar__disabled {
	width: 100%;
	padding: 11px 12px;
	border-radius: 10px;
	background: rgba(255,255,255,.035);
}
.cgc-button--disabled {
	opacity: .52 !important;
	cursor: not-allowed !important;
	pointer-events: none;
}
.cgc-press-chat-note {
	display: block;
	color: var(--cgc-muted);
	font-size: .82rem;
	line-height: 1.4;
}

.cgc-user-badge--press,
.cgc-badge--press {
	background: #e5e7eb;
	color: #111827;
	border-color: rgba(255,255,255,.45);
	font-weight: 800;
}


/* Events */
.cgc-hp{position:absolute!important;left:-99999px!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important}
.cgc-events{display:grid;gap:18px}
.cgc-events__hero{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}
.cgc-events__hero>div{max-width:760px}
.cgc-events__submit{min-width:min(100%,360px)}
.cgc-events__submit>summary{list-style:none;cursor:pointer;text-align:center}
.cgc-events__submit>summary::-webkit-details-marker{display:none}
.cgc-events__submit[open]>summary{margin-bottom:16px}
.cgc-event-form{padding-top:4px}
.cgc-event-form .cgc-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.cgc-event-form .cgc-form-wide{grid-column:1/-1}
.cgc-event-form label{display:grid;gap:6px}
.cgc-event-form label>span{font-weight:700}
.cgc-event-form__identity,.cgc-event-disabled{font-size:.92rem;opacity:.8}
.cgc-event-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:16px}
.cgc-event-card{display:grid;grid-template-columns:74px minmax(0,1fr);gap:16px;align-items:start}
.cgc-event-card__date{display:grid;place-items:center;min-height:64px;border-radius:18px;background:color-mix(in srgb,var(--cgc-brand,#7c3aed) 18%,transparent);font-weight:900;font-size:1.05rem}
.cgc-event-card__body h2{margin:.1rem 0 .35rem}
.cgc-event-card__body h2 a{color:inherit;text-decoration:none}
.cgc-event-meta{opacity:.82;margin:.25rem 0}
.cgc-event-detail{max-width:980px;margin-inline:auto}
.cgc-event-detail h1{margin-bottom:.5rem}
.cgc-event-detail .cgc-prose{margin:20px 0}
.cgc-events .cgc-button.is-active{box-shadow:inset 0 0 0 2px currentColor}
@media (max-width:720px){
  .cgc-events__hero{display:grid}
  .cgc-events__submit{min-width:0;width:100%}
  .cgc-event-form .cgc-form-grid{grid-template-columns:1fr}
  .cgc-event-form .cgc-form-wide{grid-column:auto}
  .cgc-event-card{grid-template-columns:58px minmax(0,1fr);gap:12px}
  .cgc-event-card__date{min-height:54px;border-radius:14px;font-size:.95rem}
}


/* v1.27: Freunde-werben / Referral-Programm */
.cgc-referral-linkbox {
	margin-top: 1.25rem;
	padding: 1rem;
	border: 1px solid rgba(255,255,255,.12);
	border-radius: 14px;
	background: rgba(255,255,255,.035);
}
.cgc-referral-copyrow {
	display: flex;
	gap: .75rem;
	align-items: stretch;
	margin-top: .55rem;
	margin-bottom: .45rem;
}
.cgc-referral-copyrow input {
	flex: 1 1 auto;
	min-width: 0;
}
.cgc-referral-copy-status {
	min-height: 1.4em;
	margin-bottom: 0;
}
.cgc-referral-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .8rem;
	margin-top: 1rem;
}
.cgc-referral-stats > div {
	padding: 1rem;
	border-radius: 14px;
	background: rgba(255,255,255,.05);
}
.cgc-referral-stats strong {
	display: block;
	font-size: clamp(1.5rem, 5vw, 2.2rem);
	line-height: 1;
}
.cgc-referral-stats span {
	display: block;
	margin-top: .4rem;
	opacity: .75;
}
@media (max-width: 640px) {
	.cgc-referral-copyrow {
		flex-direction: column;
	}
	.cgc-referral-copyrow .cgc-button {
		width: 100%;
	}
}
