/* ==========================================================================
   Authoria - BuddyPress High-End Design System & Surgical Overrides
   Targeted fixes for Profile Cover, Post Form, Search, and Dropdowns
   ========================================================================== */


/* ==========================================================================
   BuddyPress High-End Design System & Overrides (Authoria Theme)
   ========================================================================== */

/* BP Container Layout */
.buddypress-layout-container {
	max-width: var(--container-width);
	width: 100%;
	margin: 0 auto;
	padding: 40px 24px 80px;
	box-sizing: border-box;
}

#buddypress .subnav-filters>*,
#buddypress #subnav-filters>* {
	display: flex;
	align-items: center;
}

.bp-container-card {
	background: var(--bg-surface);
	border-radius: 20px;
	border: 1px solid var(--border-color);
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
	padding: 48px;
	box-sizing: border-box;
	max-width: 100%;
	overflow: hidden;
}

@media (max-width: 768px) {
	.buddypress-layout-container {
		padding: 16px 12px 40px !important;
	}

	.bp-container-card {
		padding: 20px 14px !important;
		border-radius: 16px !important;
	}

	.bp-page-header {
		margin-bottom: 20px !important;
		padding-bottom: 16px !important;
	}

	.bp-page-title {
		font-size: 1.5rem !important;
	}
}

@media (max-width: 480px) {
	.buddypress-layout-container {
		padding: 12px 8px 30px !important;
	}

	.bp-container-card {
		padding: 16px 10px !important;
		border-radius: 12px !important;
	}
}

/* BP Page Header */
.bp-page-header {
	margin-bottom: 36px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--border-color);
}

.bp-page-title {
	font-family: var(--font-serif);
	font-size: 2.2rem;
	font-weight: 700;
	color: var(--text-main);
	letter-spacing: -0.02em;
	margin: 0;
}

/* Global #buddypress Container */
#buddypress {
	font-family: var(--font-ui) !important;
	font-size: 0.95rem;
	color: var(--text-main);
	line-height: 1.6;
	max-width: 100% !important;
	box-sizing: border-box !important;
	overflow-wrap: break-word !important;
	word-break: break-word !important;
}

#buddypress *,
#buddypress *::before,
#buddypress *::after {
	box-sizing: border-box !important;
}

#buddypress img,
#buddypress video,
#buddypress iframe,
#buddypress embed,
#buddypress object {
	max-width: 100% !important;
	height: auto;
}

/* ---- BuddyPress Navigation & Tabs (Pill Style) ---- */
#buddypress .bp-navs,
#buddypress nav.bp-navs,
#buddypress div.item-list-tabs,
#buddypress #subnav {
	background: transparent;
	margin-bottom: 28px;
	border: none;
}

#buddypress .bp-navs ul,
#buddypress div.item-list-tabs ul,
#buddypress #subnav ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 6px;
	margin: 0;
	background: var(--bg-body);
	border: 1px solid var(--border-color);
	border-radius: 14px;
}

#buddypress .bp-navs li,
#buddypress div.item-list-tabs li,
#buddypress #subnav li {
	margin: 0;
	padding: 0;
}

#buddypress .bp-navs li a,
#buddypress div.item-list-tabs li a,
#buddypress #subnav li a {
	display: inline-flex;
	align-items: center;
	padding: 10px 20px;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--text-secondary);
	text-decoration: none;
	border-radius: 10px;
	border: none;
	background: transparent;
	transition: all 0.2s ease;
	white-space: nowrap;
}

#buddypress .bp-navs li a:hover,
#buddypress div.item-list-tabs li a:hover,
#buddypress #subnav li a:hover {
	color: var(--accent-primary);
	background: rgba(79, 70, 229, 0.06);
}

#buddypress .bp-navs li.current a,
#buddypress .bp-navs li.selected a,
#buddypress div.item-list-tabs li.current a,
#buddypress div.item-list-tabs li.selected a {
	color: #FFFFFF !important;
	background: var(--accent-primary) !important;
	box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
	font-weight: 600;
}

#buddypress .bp-navs li .count,
#buddypress div.item-list-tabs li .count,
#buddypress .bp-navs li a span,
#buddypress div.item-list-tabs li a span {
	background: rgba(15, 23, 42, 0.08);
	color: inherit;
	font-size: 0.76rem;
	font-weight: 700;
	padding: 2px 9px;
	border-radius: 9999px;
	margin-left: 8px;
}

#buddypress .bp-navs li.current a .count,
#buddypress div.item-list-tabs li.current a .count {
	background: rgba(255, 255, 255, 0.25);
	color: #FFFFFF;
}

/* ---- High-End Form Inputs & Controls ---- */
#buddypress input[type="text"],
#buddypress input[type="email"],
#buddypress input[type="password"],
#buddypress input[type="url"],
#buddypress input[type="search"],
#buddypress textarea,
#buddypress select {
	font-family: var(--font-ui);
	font-size: 0.92rem;
	padding: 12px 16px;
	border: 1px solid var(--border-color);
	border-radius: 12px;
	background: var(--bg-body);
	color: var(--text-main);
	width: 100%;
	max-width: 100%;
	transition: all 0.2s ease;
	box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.02);
}

#buddypress input[type="text"]:focus,
#buddypress input[type="email"]:focus,
#buddypress input[type="password"]:focus,
#buddypress textarea:focus,
#buddypress select:focus {
	outline: none;
	border-color: var(--accent-primary);
	background: #FFFFFF;
	box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

#buddypress label {
	display: block;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--text-main);
	margin-bottom: 8px;
}

#buddypress .field-visibility-settings-toggle,
#buddypress .field-visibility-settings {
	font-size: 0.82rem;
	color: var(--text-muted);
	margin-top: 6px;
}

/* ---- Modern Buttons & Actions ---- */
#buddypress input[type="submit"],
#buddypress input[type="button"],
#buddypress button[type="submit"],
#buddypress .generic-button a,
#buddypress a.button,
#buddypress .btn,
#buddypress submit {
	font-family: var(--font-ui);
	font-size: 0.9rem;
	font-weight: 600;
	padding: 12px 28px;
	border-radius: 12px;
	border: none;
	cursor: pointer;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: all 0.2s ease;
	background: linear-gradient(135deg, var(--accent-primary) 0%, #6366F1 100%);
	color: #FFFFFF !important;
	box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
}

#buddypress input[type="submit"]:hover,
#buddypress input[type="button"]:hover,
#buddypress button[type="submit"]:hover,
#buddypress .generic-button a:hover,
#buddypress a.button:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
	color: #FFFFFF !important;
}

#buddypress .generic-button.secondary a,
#buddypress a.button.secondary,
#buddypress a.button.outline {
	background: var(--bg-body) !important;
	color: var(--text-secondary) !important;
	border: 1px solid var(--border-color) !important;
	box-shadow: none !important;
}

#buddypress .generic-button.secondary a:hover,
#buddypress a.button.secondary:hover {
	background: var(--bg-muted) !important;
	color: var(--accent-primary) !important;
	border-color: var(--accent-subtle) !important;
}

#buddypress .caps-warning {
	display: none !important;

}

/* ---- Registration Page (`/registracziya/`) ---- */
#buddypress #register-page,
#buddypress .register-page,
.buddypress #signup_form,
#buddypress #signup-form,
.signup-form {
	max-width: 1000px;
	margin: 0 auto;
	box-sizing: border-box;
}

#buddypress .layout-wrap {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 28px !important;
	align-items: stretch !important;
	margin-bottom: 28px !important;
}

#buddypress .register-section,
#buddypress #basic-details-section,
#buddypress #profile-details-section {
	background: #FFFFFF !important;
	border: 1px solid var(--border-color, #E2E8F0) !important;
	border-radius: 20px !important;
	padding: 36px 30px !important;
	margin-bottom: 0 !important;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04) !important;
	display: flex !important;
	flex-direction: column !important;
	transition: all 0.25s ease !important;
	box-sizing: border-box !important;
}

#buddypress .register-section:hover,
#buddypress #basic-details-section:hover,
#buddypress #profile-details-section:hover {
	box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07) !important;
	border-color: rgba(79, 70, 229, 0.25) !important;
}

#buddypress .register-section h2,
#buddypress #register-page h2,
#buddypress .register-section-title,
#buddypress #basic-details-section h2,
#buddypress #profile-details-section h2,
#buddypress .bp-heading {
	font-family: var(--font-serif, 'Playfair Display', Georgia, serif) !important;
	font-size: 1.45rem !important;
	font-weight: 700 !important;
	color: #0F172A !important;
	margin: 0 0 24px 0 !important;
	padding-bottom: 14px !important;
	border-bottom: 2px solid #F1F5F9 !important;
	position: relative !important;
	line-height: 1.3 !important;
}

#buddypress .register-section h2::after,
#buddypress #basic-details-section h2::after,
#buddypress #profile-details-section h2::after,
#buddypress .bp-heading::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 44px;
	height: 2px;
	background: var(--accent-primary, #4F46E5);
	border-radius: 2px;
}

#buddypress .register-section label,
#buddypress .register-section legend {
	font-family: var(--font-ui, 'Inter', sans-serif) !important;
	font-size: 0.88rem !important;
	font-weight: 600 !important;
	color: #334155 !important;
	margin-bottom: 8px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 8px !important;
	width: 100% !important;
}

#buddypress .register-section fieldset {
	border: none !important;
	margin: 0 !important;
	padding: 0 !important;
	min-inline-size: 0 !important;
}

#buddypress .bp-required-field-label {
	font-size: 0.76rem !important;
	font-weight: 600 !important;
	color: #EF4444 !important;
	background: #FEF2F2 !important;
	padding: 2px 8px !important;
	border-radius: 6px !important;
	border: 1px solid #FEE2E2 !important;
	float: right !important;
	letter-spacing: 0 !important;
}

#buddypress .register-section input[type="text"],
#buddypress .register-section input[type="email"],
#buddypress .register-section input[type="password"] {
	font-family: var(--font-ui, 'Inter', sans-serif) !important;
	font-size: 0.94rem !important;
	padding: 13px 16px !important;
	border: 1.5px solid var(--border-color, #E2E8F0) !important;
	border-radius: 12px !important;
	background: var(--bg-body, #F8FAFC) !important;
	color: #0F172A !important;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	transition: all 0.2s ease !important;
	margin-bottom: 18px !important;
	box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.02) !important;
}

#buddypress .register-section input[type="text"]:focus,
#buddypress .register-section input[type="email"]:focus,
#buddypress .register-section input[type="password"]:focus {
	outline: none !important;
	border-color: var(--accent-primary, #4F46E5) !important;
	background: #FFFFFF !important;
	box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12) !important;
}

#buddypress .register-section .editfield {
	margin-bottom: 20px !important;
}

/* Password wrapper & eye toggle button */
#buddypress .user-pass1-wrap {
	margin-bottom: 16px !important;
}

#buddypress .wp-pwd {
	position: relative !important;
	width: 100% !important;
}

#buddypress .password-input-wrapper {
	position: relative !important;
	display: flex !important;
	align-items: center !important;
	width: 100% !important;
}

#buddypress .password-input-wrapper input.password-entry,
#buddypress .password-input-wrapper input#pass1 {
	padding-right: 48px !important;
	margin-bottom: 0 !important;
}

#buddypress .password-input-wrapper button.wp-hide-pw,
#buddypress .password-input-wrapper .button.wp-hide-pw {
	position: absolute !important;
	right: 6px !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	width: 36px !important;
	height: 36px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 !important;
	margin: 0 !important;
	cursor: pointer !important;
	color: #64748B !important;
	border-radius: 8px !important;
	transition: all 0.2s ease !important;
}

#buddypress .password-input-wrapper button.wp-hide-pw:hover,
#buddypress .password-input-wrapper .button.wp-hide-pw:hover {
	color: var(--accent-primary, #4F46E5) !important;
	background: rgba(79, 70, 229, 0.08) !important;
}

#buddypress .password-input-wrapper button.wp-hide-pw .dashicons {
	font-size: 18px !important;
	width: 18px !important;
	height: 18px !important;
	line-height: 18px !important;
	display: inline-block !important;
}

/* Caps lock warning (hidden) */
#buddypress #caps-warning,
#buddypress .caps-warning,
#caps-warning,
.caps-warning {
	display: none !important;
}

/* Password strength indicator badge */
#buddypress .bp-password-verify,
#buddypress #pass-strength-result {
	font-size: 0.82rem !important;
	font-weight: 600 !important;
	padding: 8px 16px !important;
	border-radius: 10px !important;
	margin-top: 10px !important;
	display: block !important;
	width: 100% !important;
	text-align: center !important;
	box-sizing: border-box !important;
	background: #F1F5F9 !important;
	color: #475569 !important;
	border: 1px solid #E2E8F0 !important;
	transition: all 0.25s ease !important;
}

#buddypress #pass-strength-result.strong {
	background: #ECFDF5 !important;
	color: #065F46 !important;
	border-color: #A7F3D0 !important;
}

#buddypress #pass-strength-result.good {
	background: #F0F9FF !important;
	color: #0369A1 !important;
	border-color: #BAE6FD !important;
}

#buddypress #pass-strength-result.bad {
	background: #FFFBEB !important;
	color: #92400E !important;
	border-color: #FDE68A !important;
}

#buddypress #pass-strength-result.short,
#buddypress #pass-strength-result.empty {
	background: #FEF2F2 !important;
	color: #991B1B !important;
	border-color: #FECACA !important;
}

/* Password indicator hint callout */
#buddypress p.description.indicator-hint,
#buddypress .indicator-hint {
	background: #F8FAFC !important;
	border: 1px solid #E2E8F0 !important;
	border-left: 4px solid var(--accent-primary, #4F46E5) !important;
	border-radius: 8px !important;
	padding: 12px 16px !important;
	font-size: 0.82rem !important;
	line-height: 1.55 !important;
	color: #64748B !important;
	margin: 14px 0 0 0 !important;
}

/* Weak password checkbox */
#buddypress .pw-weak {
	margin-top: 10px !important;
	font-size: 0.85rem !important;
	color: #475569 !important;
}

#buddypress .pw-weak label {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	cursor: pointer !important;
	font-weight: 500 !important;
}

#buddypress .pw-weak input[type="checkbox"] {
	width: auto !important;
	margin: 0 !important;
	cursor: pointer !important;
}

/* Field visibility pill badge */
#buddypress .field-visibility-settings-notoggle,
#buddypress .field-visibility-settings-header,
#buddypress .field-visibility-settings-toggle {
	font-size: 0.82rem !important;
	color: #64748B !important;
	background: #F8FAFC !important;
	border: 1px solid #E2E8F0 !important;
	padding: 8px 14px !important;
	border-radius: 10px !important;
	margin: 8px 0 0 0 !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
}

#buddypress .current-visibility-level {
	color: var(--accent-primary, #4F46E5) !important;
	font-weight: 700 !important;
	background: #EEF2FF !important;
	padding: 2px 8px !important;
	border-radius: 6px !important;
}

/* Fix SVG upload icon on avatar upload page */
.bp-avatar-upload-content svg,
.avatar-crop-management svg {
	max-width: 56px !important;
	max-height: 56px !important;
	height: auto !important;
	display: block;
	margin: 16px auto;
	fill: var(--accent-primary);
}

/* Registration submit button container & CTA */
#buddypress #signup_submit_wrapper,
#buddypress .signup-form .submit,
#buddypress #signup-form .submit,
#buddypress .register-page .submit {
	margin-top: 36px !important;
	text-align: center !important;
	width: 100% !important;
	display: flex !important;
	justify-content: center !important;
}

#buddypress #signup_submit_wrapper input[type="submit"],
#buddypress .submit input[type="submit"]#submit,
#buddypress .submit input[type="submit"] {
	font-family: var(--font-ui, 'Inter', sans-serif) !important;
	font-size: 1.05rem !important;
	font-weight: 600 !important;
	padding: 16px 48px !important;
	border-radius: 14px !important;
	border: none !important;
	cursor: pointer !important;
	background: linear-gradient(135deg, var(--accent-primary, #4F46E5) 0%, #6366F1 100%) !important;
	color: #FFFFFF !important;
	box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.4), 0 8px 10px -6px rgba(79, 70, 229, 0.2) !important;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
	letter-spacing: 0.01em !important;
	min-width: 240px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
}

#buddypress #signup_submit_wrapper input[type="submit"]:hover,
#buddypress .submit input[type="submit"]#submit:hover,
#buddypress .submit input[type="submit"]:hover {
	transform: translateY(-2px) !important;
	box-shadow: 0 16px 32px -5px rgba(79, 70, 229, 0.5), 0 10px 15px -5px rgba(79, 70, 229, 0.3) !important;
	filter: brightness(1.05) !important;
}

#buddypress #signup_submit_wrapper input[type="submit"]:active,
#buddypress .submit input[type="submit"]#submit:active,
#buddypress .submit input[type="submit"]:active {
	transform: translateY(0) !important;
	box-shadow: 0 6px 15px -3px rgba(79, 70, 229, 0.4) !important;
}

@media (max-width: 860px) {
	#buddypress .layout-wrap {
		grid-template-columns: 1fr !important;
		gap: 20px !important;
	}

	#buddypress .register-section,
	#buddypress #basic-details-section,
	#buddypress #profile-details-section {
		padding: 24px 20px !important;
	}

	#buddypress #signup_submit_wrapper input[type="submit"],
	#buddypress .submit input[type="submit"] {
		width: 100% !important;
		min-width: 0 !important;
	}
}

/* ---- Activity Stream (`/aktivnost/`) ---- */


#buddypress .activity-list,
#buddypress ul.activity-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

#buddypress .activity-list li.activity-item {
	background: #FFFFFF;
	border: 1px solid var(--border-color);
	border-radius: 16px;
	padding: 24px;
	margin-bottom: 20px;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

#buddypress .activity-list li.activity-item:hover {
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

#buddypress .activity-avatar {
	float: left;
	margin-right: 18px;
}

#buddypress .activity-avatar a img {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--accent-light);
}

#buddypress .activity-content {
	overflow: hidden;
}

#buddypress .activity-header {
	font-size: 0.92rem;
	color: var(--text-secondary);
	margin-bottom: 10px;
	line-height: 1.5;
}

#buddypress .activity-header a {
	color: var(--text-main);
	font-weight: 700;
	text-decoration: none;
	transition: color 0.2s ease;
}

#buddypress .activity-header a:hover {
	color: var(--accent-primary);
}

#buddypress .activity-header .time-since {
	color: var(--text-muted);
	font-size: 0.82rem;
	font-weight: 400;
}

#buddypress .activity-inner {
	font-size: 0.96rem;
	line-height: 1.65;
	color: var(--text-main);
	margin: 8px 0;
	padding: 0;
	background: transparent;
	border: none;
}

#buddypress .activity-inner blockquote {
	border-left: 3px solid var(--accent-primary);
	padding: 10px 16px;
	margin: 10px 0;
	background: var(--bg-body);
	border-radius: 8px;
}

#buddypress .activity-meta {
	margin-top: 14px;
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	border-top: 1px solid var(--border-color);
	padding-top: 12px;
}

#buddypress .activity-meta a {
	font-size: 0.84rem;
	font-weight: 600;
	color: var(--text-secondary);
	text-decoration: none;
	padding: 6px 14px;
	border-radius: 8px;
	background: var(--bg-body);
	transition: all 0.2s ease;
}

#buddypress .activity-meta a:hover {
	color: var(--accent-primary);
	background: var(--accent-light);
}

/* ---- Members & Authors Directory (`/uchastniki/` / `/authors/`) ---- */
#buddypress #members-list,
#buddypress ul.members-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
	gap: 24px;
}

#buddypress #members-list li,
#buddypress ul.members-list li {
	background: #FFFFFF;
	border: 1px solid var(--border-color);
	border-radius: 18px;
	padding: 28px 24px;
	text-align: center;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
	transition: all 0.25s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
}

#buddypress #members-list li:hover,
#buddypress ul.members-list li:hover {
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
	transform: translateY(-4px);
	border-color: var(--accent-subtle);
}

#buddypress #members-list li .item-avatar,
#buddypress ul.members-list li .item-avatar {
	margin-bottom: 16px;
}

#buddypress #members-list li .item-avatar a img,
#buddypress ul.members-list li .item-avatar a img {
	width: 88px;
	height: 88px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid var(--accent-light);
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
	transition: transform 0.2s ease;
}

#buddypress #members-list li:hover .item-avatar a img {
	transform: scale(1.05);
}

#buddypress #members-list li .item .item-title,
#buddypress ul.members-list li .item .item-title {
	font-weight: 700;
	font-size: 1.05rem;
	margin-bottom: 6px;
}

#buddypress #members-list li .item .item-title a {
	color: var(--text-main);
	text-decoration: none;
	transition: color 0.2s ease;
}

#buddypress #members-list li .item .item-title a:hover {
	color: var(--accent-primary);
}

#buddypress #members-list li .item .item-meta,
#buddypress ul.members-list li .item .item-meta {
	font-size: 0.82rem;
	color: var(--text-muted);
	margin-bottom: 16px;
}

#buddypress #members-list li .action,
#buddypress ul.members-list li .action {
	margin-top: auto;
	width: 100%;
}

#buddypress #members-list li .action a,
#buddypress ul.members-list li .action a {
	width: 100%;
	padding: 10px 16px;
	font-size: 0.85rem;
}

/* ---- Groups / Literary Clubs Directory (`/kluby/` / `/groups/`) ---- */
#buddypress #groups-list,
#buddypress ul.groups-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
}

#buddypress #groups-list li,
#buddypress ul.groups-list li {
	background: #FFFFFF;
	border: 1px solid var(--border-color);
	border-radius: 18px;
	padding: 28px;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
	transition: all 0.25s ease;
}

#buddypress #groups-list li:hover {
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
	transform: translateY(-4px);
}

/* ---- Single User Profile Header (`/members/name/`) ---- */
#buddypress #item-header {
	background: var(--bg-body);
	border: 1px solid var(--border-color);
	border-radius: 20px;
	padding: 32px;
	margin-bottom: 32px;
	display: flex;
	align-items: center;
}

#buddypress #item-header-avatar a img,
#buddypress #item-header .avatar {
	width: 110px;
	height: 110px;
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid #FFFFFF;
	box-shadow: 0 6px 20px rgba(15, 23, 42, 0.1);
}

#buddypress #item-header-content h2,
#buddypress #item-header-content .user-nicename {
	font-family: var(--font-serif);
	font-size: 1.8rem;
	font-weight: 700;
	color: var(--text-main);
	margin-bottom: 6px;
}

#buddypress #item-header-content .item-meta {
	font-size: 0.88rem;
	color: var(--text-muted);
}

/* ---- Directory Search Bars ---- */
#buddypress .dir-search,
#buddypress .bp-search,
#buddypress div.dir-search {
	margin-bottom: 24px;
	float: none;
}

#buddypress .dir-search form,
#buddypress .bp-search form {
	display: flex;
	gap: 10px;
}

#buddypress .dir-search input[type="search"],
#buddypress .dir-search input[type="text"],
#buddypress .bp-search input[type="search"] {
	flex: 1;
	padding: 12px 20px;
	border: 1px solid var(--border-color);
	border-radius: 12px;
	font-size: 0.92rem;
	background: var(--bg-body);
}

#buddypress .dir-search input[type="submit"],
#buddypress .bp-search input[type="submit"] {
	padding: 12px 24px;
}

/* ---- Pagination Controls ---- */
#buddypress .bp-pagination,
#buddypress .pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 24px;
	font-size: 0.88rem;
	color: var(--text-muted);
	border-top: 1px solid var(--border-color);
	margin-top: 32px;
}

/* ---- Notifications & Messages ---- */
#buddypress .bp-feedback {
	background: var(--accent-light);
	border: 1px solid var(--accent-subtle);
	border-radius: 12px;
	padding: 16px 24px;
	margin-bottom: 28px;
	display: flex;
	align-items: center;
	gap: 14px;
}

#buddypress .bp-feedback p {
	margin: 0;
	font-size: 0.92rem;
	font-weight: 500;
	color: var(--accent-primary);
}

/* BP Container Layout */
.buddypress-layout-container {
	max-width: var(--container-width, 1240px);
	margin: 0 auto;
	padding: 40px 24px 80px;
}

.buddypress-wrap .bp-feedback span.bp-icon {
	width: 40px;
	height: 40px;
	border-radius: 50px;
}

.activity-update-form {
	border: 0px solid #ccc;
	box-shadow: inset 0 0 0px #eee;
	margin: 0px 0;
}

.bp-container-card {
	background: var(--bg-surface, #FFFFFF);
	border-radius: 20px;
	border: 1px solid var(--border-color, #E2E8F0);
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
	padding: 48px;
}

/* BP Page Header */
.bp-page-header {
	margin-bottom: 36px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--border-color, #E2E8F0);
}

.bp-page-title {
	font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
	font-size: 2.2rem;
	font-weight: 700;
	color: var(--text-main, #0F172A);
	letter-spacing: -0.02em;
	margin: 0;
}

/* Hide duplicate outer title header on single user pages */
body.bp-user .bp-page-header {
	display: none !important;
}

/* Global #buddypress Container */
#buddypress {
	font-family: var(--font-ui, 'Inter', -apple-system, sans-serif) !important;
	font-size: 0.95rem;
	color: var(--text-main, #0F172A);
	line-height: 1.6;
}

/* ==========================================================================
   1. USER PROFILE HEADER SURGICAL FIX (#item-header & Cover Box)
   ========================================================================== */

/* ==========================================================================
   1. STYLISH MODERN USER PROFILE HEADER (COVER BANNER & PROFILE CARD)
   ========================================================================== */

/* Outer Profile Header Card */
#buddypress #cover-image-container,
#buddypress div#cover-image-container,
body.bp-user #buddypress #item-header,
body.bp-user #item-header,
#item-header.users-header {
	display: flex !important;
	flex-direction: column !important;
	position: relative !important;
	width: 100% !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	margin-bottom: 28px !important;
	padding: 0 !important;
	border-radius: 20px !important;
	box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05) !important;
	overflow: hidden !important;
	background: #FFFFFF !important;
	border: 1px solid var(--border-color, #E2E8F0) !important;
	box-sizing: border-box !important;
	float: none !important;
	clear: both !important;
}

body.bp-user #cover-image-container,
#item-header.users-header #cover-image-container {
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	background: transparent !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	position: relative !important;
}

/* User Cover Banner */
body.bp-user #header-cover-image,
#item-header.users-header #header-cover-image,
#header-cover-image {
	display: block !important;
	width: 100% !important;
	height: 180px !important;
	min-height: 180px !important;
	max-height: 180px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	border-radius: 19px 19px 0 0 !important;
	background-size: cover !important;
	background-position: center center !important;
	background-repeat: no-repeat !important;
	position: relative !important;
}

/* User Profile Info Card Below Cover Banner */
body.bp-user #item-header-cover-image,
#item-header.users-header #item-header-cover-image {
	background-color: #FFFFFF !important;
	padding: 0 32px 20px 32px !important;
	display: flex !important;
	flex-direction: row !important;
	align-items: flex-start;
	justify-content: space-between !important;
	gap: 20px !important;
	width: 100% !important;
	box-sizing: border-box !important;
	margin: 0 !important;
	border: none !important;
	border-radius: 0 0 20px 20px !important;
	position: relative !important;
	z-index: 2 !important;
	min-height: auto !important;
	height: auto !important;
}

/* Overlapping User Avatar */
body.bp-user #item-header-avatar,
#item-header.users-header #item-header-avatar {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: -52px 0 0 0 !important;
	float: none !important;
	height: auto !important;
	width: auto !important;
	flex-shrink: 0 !important;
	position: relative !important;
	z-index: 3 !important;
}

body.bp-user #item-header-avatar img,
#item-header.users-header #item-header-avatar img {
	width: 104px !important;
	height: 104px !important;
	min-width: 104px !important;
	min-height: 104px !important;
	max-width: 104px !important;
	max-height: 104px !important;
	border-radius: 50% !important;
	object-fit: cover !important;
	border: 4px solid #FFFFFF !important;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12) !important;
	display: block !important;
	margin: 0 !important;
	background: #FFFFFF !important;
}

/* User Info Section */
body.bp-user #item-header-content,
#item-header.users-header #item-header-content {
	flex: 1 !important;
	margin: 10px 0 0 0 !important;
	padding: 0 !important;
	float: none !important;
	width: auto !important;
	position: static !important;
	background: transparent !important;
	border: none !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	gap: 6px !important;
}

/* User Display Name / Nicename */
body.bp-user #item-header-content h2,
body.bp-user #item-header-content .user-nicename,
#item-header.users-header #item-header-content h2,
#item-header.users-header #item-header-content .user-nicename {
	font-family: var(--font-ui, 'Inter', -apple-system, sans-serif) !important;
	font-size: 1.45rem !important;
	font-weight: 700 !important;
	color: #0F172A !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1.25 !important;
	letter-spacing: -0.02em !important;
	background: transparent !important;
	border: none !important;
	text-shadow: none !important;
}

/* Nicename / Activity Subtitle Badge */
body.bp-user #item-header-content span.activity,
body.bp-user #item-header-content p.activity,
body.bp-user #item-header-content .item-meta,
#item-header.users-header #item-header-content .item-meta,
#item-header.users-header #item-header-content span.activity {
	font-size: 0.82rem !important;
	font-weight: 500 !important;
	color: #64748B !important;
	margin: 2px 0 0 0 !important;
	padding: 5px 0px !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	border-radius: 9999px !important;
}

body.bp-user #item-header-content span.activity::before,
#item-header.users-header #item-header-content span.activity::before {
	content: '';
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #10B981;
}

/* Profile Action Buttons */
#buddypress #item-buttons,
#buddypress div#item-buttons,
#buddypress .member-header-actions {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	clear: none !important;
	flex-shrink: 0 !important;
}

#buddypress #item-buttons .generic-button a,
#buddypress #item-buttons button,
#buddypress .member-header-actions a.button,
#buddypress .member-header-actions button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 9px 20px !important;
	font-size: 0.86rem !important;
	font-weight: 600 !important;
	border-radius: 10px !important;
	background: #EEF2FF !important;
	color: #4F46E5 !important;
	border: 1px solid #C7D2FE !important;
	text-decoration: none !important;
	transition: all 0.2s ease !important;
	box-shadow: none !important;
}

#buddypress #item-buttons .generic-button a:hover,
#buddypress #item-buttons button:hover,
#buddypress .member-header-actions a.button:hover {
	background: #4F46E5 !important;
	color: #FFFFFF !important;
	border-color: #4F46E5 !important;
	box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25) !important;
	transform: translateY(-1px) !important;
}

/* Mobile responsive user profile header */
@media (max-width: 768px) {

	body.bp-user #header-cover-image,
	#item-header.users-header #header-cover-image {
		height: 120px !important;
		min-height: 120px !important;
		max-height: 120px !important;
	}

	body.bp-user #item-header-cover-image,
	#item-header.users-header #item-header-cover-image {
		flex-direction: column !important;
		align-items: center !important;
		text-align: center !important;
		padding: 0 20px 20px 20px !important;
	}

	body.bp-user #item-header-avatar,
	#item-header.users-header #item-header-avatar {
		margin-top: -42px !important;
	}

	body.bp-user #item-header-avatar img,
	#item-header.users-header #item-header-avatar img {
		width: 84px !important;
		height: 84px !important;
		min-width: 84px !important;
		min-height: 84px !important;
		border-width: 3.5px !important;
	}

	body.bp-user #item-header-content,
	#item-header.users-header #item-header-content {
		align-items: center !important;
		margin-top: 2px !important;
		width: 100% !important;
	}

	body.bp-user #item-header-content .item-meta,
	#item-header.users-header #item-header-content .item-meta {
		justify-content: center !important;
	}

	#buddypress #item-buttons,
	#buddypress div#item-buttons,
	#buddypress .member-header-actions {
		justify-content: center !important;
		width: 100% !important;
		margin-top: 8px !important;
	}
}

.buddypress-wrap:not(.bp-single-vert-nav) .bp-navs li {
	background: #ffffff00;
}

.activity-update-form {
	padding: 0px 0px 0;
}

/* ==========================================================================
   2. FIX "WHAT'S NEW" POST FORM DOUBLE BORDERS & EXTRA WHITESPACE
   ========================================================================== */
#buddypress #whats-new-form,
#buddypress form#whats-new-form,
#buddypress .activity-post-form,
#buddypress .activity-form {
	display: grid !important;
	grid-template-columns: 48px minmax(0, 1fr) !important;
	column-gap: 16px !important;
	row-gap: 16px !important;
	align-items: start !important;
	background: #FFFFFF !important;
	border: 1px solid var(--border-color, #E2E8F0) !important;
	border-radius: 18px !important;
	padding: 22px 24px !important;
	margin-bottom: 28px !important;
	box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04) !important;
	box-sizing: border-box !important;
	width: 100% !important;
}

#buddypress #whats-new-avatar,
#buddypress div#whats-new-avatar {
	grid-column: 1 !important;
	grid-row: 1 !important;
	float: none !important;
	flex-shrink: 0 !important;
	margin: 0 !important;
	width: 48px !important;
	height: 48px !important;
}

#buddypress #whats-new-avatar img,
#buddypress #whats-new-form .avatar {
	width: 48px !important;
	height: 48px !important;
	min-width: 48px !important;
	min-height: 48px !important;
	max-width: 48px !important;
	max-height: 48px !important;
	border-radius: 50% !important;
	border: 2px solid #FFFFFF !important;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08) !important;
	object-fit: cover !important;
	display: block !important;
	margin: 0 !important;
}

#buddypress #whats-new-content,
#buddypress div#whats-new-content {
	grid-column: 2 !important;
	grid-row: 1 !important;
	width: 100% !important;
	min-width: 0 !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
	overflow: visible !important;
}

#buddypress #whats-new-textarea {
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: visible !important;
}

#buddypress #whats-new,
#buddypress textarea#whats-new {
	width: 100% !important;
	min-height: 84px !important;
	max-height: 240px !important;
	border: 1.5px solid var(--border-color, #CBD5E1) !important;
	border-radius: 12px !important;
	padding: 14px 18px !important;
	font-family: var(--font-ui, 'Inter', sans-serif) !important;
	font-size: 0.95rem !important;
	line-height: 1.5 !important;
	background: #F8FAFC !important;
	color: #0F172A !important;
	box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.02) !important;
	transition: all 0.2s ease !important;
	outline: none !important;
	box-sizing: border-box !important;
	display: block !important;
	resize: vertical !important;
}

#buddypress #whats-new:focus,
#buddypress textarea#whats-new:focus {
	border-color: var(--accent-primary, #4F46E5) !important;
	background: #FFFFFF !important;
	box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12) !important;
}

#buddypress #whats-new-options,
#buddypress form#whats-new-form #whats-new-options {
	grid-column: 1 / -1 !important;
	grid-row: 2 !important;
	margin: 0 !important;
	padding-top: 14px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 12px !important;
	border-top: 1px solid var(--border-color, #E2E8F0) !important;
	clear: both !important;
	width: 100% !important;
	background: transparent !important;
	box-shadow: none !important;
}

#buddypress #whats-new-submit,
#buddypress form#whats-new-form #whats-new-submit {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	margin-left: auto !important;
	margin-top: 0 !important;
	padding: 0 !important;
	float: none !important;
}

#buddypress #whats-new-post-in-box {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	margin: 0 !important;
	float: none !important;
}

/* Align and style "Опубликовать" (Submit) Button in Activity Form */
#buddypress #aw-whats-new-submit,
#buddypress input#aw-whats-new-submit,
#buddypress button#aw-whats-new-submit,
#buddypress #whats-new-submit input[type="submit"],
#buddypress form#whats-new-form input[type="submit"] {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	height: 40px !important;
	padding: 0 22px !important;
	font-family: var(--font-ui, 'Inter', sans-serif) !important;
	font-size: 0.88rem !important;
	font-weight: 600 !important;
	color: #FFFFFF !important;
	border: none !important;
	border-radius: 10px !important;
	background: linear-gradient(135deg, var(--accent-primary, #4F46E5) 0%, #6366F1 100%) !important;
	box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25) !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
	margin: 0 !important;
	float: none !important;
	line-height: 1 !important;
	vertical-align: middle !important;
	white-space: nowrap !important;
	width: auto !important;
	min-width: auto !important;
}

#buddypress #aw-whats-new-submit:hover,
#buddypress input#aw-whats-new-submit:hover,
#buddypress button#aw-whats-new-submit:hover,
#buddypress #whats-new-submit input[type="submit"]:hover,
#buddypress form#whats-new-form input[type="submit"]:hover {
	background: linear-gradient(135deg, #4338CA 0%, #4F46E5 100%) !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35) !important;
	color: #FFFFFF !important;
}

/* Style "Отмена" (Reset) Button */
#buddypress #aw-whats-new-reset,
#buddypress input#aw-whats-new-reset,
#buddypress input[type="reset"]#aw-whats-new-reset,
#buddypress #whats-new-submit input.text-button,
#buddypress .text-button.small {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	height: 40px !important;
	padding: 0 16px !important;
	font-family: var(--font-ui, 'Inter', sans-serif) !important;
	font-size: 0.88rem !important;
	font-weight: 500 !important;
	color: var(--text-muted, #64748B) !important;
	background: transparent !important;
	border: 1px solid transparent !important;
	border-radius: 10px !important;
	box-shadow: none !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
	margin: 0 !important;
	float: none !important;
	line-height: 1 !important;
	white-space: nowrap !important;
	width: auto !important;
}

#buddypress #aw-whats-new-reset:hover,
#buddypress input#aw-whats-new-reset:hover,
#buddypress input[type="reset"]#aw-whats-new-reset:hover {
	color: var(--text-main, #0F172A) !important;
	background: var(--bg-muted, #F1F5F9) !important;
	border-color: var(--border-color, #E2E8F0) !important;
}

/* ==========================================================================
   3. FIX STRAY ARROW & DROPDOWN ALIGNMENT
   ========================================================================== */

/* Eliminate stray pseudo-element arrows under select boxes */
#buddypress div.select-wrap::after,
#buddypress div.select-wrap::before,
#buddypress .select-wrap::after,
#buddypress .select-wrap::before,
#buddypress select::after,
#buddypress select::before,
#buddypress span.select-arrow,
#buddypress .select-arrow {
	display: none !important;
	content: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
}

#buddypress div.select-wrap,
#buddypress .select-wrap {
	position: relative !important;
	display: inline-block !important;
	background: transparent !important;
	border: none !important;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
}

#buddypress select,
#buddypress div.select-wrap select,
#buddypress div.subnav-filters select {
	height: 42px !important;
	padding: 0 32px 0 14px !important;
	border: 1px solid #CBD5E1 !important;
	border-radius: 10px !important;
	background-color: #FFFFFF !important;
	font-size: 0.88rem !important;
	font-family: var(--font-ui, 'Inter', sans-serif) !important;
	color: #334155 !important;
	margin: 0 !important;
	box-shadow: none !important;
	outline: none !important;
	cursor: pointer !important;
	appearance: auto !important;
	-webkit-appearance: auto !important;
	-moz-appearance: auto !important;
}

#buddypress select:focus {
	border-color: #4F46E5 !important;
}


.bp-group-avatar-content.has-cover-image,
.bp-member-avatar-content.has-cover-image {
	width: fit-content;
}

/* ==========================================================================
   4. SEARCH BARS ALIGNMENT
   ========================================================================== */
#buddypress .dir-search,
#buddypress .bp-search,
#buddypress div.dir-search,
#buddypress form.dir-form div.dir-search {
	float: none !important;
	margin: 0 0 0px 0 !important;
	padding: 0 !important;
	border: none !important;
	box-shadow: none !important;
	background: transparent !important;
	clear: both !important;
}

#buddypress .dir-search form,
#buddypress .bp-search form,
#buddypress div.dir-search form {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	background: transparent !important;
	box-shadow: none !important;
	max-width: 460px !important;
}

#buddypress .dir-search form label,
#buddypress .bp-search form label,
#buddypress div.dir-search form label {
	flex: 1 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	background: transparent !important;
	box-shadow: none !important;
	display: flex !important;
}

#buddypress .dir-search input[type="search"],
#buddypress .dir-search input[type="text"],
#buddypress .bp-search input[type="search"],
#buddypress div.dir-search input[type="search"] {
	width: 100% !important;
	height: 44px !important;
	padding: 0 16px !important;
	border: 1px solid #CBD5E1 !important;
	border-radius: 10px !important;
	font-size: 0.9rem !important;
	font-family: var(--font-ui, 'Inter', sans-serif) !important;
	background: #FFFFFF !important;
	color: #0F172A !important;
	margin: 0 !important;
	box-shadow: none !important;
	outline: none !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

#buddypress .dir-search input[type="search"]:focus,
#buddypress .dir-search input[type="text"]:focus,
#buddypress .bp-search input[type="search"]:focus {
	border-color: #4F46E5 !important;
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12) !important;
}

/* Screen reader text clip fix (supports WP standard & BuddyPress Nouveau .bp-screen-reader-text) */
#buddypress .screen-reader-text,
#buddypress .bp-screen-reader-text,
#buddypress .nouveau-search-submit .screen-reader-text,
#buddypress .nouveau-search-submit .bp-screen-reader-text,
#buddypress .dir-search .screen-reader-text,
#buddypress .dir-search .bp-screen-reader-text,
.screen-reader-text,
.bp-screen-reader-text {
	border: 0 !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	height: 1px !important;
	margin: -1px !important;
	overflow: hidden !important;
	padding: 0 !important;
	position: absolute !important;
	width: 1px !important;
	white-space: nowrap !important;
}

#buddypress .subnav-search,
#buddypress div.subnav-search,
.subnav-search {
	display: flex !important;
	align-items: center !important;
	gap: 0px !important;
	margin: 0 !important;
}

#buddypress .dir-search input[type="submit"],
#buddypress .bp-search input[type="submit"],
#buddypress div.dir-search input[type="submit"],
#buddypress .dir-search button[type="submit"],
#buddypress .bp-search button[type="submit"],
#buddypress .nouveau-search-submit,
#buddypress button.nouveau-search-submit,
#buddypress input.nouveau-search-submit,
.nouveau-search-submit {
	height: 44px !important;
	min-height: 44px !important;
	min-width: 44px !important;
	padding: 0 16px !important;
	border-radius: 10px !important;
	margin: 0 !important;
	border: none !important;
	background: #4F46E5 !important;
	color: #FFFFFF !important;
	font-size: 0.88rem !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-align: center !important;
	line-height: 1 !important;
	box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2) !important;
	transition: background 0.2s ease, transform 0.1s ease !important;
	flex-shrink: 0 !important;
	vertical-align: middle !important;
	box-sizing: border-box !important;
	position: relative !important;
}

#buddypress .dir-search input[type="submit"]:hover,
#buddypress .bp-search input[type="submit"]:hover,
#buddypress .dir-search button[type="submit"]:hover,
#buddypress .bp-search button[type="submit"]:hover,
#buddypress .nouveau-search-submit:hover,
#buddypress button.nouveau-search-submit:hover,
.nouveau-search-submit:hover {
	background: #4338CA !important;
	transform: translateY(-1px) !important;
}

/* Force vertical & horizontal centering of icons inside search submit buttons */
#buddypress .nouveau-search-submit span:not(.screen-reader-text):not(.bp-screen-reader-text),
#buddypress button.nouveau-search-submit span:not(.screen-reader-text):not(.bp-screen-reader-text),
#buddypress .dir-search button span:not(.screen-reader-text):not(.bp-screen-reader-text),
#buddypress .bp-search button span:not(.screen-reader-text):not(.bp-screen-reader-text),
.nouveau-search-submit span:not(.screen-reader-text):not(.bp-screen-reader-text) {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin: 0 auto !important;
	padding: 0 !important;
	line-height: 1 !important;
	vertical-align: middle !important;
	top: 0 !important;
	position: static !important;
	text-align: center !important;
}

/* Subnav Filters Bar Alignment (Responsive Wrap Layout) */
#buddypress .subnav-filters,
#buddypress div.subnav-filters,
#buddypress #subnav-filters,
.subnav-filters {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 10px 14px !important;
	margin: 14px 0 20px 0 !important;
	padding: 10px 14px !important;
	background: var(--bg-body, #F8FAFC) !important;
	border: 1px solid var(--border-color, #E2E8F0) !important;
	border-radius: 14px !important;
	clear: both !important;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	overflow: visible !important;
}

#buddypress .subnav-filters::before,
#buddypress .subnav-filters::after,
#buddypress #subnav-filters::before,
#buddypress #subnav-filters::after,
#buddypress .subnav-filters .subnav-search::before,
#buddypress .subnav-filters .subnav-search::after,
#buddypress .subnav-filters .component-filters::before,
#buddypress .subnav-filters .component-filters::after {
	display: none !important;
	content: none !important;
}

#buddypress .subnav-filters>*,
#buddypress #subnav-filters>* {
	float: none !important;
	margin: 0 !important;
}

/* Left side (RSS feed or search) */
#buddypress .subnav-filters .subnav-search,
#buddypress #subnav-filters .subnav-search {
	display: inline-flex !important;
	align-items: center !important;
	flex: 1 1 auto !important;
	min-width: 0 !important;
	max-width: 100% !important;
	gap: 8px !important;
	float: none !important;
	margin: 0 !important;
}

/* RSS Feed Icon Button */
#buddypress .subnav-filters .feed,
#buddypress #activity-rss-feed,
.subnav-filters .feed {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
}

#buddypress .subnav-filters .feed a,
#buddypress #activity-rss-feed a,
.subnav-filters .feed a {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 32px !important;
	height: 32px !important;
	min-width: 32px !important;
	min-height: 32px !important;
	border-radius: 0 !important;
	background: transparent !important;
	border: none !important;
	color: #EA580C !important;
	text-decoration: none !important;
	transition: opacity 0.2s ease, transform 0.2s ease !important;
	position: relative !important;
	box-sizing: border-box !important;
	box-shadow: none !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23EA580C'%3E%3Cpath d='M6.18 15.64a2.18 2.18 0 0 1 2.18 2.18C8.36 19 7.38 20 6.18 20C5 20 4 19 4 17.82a2.18 2.18 0 0 1 2.18-2.18M4 4.44A15.56 15.56 0 0 1 19.56 20h-2.83A12.73 12.73 0 0 0 4 7.27V4.44m0 5.66a9.9 9.9 0 0 1 9.9 9.9h-2.83A7.07 7.07 0 0 0 4 12.93V10.1Z'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	background-size: 22px 22px !important;
	opacity: 0.85 !important;
}

#buddypress .subnav-filters .feed a:hover,
#buddypress #activity-rss-feed a:hover,
.subnav-filters .feed a:hover {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	transform: scale(1.1) !important;
	opacity: 1 !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23EA580C'%3E%3Cpath d='M6.18 15.64a2.18 2.18 0 0 1 2.18 2.18C8.36 19 7.38 20 6.18 20C5 20 4 19 4 17.82a2.18 2.18 0 0 1 2.18-2.18M4 4.44A15.56 15.56 0 0 1 19.56 20h-2.83A12.73 12.73 0 0 0 4 7.27V4.44m0 5.66a9.9 9.9 0 0 1 9.9 9.9h-2.83A7.07 7.07 0 0 0 4 12.93V10.1Z'/%3E%3C/svg%3E") !important;
}

/* Remove all Tooltip bubbles and arrows on RSS Feed link */
#buddypress .subnav-filters .feed a::before,
#buddypress .subnav-filters .feed a::after,
#buddypress #activity-rss-feed a::before,
#buddypress #activity-rss-feed a::after,
#buddypress .feed a::before,
#buddypress .feed a::after,
.subnav-filters .feed a::before,
.subnav-filters .feed a::after,
.feed a[data-bp-tooltip]::before,
.feed a[data-bp-tooltip]::after,
.feed a.bp-tooltip::before,
.feed a.bp-tooltip::after {
	display: none !important;
	content: none !important;
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

/* Right side (Filter select dropdown) */
#buddypress .subnav-filters #comp-filters,
#buddypress .subnav-filters .component-filters,
#buddypress #subnav-filters #comp-filters,
#buddypress #subnav-filters .component-filters {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: flex-end !important;
	flex: 1 1 auto !important;
	min-width: 0 !important;
	max-width: 100% !important;
	margin: 0 !important;
	float: none !important;
}

#buddypress .subnav-filters #activity-filter-select,
#buddypress .subnav-filters .filter,
#buddypress #subnav-filters #activity-filter-select {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: flex-end !important;
	flex: 1 1 auto !important;
	min-width: 0 !important;
	max-width: 100% !important;
	gap: 8px !important;
	margin: 0 !important;
	float: none !important;
}

#buddypress .subnav-filters .select-wrap,
#buddypress #subnav-filters .select-wrap {
	display: inline-flex !important;
	flex: 1 1 auto !important;
	min-width: 0 !important;
	max-width: 240px !important;
	width: 100% !important;
	margin: 0 !important;
	float: none !important;
}

#buddypress .subnav-filters select,
#buddypress #subnav-filters select {
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;
	height: 38px !important;
	padding: 0 28px 0 12px !important;
	font-size: 0.85rem !important;
	border-radius: 10px !important;
	box-sizing: border-box !important;
	background-color: #FFFFFF !important;
	border: 1px solid #CBD5E1 !important;
	cursor: pointer !important;
}

#buddypress .subnav-filters label {
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	margin: 0 !important;
	font-size: 0.84rem !important;
	font-weight: 600 !important;
	color: var(--text-secondary, #475569) !important;
	white-space: nowrap !important;
	flex-shrink: 0 !important;
}

/* ==========================================================================
   5. REGISTRATION PAGE REDESIGN
   ========================================================================== */
#buddypress #register-page,
#buddypress .register-page,
#buddypress #signup_form {
	max-width: 100% !important;
}

#buddypress #signup_form .register-section,
#buddypress #signup_form #basic-details-section,
#buddypress #signup_form #profile-details-section {
	background: #FFFFFF !important;
	border: 1px solid var(--border-color, #E2E8F0) !important;
	border-radius: 16px !important;
	padding: 32px !important;
	margin-bottom: 28px !important;
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.02) !important;
}

#buddypress #signup_form .register-section h2,
#buddypress #signup_form .register-section h4,
#buddypress #basic-details-section h4,
#buddypress #profile-details-section h4 {
	font-family: var(--font-serif, 'Playfair Display', Georgia, serif) !important;
	font-size: 1.35rem !important;
	font-weight: 700 !important;
	color: var(--text-main, #0F172A) !important;
	margin-bottom: 24px !important;
	padding-bottom: 12px !important;
	border-bottom: 2px solid var(--accent-light, #EEF2FF) !important;
}

#buddypress #signup_form label {
	font-weight: 600 !important;
	font-size: 0.88rem !important;
	color: var(--text-main, #0F172A) !important;
	margin-bottom: 8px !important;
	display: block !important;
}

#buddypress #signup_form input[type="text"],
#buddypress #signup_form input[type="email"],
#buddypress #signup_form input[type="password"] {
	height: 46px !important;
	border-radius: 10px !important;
	padding: 0 16px !important;
	background: var(--bg-body, #F8FAFC) !important;
	border: 1px solid #CBD5E1 !important;
	font-size: 0.92rem !important;
	transition: all 0.2s ease !important;
	box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.02) !important;
}

#buddypress #signup_form input[type="text"]:focus,
#buddypress #signup_form input[type="email"]:focus,
#buddypress #signup_form input[type="password"]:focus {
	border-color: #4F46E5 !important;
	background: #FFFFFF !important;
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12) !important;
}

#buddypress .bp-password-verify,
#buddypress #pass-strength-result {
	font-size: 0.84rem !important;
	font-weight: 600 !important;
	padding: 8px 16px !important;
	border-radius: 8px !important;
	margin-top: 10px !important;
	display: inline-block !important;
}

/* Fix SVG Arrow & Icons on Registration Form */
#buddypress svg,
#signup_form svg,
.bp-avatar-upload-content svg,
.avatar-crop-management svg {
	max-width: 48px !important;
	max-height: 48px !important;
	height: auto !important;
	display: block !important;
	margin: 12px auto !important;
	fill: #4F46E5 !important;
}

#buddypress #signup_submit_wrapper,
#buddypress div.submit {
	text-align: center !important;
	margin-top: 36px !important;
}

#buddypress #signup_submit_wrapper input[type="submit"],
#buddypress div.submit input[type="submit"] {
	height: 50px !important;
	padding: 0 48px !important;
	font-size: 1rem !important;
	font-weight: 700 !important;
	border-radius: 12px !important;
	background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%) !important;
	color: #FFFFFF !important;
	box-shadow: 0 6px 20px rgba(79, 70, 229, 0.3) !important;
}

.activity-list.bp-list {
	background: none !important;
	border: 0px !important;
	border-top: 0px !important;
}

.bp-list {
	border-top: 0px !important;
}

/* ==========================================================================
   6. NAVIGATION TABS (PILL TABS)
   ========================================================================== */
#buddypress .bp-navs,
#buddypress nav.bp-navs,
#buddypress div.item-list-tabs,
#buddypress #subnav {
	background: transparent !important;
	margin-bottom: 28px !important;
	border: none !important;
}

#buddypress .bp-navs ul,
#buddypress div.item-list-tabs ul,
#buddypress #subnav ul {
	list-style: none !important;
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 8px !important;
	padding: 6px !important;
	margin: 0 !important;
	background: var(--bg-body, #F8FAFC) !important;
	border: 1px solid var(--border-color, #E2E8F0) !important;
	border-radius: 14px !important;
}

#buddypress .bp-navs li,
#buddypress div.item-list-tabs li,
#buddypress #subnav li {
	margin: 0 !important;
	padding: 0 !important;
}

#buddypress .bp-navs li a,
#buddypress div.item-list-tabs li a,
#buddypress #subnav li a {
	display: inline-flex !important;
	align-items: center !important;
	padding: 10px 20px !important;
	font-size: 0.88rem !important;
	font-weight: 600 !important;
	color: var(--text-secondary, #475569) !important;
	text-decoration: none !important;
	border-radius: 10px !important;
	border: none !important;
	background: transparent !important;
	transition: all 0.2s ease !important;
	white-space: nowrap !important;
	width: 100% !important;
}

#buddypress .bp-navs li a:hover,
#buddypress div.item-list-tabs li a:hover,
#buddypress #subnav li a:hover {
	color: #4F46E5 !important;
	background: rgba(79, 70, 229, 0.06) !important;
}

#buddypress .bp-navs li.current a,
#buddypress .bp-navs li.selected a,
#buddypress div.item-list-tabs li.current a,
#buddypress div.item-list-tabs li.selected a {
	color: #FFFFFF !important;
	background: #4F46E5 !important;
	box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25) !important;
	font-weight: 600 !important;
}

#buddypress div.item-list-tabs li .count,
#buddypress .bp-navs li a span,
#buddypress div.item-list-tabs li a span {
	background: rgba(15, 23, 42, 0.08) !important;
	color: inherit !important;
	font-size: 0.76rem !important;
	font-weight: 700 !important;
	padding: 2px 9px !important;
	border-radius: 9999px !important;
	margin-left: 8px !important;
}

#buddypress .bp-navs li.current a .count,
#buddypress div.item-list-tabs li.current a .count {
	background: rgba(255, 255, 255, 0.25) !important;
	color: #FFFFFF !important;
}


/* ==========================================================================
   7. BUDDYPRESS ACTIVITY STREAM & CARDS REDESIGN
   ========================================================================== */

/* Activity Stream List Container */
#buddypress ul.activity-list,
#buddypress .activity-list {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 0 24px 0 !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 16px !important;
	width: 100% !important;
}

/* Activity Item Card (Full Post & Mini Feed items) */
#buddypress ul.activity-list li.activity-item,
#buddypress .activity-list>li {
	display: grid !important;
	grid-template-columns: 48px 1fr !important;
	column-gap: 16px !important;
	row-gap: 0px !important;
	align-items: start !important;
	background: var(--bg-surface, #FFFFFF) !important;
	border: 1px solid var(--border-color, #E2E8F0) !important;
	border-radius: 18px !important;
	padding: 22px 24px !important;
	margin-bottom: 0 !important;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03) !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease !important;
	box-sizing: border-box !important;
	width: 100% !important;
	position: relative !important;
	word-wrap: break-word !important;
	overflow-wrap: break-word !important;
}

#buddypress ul.activity-list li.activity-item:hover,
#buddypress .activity-list>li:hover {
	border-color: var(--border-hover, #CBD5E1) !important;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06) !important;
}

/* Activity Author Avatar */
#buddypress .activity-list li.activity-item .activity-avatar,
#buddypress .activity-avatar,
#buddypress div.activity-avatar {
	grid-column: 1 !important;
	grid-row: 1 !important;
	flex-shrink: 0 !important;
	width: 48px !important;
	height: 48px !important;
	min-width: 48px !important;
	min-height: 48px !important;
	max-width: 48px !important;
	max-height: 48px !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	position: relative !important;
}

#buddypress .activity-list li.activity-item .activity-avatar a,
#buddypress .activity-avatar a,
#buddypress .activity-avatar img,
#buddypress .activity-list li.activity-item .activity-avatar img {
	width: 48px !important;
	height: 48px !important;
	min-width: 48px !important;
	min-height: 48px !important;
	max-width: 48px !important;
	max-height: 48px !important;
	border-radius: 50% !important;
	object-fit: cover !important;
	flex-shrink: 0 !important;
	display: block !important;
	border: 2px solid #F1F5F9 !important;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08) !important;
	transition: transform 0.2s ease !important;
}

#buddypress .activity-avatar a:hover img {
	transform: scale(1.05) !important;
}

/* Activity Content Container */
#buddypress .activity-list li.activity-item .activity-content,
#buddypress .activity-content {
	grid-column: 2 !important;
	grid-row: 1 !important;
	min-width: 0 !important;
	width: 100% !important;
	overflow: visible !important;
	padding: 0 !important;
	margin: 0 !important;
	float: none !important;
}

/* Activity Header & Subtitles */
#buddypress .activity-header,
#buddypress .activity-header p {
	font-family: var(--font-ui, 'Inter', sans-serif) !important;
	font-size: 0.94rem !important;
	line-height: 1.55 !important;
	color: #64748B !important;
	margin: 0 0 8px 0 !important;
	padding: 0 !important;
}

#buddypress .activity-header a {
	color: #0F172A !important;
	font-weight: 700 !important;
	text-decoration: none !important;
	transition: color 0.2s ease !important;
}

#buddypress .activity-header a:hover {
	color: #4F46E5 !important;
}

/* Inline Avatars in Header (e.g. Group icon) */
#buddypress .activity-header img.avatar,
#buddypress .activity-header a img.avatar {
	width: 22px !important;
	height: 22px !important;
	min-width: 22px !important;
	min-height: 22px !important;
	max-width: 22px !important;
	max-height: 22px !important;
	border-radius: 6px !important;
	vertical-align: -5px !important;
	display: inline-block !important;
	margin: 0 5px 0 3px !important;
	object-fit: cover !important;
	border: 1px solid #E2E8F0 !important;
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08) !important;
}

/* Activity Time / Timestamp */
#buddypress .activity-header .time-since,
#buddypress .activity-header a.activity-time-since,
#buddypress .activity-header a.view {
	font-size: 0.82rem !important;
	font-weight: 500 !important;
	color: #94A3B8 !important;
	text-decoration: none !important;
	margin-left: 4px !important;
	display: inline-block !important;
}

#buddypress .activity-header a.activity-time-since:hover {
	color: #64748B !important;
}

/* Activity Inner Text / Media Body */
#buddypress .activity-inner {
	font-family: var(--font-ui, 'Inter', sans-serif) !important;
	font-size: 0.95rem !important;
	line-height: 1.65 !important;
	color: #334155 !important;
	margin: 10px 0 0 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
}

#buddypress .activity-inner>p {
	margin: 0 0 10px 0 !important;
}

#buddypress .activity-inner>p:last-child {
	margin-bottom: 0 !important;
}

/* ==========================================================================
   GROUP & MEMBER ACTIVITY PREVIEW CARDS (Modern & Sleek)
   ========================================================================== */

#buddypress .bp-group-activity-preview,
#buddypress .bp-member-activity-preview,
.bp-group-activity-preview,
.bp-member-activity-preview {
	background: #FFFFFF !important;
	border: 1px solid #E2E8F0 !important;
	border-radius: 16px !important;
	overflow: hidden !important;
	margin: 14px 0 6px 0 !important;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	display: flex !important;
	flex-direction: column !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease !important;
}

#buddypress .bp-group-activity-preview:hover,
#buddypress .bp-member-activity-preview:hover,
.bp-group-activity-preview:hover,
.bp-member-activity-preview:hover {
	border-color: #CBD5E1 !important;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
}

/* Preview Card Cover Image Banner */
#buddypress .bp-group-preview-cover,
#buddypress .bp-member-preview-cover,
.bp-group-preview-cover,
.bp-member-preview-cover {
	width: 100% !important;
	height: 120px !important;
	min-height: 120px !important;
	max-height: 120px !important;
	position: relative !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
	display: block !important;
}

#buddypress .bp-group-preview-cover a,
#buddypress .bp-member-preview-cover a,
.bp-group-preview-cover a,
.bp-member-preview-cover a {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

#buddypress .bp-group-preview-cover img,
#buddypress .bp-member-preview-cover img,
.bp-group-preview-cover img,
.bp-member-preview-cover img {
	width: 100% !important;
	height: 100% !important;
	min-width: 100% !important;
	max-width: 100% !important;
	object-fit: cover !important;
	object-position: center !important;
	display: block !important;
	border: none !important;
	border-radius: 0 !important;
	transition: transform 0.3s ease !important;
}

#buddypress .bp-group-activity-preview:hover .bp-group-preview-cover img,
#buddypress .bp-member-activity-preview:hover .bp-member-preview-cover img,
.bp-group-activity-preview:hover .bp-group-preview-cover img,
.bp-member-activity-preview:hover .bp-member-preview-cover img {
	transform: scale(1.03) !important;
}

/* Preview Card Body Info */
#buddypress .bp-group-short-description,
#buddypress .bp-member-short-description,
.bp-group-short-description,
.bp-member-short-description {
	padding: 0 20px 20px 20px !important;
	text-align: center !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	position: relative !important;
	background: #FFFFFF !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

/* Overlapping Avatar with White Ring */
#buddypress .bp-group-avatar-content,
#buddypress .bp-member-avatar-content,
.bp-group-avatar-content,
.bp-member-avatar-content {
	margin: 0 0 10px 0 !important;
	position: relative !important;
	z-index: 2 !important;
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
	width: 100% !important;
}

#buddypress .bp-group-avatar-content.has-cover-image,
#buddypress .bp-member-avatar-content.has-cover-image,
.bp-group-avatar-content.has-cover-image,
.bp-member-avatar-content.has-cover-image {
	margin-top: -38px !important;
}

#buddypress .bp-group-avatar-content a,
#buddypress .bp-member-avatar-content a,
.bp-group-avatar-content a,
.bp-member-avatar-content a {
	display: inline-block !important;
	border-radius: 50% !important;
}

#buddypress .bp-group-avatar-content img,
#buddypress .bp-group-avatar-content .avatar,
#buddypress .bp-member-avatar-content img,
#buddypress .bp-member-avatar-content .avatar,
.bp-group-avatar-content img,
.bp-group-avatar-content .avatar,
.bp-member-avatar-content img,
.bp-member-avatar-content .avatar {
	width: 72px !important;
	height: 72px !important;
	min-width: 72px !important;
	min-height: 72px !important;
	max-width: 72px !important;
	max-height: 72px !important;
	border-radius: 50% !important;
	border: 3.5px solid #FFFFFF !important;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12) !important;
	object-fit: cover !important;
	background: #FFFFFF !important;
	display: block !important;
	margin: 0 auto !important;
}

/* Preview Card Title */
#buddypress .bp-group-short-description-title,
#buddypress .bp-member-short-description-title,
.bp-group-short-description-title,
.bp-member-short-description-title {
	margin: 0 0 12px 0 !important;
	font-family: var(--font-ui, 'Inter', sans-serif) !important;
	font-size: 1.05rem !important;
	font-weight: 700 !important;
	line-height: 1.35 !important;
	text-align: center !important;
	color: #0F172A !important;
}

#buddypress .bp-group-short-description-title a,
#buddypress .bp-member-short-description-title a,
.bp-group-short-description-title a,
.bp-member-short-description-title a {
	color: #0F172A !important;
	text-decoration: none !important;
	transition: color 0.2s ease !important;
}

#buddypress .bp-group-short-description-title a:hover,
#buddypress .bp-member-short-description-title a:hover,
.bp-group-short-description-title a:hover,
.bp-member-short-description-title a:hover {
	color: #4F46E5 !important;
}

/* Action Button inside Preview Card */
#buddypress .bp-profile-button,
#buddypress .bp-member-action-button,
.bp-profile-button,
.bp-member-action-button {
	margin: 0 !important;
	display: flex !important;
	justify-content: center !important;
	width: auto !important;
}

#buddypress .bp-group-short-description .bp-profile-button a,
#buddypress .bp-group-short-description .bp-profile-button a.button,
#buddypress .bp-group-short-description a.button-primary,
#buddypress .bp-member-short-description .bp-profile-button a,
.bp-group-short-description .bp-profile-button a,
.bp-member-short-description .bp-profile-button a {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 9px 24px !important;
	font-size: 0.88rem !important;
	font-weight: 600 !important;
	border-radius: 10px !important;
	color: #FFFFFF !important;
	border: none !important;
	box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25) !important;
	text-decoration: none !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
	height: auto !important;
	line-height: 1.4 !important;
}

#buddypress .bp-group-short-description .bp-profile-button a:hover,
#buddypress .bp-member-short-description .bp-profile-button a:hover,
.bp-group-short-description .bp-profile-button a:hover,
.bp-member-short-description .bp-profile-button a:hover {
	background: linear-gradient(135deg, #4338CA 0%, #3730A3 100%) !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35) !important;
	color: #FFFFFF !important;
}

/* ==========================================================================
   ACTIVITY META ACTIONS (Buttons, Fav, Reply, Delete)
   ========================================================================== */

#buddypress .activity-meta,
#buddypress div.activity-meta,
#buddypress .activity-list .activity-content .activity-meta,
#buddypress .activity-header .activity-meta,
#buddypress .activity-meta-container,
#buddypress .activity-actions {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	border: none !important;
	box-shadow: none !important;
	margin-top: 14px !important;
	padding: 0 !important;
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	gap: 8px !important;
	clear: both !important;
}

#buddypress .activity-meta a,
#buddypress div.activity-meta a,
#buddypress .activity-meta a.button,
#buddypress div.activity-meta a.button,
#buddypress .activity-list .activity-content .activity-meta a,
#buddypress .activity-actions a,
#buddypress a.bp-secondary-action,
#buddypress a.bp-primary-action,
#buddypress a.button.fav,
#buddypress a.button.unfav,
#buddypress a.button.comment-reply,
#buddypress a.button.delete-activity,
#buddypress a.button.delete-activity-single,
#buddypress a.fav,
#buddypress a.unfav,
#buddypress a.comment-reply,
#buddypress a.delete-activity,
#buddypress .activity-button a {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px !important;
	padding: 6px 14px !important;
	height: auto !important;
	min-height: 32px !important;
	font-family: var(--font-ui, 'Inter', sans-serif) !important;
	font-size: 0.84rem !important;
	font-weight: 600 !important;
	color: var(--text-secondary, #475569) !important;
	background: var(--bg-muted, #F1F5F9) !important;
	border: 1px solid var(--border-color, #E2E8F0) !important;
	border-radius: 10px !important;
	text-decoration: none !important;
	box-shadow: none !important;
	transition: all 0.2s ease !important;
	line-height: 1.2 !important;
	margin: 0 !important;
}

#buddypress .activity-meta a:hover,
#buddypress div.activity-meta a:hover,
#buddypress .activity-meta a.button:hover,
#buddypress div.activity-meta a.button:hover,
#buddypress .activity-list .activity-content .activity-meta a:hover,
#buddypress a.bp-secondary-action:hover,
#buddypress a.bp-primary-action:hover,
#buddypress a.button.fav:hover,
#buddypress a.button.unfav:hover,
#buddypress a.button.comment-reply:hover,
#buddypress a.fav:hover,
#buddypress a.unfav:hover,
#buddypress a.comment-reply:hover,
#buddypress .activity-button a:hover {
	color: #4F46E5 !important;
	background: #EEF2FF !important;
	border-color: #C7D2FE !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 2px 8px rgba(79, 70, 229, 0.12) !important;
}

#buddypress a.button.delete-activity:hover,
#buddypress a.button.delete-activity-single:hover,
#buddypress a.delete-activity:hover,
#buddypress a.delete-activity-single:hover {
	color: #F43F5E !important;
	background: #FFE4E6 !important;
	border-color: #FECDD3 !important;
}

#buddypress a.button.unfav,
#buddypress a.unfav {
	color: #F59E0B !important;
	background: #FEF3C7 !important;
	border-color: #FDE68A !important;
}

#buddypress .activity-meta a span,
#buddypress div.activity-meta a span,
#buddypress .activity-meta a.button span {
	background: rgba(15, 23, 42, 0.08) !important;
	color: inherit !important;
	font-size: 0.76rem !important;
	font-weight: 700 !important;
	padding: 2px 7px !important;
	border-radius: 9999px !important;
	margin-left: 4px !important;
}

/* ==========================================================================
   ACTIVITY COMMENTS & REPLIES
   ========================================================================== */

#buddypress .activity-comments,
#buddypress div.activity-comments {
	grid-column: 1 / -1 !important;
	width: 100% !important;
	margin: 16px 0 0 0 !important;
	padding: 16px 0 0 0 !important;
	border-top: 1px solid #F1F5F9 !important;
	position: relative !important;
}

#buddypress .activity-comments ul,
#buddypress ul.acomment-list {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 12px !important;
}

#buddypress .activity-comments ul li,
#buddypress ul.acomment-list li {
	display: flex !important;
	gap: 10px !important;
	align-items: flex-start !important;
	padding: 0 !important;
	margin: 0 !important;
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	box-sizing: border-box !important;
}

#buddypress .acomment-avatar {
	width: 32px !important;
	height: 32px !important;
	min-width: 32px !important;
	min-height: 32px !important;
	max-width: 32px !important;
	max-height: 32px !important;
	flex-shrink: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

#buddypress .acomment-avatar img {
	width: 32px !important;
	height: 32px !important;
	border-radius: 50% !important;
	object-fit: cover !important;
	border: 1.5px solid #E2E8F0 !important;
	display: block !important;
}

#buddypress .acomment-meta {
	font-size: 0.82rem !important;
	color: #64748B !important;
	margin-bottom: 4px !important;
}

#buddypress .acomment-meta a {
	color: #0F172A !important;
	font-weight: 700 !important;
	text-decoration: none !important;
}

#buddypress .acomment-content {
	background: #F8FAFC !important;
	border: 1px solid #E2E8F0 !important;
	border-radius: 12px !important;
	padding: 10px 14px !important;
	font-size: 0.88rem !important;
	line-height: 1.5 !important;
	color: #334155 !important;
	flex: 1 1 auto !important;
	min-width: 0 !important;
}

/* Reply Input Form */
#buddypress form.ac-form {
	margin-top: 14px !important;
	width: 100% !important;
}

#buddypress .ac-reply-avatar {
	display: none !important;
}

#buddypress .ac-reply-content {
	width: 100% !important;
}

#buddypress textarea.ac-input {
	width: 100% !important;
	min-height: 60px !important;
	padding: 10px 14px !important;
	border-radius: 10px !important;
	border: 1px solid #E2E8F0 !important;
	font-family: var(--font-ui, 'Inter', sans-serif) !important;
	font-size: 0.88rem !important;
	box-sizing: border-box !important;
	background: #FFFFFF !important;
}

#buddypress textarea.ac-input:focus {
	border-color: #4F46E5 !important;
	outline: none !important;
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1) !important;
}

#buddypress .ac-form input[type="submit"] {
	background: #4F46E5 !important;
	color: #FFFFFF !important;
	border-radius: 8px !important;
	padding: 7px 16px !important;
	font-size: 0.84rem !important;
	font-weight: 600 !important;
	border: none !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
	margin-top: 8px !important;
}

#buddypress .ac-form input[type="submit"]:hover {
	background: #4338CA !important;
}

/* Responsive Tweaks */
@media (max-width: 768px) {

	#buddypress .member-header-actions {
		flex-direction: column !important;
	}

	/* User Profile Info Card Below Cover Banner */
	#buddypress #item-header,
	#buddypress div#item-header,
	#buddypress #item-header-cover-image #item-header-content {
		flex-direction: column !important;
		align-items: center !important;
		justify-content: space-between !important;
	}

	.bp-container-card {
		padding: 20px 16px !important;
		border-radius: 14px !important;
	}

	.bp-page-title {
		font-size: 1.6rem !important;
	}

	#buddypress #header-cover-image,
	#buddypress a#header-cover-image,
	#buddypress div#header-cover-image,
	#buddypress .header-cover-img {
		height: 130px !important;
		min-height: 130px !important;
		max-height: 130px !important;
	}

	#buddypress #item-header,
	#buddypress div#item-header,
	#buddypress #cover-image-container #item-header-cover-image {
		flex-direction: column !important;
		align-items: center !important;
		text-align: center !important;
		padding: 0 20px 24px 20px !important;
	}

	#buddypress #item-header-avatar,
	#buddypress div#item-header-avatar,
	.bp-member-avatar-content {
		margin-top: -40px !important;
	}

	#buddypress #item-header-avatar img,
	#buddypress #item-header-avatar a img,
	#buddypress #item-header .avatar,
	.bp-member-avatar-content img {
		width: 80px !important;
		height: 80px !important;
	}

	#buddypress #item-header-content span.activity,
	#buddypress #item-header-content p.activity,
	#buddypress #item-header-content .item-meta {
		justify-content: center !important;
	}

	#buddypress #item-buttons,
	#buddypress div#item-buttons {
		justify-content: center !important;
		width: 100% !important;
	}

	/* Search form on mobile: sleek row layout */
	#buddypress .dir-search,
	#buddypress .bp-search,
	#buddypress div.dir-search {
		width: 100% !important;
		max-width: 100% !important;
	}

	#buddypress .dir-search form,
	#buddypress .bp-search form,
	#buddypress div.dir-search form {
		display: flex !important;
		flex-direction: row !important;
		align-items: center !important;
		gap: 8px !important;
		width: 100% !important;
		max-width: 100% !important;
	}

	#buddypress .dir-search form label,
	#buddypress .bp-search form label,
	#buddypress div.dir-search form label {
		flex: 1 !important;
		width: 100% !important;
		margin: 0 !important;
	}

	#buddypress .dir-search input[type="search"],
	#buddypress .dir-search input[type="text"],
	#buddypress .bp-search input[type="search"] {
		width: 100% !important;
		height: 44px !important;
		border-radius: 10px !important;
	}

	#buddypress .dir-search input[type="submit"],
	#buddypress .bp-search input[type="submit"],
	#buddypress .dir-search button[type="submit"],
	#buddypress .bp-search button[type="submit"],
	#buddypress .nouveau-search-submit,
	#buddypress button.nouveau-search-submit,
	.nouveau-search-submit {
		width: auto !important;
		height: 44px !important;
		padding: 0 18px !important;
		flex-shrink: 0 !important;
		border-radius: 10px !important;
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		line-height: 1 !important;
		vertical-align: middle !important;
	}

	/* Subnav filters responsive adjustments (Responsive Wrapping) */
	#buddypress .subnav-filters,
	#buddypress div.subnav-filters,
	#buddypress #subnav-filters,
	.subnav-filters {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: wrap !important;
		align-items: center !important;
		justify-content: space-between !important;
		gap: 10px !important;
		padding: 10px 12px !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
		overflow: visible !important;
	}

	#buddypress .subnav-filters .subnav-search,
	#buddypress #subnav-filters .subnav-search {
		display: flex !important;
		align-items: center !important;
		gap: 8px !important;
		flex: 1 1 100% !important;
		width: 100% !important;
		max-width: 100% !important;
	}

	#buddypress .subnav-filters .dir-search,
	#buddypress #subnav-filters .dir-search {
		flex: 1 1 auto !important;
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
	}

	#buddypress .subnav-filters #comp-filters,
	#buddypress .subnav-filters .component-filters,
	#buddypress #subnav-filters #comp-filters,
	#buddypress #subnav-filters .component-filters,
	#buddypress #dir-filters,
	#buddypress #activity-filter-select,
	#buddypress .subnav-filters .filter {
		display: flex !important;
		align-items: center !important;
		flex: 1 1 100% !important;
		width: 100% !important;
		max-width: 100% !important;
		justify-content: flex-start !important;
		box-sizing: border-box !important;
	}

	#buddypress .subnav-filters .select-wrap,
	#buddypress #subnav-filters .select-wrap {
		width: 100% !important;
		max-width: 100% !important;
		flex: 1 1 auto !important;
		box-sizing: border-box !important;
	}

	#buddypress .subnav-filters select,
	#buddypress #subnav-filters select {
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
	}

	/* Activity Stream Responsive (Mobile / Tablets) */
	#buddypress ul.activity-list li.activity-item,
	#buddypress .activity-list>li {
		grid-template-columns: 40px 1fr !important;
		column-gap: 12px !important;
		row-gap: 0px !important;
		padding: 16px 16px !important;
		border-radius: 16px !important;
		margin-bottom: 0 !important;
	}

	#buddypress .activity-list li.activity-item .activity-avatar,
	#buddypress .activity-avatar,
	#buddypress div.activity-avatar {
		width: 40px !important;
		height: 40px !important;
		min-width: 40px !important;
		min-height: 40px !important;
		max-width: 40px !important;
		max-height: 40px !important;
	}

	#buddypress .activity-list li.activity-item .activity-avatar a,
	#buddypress .activity-avatar a,
	#buddypress .activity-avatar img,
	#buddypress .activity-list li.activity-item .activity-avatar img {
		width: 40px !important;
		height: 40px !important;
		min-width: 40px !important;
		min-height: 40px !important;
		max-width: 40px !important;
		max-height: 40px !important;
	}

	#buddypress .activity-header,
	#buddypress .activity-header p {
		font-size: 0.88rem !important;
		line-height: 1.45 !important;
	}

	#buddypress .bp-group-preview-cover,
	#buddypress .bp-member-preview-cover,
	.bp-group-preview-cover,
	.bp-member-preview-cover {
		height: 100px !important;
		min-height: 100px !important;
		max-height: 100px !important;
	}

	#buddypress .bp-group-short-description,
	#buddypress .bp-member-short-description,
	.bp-group-short-description,
	.bp-member-short-description {
		padding: 0 16px 16px 16px !important;
	}

	#buddypress .bp-group-avatar-content.has-cover-image,
	#buddypress .bp-member-avatar-content.has-cover-image,
	.bp-group-avatar-content.has-cover-image,
	.bp-member-avatar-content.has-cover-image {
		margin-top: -32px !important;
	}

	#buddypress .bp-group-avatar-content img,
	#buddypress .bp-group-avatar-content .avatar,
	#buddypress .bp-member-avatar-content img,
	#buddypress .bp-member-avatar-content .avatar,
	.bp-group-avatar-content img,
	.bp-group-avatar-content .avatar,
	.bp-member-avatar-content img,
	.bp-member-avatar-content .avatar {
		width: 62px !important;
		height: 62px !important;
		min-width: 62px !important;
		min-height: 62px !important;
		max-width: 62px !important;
		max-height: 62px !important;
		border-width: 3px !important;
	}

	#buddypress .bp-group-short-description-title,
	#buddypress .bp-member-short-description-title,
	.bp-group-short-description-title,
	.bp-member-short-description-title {
		font-size: 0.98rem !important;
		margin-bottom: 10px !important;
	}

	#buddypress .bp-group-short-description .bp-profile-button,
	#buddypress .bp-member-short-description .bp-profile-button,
	.bp-group-short-description .bp-profile-button,
	.bp-member-short-description .bp-profile-button {
		width: 100% !important;
	}

	#buddypress .bp-group-short-description .bp-profile-button a,
	#buddypress .bp-group-short-description .bp-profile-button a.button,
	#buddypress .bp-group-short-description a.button-primary,
	#buddypress .bp-member-short-description .bp-profile-button a,
	.bp-group-short-description .bp-profile-button a,
	.bp-member-short-description .bp-profile-button a {
		width: 100% !important;
		padding: 9px 16px !important;
		box-sizing: border-box !important;
	}

	#buddypress .activity-meta,
	#buddypress div.activity-meta {
		gap: 6px !important;
	}

	#buddypress .activity-meta a,
	#buddypress div.activity-meta a,
	#buddypress .activity-meta a.button,
	#buddypress div.activity-meta a.button {
		padding: 5px 10px !important;
		font-size: 0.78rem !important;
	}
}

@media (max-width: 480px) {

	#buddypress ul.activity-list li.activity-item,
	#buddypress .activity-list>li {
		grid-template-columns: 36px 1fr !important;
		column-gap: 10px !important;
		row-gap: 0px !important;
		padding: 14px 12px !important;
		border-radius: 14px !important;
	}

	#buddypress .activity-list li.activity-item .activity-avatar,
	#buddypress .activity-avatar,
	#buddypress div.activity-avatar {
		width: 36px !important;
		height: 36px !important;
		min-width: 36px !important;
		min-height: 36px !important;
		max-width: 36px !important;
		max-height: 36px !important;
	}

	#buddypress .activity-list li.activity-item .activity-avatar a,
	#buddypress .activity-avatar a,
	#buddypress .activity-avatar img,
	#buddypress .activity-list li.activity-item .activity-avatar img {
		width: 36px !important;
		height: 36px !important;
		min-width: 36px !important;
		min-height: 36px !important;
		max-width: 36px !important;
		max-height: 36px !important;
	}

	#buddypress .bp-group-preview-cover,
	#buddypress .bp-member-preview-cover,
	.bp-group-preview-cover,
	.bp-member-preview-cover {
		height: 85px !important;
		min-height: 85px !important;
		max-height: 85px !important;
	}

	#buddypress .bp-group-avatar-content.has-cover-image,
	#buddypress .bp-member-avatar-content.has-cover-image,
	.bp-group-avatar-content.has-cover-image,
	.bp-member-avatar-content.has-cover-image {
		margin-top: -26px !important;
	}

	#buddypress .bp-group-avatar-content img,
	#buddypress .bp-group-avatar-content .avatar,
	#buddypress .bp-member-avatar-content img,
	#buddypress .bp-member-avatar-content .avatar,
	.bp-group-avatar-content img,
	.bp-group-avatar-content .avatar,
	.bp-member-avatar-content img,
	.bp-member-avatar-content .avatar {
		width: 52px !important;
		height: 52px !important;
		min-width: 52px !important;
		min-height: 52px !important;
		max-width: 52px !important;
		max-height: 52px !important;
		border-width: 2.5px !important;
	}
}

/* ==========================================================================
   NOTIFICATION SETTINGS TABLES REDESIGN (#settings-form)
   ========================================================================== */

#buddypress form#settings-form,
#settings-form {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 0 32px 0 !important;
}

#buddypress form#settings-form table.notification-settings,
table.notification-settings {
	width: 100% !important;
	border-collapse: separate !important;
	border-spacing: 0 !important;
	background: #FFFFFF !important;
	border: 1px solid var(--border-color, #E2E8F0) !important;
	border-radius: 16px !important;
	margin: 0 0 28px 0 !important;
	box-shadow: 0 2px 12px rgba(15, 23, 42, 0.03) !important;
	overflow: hidden !important;
}

/* Header styling */
#buddypress table.notification-settings thead tr,
table.notification-settings thead tr {
	background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%) !important;
}

#buddypress table.notification-settings th,
table.notification-settings th {
	padding: 16px 20px !important;
	font-size: 0.88rem !important;
	font-weight: 700 !important;
	color: #0F172A !important;
	text-transform: uppercase !important;
	letter-spacing: 0.04em !important;
	border: none !important;
	border-bottom: 1px solid #E2E8F0 !important;
}

#buddypress table.notification-settings th.icon,
table.notification-settings th.icon {
	width: 10px !important;
	padding: 0 !important;
}

#buddypress table.notification-settings th.title,
table.notification-settings th.title {
	text-align: left !important;
	font-size: 0.95rem !important;
	color: #4F46E5 !important;
}

#buddypress table.notification-settings th.yes,
#buddypress table.notification-settings th.no,
table.notification-settings th.yes,
table.notification-settings th.no {
	width: 90px !important;
	text-align: center !important;
}

/* Body rows styling */
#buddypress table.notification-settings tbody tr,
table.notification-settings tbody tr {
	transition: background 0.15s ease !important;
	background: #FFFFFF !important;
}

#buddypress table.notification-settings tbody tr:hover,
table.notification-settings tbody tr:hover {
	background: #F8FAFC !important;
}

#buddypress table.notification-settings tbody tr:not(:last-child) td,
table.notification-settings tbody tr:not(:last-child) td {
	border-bottom: 1px solid #F1F5F9 !important;
}

#buddypress table.notification-settings td,
table.notification-settings td {
	padding: 16px 20px !important;
	vertical-align: middle !important;
	font-size: 0.92rem !important;
	color: #334155 !important;
	line-height: 1.5 !important;
	border: none !important;
}

#buddypress table.notification-settings td.yes,
#buddypress table.notification-settings td.no,
table.notification-settings td.yes,
table.notification-settings td.no {
	text-align: center !important;
	width: 90px !important;
}

/* Radio buttons styling */
#buddypress table.notification-settings input[type="radio"],
table.notification-settings input[type="radio"] {
	width: 18px !important;
	height: 18px !important;
	accent-color: #4F46E5 !important;
	cursor: pointer !important;
	margin: 0 !important;
	vertical-align: middle !important;
}

/* Submit container and button styling */
#buddypress #settings-form div.submit,
#settings-form div.submit {
	margin-top: 24px !important;
	padding: 0 !important;
	text-align: left !important;
}

#buddypress #settings-form input[type="submit"],
#settings-form input[type="submit"] {
	color: #FFFFFF !important;
	border: none !important;
	border-radius: 12px !important;
	padding: 12px 32px !important;
	font-size: 0.95rem !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3) !important;
	transition: transform 0.15s ease, box-shadow 0.15s ease !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	height: 48px !important;
}

#buddypress #settings-form input[type="submit"]:hover,
#settings-form input[type="submit"]:hover {
	transform: translateY(-1px) !important;
	box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4) !important;
}

/* Mobile Responsive Notification Settings Tables */
@media (max-width: 640px) {

	#buddypress table.notification-settings,
	table.notification-settings {
		display: block !important;
		border-radius: 14px !important;
	}

	#buddypress table.notification-settings thead,
	table.notification-settings thead {
		display: block !important;
	}

	#buddypress table.notification-settings thead tr,
	table.notification-settings thead tr {
		display: flex !important;
		align-items: center !important;
		justify-content: space-between !important;
		padding: 12px 16px !important;
		background: #F8FAFC !important;
	}

	#buddypress table.notification-settings th.icon,
	table.notification-settings th.icon {
		display: none !important;
	}

	#buddypress table.notification-settings th.title,
	table.notification-settings th.title {
		flex: 1 !important;
		padding: 0 !important;
		border: none !important;
	}

	#buddypress table.notification-settings th.yes,
	#buddypress table.notification-settings th.no,
	table.notification-settings th.yes,
	table.notification-settings th.no {
		display: none !important;
	}

	#buddypress table.notification-settings tbody,
	table.notification-settings tbody {
		display: block !important;
	}

	#buddypress table.notification-settings tbody tr,
	table.notification-settings tbody tr {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: wrap !important;
		padding: 16px !important;
		gap: 10px !important;
		border-bottom: 1px solid #F1F5F9 !important;
	}

	#buddypress table.notification-settings td:first-child,
	table.notification-settings td:first-child {
		display: none !important;
	}

	#buddypress table.notification-settings tbody tr td:nth-child(2) {
		width: 100% !important;
		margin-bottom: 6px !important;
		padding: 0 !important;
		border: none !important;
	}

	#buddypress table.notification-settings td.yes,
	#buddypress table.notification-settings td.no,
	table.notification-settings td.yes,
	table.notification-settings td.no {
		display: inline-flex !important;
		align-items: center !important;
		gap: 8px !important;
		width: auto !important;
		text-align: left !important;
		background: #F8FAFC !important;
		padding: 8px 14px !important;
		border-radius: 8px !important;
	}

	#buddypress table.notification-settings td.yes::after {
		content: "Да (отправлять email)" !important;
		font-size: 0.85rem !important;
		font-weight: 500 !important;
		color: #334155 !important;
	}

	#buddypress table.notification-settings td.no::after {
		content: "Нет" !important;
		font-size: 0.85rem !important;
		font-weight: 500 !important;
		color: #334155 !important;
	}

	#buddypress #settings-form input[type="submit"],
	#settings-form input[type="submit"] {
		width: 100% !important;
	}
}

/* ==========================================================================
   7. MEMBERS DIRECTORY CARDS REDESIGN (AUTHOR CARDS)
   ========================================================================== */

/* Grid container for author cards */
#buddypress ul#members-list,
#buddypress ul.members-list,
#buddypress ul.item-list.members-list,
ul#members-list,
ul.members-list {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
	gap: 20px !important;
	list-style: none !important;
	margin: 20px 0 40px 0 !important;
	padding: 0 !important;
	clear: both !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

/* Remove BuddyPress / WordPress Clearfix Pseudo-elements on Grids */
#buddypress ul#groups-list::before,
#buddypress ul#groups-list::after,
#buddypress ul.groups-list::before,
#buddypress ul.groups-list::after,
#buddypress ul#members-list::before,
#buddypress ul#members-list::after,
#buddypress ul.members-list::before,
#buddypress ul.members-list::after,
#buddypress ul.item-list::before,
#buddypress ul.item-list::after,
#buddypress ul.bp-list::before,
#buddypress ul.bp-list::after,
ul#groups-list::before,
ul#groups-list::after,
ul.groups-list::before,
ul.groups-list::after,
ul#members-list::before,
ul#members-list::after,
ul.members-list::before,
ul.members-list::after,
ul.item-list::before,
ul.item-list::after,
ul.bp-list::before,
ul.bp-list::after {
	display: none !important;
	content: none !important;
	width: 0 !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Individual Author / Request Card Container */
#buddypress ul#members-list>li,
#buddypress ul.members-list>li,
#buddypress ul#friend-list>li,
#buddypress ul.item-list>li.item-entry,
#buddypress ul.item-list>li.bp-single-member,
#buddypress li.item-entry,
#buddypress li.bp-single-member,
#buddypress li[data-bp-item-component="members"] {
	grid-column: auto !important;
	grid-row: auto !important;
	background: #FFFFFF !important;
	border: 1px solid var(--border-color, #E2E8F0) !important;
	border-radius: 16px !important;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03) !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease !important;
	margin: 0 0 16px 0 !important;
	padding: 16px 20px !important;
	list-style: none !important;
	position: relative !important;
	animation: none !important;
	transform: none !important;
	float: none !important;
	clear: both !important;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 16px !important;
}

#buddypress ul#members-list>li:hover,
#buddypress ul.members-list>li:hover,
#buddypress ul#friend-list>li:hover,
#buddypress li.item-entry:hover,
#buddypress li.bp-single-member:hover {
	border-color: #CBD5E1 !important;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07) !important;
	transform: translateY(-2px) !important;
}

/* If .list-wrap wrapper exists, make it transparent pass-through */
#buddypress ul#members-list li .list-wrap,
#buddypress ul.members-list li .list-wrap,
#buddypress li[data-bp-item-component="members"] .list-wrap,
#buddypress li.item-entry .list-wrap {
	display: flex !important;
	flex-direction: row !important;
	align-items: flex-start !important;
	gap: 16px !important;
	padding: 0 !important;
	margin: 0 !important;
	width: 100% !important;
	box-sizing: border-box !important;
	background: transparent !important;
	border: none !important;
	float: none !important;
}

/* Avatar Container */
#buddypress li.item-entry .item-avatar,
#buddypress li.bp-single-member .item-avatar,
li.item-entry .item-avatar {
	flex-shrink: 0 !important;
	width: 56px !important;
	height: 56px !important;
	margin: 0 !important;
	padding: 0 !important;
	position: relative !important;
	float: none !important;
}

#buddypress li.item-entry .item-avatar img,
#buddypress li.item-entry .item-avatar a img,
#buddypress li.bp-single-member .item-avatar img,
#buddypress li.bp-single-member .item-avatar a img,
li.item-entry .item-avatar img {
	width: 56px !important;
	height: 56px !important;
	min-width: 56px !important;
	min-height: 56px !important;
	max-width: 56px !important;
	max-height: 56px !important;
	border-radius: 50% !important;
	object-fit: cover !important;
	display: block !important;
	margin: 0 !important;
	border: 2px solid #F1F5F9 !important;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06) !important;
}

/* Online status indicator dot on avatar */
#buddypress li.item-entry.is-online .item-avatar::after,
#buddypress li.bp-single-member.is-online .item-avatar::after,
li.item-entry.is-online .item-avatar::after {
	content: '' !important;
	position: absolute !important;
	bottom: 2px !important;
	right: 2px !important;
	width: 12px !important;
	height: 12px !important;
	background: #10B981 !important;
	border: 2px solid #FFFFFF !important;
	border-radius: 50% !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* Author Content Details Block */
#buddypress li.item-entry .item,
#buddypress li.bp-single-member .item,
li.item-entry .item {
	flex: 1 1 auto !important;
	min-width: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 4px !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	background: transparent !important;
	border: none !important;
}

#buddypress li.item-entry .item-block,
li.item-entry .item-block {
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 4px !important;
	background: transparent !important;
	border: none !important;
}

/* Author Name Header */
#buddypress li.item-entry h2.list-title,
#buddypress li.item-entry h2.member-name,
#buddypress li.item-entry .member-name,
#buddypress li.item-entry .item-title,
#buddypress li.bp-single-member .item-title,
li.item-entry .member-name {
	font-family: var(--font-ui, 'Inter', sans-serif) !important;
	font-size: 1.05rem !important;
	font-weight: 700 !important;
	color: #0F172A !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1.3 !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	border: none !important;
	background: transparent !important;
}

#buddypress li.item-entry .member-name a,
#buddypress li.item-entry .item-title a,
#buddypress li.bp-single-member .item-title a,
li.item-entry .member-name a {
	color: #0F172A !important;
	text-decoration: none !important;
	transition: color 0.15s ease !important;
}

#buddypress li.item-entry .member-name a:hover,
#buddypress li.item-entry .item-title a:hover,
#buddypress li.bp-single-member .item-title a:hover,
li.item-entry .member-name a:hover {
	color: #4F46E5 !important;
}

/* Last Activity / Subtitle Text */
#buddypress li.item-entry p.item-meta,
#buddypress li.item-entry .last-activity,
#buddypress li.item-entry .item-meta,
#buddypress li.bp-single-member .item-meta,
li.item-entry .last-activity {
	font-size: 0.82rem !important;
	color: #64748B !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1.4 !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	border: none !important;
	background: transparent !important;
}

/* Action Container (Buttons Container) */
#buddypress li.item-entry ul.members-meta,
#buddypress li.item-entry ul.action,
#buddypress li.item-entry .item-block ul.members-meta,
#buddypress li.item-entry .item-block .action,
#buddypress .members-meta.action,
li.item-entry ul.members-meta {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	gap: 8px !important;
	margin: 12px 0 10px 0 !important;
	padding: 0 !important;
	border: none !important;
	background: transparent !important;
	box-shadow: none !important;
	list-style: none !important;
	float: none !important;
	clear: both !important;
	width: auto !important;
	max-width: 100% !important;
	position: static !important;
}

/* For Request Cards (Accept/Reject Container on the right) */
#buddypress li.item-entry>div.action,
#buddypress li.item-entry>div.friends-meta,
#buddypress li.bp-single-member>div.action,
#buddypress li.bp-single-member>div.friends-meta {
	display: inline-flex !important;
	flex-direction: row !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	gap: 8px !important;
	margin: 0 0 0 auto !important;
	padding: 0 !important;
	border: none !important;
	background: transparent !important;
	box-shadow: none !important;
	list-style: none !important;
	float: none !important;
	clear: none !important;
	width: auto !important;
	max-width: 100% !important;
	position: static !important;
	flex-shrink: 0 !important;
}

#buddypress li.item-entry ul.members-meta li,
#buddypress li.item-entry ul.action li,
#buddypress li.item-entry li.generic-button,
#buddypress li.item-entry li.friendship-button,
#buddypress li.item-entry div.generic-button,
#buddypress li.bp-single-member div.generic-button,
li.item-entry li.generic-button,
li.item-entry li.friendship-button {
	display: inline-flex !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	background: transparent !important;
	box-shadow: none !important;
	list-style: none !important;
	float: none !important;
	width: auto !important;
	max-width: 100% !important;
}

/* Accept Button (Green / Emerald) */
#buddypress li.item-entry button.accept,
#buddypress li.item-entry .accept button,
#buddypress li.item-entry a.accept,
#buddypress li.bp-single-member button.accept,
#buddypress li.bp-single-member .accept button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px !important;
	padding: 7px 18px !important;
	font-size: 0.84rem !important;
	font-weight: 600 !important;
	font-family: var(--font-ui, 'Inter', sans-serif) !important;
	border-radius: 9999px !important;
	cursor: pointer !important;
	text-decoration: none !important;
	white-space: nowrap !important;
	transition: all 0.2s ease !important;
	height: 36px !important;
	background: #10B981 !important;
	color: #FFFFFF !important;
	border: 1px solid #10B981 !important;
	box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2) !important;
}

#buddypress li.item-entry button.accept:hover,
#buddypress li.item-entry .accept button:hover,
#buddypress li.bp-single-member button.accept:hover {
	background: #059669 !important;
	border-color: #059669 !important;
	box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35) !important;
	transform: translateY(-1px) !important;
}

/* Reject Button (Soft Gray / Red on hover) */
#buddypress li.item-entry button.reject,
#buddypress li.item-entry .reject button,
#buddypress li.item-entry a.reject,
#buddypress li.bp-single-member button.reject,
#buddypress li.bp-single-member .reject button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px !important;
	padding: 7px 18px !important;
	font-size: 0.84rem !important;
	font-weight: 600 !important;
	font-family: var(--font-ui, 'Inter', sans-serif) !important;
	border-radius: 9999px !important;
	cursor: pointer !important;
	text-decoration: none !important;
	white-space: nowrap !important;
	transition: all 0.2s ease !important;
	height: 36px !important;
	background: #F1F5F9 !important;
	color: #64748B !important;
	border: 1px solid #CBD5E1 !important;
	box-shadow: none !important;
}

#buddypress li.item-entry button.reject:hover,
#buddypress li.item-entry .reject button:hover,
#buddypress li.bp-single-member button.reject:hover {
	background: #FEE2E2 !important;
	color: #DC2626 !important;
	border-color: #FECACA !important;
	transform: translateY(-1px) !important;
}

/* Modern Friendship Button Design */
#buddypress li.item-entry button.friendship-button,
#buddypress li.item-entry .generic-button button,
#buddypress li.item-entry .generic-button a,
#buddypress li.item-entry .action a.button,
#buddypress li.item-entry .action button,
li.item-entry button.friendship-button,
li.item-entry .generic-button button,
li.item-entry .generic-button a,
button.friendship-button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px !important;
	padding: 7px 18px !important;
	font-size: 0.84rem !important;
	font-weight: 600 !important;
	font-family: var(--font-ui, 'Inter', sans-serif) !important;
	border-radius: 9999px !important;
	cursor: pointer !important;
	text-decoration: none !important;
	white-space: nowrap !important;
	word-break: keep-all !important;
	overflow-wrap: normal !important;
	line-height: 1.4 !important;
	transition: all 0.2s ease !important;
	box-shadow: none !important;
	outline: none !important;
	width: auto !important;
	min-width: 0 !important;
	max-width: 100% !important;
	height: auto !important;
	min-height: 34px !important;
	margin: 0 !important;
	box-sizing: border-box !important;
}

/* Sent Confirmation Badge */
#buddypress li.item-entry button.sent-badge,
#buddypress button.sent-badge,
button.sent-badge,
.sent-badge {
	background: #FEF3C7 !important;
	color: #B45309 !important;
	border: 1px solid #FCD34D !important;
	cursor: default !important;
	pointer-events: none !important;
	opacity: 1 !important;
	box-shadow: none !important;
	transform: none !important;
}

/* Accepted & Rejected Confirmation Badges */
.friendship-accepted-badge,
#buddypress .friendship-accepted-badge {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px !important;
	padding: 7px 18px !important;
	font-size: 0.84rem !important;
	font-weight: 600 !important;
	font-family: var(--font-ui, 'Inter', sans-serif) !important;
	border-radius: 9999px !important;
	background: #ECFDF5 !important;
	color: #059669 !important;
	border: 1px solid #A7F3D0 !important;
	box-shadow: 0 1px 3px rgba(5, 150, 105, 0.1) !important;
	cursor: default !important;
	pointer-events: none !important;
	height: 36px !important;
	box-sizing: border-box !important;
}

.friendship-rejected-badge,
#buddypress .friendship-rejected-badge {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px !important;
	padding: 7px 18px !important;
	font-size: 0.84rem !important;
	font-weight: 600 !important;
	font-family: var(--font-ui, 'Inter', sans-serif) !important;
	border-radius: 9999px !important;
	background: #F1F5F9 !important;
	color: #64748B !important;
	border: 1px solid #CBD5E1 !important;
	cursor: default !important;
	pointer-events: none !important;
	height: 36px !important;
	box-sizing: border-box !important;
}

/* Friendship Button States & Spinner Animation */
@keyframes bpBtnSpin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

.bp-btn-spinner,
#buddypress .bp-btn-spinner {
	display: inline-block !important;
	width: 12px !important;
	height: 12px !important;
	border: 2px solid rgba(79, 70, 229, 0.3) !important;
	border-top-color: currentColor !important;
	border-radius: 50% !important;
	animation: bpBtnSpin 0.7s linear infinite !important;
	vertical-align: middle !important;
	margin-right: 4px !important;
}

#buddypress li.item-entry button.is-loading,
#buddypress button.is-loading {
	opacity: 0.8 !important;
	pointer-events: none !important;
	cursor: wait !important;
}

/* Add Friend (Not Friends) State */
#buddypress li.item-entry .not_friends button:not(.requested):not(.pending_friend):not(.is_friend),
#buddypress li.item-entry button.not_friends:not(.requested):not(.pending_friend):not(.is_friend),
#buddypress li.item-entry button.add:not(.requested):not(.pending_friend):not(.is_friend),
button.friendship-button.not_friends:not(.requested):not(.pending_friend):not(.is_friend),
button.friendship-button.add:not(.requested):not(.pending_friend):not(.is_friend) {
	background: #EEF2FF !important;
	color: #4F46E5 !important;
	border: 1px solid #C7D2FE !important;
}

#buddypress li.item-entry .not_friends button:not(.requested):not(.pending_friend):not(.is_friend):hover,
#buddypress li.item-entry button.not_friends:not(.requested):not(.pending_friend):not(.is_friend):hover,
#buddypress li.item-entry button.add:not(.requested):not(.pending_friend):not(.is_friend):hover,
button.friendship-button.not_friends:not(.requested):not(.pending_friend):not(.is_friend):hover,
button.friendship-button.add:not(.requested):not(.pending_friend):not(.is_friend):hover {
	background: #4F46E5 !important;
	color: #FFFFFF !important;
	border-color: #4F46E5 !important;
	box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25) !important;
	transform: translateY(-1px) !important;
}

/* Friendship Requested (Pending) State */
#buddypress li.item-entry button.pending_friend,
#buddypress li.item-entry button.requested,
#buddypress li.item-entry .pending_friend button,
#buddypress li.item-entry .requested button,
button.friendship-button.pending_friend,
button.friendship-button.requested {
	background: #FEF3C7 !important;
	color: #B45309 !important;
	border: 1px solid #FCD34D !important;
}

#buddypress li.item-entry button.pending_friend:hover,
#buddypress li.item-entry button.requested:hover,
#buddypress li.item-entry .pending_friend button:hover,
#buddypress li.item-entry .requested button:hover,
button.friendship-button.pending_friend:hover,
button.friendship-button.requested:hover {
	background: #FDE68A !important;
	color: #92400E !important;
	border-color: #F59E0B !important;
}

/* Already Friends (Is Friend) State */
#buddypress li.item-entry button.is_friend,
#buddypress li.item-entry button.remove,
#buddypress li.item-entry .is_friend button,
button.friendship-button.is_friend {
	background: #ECFDF5 !important;
	color: #059669 !important;
	border: 1px solid #A7F3D0 !important;
}

#buddypress li.item-entry button.is_friend:hover,
#buddypress li.item-entry button.remove:hover,
button.friendship-button.is_friend:hover {
	background: #FEE2E2 !important;
	color: #DC2626 !important;
	border-color: #FECACA !important;
}

/* User Status / Quote Bubble (.user-update) */
#buddypress li.item-entry .user-update,
li.item-entry .user-update {
	display: block !important;
	margin: 2px 0 0 0 !important;
	padding: 8px 12px !important;
	background: #F8FAFC !important;
	border: 1px dashed #E2E8F0 !important;
	border-radius: 8px !important;
	width: 100% !important;
	box-sizing: border-box !important;
	float: none !important;
	clear: both !important;
}

#buddypress li.item-entry .user-update p.update,
#buddypress li.item-entry .user-update p,
li.item-entry .user-update p {
	font-size: 0.84rem !important;
	font-style: italic !important;
	color: #64748B !important;
	line-height: 1.4 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	background: transparent !important;
	overflow-wrap: break-word !important;
	word-break: break-word !important;
}

/* Mobile responsive author grid */
@media (max-width: 640px) {

	#buddypress ul#members-list,
	#buddypress ul.members-list,
	ul#members-list,
	ul.members-list {
		grid-template-columns: 1fr !important;
		gap: 14px !important;
	}

	#buddypress li.item-entry .list-wrap,
	li.item-entry .list-wrap {
		padding: 16px 18px !important;
		gap: 14px !important;
	}

	#buddypress li.item-entry .item-avatar,
	li.item-entry .item-avatar {
		width: 54px !important;
		height: 54px !important;
	}

	#buddypress li.item-entry .item-avatar img,
	li.item-entry .item-avatar img {
		width: 54px !important;
		height: 54px !important;
		min-width: 54px !important;
		min-height: 54px !important;
	}
}

/* ==========================================================================
   8. GROUPS & CLUBS CREATION REDESIGN (#group-create-body & Groups UI)
   ========================================================================== */

#buddypress #group-create-body,
#group-create-body {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
}

/* Stepper Navigation Wizard Bar */
#buddypress #group-create-tabs,
#buddypress nav.group-create-links,
nav#group-create-tabs {
	margin: 0 0 32px 0 !important;
	padding: 0 !important;
	border: none !important;
	background: transparent !important;
}

#buddypress ol.group-create-buttons,
#buddypress .button-tabs,
ol.group-create-buttons {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	gap: 10px 12px !important;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	background: transparent !important;
}

#buddypress ol.group-create-buttons li,
ol.group-create-buttons li {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	float: none !important;
	background: transparent !important;
	border: none !important;
}

#buddypress ol.group-create-buttons li a,
#buddypress ol.group-create-buttons li span,
ol.group-create-buttons li a,
ol.group-create-buttons li span {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 9px 18px !important;
	border-radius: 9999px !important;
	font-size: 0.88rem !important;
	font-weight: 600 !important;
	color: #64748B !important;
	background: #F1F5F9 !important;
	border: 1px solid #E2E8F0 !important;
	text-decoration: none !important;
	transition: all 0.2s ease !important;
	box-shadow: none !important;
}

#buddypress ol.group-create-buttons li.current a,
#buddypress ol.group-create-buttons li.current span,
ol.group-create-buttons li.current a,
ol.group-create-buttons li.current span {
	background: #4F46E5 !important;
	color: #FFFFFF !important;
	border-color: #4F46E5 !important;
	box-shadow: 0 0px 0px rgba(79, 70, 229, 0.25) !important;
}

#buddypress ol.group-create-buttons li a:hover,
ol.group-create-buttons li a:hover {
	background: #E2E8F0 !important;
	color: #0F172A !important;
}

/* Step Title Heading */
#buddypress h3.creation-step-name,
h3.creation-step-name {
	font-family: var(--font-serif, 'Playfair Display', Georgia, serif) !important;
	font-size: 1.6rem !important;
	font-weight: 700 !important;
	color: #0F172A !important;
	margin: 0 0 24px 0 !important;
	padding-bottom: 12px !important;
	border-bottom: 1px solid #E2E8F0 !important;
	line-height: 1.3 !important;
}

/* Form Labels */
#buddypress #group-create-body label,
#group-create-body label {
	display: block !important;
	font-size: 0.9rem !important;
	font-weight: 600 !important;
	color: #334155 !important;
	margin: 0 0 8px 0 !important;
	padding: 0 !important;
}

/* Form Inputs (Group Name & Group Description) */
#buddypress #group-create-body input[type="text"],
#buddypress #group-name,
#group-name {
	width: 100% !important;
	height: 46px !important;
	padding: 0 16px !important;
	border: 1px solid #CBD5E1 !important;
	border-radius: 12px !important;
	font-size: 0.95rem !important;
	font-family: var(--font-ui, 'Inter', sans-serif) !important;
	background: #FFFFFF !important;
	color: #0F172A !important;
	margin-bottom: 24px !important;
	box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.02) !important;
	outline: none !important;
	box-sizing: border-box !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

#buddypress #group-create-body textarea,
#buddypress #group-desc,
#group-desc {
	width: 100% !important;
	min-height: 120px !important;
	max-height: 240px !important;
	padding: 14px 16px !important;
	border: 1px solid #CBD5E1 !important;
	border-radius: 12px !important;
	font-size: 0.95rem !important;
	font-family: var(--font-ui, 'Inter', sans-serif) !important;
	background: #FFFFFF !important;
	color: #0F172A !important;
	margin-bottom: 28px !important;
	box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.02) !important;
	outline: none !important;
	box-sizing: border-box !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

#buddypress #group-create-body input[type="text"]:focus,
#buddypress #group-create-body textarea:focus,
#group-name:focus,
#group-desc:focus {
	border-color: #4F46E5 !important;
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12) !important;
}

/* Group Settings Selection Cards & Radio Fieldsets */
#buddypress .group-settings-selections,
.group-settings-selections {
	width: 100% !important;
	margin-bottom: 28px !important;
}

#buddypress .group-settings-selections fieldset,
#buddypress fieldset.radio,
.group-settings-selections fieldset,
fieldset.radio,
fieldset.group-status-type,
fieldset.group-invitations {
	background: #FFFFFF !important;
	border: 1px solid var(--border-color, #E2E8F0) !important;
	border-radius: 16px !important;
	padding: 24px 28px !important;
	margin: 0 0 24px 0 !important;
	box-shadow: 0 2px 12px rgba(15, 23, 42, 0.03) !important;
	box-sizing: border-box !important;
}

#buddypress .group-settings-selections legend,
#buddypress fieldset legend,
.group-settings-selections legend,
fieldset legend {
	font-family: var(--font-serif, 'Playfair Display', Georgia, serif) !important;
	font-size: 1.15rem !important;
	font-weight: 700 !important;
	color: #0F172A !important;
	padding: 0 10px !important;
	margin-bottom: 16px !important;
	float: none !important;
	width: auto !important;
	border: none !important;
}

#buddypress .group-settings-selections label,
#buddypress fieldset.radio label,
.group-settings-selections label,
fieldset.radio label {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	font-size: 0.95rem !important;
	font-weight: 600 !important;
	color: #1E293B !important;
	margin: 18px 0 8px 0 !important;
	cursor: pointer !important;
	padding: 0 !important;
}

#buddypress .group-settings-selections input[type="radio"],
#buddypress fieldset.radio input[type="radio"],
.group-settings-selections input[type="radio"] {
	width: 18px !important;
	height: 18px !important;
	accent-color: #4F46E5 !important;
	margin: 0 !important;
	cursor: pointer !important;
	flex-shrink: 0 !important;
}

#buddypress .group-settings-selections ul,
.group-settings-selections ul {
	margin: 8px 0 16px 28px !important;
	padding: 12px 16px 12px 28px !important;
	background: #F8FAFC !important;
	border-left: 3px solid #CBD5E1 !important;
	border-radius: 0 10px 10px 0 !important;
	list-style: disc !important;
}

#buddypress .group-settings-selections ul li,
.group-settings-selections ul li {
	font-size: 0.88rem !important;
	color: #64748B !important;
	line-height: 1.6 !important;
	margin-bottom: 4px !important;
}

#buddypress .group-settings-selections p,
.group-settings-selections p {
	font-size: 0.9rem !important;
	color: #64748B !important;
	margin: 0 0 14px 0 !important;
	line-height: 1.5 !important;
}

/* Submit & Navigation Buttons Pair Container (#previous-next) */
#buddypress #previous-next,
#buddypress div.submit,
div#previous-next {
	margin-top: 28px !important;
	padding: 0 !important;
	display: flex !important;
	align-items: center !important;
	gap: 14px !important;
	clear: both !important;
}

/* Primary Button (Next Step / Create Group / Save) */
#buddypress #group-creation-create,
#buddypress #group-creation-next,
#buddypress #previous-next input[type="submit"],
#group-creation-create,
#group-creation-next {

	color: #FFFFFF !important;
	border: none !important;
	border-radius: 12px !important;
	padding: 12px 28px !important;
	font-size: 0.95rem !important;
	font-weight: 600 !important;
	font-family: var(--font-ui, 'Inter', sans-serif) !important;
	cursor: pointer !important;
	box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3) !important;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	height: 48px !important;
	box-sizing: border-box !important;
}

#buddypress #group-creation-create:hover,
#buddypress #group-creation-next:hover,
#buddypress #previous-next input[type="submit"]:hover,
#group-creation-create:hover,
#group-creation-next:hover {
	transform: translateY(-1px) !important;
	box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4) !important;
}

/* Secondary Button (Previous Step) */
#buddypress #group-creation-previous,
#buddypress #previous-next input[type="button"],
#group-creation-previous {
	background: #F1F5F9 !important;
	color: #475569 !important;
	border: 1px solid #CBD5E1 !important;
	border-radius: 12px !important;
	padding: 12px 28px !important;
	font-size: 0.95rem !important;
	font-weight: 600 !important;
	font-family: var(--font-ui, 'Inter', sans-serif) !important;
	cursor: pointer !important;
	box-shadow: none !important;
	transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	height: 48px !important;
	box-sizing: border-box !important;
}

#buddypress #group-creation-previous:hover,
#buddypress #previous-next input[type="button"]:hover,
#group-creation-previous:hover {
	background: #E2E8F0 !important;
	color: #0F172A !important;
	border-color: #94A3B8 !important;
	transform: translateY(-1px) !important;
}

/* Groups Directory Card Grid */
#buddypress ul#groups-list,
#buddypress ul.groups-list,
#buddypress ul.item-list.groups-list,
ul#groups-list,
ul.groups-list {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
	gap: 16px !important;
	list-style: none !important;
	margin: 16px 0 36px 0 !important;
	padding: 0 !important;
	clear: both !important;
	float: none !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

/* Groups Directory Card (li.item-entry) */
#buddypress ul#groups-list>li,
#buddypress ul.groups-list>li,
#buddypress ul.item-list.groups-list>li,
#buddypress li[data-bp-item-component="groups"],
li.bp-single-group {
	grid-column: auto !important;
	grid-row: auto !important;
	background: #FFFFFF !important;
	border: 1px solid var(--border-color, #E2E8F0) !important;
	border-radius: 16px !important;
	overflow: hidden !important;
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03) !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	position: relative !important;
	animation: none !important;
	transform: none !important;
	float: none !important;
	clear: none !important;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	text-align: left !important;
}

#buddypress ul#groups-list>li.odd,
#buddypress ul#groups-list>li.even,
#buddypress ul.groups-list>li.odd,
#buddypress ul.groups-list>li.even,
#buddypress ul.item-list.groups-list>li.odd,
#buddypress ul.item-list.groups-list>li.even {
	float: none !important;
	clear: none !important;
	margin: 0 !important;
	left: auto !important;
	right: auto !important;
}

#buddypress ul#groups-list>li:hover,
#buddypress ul.groups-list>li:hover,
#buddypress ul.item-list.groups-list>li:hover,
#buddypress li[data-bp-item-component="groups"]:hover {
	border-color: #CBD5E1 !important;
	box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06) !important;
	transform: translateY(-2px) !important;
}

/* Card Layout Container */
#buddypress ul#groups-list li .list-wrap,
#buddypress ul.groups-list li .list-wrap,
#buddypress li[data-bp-item-component="groups"] .list-wrap,
.groups-list li .list-wrap,
.list-wrap {
	display: flex !important;
	flex-direction: row !important;
	align-items: flex-start !important;
	justify-content: flex-start !important;
	padding: 16px 18px !important;
	gap: 14px !important;
	width: 100% !important;
	box-sizing: border-box !important;
	background: transparent !important;
	border: none !important;
	float: none !important;
	margin: 0 !important;
	text-align: left !important;
}

/* Group Avatar (Logo) */
#buddypress ul#groups-list .item-avatar,
#buddypress ul.groups-list .item-avatar,
#buddypress li[data-bp-item-component="groups"] .item-avatar,
.groups-list .item-avatar,
.list-wrap .item-avatar {
	flex-shrink: 0 !important;
	width: 56px !important;
	height: 56px !important;
	min-width: 56px !important;
	min-height: 56px !important;
	max-width: 56px !important;
	max-height: 56px !important;
	margin: 0 !important;
	padding: 0 !important;
	position: relative !important;
	float: none !important;
	text-align: left !important;
}

#buddypress ul#groups-list .item-avatar img,
#buddypress ul.groups-list .item-avatar img,
#buddypress li[data-bp-item-component="groups"] .item-avatar img,
.groups-list .item-avatar img,
.list-wrap .item-avatar img {
	width: 56px !important;
	height: 56px !important;
	min-width: 56px !important;
	min-height: 56px !important;
	max-width: 56px !important;
	max-height: 56px !important;
	border-radius: 14px !important;
	object-fit: cover !important;
	display: block !important;
	margin: 0 !important;
	border: 1.5px solid #F1F5F9 !important;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06) !important;
	transition: transform 0.2s ease !important;
}

#buddypress ul#groups-list .item-avatar a:hover img,
#buddypress ul.groups-list .item-avatar a:hover img,
.list-wrap .item-avatar a:hover img {
	transform: scale(1.04) !important;
}

/* Item Column (Block + Description) */
#buddypress ul#groups-list li .item,
#buddypress ul.groups-list li .item,
#buddypress li[data-bp-item-component="groups"] .item,
.groups-list li .item,
.list-wrap .item {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	justify-content: flex-start !important;
	gap: 6px !important;
	flex: 1 1 auto !important;
	min-width: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	background: transparent !important;
	border: none !important;
	text-align: left !important;
}

/* Item block (Title + Meta) */
#buddypress ul#groups-list li .item-block,
#buddypress ul.groups-list li .item-block,
#buddypress li[data-bp-item-component="groups"] .item-block,
.groups-list li .item-block,
.list-wrap .item-block {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	justify-content: flex-start !important;
	gap: 3px !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
	text-align: left !important;
}

/* Group Title */
#buddypress ul#groups-list h2.groups-title,
#buddypress ul.groups-list h2.groups-title,
#buddypress li[data-bp-item-component="groups"] h2.groups-title,
.groups-list h2.groups-title,
.groups-title,
.list-title.groups-title {
	font-family: var(--font-ui, 'Inter', -apple-system, sans-serif) !important;
	font-size: 1.05rem !important;
	font-weight: 700 !important;
	color: #0F172A !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1.35 !important;
	white-space: normal !important;
	word-wrap: break-word !important;
	overflow-wrap: break-word !important;
	overflow: visible !important;
	text-overflow: clip !important;
	border: none !important;
	float: none !important;
	width: 100% !important;
	text-align: left !important;
}

#buddypress ul#groups-list h2.groups-title a,
#buddypress ul.groups-list h2.groups-title a,
#buddypress li[data-bp-item-component="groups"] h2.groups-title a,
.groups-title a,
.list-title.groups-title a {
	color: #0F172A !important;
	text-decoration: none !important;
	transition: color 0.15s ease !important;
	text-align: left !important;
}

#buddypress ul#groups-list h2.groups-title a:hover,
#buddypress ul.groups-list h2.groups-title a:hover,
.groups-title a:hover,
.list-title.groups-title a:hover {
	color: #4F46E5 !important;
}

/* Group Details & Last Activity Meta */
#buddypress ul#groups-list p.group-details,
#buddypress ul.groups-list p.group-details,
#buddypress li[data-bp-item-component="groups"] p.group-details,
.group-details,
p.item-meta.group-details {
	font-size: 0.82rem !important;
	font-weight: 600 !important;
	color: #4F46E5 !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1.35 !important;
	white-space: normal !important;
	border: none !important;
	background: transparent !important;
	float: none !important;
	width: 100% !important;
	text-align: left !important;
}

#buddypress ul#groups-list p.last-activity,
#buddypress ul.groups-list p.last-activity,
#buddypress li[data-bp-item-component="groups"] p.last-activity,
.last-activity,
p.last-activity.item-meta {
	font-size: 0.78rem !important;
	font-weight: 400 !important;
	color: #94A3B8 !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1.35 !important;
	white-space: normal !important;
	border: none !important;
	background: transparent !important;
	float: none !important;
	width: 100% !important;
	text-align: left !important;
}

/* Group Description Box (Full-Width Underneath) */
#buddypress ul#groups-list .group-desc,
#buddypress ul.groups-list .group-desc,
#buddypress li[data-bp-item-component="groups"] .group-desc,
.groups-list .group-desc,
.group-desc {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 100% !important;
	float: none !important;
	clear: both !important;
	margin: 4px 0 0 0 !important;
	padding: 8px 12px !important;
	background: #F8FAFC !important;
	border: 1px solid #F1F5F9 !important;
	border-radius: 10px !important;
	box-sizing: border-box !important;
	font-size: 0.84rem !important;
	color: #475569 !important;
	line-height: 1.45 !important;
	position: relative !important;
	text-align: left !important;
}

#buddypress ul#groups-list .group-desc:empty,
#buddypress ul.groups-list .group-desc:empty,
.groups-list .group-desc:empty,
.group-desc:empty {
	display: none !important;
}

#buddypress ul#groups-list .group-desc p:empty,
#buddypress ul.groups-list .group-desc p:empty,
.groups-list .group-desc p:empty,
.group-desc p:empty {
	display: none !important;
}

#buddypress ul#groups-list .group-desc p,
#buddypress ul.groups-list .group-desc p,
#buddypress li[data-bp-item-component="groups"] .group-desc p,
.groups-list .group-desc p,
.group-desc p {
	margin: 0 !important;
	padding: 0 !important;
	font-style: normal !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 3 !important;
	-webkit-box-orient: vertical !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	width: 100% !important;
	float: none !important;
	text-align: left !important;
}

@media (max-width: 640px) {

	#buddypress ul#groups-list li .list-wrap,
	#buddypress ul.groups-list li .list-wrap,
	#buddypress li[data-bp-item-component="groups"] .list-wrap,
	.groups-list li .list-wrap,
	.list-wrap {
		padding: 13px 14px !important;
		gap: 12px !important;
		align-items: flex-start !important;
		justify-content: flex-start !important;
		text-align: left !important;
	}

	#buddypress ul#groups-list .item-avatar,
	#buddypress ul.groups-list .item-avatar,
	#buddypress li[data-bp-item-component="groups"] .item-avatar,
	.groups-list .item-avatar,
	.list-wrap .item-avatar {
		width: 48px !important;
		height: 48px !important;
		min-width: 48px !important;
		min-height: 48px !important;
		max-width: 48px !important;
		max-height: 48px !important;
		text-align: left !important;
		margin: 0 !important;
	}

	#buddypress ul#groups-list .item-avatar img,
	#buddypress ul.groups-list .item-avatar img,
	#buddypress li[data-bp-item-component="groups"] .item-avatar img,
	.groups-list .item-avatar img,
	.list-wrap .item-avatar img {
		width: 48px !important;
		height: 48px !important;
		min-width: 48px !important;
		min-height: 48px !important;
		border-radius: 12px !important;
	}

	#buddypress ul#groups-list h2.groups-title,
	#buddypress ul.groups-list h2.groups-title,
	.groups-title,
	.list-title.groups-title {
		font-size: 0.98rem !important;
		text-align: left !important;
	}

	#buddypress ul#groups-list li .item,
	#buddypress ul.groups-list li .item,
	.groups-list li .item,
	.list-wrap .item,
	.list-wrap .item-block,
	.list-wrap .group-details,
	.list-wrap .last-activity,
	.list-wrap .group-desc {
		text-align: left !important;
		align-items: flex-start !important;
	}

	#buddypress ul#groups-list .group-desc,
	#buddypress ul.groups-list .group-desc,
	.groups-list .group-desc,
	.group-desc {
		padding: 7px 10px !important;
		font-size: 0.82rem !important;
		text-align: left !important;
	}
}

@media (max-width: 640px) {

	#buddypress #previous-next,
	div#previous-next {
		flex-direction: column-reverse !important;
		width: 100% !important;
		gap: 10px !important;
	}

	#buddypress #previous-next input[type="submit"],
	#buddypress #previous-next input[type="button"],
	#group-creation-create,
	#group-creation-next,
	#group-creation-previous {
		width: 100% !important;
	}

	#buddypress ol.group-create-buttons,
	ol.group-create-buttons {
		gap: 8px !important;
	}

	#buddypress ol.group-create-buttons li a,
	#buddypress ol.group-create-buttons li span,
	ol.group-create-buttons li a,
	ol.group-create-buttons li span {
		padding: 7px 14px !important;
		font-size: 0.82rem !important;
	}
}

/* ==========================================================================
   9. SINGLE GROUP PAGE HERO HEADER OVERHAUL (#item-header.groups-header)
   ========================================================================== */

/* Outer Single Group Hero Card */
#buddypress #item-header.groups-header,
#buddypress div.groups-header,
.groups-header.single-headers {
	display: flex !important;
	flex-direction: column !important;
	width: 100% !important;
	max-width: 100% !important;
	margin-bottom: 32px !important;
	padding: 0 !important;
	background: #FFFFFF !important;
	border: 1px solid var(--border-color, #E2E8F0) !important;
	border-radius: 20px !important;
	box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
	overflow: hidden !important;
	box-sizing: border-box !important;
	position: relative !important;
	float: none !important;
	clear: both !important;
}

#group-invites-container {
	gap: 15px !important;
}

.groups-header .desc-wrap .group-description {
	background: #ffffff00 !important;
	box-shadow: inset 0 0 0px #ccc !important;
}

.groups-header .desc-wrap {
	border: 0px solid #d6d6d6;
}

/* Inner Cover Image Container */
#buddypress #item-header.groups-header #cover-image-container,
#buddypress .groups-header #cover-image-container {
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	background: transparent !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	position: relative !important;
}

/* Cover Image Banner */
#buddypress #item-header.groups-header #header-cover-image,
#buddypress .groups-header #header-cover-image {
	display: block !important;
	width: 100% !important;
	height: 180px !important;
	min-height: 180px !important;
	max-height: 180px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	border-radius: 19px 19px 0 0 !important;
	background-size: cover !important;
	background-position: center center !important;
	background-repeat: no-repeat !important;
	position: relative !important;
}

/* Info Bar Below Cover Banner */
#buddypress #item-header.groups-header #item-header-cover-image,
#buddypress .groups-header #item-header-cover-image {
	background-color: #FFFFFF !important;
	padding: 0 32px 20px 32px !important;
	display: flex !important;
	flex-direction: row !important;
	align-items: flex-start !important;
	justify-content: space-between !important;
	gap: 24px !important;
	width: 100% !important;
	box-sizing: border-box !important;
	margin-top: 10px !important;
	border: none !important;
	position: relative !important;
	z-index: 2 !important;
	min-height: auto !important;
	height: auto !important;
}

/* Overlapping Group Avatar Logo */
#buddypress #item-header.groups-header #item-header-avatar,
#buddypress .groups-header #item-header-avatar {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: -52px 0 0 0 !important;
	float: none !important;
	width: auto !important;
	height: auto !important;
	flex-shrink: 0 !important;
	position: relative !important;
	z-index: 3 !important;
}

#buddypress #item-header.groups-header #item-header-avatar img,
#buddypress .groups-header #item-header-avatar img {
	width: 104px !important;
	height: 104px !important;
	min-width: 104px !important;
	min-height: 104px !important;
	max-width: 104px !important;
	max-height: 104px !important;
	border-radius: 24px !important;
	object-fit: cover !important;
	border: 4px solid #FFFFFF !important;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14) !important;
	display: block !important;
	margin: 0 !important;
	background: #FFFFFF !important;
}

/* Group Title, Status & Activity Block */
#buddypress #item-header.groups-header #item-header-content,
#buddypress .groups-header #item-header-content {
	flex: 1 !important;
	margin-top: 10px !important;
	padding: 0 !important;
	float: none !important;
	width: auto !important;
	background: transparent !important;
	border: none !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	gap: 8px !important;
}

#buddypress #item-header.groups-header #item-header-content p.highlight.group-status,
#buddypress .groups-header #item-header-content p.group-status {
	display: inline-flex !important;
	align-items: center !important;
	background: #EEF2FF !important;
	color: #4F46E5 !important;
	font-size: 0.78rem !important;
	font-weight: 700 !important;
	padding: 4px 14px !important;
	border-radius: 9999px !important;
	margin: 0 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.04em !important;
	border: 1px solid #E0E7FF !important;
}

#buddypress #item-header.groups-header #item-header-content h2,
#buddypress .groups-header #item-header-content h2 {
	font-family: var(--font-serif, 'Playfair Display', Georgia, serif) !important;
	font-size: 1.65rem !important;
	font-weight: 700 !important;
	color: #0F172A !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1.25 !important;
	letter-spacing: -0.01em !important;
	text-shadow: none !important;
}

#buddypress #item-header.groups-header #item-header-content p.activity,
#buddypress .groups-header #item-header-content p.activity {
	font-size: 0.82rem !important;
	font-weight: 500 !important;
	color: #64748B !important;
	margin: 0 !important;
	padding: 3px 12px !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 4px !important;
	line-height: 1.4 !important;
	text-shadow: none !important;
}

/* Group Leaders / Admins Section on the Right */
#buddypress #item-header.groups-header #item-actions,
#buddypress .groups-header .group-item-actions {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-end !important;
	justify-content: flex-end !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	background: transparent !important;
	flex-shrink: 0 !important;
	float: none !important;
	gap: 6px !important;
}

#buddypress .groups-header .moderators-lists,
#buddypress .groups-header dl.moderators-lists {
	margin: 0 !important;
	padding: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-end !important;
	gap: 4px !important;
}

#buddypress .groups-header dt.moderators-title {
	font-size: 0.65rem !important;
	font-weight: 600 !important;
	color: #94A3B8 !important;
	margin: 0 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.04em !important;
	text-align: right !important;
}

.moderators-title {
	padding-top: 10px;
}

#buddypress .groups-header dd.admins,
#buddypress .groups-header ul#group-admins {
	margin: 0 !important;
	padding: 0 !important;
	display: flex !important;
	align-items: center !important;
	gap: 6px !important;
	list-style: none !important;
}

#buddypress .groups-header ul#group-admins li {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

#buddypress .groups-header ul#group-admins img.avatar {
	width: 36px !important;
	height: 36px !important;
	min-width: 36px !important;
	min-height: 36px !important;
	border-radius: 50% !important;
	border: 2px solid #FFFFFF !important;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1) !important;
	object-fit: cover !important;
	display: block !important;
	transition: transform 0.2s ease !important;
}

#buddypress .groups-header ul#group-admins a:hover img.avatar {
	transform: scale(1.12) !important;
}

/* Full-Width Group Description Box Below Hero Bar */
#buddypress #item-header.groups-header .desc-wrap,
#buddypress .groups-header .desc-wrap {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	padding: 16px 32px !important;
	background: #F8FAFC !important;
	border-top: 1px solid #F1F5F9 !important;
	margin: 0 !important;
	clear: both !important;
	float: none !important;
}

#buddypress .groups-header .group-description,
#buddypress .groups-header .group-description p {
	margin: 0 !important;
	padding: 0 !important;
	font-size: 0.94rem !important;
	color: #475569 !important;
	line-height: 1.6 !important;
	font-style: normal !important;
}

/* ==========================================================================
   Group Action Buttons (.group-button, .join-group, .leave-group, etc.)
   ========================================================================== */

#buddypress .group-button,
#buddypress button.group-button,
#buddypress a.group-button,
#buddypress .generic-button a.group-button,
#buddypress .generic-button button.group-button,
.group-button.button,
button[data-bp-btn-action="join_group"],
button[data-bp-btn-action="leave_group"],
button[data-bp-btn-action="request_membership"] {
	font-family: var(--font-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif) !important;
	font-size: 0.90rem !important;
	font-weight: 600 !important;
	line-height: 1.25 !important;
	letter-spacing: -0.01em !important;
	padding: 10px 22px !important;
	border-radius: 9999px !important;
	border: 1px solid transparent !important;
	cursor: pointer !important;
	text-decoration: none !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
	box-sizing: border-box !important;
	position: relative !important;
	outline: none !important;
	white-space: nowrap !important;
	user-select: none !important;
}

/* Primary "Join Group" Button (Вступить в группу) */
#buddypress .group-button.join-group,
#buddypress button.group-button.join-group,
#buddypress a.group-button.join-group,
#buddypress .generic-button.join-group button,
#buddypress .generic-button.join-group a,
.group-button.join-group,
button.join-group,
button[data-bp-btn-action="join_group"],
a[data-bp-btn-action="join_group"] {
	background: linear-gradient(135deg, #4F46E5 0%, #6366F1 50%, #7C3AED 100%) !important;
	background-size: 200% auto !important;
	color: #FFFFFF !important;
	border: 1px solid rgba(255, 255, 255, 0.2) !important;
	box-shadow: 0 4px 14px -1px rgba(79, 70, 229, 0.4), 0 2px 6px -1px rgba(79, 70, 229, 0.25) !important;
}

/* User-Plus Icon for Join Group */
#buddypress .group-button.join-group::before,
#buddypress button.group-button.join-group::before,
#buddypress a.group-button.join-group::before,
.group-button.join-group::before,
button[data-bp-btn-action="join_group"]::before {
	content: "" !important;
	display: inline-block !important;
	width: 16px !important;
	height: 16px !important;
	min-width: 16px !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cline x1='19' y1='8' x2='19' y2='14'/%3E%3Cline x1='22' y1='11' x2='16' y2='11'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-size: contain !important;
	background-position: center !important;
	transition: transform 0.25s ease !important;
	margin-right: 2px !important;
}

/* Hover State */
#buddypress .group-button.join-group:hover,
#buddypress button.group-button.join-group:hover,
#buddypress a.group-button.join-group:hover,
#buddypress .generic-button.join-group button:hover,
#buddypress .generic-button.join-group a:hover,
.group-button.join-group:hover,
button.join-group:hover,
button[data-bp-btn-action="join_group"]:hover,
a[data-bp-btn-action="join_group"]:hover {
	transform: translateY(-2px) !important;
	background-position: right center !important;
	box-shadow: 0 8px 24px -2px rgba(79, 70, 229, 0.55), 0 4px 10px -2px rgba(79, 70, 229, 0.3) !important;
	color: #FFFFFF !important;
}

#buddypress .group-button.join-group:hover::before,
#buddypress button.group-button.join-group:hover::before,
button[data-bp-btn-action="join_group"]:hover::before {
	transform: scale(1.15) !important;
}

/* Active State */
#buddypress .group-button.join-group:active,
#buddypress button.group-button.join-group:active,
#buddypress a.group-button.join-group:active,
.group-button.join-group:active,
button[data-bp-btn-action="join_group"]:active {
	transform: translateY(0) scale(0.98) !important;
	box-shadow: 0 2px 8px rgba(79, 70, 229, 0.35) !important;
}

/* Focus Visible */
#buddypress .group-button.join-group:focus-visible,
#buddypress button.group-button.join-group:focus-visible,
button[data-bp-btn-action="join_group"]:focus-visible {
	outline: none !important;
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.35), 0 6px 20px rgba(79, 70, 229, 0.45) !important;
}

/* Secondary "Leave Group" Button (Покинуть группу) */
#buddypress .group-button.leave-group,
#buddypress button.group-button.leave-group,
#buddypress a.group-button.leave-group,
#buddypress .generic-button.leave-group button,
#buddypress .generic-button.leave-group a,
.group-button.leave-group,
button[data-bp-btn-action="leave_group"] {
	background: #F8FAFC !important;
	color: #64748B !important;
	border: 1px solid #E2E8F0 !important;
	box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
}

#buddypress .group-button.leave-group::before,
#buddypress button.group-button.leave-group::before,
.group-button.leave-group::before,
button[data-bp-btn-action="leave_group"]::before {
	content: "" !important;
	display: inline-block !important;
	width: 15px !important;
	height: 15px !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-size: contain !important;
	background-position: center !important;
	transition: all 0.2s ease !important;
}

#buddypress .group-button.leave-group:hover,
#buddypress button.group-button.leave-group:hover,
#buddypress a.group-button.leave-group:hover,
.group-button.leave-group:hover,
button[data-bp-btn-action="leave_group"]:hover {
	background: #FEF2F2 !important;
	color: #EF4444 !important;
	border-color: #FECACA !important;
	box-shadow: 0 4px 14px rgba(239, 68, 68, 0.15) !important;
	transform: translateY(-2px) !important;
}

#buddypress .group-button.leave-group:hover::before,
#buddypress button.group-button.leave-group:hover::before,
button[data-bp-btn-action="leave_group"]:hover::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23EF4444' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E") !important;
}

/* "Request Membership" Button (Запросить членство) */
#buddypress .group-button.request-membership,
#buddypress button.group-button.request-membership,
#buddypress a.group-button.request-membership,
.group-button.request-membership,
button[data-bp-btn-action="request_membership"] {
	background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
	color: #FFFFFF !important;
	border: 1px solid rgba(255, 255, 255, 0.2) !important;
	box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35) !important;
}

#buddypress .group-button.request-membership:hover,
#buddypress button.group-button.request-membership:hover,
.group-button.request-membership:hover,
button[data-bp-btn-action="request_membership"]:hover {
	transform: translateY(-2px) !important;
	box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45) !important;
	color: #FFFFFF !important;
}

/* Pending / Membership Requested State */
#buddypress .group-button.membership-requested,
#buddypress .group-button.pending,
#buddypress button[data-bp-btn-action="membership_requested"],
.group-button.membership-requested {
	background: #F1F5F9 !important;
	color: #94A3B8 !important;
	border: 1px solid #CBD5E1 !important;
	cursor: default !important;
	box-shadow: none !important;
	transform: none !important;
}

/* Mobile Responsive Single Group Header */
@media (max-width: 768px) {

	#buddypress #item-header.groups-header #header-cover-image,
	#buddypress .groups-header #header-cover-image {
		height: 120px !important;
		min-height: 120px !important;
		max-height: 120px !important;
	}

	#buddypress #item-header.groups-header #item-header-cover-image,
	#buddypress .groups-header #item-header-cover-image {
		flex-direction: column !important;
		align-items: center !important;
		text-align: center !important;
		padding: 0 20px 20px 20px !important;
		gap: 12px !important;
	}

	#buddypress #item-header.groups-header #item-header-avatar,
	#buddypress .groups-header #item-header-avatar {
		margin-top: -42px !important;
	}

	#buddypress #item-header.groups-header #item-header-avatar img,
	#buddypress .groups-header #item-header-avatar img {
		width: 84px !important;
		height: 84px !important;
		min-width: 84px !important;
		min-height: 84px !important;
		border-radius: 20px !important;
		border-width: 3.5px !important;
	}

	#buddypress #item-header.groups-header #item-header-content,
	#buddypress .groups-header #item-header-content {
		align-items: center !important;
		margin-top: 2px !important;
		width: 100% !important;
	}

	#buddypress #item-header.groups-header #item-actions,
	#buddypress .groups-header .group-item-actions {
		align-items: center !important;
		margin-top: 8px !important;
		width: 100% !important;
	}

	#buddypress .groups-header .moderators-lists,
	#buddypress .groups-header dl.moderators-lists {
		align-items: center !important;
	}

	#buddypress .groups-header dt.moderators-title {
		text-align: center !important;
	}

	#buddypress #item-header.groups-header .desc-wrap,
	#buddypress .groups-header .desc-wrap {
		padding: 14px 20px !important;
		text-align: center !important;
	}
}

/* ==========================================================================
   10. GROUP INVITES TAB REDESIGN (.bp-invites-content)
   ========================================================================== */

/* Group Invites Layout (Horizontal top tabs + full-width members content starting from left) */
#buddypress #group-invites-container,
#group-invites-container {
	display: flex !important;
	flex-direction: column !important;
	gap: 20px !important;
	width: 100% !important;
	margin-top: 20px !important;
}

/* Horizontal Top Navigation Tabs ("Мои друзья", "Все участники") */
#buddypress .bp-invites-nav,
.bp-invites-nav {
	width: 100% !important;
	float: none !important;
	margin: 0 0 10px 0 !important;
}

#buddypress .bp-invites-nav ul,
.bp-invites-nav ul {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap !important;
	gap: 10px !important;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: none !important;
}

#buddypress .bp-invites-nav li,
.bp-invites-nav li {
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	width: auto !important;
}

#buddypress .bp-invites-nav li a,
.bp-invites-nav li a {
	display: inline-flex !important;
	align-items: center !important;
	padding: 10px 22px !important;
	border-radius: 9999px !important;
	font-size: 0.9rem !important;
	font-weight: 600 !important;
	color: #64748B !important;
	background: #F1F5F9 !important;
	border: 1px solid #E2E8F0 !important;
	text-decoration: none !important;
	transition: all 0.2s ease !important;
	width: auto !important;
}

#buddypress .bp-invites-nav li.current a,
#buddypress .bp-invites-nav li.selected a,
.bp-invites-nav li.current a,
.bp-invites-nav li.selected a {
	background: #4F46E5 !important;
	color: #FFFFFF !important;
	border-color: #4F46E5 !important;
	box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25) !important;
}

/* Members Content Container (100% Full Width starting from left) */
#buddypress .bp-invites-content,
.bp-invites-content {
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	margin: 0 !important;
}

/* Grid container for invite member cards */
#buddypress .bp-invites-content ul#members-list,
#buddypress .bp-invites-content ul.item-list,
.bp-invites-content ul#members-list,
.bp-invites-content ul.item-list {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)) !important;
	gap: 16px !important;
	list-style: none !important;
	margin: 20px 0 32px 0 !important;
	padding: 0 !important;
	clear: both !important;
	width: 100% !important;
	float: none !important;
}

/* Individual member card (ONLY direct child > li of the list) */
#buddypress .bp-invites-content ul#members-list>li,
#buddypress .bp-invites-content ul.item-list>li,
.bp-invites-content ul#members-list>li,
.bp-invites-content ul.item-list>li {
	background: #FFFFFF !important;
	border: 1px solid var(--border-color, #E2E8F0) !important;
	border-radius: 16px !important;
	padding: 20px 16px !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	text-align: center !important;
	gap: 10px !important;
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03) !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
	position: relative !important;
	float: none !important;
	margin: 0 !important;
	width: 100% !important;
	box-sizing: border-box !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	bottom: auto !important;
}

#buddypress .bp-invites-content ul#members-list>li:hover,
#buddypress .bp-invites-content ul.item-list>li:hover,
.bp-invites-content ul#members-list>li:hover,
.bp-invites-content ul.item-list>li:hover {
	border-color: #CBD5E1 !important;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06) !important;
}

/* Member avatar inside invite card */
#buddypress .bp-invites-content ul#members-list>li>.item-avatar,
#buddypress .bp-invites-content ul.item-list>li>.item-avatar,
.bp-invites-content ul#members-list>li>.item-avatar,
.bp-invites-content ul.item-list>li>.item-avatar {
	width: 64px !important;
	height: 64px !important;
	margin: 0 auto !important;
	padding: 0 !important;
	float: none !important;
	position: relative !important;
	flex-shrink: 0 !important;
}

#buddypress .bp-invites-content ul#members-list>li>.item-avatar img,
#buddypress .bp-invites-content ul.item-list>li>.item-avatar img,
.bp-invites-content ul#members-list>li>.item-avatar img,
.bp-invites-content ul.item-list>li>.item-avatar img {
	width: 64px !important;
	height: 64px !important;
	min-width: 64px !important;
	min-height: 64px !important;
	max-width: 64px !important;
	max-height: 64px !important;
	border-radius: 50% !important;
	object-fit: cover !important;
	border: 2px solid #F1F5F9 !important;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06) !important;
	display: block !important;
	margin: 0 !important;
}

/* Member Info and Content Wrapper */
#buddypress .bp-invites-content ul#members-list>li>.item,
#buddypress .bp-invites-content ul.item-list>li>.item,
.bp-invites-content ul#members-list>li>.item,
.bp-invites-content ul.item-list>li>.item {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	gap: 6px !important;
	box-sizing: border-box !important;
}

/* Member Name */
#buddypress .bp-invites-content .list-title,
#buddypress .bp-invites-content .member-name,
#buddypress .bp-invites-content .item-title,
.bp-invites-content .list-title,
.bp-invites-content .member-name {
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	background: transparent !important;
	border: none !important;
	font-family: var(--font-ui, 'Inter', sans-serif) !important;
	font-size: 0.95rem !important;
	font-weight: 700 !important;
	color: #0F172A !important;
	line-height: 1.3 !important;
	text-align: center !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
}

#buddypress .bp-invites-content .list-title a,
#buddypress .bp-invites-content .member-name a,
.bp-invites-content .list-title a,
.bp-invites-content .member-name a {
	color: #0F172A !important;
	text-decoration: none !important;
}

#buddypress .bp-invites-content .list-title a:hover,
#buddypress .bp-invites-content .member-name a:hover,
.bp-invites-content .list-title a:hover,
.bp-invites-content .member-name a:hover {
	color: #4F46E5 !important;
}

/* ==========================================================================
   Pending Invites - Inviter Details Block ("Приглашающий" & Status)
   ========================================================================== */

/* Inviter card container */
#buddypress .bp-invites-content .group-inviters,
#buddypress .bp-invites-content .inviters,
#buddypress .bp-invites-content .item-meta,
#buddypress .bp-invites-content dl.moderators-lists,
.bp-invites-content .group-inviters,
.bp-invites-content .inviters,
.bp-invites-content .item-meta {
	width: 100% !important;
	max-width: 100% !important;
	margin: 4px 0 !important;
	padding: 8px 10px !important;
	background: #F8FAFC !important;
	border: 1px solid #F1F5F9 !important;
	border-radius: 12px !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 4px !important;
	box-sizing: border-box !important;
	float: none !important;
	clear: both !important;
}

/* Reset all nested lists and list items inside the inviter block */
#buddypress .bp-invites-content .group-inviters ul,
#buddypress .bp-invites-content .group-inviters li,
#buddypress .bp-invites-content .inviters-list,
#buddypress .bp-invites-content .inviters-list li,
#buddypress .bp-invites-content .inviter-avatar,
#buddypress .bp-invites-content dl.moderators-lists dd,
#buddypress .bp-invites-content dl.moderators-lists dt,
.bp-invites-content .group-inviters ul,
.bp-invites-content .group-inviters li,
.bp-invites-content .inviters-list,
.bp-invites-content .inviters-list li,
.bp-invites-content .inviter-avatar {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	width: auto !important;
	height: auto !important;
	min-width: 0 !important;
	min-height: 0 !important;
	float: none !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	list-style: none !important;
}

/* "Приглашающий" Label */
#buddypress .bp-invites-content .inviters-title,
#buddypress .bp-invites-content .inviter-title,
#buddypress .bp-invites-content dt.moderators-title,
#buddypress .bp-invites-content .group-inviters dt,
#buddypress .bp-invites-content .group-inviters .title,
#buddypress .bp-invites-content .group-inviters h4,
#buddypress .bp-invites-content .group-inviters p.inviters-title,
.bp-invites-content .inviters-title,
.bp-invites-content .inviter-title {
	font-family: var(--font-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif) !important;
	font-size: 0.68rem !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.05em !important;
	color: #94A3B8 !important;
	margin: 0 !important;
	padding: 0 !important;
	text-align: center !important;
	line-height: 1.2 !important;
	display: block !important;
	background: transparent !important;
	border: none !important;
}

/* Mini Inviter Avatar */
#buddypress .bp-invites-content .group-inviters img.avatar,
#buddypress .bp-invites-content .inviters-list img.avatar,
#buddypress .bp-invites-content .inviter-avatar img,
#buddypress .bp-invites-content .inviters-list img,
.bp-invites-content .group-inviters img.avatar,
.bp-invites-content .inviters-list img.avatar,
.bp-invites-content .inviter-avatar img {
	width: 28px !important;
	height: 28px !important;
	min-width: 28px !important;
	min-height: 28px !important;
	max-width: 28px !important;
	max-height: 28px !important;
	border-radius: 50% !important;
	border: 1.5px solid #FFFFFF !important;
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12) !important;
	object-fit: cover !important;
	display: block !important;
	margin: 2px auto !important;
}

/* Status / Activity Text ("Приглашение было отправлено...", etc.) */
#buddypress .bp-invites-content .group-inviters .status,
#buddypress .bp-invites-content .group-inviters p,
#buddypress .bp-invites-content .group-inviters .activity,
#buddypress .bp-invites-content li .status,
#buddypress .bp-invites-content li .activity,
.bp-invites-content .group-inviters .status,
.bp-invites-content .group-inviters p,
.bp-invites-content .group-inviters .activity {
	font-family: var(--font-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif) !important;
	font-size: 0.74rem !important;
	font-weight: 500 !important;
	color: #64748B !important;
	font-style: normal !important;
	line-height: 1.35 !important;
	text-align: center !important;
	margin: 2px 0 0 0 !important;
	padding: 0 !important;
	word-break: break-word !important;
	overflow-wrap: break-word !important;
	white-space: normal !important;
	max-width: 100% !important;
	display: block !important;
	background: transparent !important;
	border: none !important;
}

#buddypress .bp-invites-content hr,
.bp-invites-content hr {
	display: none !important;
}

/* Action button container */
#buddypress .bp-invites-content ul#members-list>li>.action,
#buddypress .bp-invites-content ul.item-list>li>.action,
.bp-invites-content ul#members-list>li>.action,
.bp-invites-content ul.item-list>li>.action {
	margin-top: auto !important;
	width: 100% !important;
	display: flex !important;
	justify-content: center !important;
	float: none !important;
	position: static !important;
	clear: both !important;
	padding-top: 4px !important;
}

/* Invite Button */
#buddypress .bp-invites-content button.invite-button,
#buddypress .bp-invites-content .group-add-remove-invite-button,
.bp-invites-content button.invite-button {
	background: #EEF2FF !important;
	color: #4F46E5 !important;
	border: 1px solid #C7D2FE !important;
	border-radius: 10px !important;
	padding: 8px 16px !important;
	font-size: 0.85rem !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px !important;
	width: 100% !important;
	box-shadow: none !important;
	height: 38px !important;
}

#buddypress .bp-invites-content button.invite-button:hover,
.bp-invites-content button.invite-button:hover {
	background: #4F46E5 !important;
	color: #FFFFFF !important;
	border-color: #4F46E5 !important;
	box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25) !important;
}

#buddypress .bp-invites-content button.invite-button .icons,
.bp-invites-content button.invite-button .icons {
	display: none !important;
}

#buddypress .bp-invites-content button.invite-button::before,
.bp-invites-content button.invite-button::before {
	content: '+ Пригласить' !important;
	font-size: 0.85rem !important;
	font-weight: 600 !important;
}

/* Selected state for invite button */
#buddypress .bp-invites-content button.invite-button.selected::before,
.bp-invites-content button.invite-button.selected::before {
	content: '✓ Приглашён' !important;
}

#buddypress .bp-invites-content button.invite-button.selected,
.bp-invites-content button.invite-button.selected {
	background: #10B981 !important;
	color: #FFFFFF !important;
	border-color: #10B981 !important;
}

/* Group Invites Action Buttons Footer (#bp-invites-reset, #bp-invites-send) */
#buddypress #group-invites-container .action,
#buddypress .bp-invites-content+.action,
#buddypress .group-invites-column .action,
#group-invites-container .action {
	display: flex !important;
	align-items: center !important;
	justify-content: flex-end !important;
	gap: 12px !important;
	margin-top: 24px !important;
	padding-top: 20px !important;
	border-top: 1px solid var(--border-color, #E2E8F0) !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

#buddypress button#bp-invites-send,
#buddypress #group-invites-container button#bp-invites-send,
button#bp-invites-send,
#buddypress button.bp-primary-action,
.button.bp-primary-action {
	font-family: var(--font-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif) !important;
	font-size: 0.90rem !important;
	font-weight: 600 !important;
	line-height: 1.25 !important;
	letter-spacing: -0.01em !important;
	padding: 10px 24px !important;
	border-radius: 9999px !important;
	border: 1px solid rgba(255, 255, 255, 0.2) !important;
	cursor: pointer !important;
	text-decoration: none !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	background: linear-gradient(135deg, #4F46E5 0%, #6366F1 50%, #7C3AED 100%) !important;
	background-size: 200% auto !important;
	color: #FFFFFF !important;
	box-shadow: 0 4px 14px -1px rgba(79, 70, 229, 0.4), 0 2px 6px -1px rgba(79, 70, 229, 0.25) !important;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
	position: relative !important;
	outline: none !important;
	white-space: nowrap !important;
}

#buddypress button#bp-invites-send::before,
button#bp-invites-send::before {
	content: "" !important;
	display: inline-block !important;
	width: 15px !important;
	height: 15px !important;
	min-width: 15px !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='22' y1='2' x2='11' y2='13'/%3E%3Cpolygon points='22 2 15 22 11 13 2 9 22 2'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-size: contain !important;
	background-position: center !important;
	transition: transform 0.25s ease !important;
}

#buddypress button#bp-invites-send:hover,
button#bp-invites-send:hover {
	transform: translateY(-2px) !important;
	background-position: right center !important;
	box-shadow: 0 8px 24px -2px rgba(79, 70, 229, 0.55), 0 4px 10px -2px rgba(79, 70, 229, 0.3) !important;
	color: #FFFFFF !important;
}

#buddypress button#bp-invites-send:hover::before,
button#bp-invites-send:hover::before {
	transform: translate(2px, -2px) scale(1.1) !important;
}

#buddypress button#bp-invites-send:active,
button#bp-invites-send:active {
	transform: translateY(0) scale(0.98) !important;
	box-shadow: 0 2px 8px rgba(79, 70, 229, 0.35) !important;
}

#buddypress button#bp-invites-reset,
#buddypress #group-invites-container button#bp-invites-reset,
button#bp-invites-reset,
#buddypress button.bp-secondary-action,
.button.bp-secondary-action {
	font-family: var(--font-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif) !important;
	font-size: 0.90rem !important;
	font-weight: 600 !important;
	line-height: 1.25 !important;
	letter-spacing: -0.01em !important;
	padding: 10px 22px !important;
	border-radius: 9999px !important;
	border: 1px solid #E2E8F0 !important;
	cursor: pointer !important;
	text-decoration: none !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	background: #F8FAFC !important;
	color: #64748B !important;
	box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
	position: relative !important;
	outline: none !important;
	white-space: nowrap !important;
}

#buddypress button#bp-invites-reset::before,
button#bp-invites-reset::before {
	content: "" !important;
	display: inline-block !important;
	width: 14px !important;
	height: 14px !important;
	min-width: 14px !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-size: contain !important;
	background-position: center !important;
	transition: all 0.2s ease !important;
}

#buddypress button#bp-invites-reset:hover,
button#bp-invites-reset:hover {
	background: #FEF2F2 !important;
	color: #EF4444 !important;
	border-color: #FECACA !important;
	box-shadow: 0 4px 14px rgba(239, 68, 68, 0.15) !important;
	transform: translateY(-2px) !important;
}

#buddypress button#bp-invites-reset:hover::before,
button#bp-invites-reset:hover::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23EF4444' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") !important;
}

#buddypress button#bp-invites-reset:active,
button#bp-invites-reset:active {
	transform: translateY(0) scale(0.98) !important;
}

@media (max-width: 640px) {

	#buddypress .bp-invites-content ul#members-list,
	.bp-invites-content ul#members-list {
		grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
		gap: 12px !important;
	}

	#buddypress #group-invites-container .action,
	#group-invites-container .action {
		flex-direction: column-reverse !important;
		gap: 10px !important;
	}

	#buddypress button#bp-invites-send,
	#buddypress button#bp-invites-reset,
	button#bp-invites-send,
	button#bp-invites-reset {
		width: 100% !important;
	}
}

/* ==========================================================================
   BuddyPress & WordPress Password Generator (.user-pass1-wrap, .wp-pwd)
   ========================================================================== */

#buddypress .user-pass1-wrap,
.user-pass1-wrap {
	margin: 16px 0 !important;
	position: relative !important;
	max-width: 100% !important;
}

/* "Создать пароль" Button */
#buddypress button.wp-generate-pw,
.user-pass1-wrap button.wp-generate-pw {
	font-family: var(--font-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif) !important;
	font-size: 0.90rem !important;
	font-weight: 600 !important;
	line-height: 1.25 !important;
	letter-spacing: -0.01em !important;
	padding: 10px 22px !important;
	border-radius: 12px !important;
	border: 1px solid #C7D2FE !important;
	background: #EEF2FF !important;
	color: #4F46E5 !important;
	cursor: pointer !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
	box-shadow: 0 2px 6px rgba(79, 70, 229, 0.08) !important;
	outline: none !important;
	white-space: nowrap !important;
}

#buddypress button.wp-generate-pw::before,
.user-pass1-wrap button.wp-generate-pw::before {
	content: "" !important;
	display: inline-block !important;
	width: 16px !important;
	height: 16px !important;
	min-width: 16px !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234F46E5' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-size: contain !important;
	background-position: center !important;
	transition: all 0.2s ease !important;
}

#buddypress button.wp-generate-pw:hover,
.user-pass1-wrap button.wp-generate-pw:hover {
	background: #4F46E5 !important;
	color: #FFFFFF !important;
	border-color: #4F46E5 !important;
	box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35) !important;
	transform: translateY(-2px) !important;
}

#buddypress button.wp-generate-pw:hover::before,
.user-pass1-wrap button.wp-generate-pw:hover::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") !important;
	transform: scale(1.1) !important;
}

/* Password Form Container (.wp-pwd) */
#buddypress .wp-pwd,
.user-pass1-wrap .wp-pwd {
	display: flex !important;
	flex-direction: column !important;
	gap: 10px !important;
	margin-top: 12px !important;
	max-width: 540px !important;
	width: 100% !important;
	box-sizing: border-box !important;
	background: #F8FAFC !important;
	border: 1px solid var(--border-color, #E2E8F0) !important;
	border-radius: 16px !important;
	padding: 20px !important;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03) !important;
}

#buddypress .wp-pwd label,
.user-pass1-wrap .wp-pwd label {
	font-family: var(--font-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif) !important;
	font-size: 0.88rem !important;
	font-weight: 600 !important;
	color: #1E293B !important;
	margin: 0 !important;
	padding: 0 !important;
}

#buddypress .wp-pwd .password-input-wrapper,
.user-pass1-wrap .wp-pwd .password-input-wrapper {
	width: 100% !important;
	position: relative !important;
	display: block !important;
}

#buddypress .wp-pwd input[type="password"],
#buddypress .wp-pwd input[type="text"],
#buddypress #pass1,
.user-pass1-wrap #pass1 {
	font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
	font-size: 0.95rem !important;
	font-weight: 500 !important;
	letter-spacing: 0.05em !important;
	color: #0F172A !important;
	background: #FFFFFF !important;
	border: 1px solid #CBD5E1 !important;
	border-radius: 12px !important;
	padding: 10px 16px !important;
	width: 100% !important;
	box-sizing: border-box !important;
	transition: all 0.2s ease !important;
	box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

#buddypress .wp-pwd input:focus,
#buddypress #pass1:focus,
.user-pass1-wrap #pass1:focus {
	border-color: #4F46E5 !important;
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15) !important;
	outline: none !important;
}

/* Password Toggle & Cancel Buttons Container */
#buddypress .wp-pwd .button,
.user-pass1-wrap .wp-pwd .button {
	font-family: var(--font-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif) !important;
	font-size: 0.86rem !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	padding: 10px 16px !important;
	height: 40px !important;
	border-radius: 10px !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
	box-sizing: border-box !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px !important;
	outline: none !important;
}

/* "Скрыть/Показать пароль" Button */
#buddypress button.wp-hide-pw,
.user-pass1-wrap button.wp-hide-pw {
	background: #FFFFFF !important;
	border: 1px solid #CBD5E1 !important;
	color: #475569 !important;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}

#buddypress button.wp-hide-pw:hover,
.user-pass1-wrap button.wp-hide-pw:hover {
	background: #F1F5F9 !important;
	color: #0F172A !important;
	border-color: #94A3B8 !important;
}

#buddypress button.wp-hide-pw .dashicons,
.user-pass1-wrap button.wp-hide-pw .dashicons {
	font-size: 18px !important;
	width: 18px !important;
	height: 18px !important;
	line-height: 18px !important;
}

/* "Отмена" Button */
#buddypress button.wp-cancel-pw,
.user-pass1-wrap button.wp-cancel-pw {
	background: #FFFFFF !important;
	border: 1px solid #CBD5E1 !important;
	color: #64748B !important;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}

#buddypress button.wp-cancel-pw:hover,
.user-pass1-wrap button.wp-cancel-pw:hover {
	background: #FEF2F2 !important;
	border-color: #FECACA !important;
	color: #EF4444 !important;
}

/* Password Strength Indicator */
#buddypress #pass-strength-result,
.user-pass1-wrap #pass-strength-result {
	font-family: var(--font-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif) !important;
	font-size: 0.82rem !important;
	font-weight: 700 !important;
	padding: 8px 16px !important;
	border-radius: 10px !important;
	text-align: center !important;
	letter-spacing: 0.02em !important;
	margin-top: 4px !important;
	transition: all 0.3s ease !important;
	box-sizing: border-box !important;
	width: 100% !important;
}

#buddypress #pass-strength-result.short,
.user-pass1-wrap #pass-strength-result.short {
	background: #FEF2F2 !important;
	color: #DC2626 !important;
	border: 1px solid #FECACA !important;
}

#buddypress #pass-strength-result.bad,
.user-pass1-wrap #pass-strength-result.bad {
	background: #FFFBEB !important;
	color: #D97706 !important;
	border: 1px solid #FDE68A !important;
}

#buddypress #pass-strength-result.good,
.user-pass1-wrap #pass-strength-result.good {
	background: #EFF6FF !important;
	color: #2563EB !important;
	border: 1px solid #BFDBFE !important;
}

#buddypress #pass-strength-result.strong,
.user-pass1-wrap #pass-strength-result.strong {
	background: #ECFDF5 !important;
	color: #059669 !important;
	border: 1px solid #A7F3D0 !important;
}

/* ==========================================================================
   11. UNIVERSAL BUDDYPRESS ZERO HORIZONTAL SCROLL MOBILE SAFEGUARDS
   ========================================================================== */

@media (max-width: 768px) {

	/* Contain root elements */
	#buddypress,
	#buddypress .buddypress-wrap,
	#buddypress .dir-form,
	#buddypress .standard-form,
	#buddypress .item-body {
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
		overflow-wrap: break-word !important;
		word-break: break-word !important;
	}

	/* Force single column for all directory cards on mobile */
	#buddypress ul#groups-list,
	#buddypress ul.groups-list,
	#buddypress ul.item-list.groups-list,
	ul#groups-list,
	ul.groups-list,
	#buddypress ul#members-list,
	#buddypress ul.members-list,
	#buddypress ul.item-list.members-list,
	ul#members-list,
	ul.members-list {
		grid-template-columns: 1fr !important;
		gap: 16px !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
	}

	#buddypress ul.item-list li,
	#buddypress ul#groups-list li,
	#buddypress ul#members-list li,
	#buddypress li.item-entry,
	#buddypress .list-wrap,
	#buddypress .list-wrap .item,
	#buddypress .list-wrap .item-block {
		text-align: left !important;
		align-items: flex-start !important;
		justify-content: flex-start !important;
	}

	/* Navigation tabs & pills wrapping */
	#buddypress .bp-navs,
	#buddypress nav.bp-navs,
	#buddypress div.item-list-tabs,
	#buddypress #subnav {
		width: 100% !important;
		max-width: 100% !important;
		margin-bottom: 20px !important;
	}

	#buddypress .bp-navs ul,
	#buddypress div.item-list-tabs ul,
	#buddypress #subnav ul {
		display: flex !important;
		flex-wrap: wrap !important;
		gap: 6px !important;
		padding: 6px !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
	}

	#buddypress .bp-navs li,
	#buddypress div.item-list-tabs li,
	#buddypress #subnav li {
		flex: 1 1 auto !important;
		max-width: 100% !important;
		text-align: center !important;
	}

	#buddypress .bp-navs li a,
	#buddypress div.item-list-tabs li a,
	#buddypress #subnav li a {
		width: 100% !important;
		justify-content: center !important;
		padding: 8px 12px !important;
		font-size: 0.84rem !important;
		white-space: normal !important;
		text-align: center !important;
		box-sizing: border-box !important;
	}

	/* Subnav filters & Search forms (Responsive Wrapping) */
	#buddypress .subnav-filters,
	#buddypress #subnav-filters {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: wrap !important;
		align-items: center !important;
		justify-content: space-between !important;
		gap: 10px 12px !important;
		padding: 10px 12px !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
		overflow: visible !important;
	}

	#buddypress .subnav-filters>*,
	#buddypress #subnav-filters>* {
		width: auto !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
	}

	#buddypress .subnav-filters .subnav-search,
	#buddypress #subnav-filters .subnav-search {
		display: flex !important;
		align-items: center !important;
		gap: 8px !important;
		flex: 1 1 100% !important;
		width: 100% !important;
		max-width: 100% !important;
	}

	#buddypress .subnav-filters .dir-search,
	#buddypress #subnav-filters .dir-search,
	#buddypress .dir-search form,
	#buddypress .dir-search input[type="search"],
	#buddypress .dir-search input[type="text"] {
		width: 100% !important;
		max-width: 100% !important;
		flex: 1 1 auto !important;
		box-sizing: border-box !important;
	}

	#buddypress .subnav-filters #comp-filters,
	#buddypress .subnav-filters .component-filters,
	#buddypress #subnav-filters #comp-filters,
	#buddypress #subnav-filters .component-filters,
	#buddypress #dir-filters,
	#buddypress #activity-filter-select,
	#buddypress .subnav-filters .filter {
		display: flex !important;
		align-items: center !important;
		flex: 1 1 100% !important;
		width: 100% !important;
		max-width: 100% !important;
		justify-content: flex-start !important;
		box-sizing: border-box !important;
	}

	#buddypress .subnav-filters .select-wrap,
	#buddypress #subnav-filters .select-wrap {
		width: 100% !important;
		max-width: 100% !important;
		flex: 1 1 auto !important;
		box-sizing: border-box !important;
	}

	#buddypress .subnav-filters select,
	#buddypress #subnav-filters select {
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
	}

	#buddypress .dir-filters,
	#buddypress .dir-search,
	#buddypress .message-search {
		display: flex !important;
		flex-direction: column !important;
		align-items: stretch !important;
		gap: 10px !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
	}

	#buddypress .dir-filters>* {
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
	}

	/* Tables responsive horizontal scroll container */
	#buddypress table,
	#buddypress table.notifications,
	#buddypress table.messages-notices,
	#buddypress table.profile-fields,
	#buddypress table.forum,
	#buddypress table.sitewide-notices {
		width: 100% !important;
		max-width: 100% !important;
		display: block !important;
		overflow-x: auto !important;
		-webkit-overflow-scrolling: touch !important;
		box-sizing: border-box !important;
	}

	/* Form controls */
	#buddypress input[type="text"],
	#buddypress input[type="email"],
	#buddypress input[type="password"],
	#buddypress input[type="url"],
	#buddypress input[type="search"],
	#buddypress textarea,
	#buddypress select {
		max-width: 100% !important;
		box-sizing: border-box !important;
	}

	/* Activity Stream items */
	#buddypress .activity-list li.activity-item {
		padding: 16px 14px !important;
		border-radius: 14px !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
		overflow: hidden !important;
	}

	#buddypress .activity-content {
		max-width: 100% !important;
		overflow-wrap: break-word !important;
		word-break: break-word !important;
	}

	#buddypress .activity-comments {
		margin-left: 0 !important;
		padding-left: 10px !important;
		max-width: 100% !important;
	}
}