/**
 * Community styles: bbPress forums and the Youzify registration screen.
 * Loaded after the theme and Youzify styles.
 */

/* ---------------------------------------------------------------
   Shared community shell
--------------------------------------------------------------- */
body.bbpress,
body.registration {
	background: #f4f8ff;
	--yzfy-scheme-color: var(--vgs-blue) !important;
	--yzfy-scheme-text-color: #ffffff !important;
}

body.bbpress .youzify,
body.bbpress .youzify-page,
body.bbpress .youzify-wild-content,
body.registration .youzify-membership,
body.registration .youzify-page {
	background: #f4f8ff !important;
}

body.bbpress .youzify-page-main-content {
	display: block;
	width: 100%;
	max-width: 1240px !important;
	margin: 0 auto;
	padding: 32px 24px 64px;
}

body.bbpress .youzify-page-main-content .youzify-main-column,
body.bbpress .youzify-page-main-content .youzify-column-content {
	width: 100% !important;
	max-width: 100% !important;
	padding: 0;
	margin: 0;
	float: none !important;
}

body.bbpress .youzify-sidebar-column,
body.bbpress .youzify-scrolltotop {
	display: none;
}

body.bbpress #bbpress-forums {
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 0;
	margin: 0;
	font-size: 1rem;
	color: var(--vgs-body);
}

/* ---------------------------------------------------------------
   Forum hero
--------------------------------------------------------------- */
.forum-hero {
	position: relative;
	overflow: hidden;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 28px;
	align-items: center;
	padding: 32px 34px;
	margin: 0 0 22px;
	border-radius: 18px;
	color: #fff;
	background:
		radial-gradient(720px 320px at 88% 0%, rgba(31, 94, 255, .55), transparent 62%),
		linear-gradient(140deg, #07142f 0%, #0c2150 55%, #123a8f 100%);
	box-shadow: 0 26px 52px -34px rgba(7, 20, 47, .7);
}

.forum-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(600px 380px at 15% 0%, #000 10%, transparent 78%);
	-webkit-mask-image: radial-gradient(600px 380px at 15% 0%, #000 10%, transparent 78%);
}

.forum-hero > * {
	position: relative;
	z-index: 1;
}

.forum-hero .eyebrow { color: #9fc0ff; }
.forum-hero .eyebrow::before { background: #9fc0ff; }

.forum-hero h1 {
	margin: 8px 0 10px;
	color: #fff;
	font-size: clamp(2rem, 3.4vw, 2.8rem);
	line-height: 1.02;
	letter-spacing: .01em;
}

.forum-hero p,
.forum-hero__desc {
	margin: 0;
	color: rgba(255, 255, 255, .72);
	font-size: .94rem;
	line-height: 1.65;
	max-width: 60ch;
}

.forum-hero__desc p:last-child { margin-bottom: 0; }

.forum-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
}

.forum-hero__stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(100px, 1fr));
	gap: 10px;
	align-self: center;
}

.forum-stat {
	min-width: 104px;
	padding: 12px 16px;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 12px;
	background: rgba(255, 255, 255, .07);
	backdrop-filter: blur(6px);
}

.forum-stat strong {
	display: block;
	color: #fff;
	font-family: var(--vgs-font-display);
	font-size: 1.65rem;
	font-weight: 700;
	line-height: 1;
}

.forum-stat span {
	display: block;
	margin-top: 4px;
	color: #9fc0ff;
	font-size: .62rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
}

/* Inner heroes (single forum / topic) */
.forum-hero--inner {
	grid-template-columns: minmax(0, 1fr) auto;
	padding: 26px 30px;
}

.forum-hero__breadcrumb {
	grid-column: 1 / -1;
	margin: 0 0 2px;
}

.forum-hero__breadcrumb .bbp-breadcrumb,
.forum-hero__breadcrumb .bbp-breadcrumb p {
	margin: 0;
	color: rgba(255, 255, 255, .55);
	font-size: .72rem;
}

.forum-hero__breadcrumb .bbp-breadcrumb a { color: rgba(255, 255, 255, .75); }
.forum-hero__breadcrumb .bbp-breadcrumb a:hover { color: #fff; }
.forum-hero__breadcrumb .bbp-breadcrumb-current {
	display: inline !important;
	margin: 0 !important;
	color: #fff !important;
	font-family: var(--vgs-font-body) !important;
	font-size: .72rem !important;
	font-weight: 600;
	line-height: 1.4;
}
.forum-hero__breadcrumb .bbp-breadcrumb-sep { color: rgba(255, 255, 255, .35); }

.forum-hero__meta {
	color: rgba(255, 255, 255, .66);
	font-size: .82rem;
}

.forum-hero__meta a {
	color: #cfe0ff;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Hide Youzify's default header panels – heroes replace them. */
body.forum-archive .youzify-bbp-topic-head,
body.single-forum .youzify-bbp-topic-head,
body.single-topic .youzify-bbp-topic-head {
	display: none;
}

/* Root ordering: hero, Search, forums. */
body.forum-archive #bbpress-forums { display: flex; flex-direction: column; }
body.forum-archive #bbpress-forums > * { order: 4; }
body.forum-archive #bbpress-forums > .forum-hero { order: 1; }
body.forum-archive #bbpress-forums > .forum-search { order: 2; }
body.forum-archive #bbpress-forums > .bbp-forums { order: 3; }
body.forum-archive #bbpress-forums > .bbp-search-form { display: none; }

/* ---------------------------------------------------------------
   Search
--------------------------------------------------------------- */
body.bbpress #bbpress-forums .bbp-search-form {
	margin: 0 0 20px;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

body.bbpress #bbpress-forums .bbp-search-form form > div {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px;
	background: #fff;
	border: 1px solid var(--vgs-line);
	border-radius: 12px;
	box-shadow: 0 10px 24px -22px rgba(7, 20, 47, .5);
}

body.bbpress #bbpress-forums #bbp_search {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
	padding: 9px 12px;
	border: 0;
	border-radius: 7px;
	background: #f7faff;
	color: var(--vgs-ink);
	font-size: .9rem;
}

body.bbpress #bbpress-forums #bbp_search:focus {
	outline: none;
	box-shadow: none;
}

body.bbpress #bbpress-forums #bbp_search_submit {
	padding: 9px 20px;
	border: 0;
	border-radius: 8px;
	background: var(--vgs-blue);
	color: #fff;
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

body.bbpress #bbpress-forums #bbp_search_submit:hover { background: var(--vgs-blue-600); }

.forum-search {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 20px;
	padding: 7px;
	background: #fff;
	border: 1px solid var(--vgs-line);
	border-radius: 12px;
	box-shadow: 0 10px 24px -22px rgba(7, 20, 47, .5);
}

.forum-search input[type="text"] {
	flex: 1 1 auto;
	min-width: 0;
	padding: 9px 12px;
	border: 0;
	border-radius: 7px;
	background: #f7faff;
	color: var(--vgs-ink);
	font-size: .9rem;
}

.forum-search input[type="text"]:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(31, 94, 255, .14);
}

.forum-search button {
	flex: none;
	padding: 9px 20px;
	border: 0;
	border-radius: 8px;
	background: var(--vgs-blue);
	color: #fff;
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.forum-search button:hover { background: var(--vgs-blue-600); }

/* ---------------------------------------------------------------
   Forum index cards
--------------------------------------------------------------- */
body.bbpress #bbpress-forums .bbp-forums {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

body.bbpress #bbpress-forums .bbp-forums > .bbp-header,
body.bbpress #bbpress-forums .bbp-forums > .bbp-footer {
	display: none;
}

body.bbpress #bbpress-forums .bbp-forums > .bbp-body {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

body.bbpress #bbpress-forums .bbp-forums > .bbp-body > ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	margin: 0;
	padding: 20px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--vgs-line);
	border-radius: 16px;
	box-shadow: 0 12px 28px -26px rgba(7, 20, 47, .45);
	transition: transform .2s var(--vgs-ease), box-shadow .2s ease, border-color .2s ease;
}

body.bbpress #bbpress-forums .bbp-forums > .bbp-body > ul:hover {
	transform: translateY(-2px);
	border-color: var(--vgs-sky-2);
	box-shadow: var(--vgs-shadow);
}

body.bbpress #bbpress-forums .bbp-forums .bbp-forum-info {
	display: flex;
	flex: 1 1 100%;
	width: auto;
	margin: 0;
	padding: 0;
	float: none;
}

body.bbpress .youzify-forums-forum-item,
body.bbpress .youzify-forums-topic-item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	width: 100%;
}

body.bbpress .youzify-forums-forum-icon,
body.bbpress .youzify-forums-topic-icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: linear-gradient(145deg, var(--vgs-blue) 0%, var(--vgs-blue-700) 100%);
	color: #fff;
	font-size: 18px;
	box-shadow: 0 10px 20px -14px rgba(31, 94, 255, .9);
}

body.bbpress .youzify-forums-forum-head,
body.bbpress .youzify-forums-topic-head {
	min-width: 0;
	flex: 1;
}

body.bbpress .youzify-forums-forum-title,
body.bbpress .youzify-forums-topic-title {
	color: var(--vgs-ink);
	font-family: var(--vgs-font-body);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.35;
}

body.bbpress .youzify-forums-forum-title:hover,
body.bbpress .youzify-forums-topic-title:hover { color: var(--vgs-blue-600); }

body.bbpress .youzify-forums-forum-desc {
	margin-top: 4px;
	color: var(--vgs-muted);
	font-size: .8rem;
	line-height: 1.55;
}

body.bbpress .youzify-forums-forum-desc p:last-child { margin-bottom: 0; }

body.bbpress #bbpress-forums .bbp-forum-topic-count,
body.bbpress #bbpress-forums .bbp-forum-reply-count,
body.bbpress #bbpress-forums .bbp-topic-voice-count,
body.bbpress #bbpress-forums .bbp-topic-reply-count {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	width: auto;
	margin: 0;
	padding: 4px 10px;
	float: none;
	border-radius: 999px;
	background: var(--vgs-sky);
	color: var(--vgs-blue-700);
	font-size: .68rem;
	font-weight: 700;
	line-height: 1.5;
	white-space: nowrap;
}

body.bbpress #bbpress-forums .bbp-forum-topic-count i,
body.bbpress #bbpress-forums .bbp-forum-reply-count i,
body.bbpress #bbpress-forums .bbp-topic-voice-count i,
body.bbpress #bbpress-forums .bbp-topic-reply-count i {
	display: none;
}

body.bbpress #bbpress-forums .bbp-forum-topic-count::after { content: " topics"; }
body.bbpress #bbpress-forums .bbp-forum-reply-count::after { content: " posts"; }
body.bbpress #bbpress-forums .bbp-topic-voice-count::after { content: " voices"; }
body.bbpress #bbpress-forums .bbp-topic-reply-count::after { content: " posts"; }

body.bbpress #bbpress-forums .youzify-bbp-forum-freshness,
body.bbpress #bbpress-forums .youzify-bbp-freshness {
	display: flex;
	flex: 1 1 auto;
	justify-content: flex-end;
	width: auto;
	margin: 0;
	padding: 0;
	float: none;
}

body.bbpress .youzify-bbp-freshness-data {
	display: flex;
	align-items: center;
	gap: 8px;
}

body.bbpress .youzify-bbp-freshness-author-img {
	flex: 0 0 24px;
	width: 24px !important;
	height: 24px;
	overflow: hidden;
	text-align: center;
}

.youzify-bbp-freshness-author-img img {
	width: 24px;
	height: 24px;
	border-radius: 50%;
}

.youzify-bbp-freshness-content {
	flex: 1 1 auto;
	width: auto !important;
	min-width: 0;
}

body.bbpress .youzify-bbp-freshness-content { text-align: right; }

body.bbpress .youzify-bbp-freshness-content::before {
	content: "Last post";
	display: block;
	margin-bottom: 2px;
	color: var(--vgs-muted);
	font-size: .56rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}

body.bbpress .youzify-bbp-freshness-author {
	color: var(--vgs-ink);
	font-size: .72rem;
	font-weight: 600;
	line-height: 1.25;
}

body.bbpress .youzify-bbp-freshness-time,
body.bbpress .youzify-bbp-freshness-time a {
	color: var(--vgs-muted);
	font-size: .68rem;
}

/* ---------------------------------------------------------------
   Topic lists
--------------------------------------------------------------- */
body.bbpress #bbpress-forums .bbp-topics {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	border: 0;
	background: transparent;
}

body.bbpress #bbpress-forums .bbp-topics > .bbp-header,
body.bbpress #bbpress-forums .bbp-topics > .bbp-footer {
	display: none;
}

body.bbpress #bbpress-forums .bbp-topics > .bbp-body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

body.bbpress #bbpress-forums .bbp-topics > .bbp-body > ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 18px;
	margin: 0;
	padding: 16px 18px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--vgs-line);
	border-radius: 12px;
	transition: border-color .2s ease, box-shadow .2s ease;
}

body.bbpress #bbpress-forums .bbp-topics > .bbp-body > ul:hover {
	border-color: var(--vgs-sky-2);
	box-shadow: var(--vgs-shadow);
}

body.bbpress #bbpress-forums .bbp-topic-title {
	flex: 1 1 100%;
	width: auto;
	margin: 0;
	padding: 0;
	float: none;
}

body.bbpress .youzify-forums-topic-icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	font-size: 15px;
}

body.bbpress .youzify-forums-topic-title { font-size: .95rem; }

body.bbpress .youzify-forums-topic-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	margin-top: 4px;
	color: var(--vgs-muted);
	font-size: .7rem;
}

body.bbpress .youzify-forums-topic-author img {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	display: inline-block;
	vertical-align: middle;
	margin-right: 4px;
}

body.bbpress .youzify-forums-topic-forum a { color: var(--vgs-muted); }
body.bbpress .youzify-forums-topic-forum a:hover { color: var(--vgs-blue); }

body.bbpress #bbpress-forums .bbp-topic-freshness {
	display: flex;
	flex: 1 1 auto;
	justify-content: flex-end;
	width: auto;
	margin: 0;
	padding: 0;
	float: none;
}

/* ---------------------------------------------------------------
   Replies / single topic
--------------------------------------------------------------- */
body.bbpress #bbpress-forums .bbp-replies {
	list-style: none;
	margin: 0 0 22px;
	padding: 0;
	border: 0;
	background: transparent;
}

body.bbpress #bbpress-forums .bbp-replies > .bbp-header { display: none; }

body.bbpress #bbpress-forums .bbp-replies > .bbp-body {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

body.bbpress #bbpress-forums .bbp-reply-header {
	margin-top: 18px;
	padding: 11px 20px;
	background: #fff;
	border: 1px solid var(--vgs-line);
	border-bottom: 0;
	border-radius: 14px 14px 0 0;
}

body.bbpress #bbpress-forums .bbp-reply-header:first-child { margin-top: 0; }

body.bbpress #bbpress-forums .bbp-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 14px;
	color: var(--vgs-muted);
	font-size: .72rem;
}

body.bbpress #bbpress-forums .bbp-reply-post-date {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	color: var(--vgs-ink);
}

body.bbpress #bbpress-forums .bbp-reply-permalink {
	color: var(--vgs-muted);
	font-size: .7rem;
}

body.bbpress #bbpress-forums .bbp-replies > .bbp-body > div[class*="loop-item-"] {
	display: grid !important;
	grid-template-columns: 180px minmax(0, 1fr) !important;
	margin: 0 0 2px;
	padding: 0 !important;
	background: #fff;
	border: 1px solid var(--vgs-line);
	border-radius: 0 0 14px 14px;
	overflow: hidden;
}

body.bbpress #bbpress-forums .bbp-reply-author {
	width: auto !important;
	float: none !important;
	grid-column: 1;
	padding: 20px 18px;
	background: #f7faff;
	border-right: 1px solid var(--vgs-line);
	text-align: center;
}

body.bbpress #bbpress-forums .bbp-reply-author .bbp-author-avatar img,
body.bbpress #bbpress-forums .bbp-reply-author img.avatar {
	display: inline-block;
	width: 56px;
	height: 56px;
	border-radius: 50%;
}

body.bbpress #bbpress-forums .bbp-author-name {
	display: block;
	margin-top: 8px;
	color: var(--vgs-ink);
	font-size: .82rem;
	font-weight: 700;
}

body.bbpress #bbpress-forums .bbp-reply-author br { display: none; }

body.bbpress #bbpress-forums .bbp-reply-content {
	grid-column: 2;
	width: auto !important;
	float: none !important;
	background: #fff;
	padding: 20px 26px;
	color: #2a3750;
	font-size: .96rem;
	line-height: 1.75;
}

body.bbpress #bbpress-forums .bbp-reply-content p:last-child { margin-bottom: 0; }

body.bbpress #bbpress-forums .bbp-reply-content blockquote {
	margin: 1.2em 0;
	padding: 14px 18px;
	background: var(--vgs-sky);
	border-left: 3px solid var(--vgs-blue);
	border-radius: 0 8px 8px 0;
}

/* ---------------------------------------------------------------
   Notices, forms, pagination
--------------------------------------------------------------- */
body.bbpress #bbpress-forums .bbp-template-notice {
	margin: 0 0 18px;
	padding: 13px 16px;
	background: var(--vgs-sky);
	border: 1px solid var(--vgs-sky-2);
	border-left: 4px solid var(--vgs-blue);
	border-radius: 10px;
	color: var(--vgs-body);
}

body.bbpress #bbpress-forums .bbp-template-notice p {
	margin: 0;
	font-size: .84rem;
}

body.bbpress #bbpress-forums .bbp-template-notice a { font-weight: 600; }

body.bbpress #bbpress-forums .bbp-pagination {
	margin: 18px 0;
}

body.bbpress #bbpress-forums .bbp-pagination-links,
body.bbpress #bbpress-forums .bbp-pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

body.bbpress #bbpress-forums .bbp-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border: 1px solid var(--vgs-line);
	border-radius: 8px;
	background: #fff;
	color: var(--vgs-ink);
	font-size: .78rem;
	font-weight: 600;
}

body.bbpress #bbpress-forums .bbp-pagination .page-numbers.current {
	background: var(--vgs-blue);
	border-color: var(--vgs-blue);
	color: #fff;
}

body.bbpress #bbpress-forums .bbp-form {
	margin: 24px 0 0;
	padding: 22px;
	background: #fff;
	border: 1px solid var(--vgs-line);
	border-radius: 14px;
}

body.bbpress #bbpress-forums .bbp-form legend {
	color: var(--vgs-ink);
	font-family: var(--vgs-font-display);
	font-size: 1.3rem;
	font-weight: 700;
	padding: 0 8px;
}

body.bbpress #bbpress-forums .bbp-form label {
	display: block;
	margin-bottom: 6px;
	color: var(--vgs-ink);
	font-size: .76rem;
	font-weight: 700;
	letter-spacing: .04em;
}

body.bbpress #bbpress-forums .bbp-form input[type="text"],
body.bbpress #bbpress-forums .bbp-form input[type="search"],
body.bbpress #bbpress-forums .bbp-form textarea,
body.bbpress #bbpress-forums .bbp-form select {
	width: 100%;
	padding: 10px 13px;
	border: 1px solid var(--vgs-line);
	border-radius: 9px;
	background: #fff;
	color: var(--vgs-ink);
	font-size: .9rem;
}

body.bbpress #bbpress-forums .bbp-form input:focus,
body.bbpress #bbpress-forums .bbp-form textarea:focus {
	border-color: var(--vgs-blue);
	outline: none;
	box-shadow: 0 0 0 3px rgba(31, 94, 255, .12);
}

body.bbpress #bbpress-forums .bbp-form .bbp-submit-wrapper {
	margin-top: 14px;
	float: none;
	text-align: right;
}

body.bbpress #bbpress-forums .bbp-form .button,
body.bbpress #bbpress-forums .bbp-form button[type="submit"],
body.bbpress #bbpress-forums .bbp-form input[type="submit"],
body.bbpress #bbpress-forums #bbp_topic_submit,
body.bbpress #bbpress-forums #bbp_reply_submit {
	padding: 11px 22px;
	border: 0;
	border-radius: 9px;
	background: var(--vgs-blue);
	color: #fff;
	font-size: .74rem;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

body.bbpress #bbpress-forums .bbp-form .button:hover,
body.bbpress #bbpress-forums #bbp_topic_submit:hover,
body.bbpress #bbpress-forums #bbp_reply_submit:hover {
	background: var(--vgs-blue-600);
}

body.bbpress .bbp-topic-tags {
	margin: 18px 0;
	color: var(--vgs-muted);
	font-size: .76rem;
}

/* ---------------------------------------------------------------
   Registration page (Youzify Membership)
--------------------------------------------------------------- */
body.registration {
	background: #f4f8ff;
}

body.registration .youzify-membership {
	padding: 46px 20px 64px;
}

body.registration .youzify-membership-page-box {
	max-width: 1100px;
	margin: 0 auto;
}

body.registration .youzify-membership-form {
	width: 100% !important;
	max-width: 660px !important;
	margin: 0 auto;
	background: #fff;
	border: 1px solid var(--vgs-line);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 34px 64px -44px rgba(7, 20, 47, .55);
}

body.registration .youzify-membership-form-header { margin: 0; }

body.registration .youzify-membership-form-cover {
	display: flex;
	align-items: center;
	min-height: 190px;
	height: auto;
	padding: 28px 32px;
	background-color: #0b1e42;
	background-image:
		radial-gradient(600px 260px at 85% 0%, rgba(31, 94, 255, .7), transparent 65%),
		linear-gradient(135deg, #07142f 0%, #0f2e6e 60%, #1f5eff 100%) !important;
	background-size: cover;
}

body.registration .form-cover-title {
	position: static !important;
	top: auto !important;
	right: auto !important;
	bottom: auto !important;
	left: auto !important;
	width: 100%;
	margin: 0;
	padding: 0 !important;
	background: transparent !important;
	color: #fff;
	font-family: var(--vgs-font-display) !important;
	font-size: 2.15rem !important;
	font-weight: 700;
	letter-spacing: .05em;
	line-height: 1;
	text-transform: uppercase;
}

body.registration .form-cover-title::after {
	content: "Join the conversation — it's free.";
	display: block;
	margin-top: 6px;
	color: rgba(255, 255, 255, .72);
	font-family: var(--vgs-font-body);
	font-size: .78rem;
	font-weight: 500;
	letter-spacing: .02em;
	text-transform: none;
}

body.registration #register-page {
	padding: 26px 32px 32px;
	font-family: var(--vgs-font-body) !important;
}

body.registration .youzify-membership-form input,
body.registration .youzify-membership-form label,
body.registration .youzify-membership-form legend,
body.registration .youzify-membership-form button,
body.registration .youzify-membership-form .youzify-membership-link-button {
	font-family: var(--vgs-font-body) !important;
}

body.registration .youzify-membership-form-note,
body.registration .youzify-membership-terms-note {
	margin: 18px 0 4px;
	color: var(--vgs-muted);
	font-size: .78rem;
	line-height: 1.6;
	text-align: left;
}

body.registration .youzify-membership-terms-note a {
	color: var(--vgs-blue-600);
	text-decoration: underline;
	text-underline-offset: 2px;
}

body.registration .youzify-membership-section-title {
	margin: 24px 0 16px;
	padding: 0 0 8px !important;
	background: transparent !important;
	border-bottom: 1px solid var(--vgs-line);
	text-align: left !important;
}

body.registration .youzify-membership-section-title::before,
body.registration .youzify-membership-section-title::after {
	display: none !important;
}

body.registration .youzify-membership-section-title span {
	padding: 0 !important;
	background: transparent !important;
	color: var(--vgs-ink) !important;
	font-family: var(--vgs-font-display) !important;
	font-size: 1.2rem !important;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
}

body.registration #register-page > label,
body.registration #register-page .register-section label {
	display: block;
	margin: 14px 0 6px;
	color: var(--vgs-ink);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .02em;
}

body.registration .bp-required-field-label,
body.registration #register-page .bp-required-field-label {
	display: inline-block;
	margin-left: 5px;
	padding: 2px 6px;
	border-radius: 4px;
	background: var(--vgs-sky) !important;
	color: var(--vgs-blue-700) !important;
	font-size: .56rem !important;
	font-weight: 700 !important;
	letter-spacing: .1em;
	text-transform: uppercase;
	vertical-align: middle;
}

body.registration #register-page input[type="text"],
body.registration #register-page input[type="email"],
body.registration #register-page input[type="password"] {
	width: 100%;
	height: 46px;
	padding: 0 14px;
	border: 1px solid var(--vgs-line);
	border-radius: 9px;
	background: #fff;
	color: var(--vgs-ink);
	font-size: .92rem;
}

body.registration #register-page input:focus {
	border-color: var(--vgs-blue);
	outline: none;
	box-shadow: 0 0 0 3px rgba(31, 94, 255, .12);
}

body.registration #register-page .field-visibility-settings-notoggle,
body.registration #register-page .field-visibility-settings-toggle {
	display: none;
}

body.registration #register-page .fieldset {
	margin-bottom: 6px;
}

body.registration #register-page .editfield fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}

body.registration #register-page .editfield legend {
	margin: 0 0 6px;
	padding: 0;
}

body.registration #register-page legend {
	margin-bottom: 6px;
	color: var(--vgs-ink);
	font-size: .78rem;
	font-weight: 700;
}

body.registration #register-page h2 {
	margin: 20px 0 10px;
	color: var(--vgs-ink) !important;
	font-family: var(--vgs-font-display);
	font-size: 1.25rem !important;
	letter-spacing: .03em;
	text-transform: uppercase;
}

body.registration #pass-strength-result {
	margin-top: 6px;
	padding: 7px 10px;
	border-radius: 6px;
	font-size: .72rem;
	font-weight: 600;
}

body.registration .youzify-membership-form-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 16px 0 0;
}

body.registration .youzify-membership-form-actions:empty { display: none; }

body.registration .youzify-membership-submit-item button {
	width: 100%;
	height: 50px;
	padding: 0 20px;
	border: 0;
	border-radius: 10px;
	background: var(--vgs-blue);
	color: #fff;
	font-size: .8rem;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	transition: background .18s ease;
}

body.registration .youzify-membership-submit-item button:hover {
	background: var(--vgs-blue-600);
}

body.registration .youzify-membership-link-button,
body.registration .youzify-membership-link-item .youzify-membership-link-button {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 46px;
	border: 1px solid var(--vgs-line) !important;
	border-radius: 10px;
	background: #fff !important;
	color: var(--vgs-blue-700) !important;
	font-size: .76rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

body.registration .youzify-membership-link-button:hover {
	background: var(--vgs-sky);
	border-color: var(--vgs-sky-2);
}

/* ---------------------------------------------------------------
   Responsive
--------------------------------------------------------------- */
@media (max-width: 960px) {
	.forum-hero {
		grid-template-columns: 1fr;
		padding: 28px;
	}

	.forum-hero__stats {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.forum-hero--inner .forum-hero__stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	body.bbpress #bbpress-forums .bbp-forums > .bbp-body {
		grid-template-columns: 1fr;
	}

	body.bbpress #bbpress-forums .bbp-replies > .bbp-body > div[class*="loop-item-"] {
		grid-template-columns: 1fr;
	}

	body.bbpress #bbpress-forums .bbp-reply-author {
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 14px 18px;
		border-right: 0;
		border-bottom: 1px solid var(--vgs-line);
		text-align: left;
	}

	body.bbpress #bbpress-forums .bbp-reply-author .bbp-author-avatar img,
	body.bbpress #bbpress-forums .bbp-reply-author img.avatar {
		width: 40px;
		height: 40px;
	}

	body.bbpress #bbpress-forums .bbp-author-name {
		margin-top: 0;
	}

	body.bbpress #bbpress-forums .bbp-reply-content {
		padding: 18px;
	}
}

@media (max-width: 640px) {
	body.bbpress .youzify-page-main-content {
		padding: 22px 18px 46px;
	}

	.forum-hero {
		padding: 22px 20px;
		border-radius: 14px;
	}

	.forum-hero h1 { font-size: 1.9rem; }

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

	.forum-stat { min-width: 0; }

	.forum-hero__actions .btn {
		flex: 1 1 auto;
		justify-content: center;
	}

	body.bbpress #bbpress-forums .bbp-search-form form > div {
		flex-wrap: nowrap;
	}

	body.bbpress #bbpress-forums #bbp_search_submit {
		padding: 9px 14px;
		font-size: .66rem;
	}

	body.bbpress #bbpress-forums .youzify-bbp-forum-freshness,
	body.bbpress #bbpress-forums .bbp-topic-freshness {
		justify-content: flex-start !important;
		flex: 1 1 100% !important;
		width: 100% !important;
		margin-top: 4px;
		padding-top: 10px;
		border-top: 1px solid #eef2fa;
	}

	body.bbpress .youzify-bbp-freshness-data { width: 100%; }
	body.bbpress .youzify-bbp-freshness-content { text-align: left; }

	body.bbpress #bbpress-forums #bbp_search {
		width: auto !important;
		flex: 1 1 auto;
	}

	body.bbpress #bbpress-forums #bbp_search_submit {
		width: auto !important;
		flex: 0 0 auto;
	}

	.forum-search button {
		padding: 9px 14px;
		font-size: .66rem;
	}

	body.bbpress .youzify-forums-forum-item,
	body.bbpress .youzify-forums-topic-item {
		align-items: center;
	}

	body.bbpress .youzify-forums-forum-head,
	body.bbpress .youzify-forums-topic-head,
	body.bbpress .youzify-forums-forum-title,
	body.bbpress .youzify-forums-topic-title {
		text-align: left !important;
	}

	body.bbpress .youzify-forums-forum-head,
	body.bbpress .youzify-forums-topic-head {
		flex: 1;
		min-width: 0;
	}

	body.bbpress .youzify-bbp-freshness-data {
		align-items: flex-start;
		width: 100%;
	}

	body.bbpress .youzify-bbp-freshness-content {
		width: auto !important;
		flex: 1;
		min-width: 0;
		text-align: left;
	}

	body.bbpress .youzify-bbp-freshness-content::before {
		white-space: nowrap;
	}

	body.registration .youzify-membership {
		padding: 24px 14px 46px;
	}

	body.registration .youzify-membership-form-cover {
		min-height: 155px;
		padding: 22px;
	}

	body.registration .form-cover-title { font-size: 1.7rem; }

	body.registration #register-page {
		padding: 20px 20px 24px;
	}
}
