/**
 * Theme – Community page right sidebar
 * Communities dropdown + Create Community
 */

.cm-right {
	padding-bottom: 24px;
}

@media (min-width: 789px) {
	.cm-right {
		height: 100vh;
		overflow-y: auto;
		position: sticky;
		top: 0 !important;
		/* Hide scrollbar until hover */
		scrollbar-width: none;
	}

	.cm-right::-webkit-scrollbar {
		width: 0;
		height: 0;
		background: transparent;
	}

	.cm-right:hover {
		scrollbar-width: thin;
		scrollbar-color: #888 transparent;
	}

	.cm-right:hover::-webkit-scrollbar {
		width: 4px;
	}

	.cm-right:hover::-webkit-scrollbar-track {
		background: transparent;
		border-radius: 10px;
	}

	.cm-right:hover::-webkit-scrollbar-thumb {
		background: #888;
		border-radius: 10px;
	}
}

.cm-right-card {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
	border: 1px solid rgba(15, 23, 42, 0.04);
	padding: 10px;
	position: relative;
}

.cm-communities-dd {
	position: relative;
}

.cm-communities-trigger {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 12px;
	border: 0;
	background: transparent;
	border-radius: 12px;
	cursor: pointer;
	transition: background 0.15s ease;
}

.cm-communities-trigger:hover,
.cm-communities-dd.is-open .cm-communities-trigger {
	background: rgba(0, 106, 247, 0.06);
}

.cm-communities-trigger-left {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.cm-communities-icon {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(0, 106, 247, 0.1);
	color: #006af7;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 15px;
}

.cm-communities-label {
	font-size: 15px;
	font-weight: 700;
	color: #111827;
	letter-spacing: -0.2px;
}

.cm-communities-chevron {
	color: #6b7280;
	font-size: 12px;
	transition: transform 0.15s ease;
	flex-shrink: 0;
}

.cm-communities-dd.is-open .cm-communities-chevron {
	transform: rotate(180deg);
}

.cm-communities-menu {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 6px);
	z-index: 30;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
	border: 1px solid rgba(15, 23, 42, 0.06);
	padding: 6px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.cm-communities-menu[hidden] {
	display: none !important;
}

.cm-communities-item {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 11px 12px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: #1f2937;
	font-size: 14px;
	font-weight: 600;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.cm-communities-item:hover,
.cm-communities-item.is-active {
	background: rgba(0, 106, 247, 0.08);
	color: #006af7;
	text-decoration: none;
}

.cm-communities-item-icon {
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: #f3f4f6;
	color: #4b5563;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	flex-shrink: 0;
}

.cm-communities-item:hover .cm-communities-item-icon,
.cm-communities-item.is-active .cm-communities-item-icon {
	background: rgba(0, 106, 247, 0.12);
	color: #006af7;
}

.cm-create-community-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin-top: 14px;
	padding: 13px 16px;
	border-radius: 14px;
	background: #006af7;
	color: #fff !important;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none !important;
	box-shadow: 0 6px 16px rgba(0, 106, 247, 0.28);
	transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.cm-create-community-btn:hover {
	background: #0058d4;
	color: #fff !important;
	text-decoration: none !important;
	transform: translateY(-1px);
	box-shadow: 0 8px 18px rgba(0, 106, 247, 0.32);
}

.cm-create-community-btn i {
	font-size: 14px;
}

/* Manage in the App modal */
.cm-manage-modal {
	border-radius: 18px;
	border: 0;
	overflow: hidden;
}

.cm-manage-modal .modal-title {
	font-weight: 700;
	color: #0b2c5f;
	font-size: 18px;
}

.cm-manage-modal-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto;
	border-radius: 50%;
	background: rgba(0, 106, 247, 0.1);
	color: #006af7;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
}

.cm-manage-modal-text {
	color: #6b7280;
	font-size: 15px;
	line-height: 1.55;
}

.cm-manage-modal .btn-primary {
	background: #006af7;
	border-color: #006af7;
	border-radius: 10px;
	font-weight: 600;
	padding: 8px 18px;
}

.cm-manage-modal .btn-outline-secondary {
	border-radius: 10px;
	font-weight: 600;
	padding: 8px 18px;
}

/* Community limit reached modal (app-style) */
.cm-limit-modal {
	border-radius: 14px;
	border: 0;
	overflow: hidden;
}

.cm-limit-modal-header {
	background: #006af7;
	color: #fff;
	border: 0;
	justify-content: center;
	padding: 14px 16px;
}

.cm-limit-modal-header .modal-title {
	color: #000;
	font-weight: 700;
	font-size: 17px;
}

.cm-limit-modal-text {
	color: #1a1a1a;
	font-size: 15px;
	line-height: 1.45;
}

.cm-limit-modal-footer {
	display: flex;
	border-top: 0;
	background: #006af7;
}

.cm-limit-btn {
	flex: 1;
	border: 0;
	border-radius: 0;
	background: #006af7;
	color: #fff !important;
	font-weight: 700;
	letter-spacing: 0.02em;
	padding: 14px 10px;
}

.cm-limit-btn + .cm-limit-btn {
	border-left: 1px solid rgba(255, 255, 255, 0.45);
}

.cm-limit-btn:hover,
.cm-limit-btn:focus {
	background: #0058d4;
	color: #fff !important;
}

/* Proposal (Contact Us) modal — app-style clean list */
#cmProposalModal .modal-dialog {
	max-width: 420px;
}

.cm-proposal-modal {
	border-radius: 16px;
	border: 0;
	overflow: hidden;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.cm-proposal-modal .modal-header {
	position: relative;
	display: block;
	padding: 18px 48px 8px;
	border-bottom: 0;
}

.cm-proposal-modal .modal-header .btn-close {
	position: absolute;
	right: 16px;
	top: 16px;
	z-index: 2;
	margin: 0;
	padding: 0;
	opacity: 0.55;
}

.cm-proposal-modal .modal-title {
	display: block;
	width: 100%;
	text-align: center;
	font-weight: 700;
	color: #111;
	font-size: 20px;
	line-height: 1.2;
	margin: 0;
	padding: 0;
}

.cm-proposal-modal .modal-body {
	padding-top: 8px;
}

.cm-proposal-label {
	display: block;
	font-weight: 700;
	font-size: 15px;
	color: #111;
	margin-bottom: 12px;
}

.cm-proposal-reasons {
	display: flex !important;
	flex-direction: column !important;
	flex-wrap: nowrap !important;
	align-items: stretch !important;
	gap: 0 !important;
	width: 100%;
}

.cm-proposal-reason-item {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 12px !important;
	width: 100% !important;
	margin: 0 0 14px !important;
	padding: 0 !important;
	cursor: pointer;
	font-size: 14px;
	color: #222;
	line-height: 1.4;
	float: none !important;
}

.cm-proposal-reason-item:last-child {
	margin-bottom: 4px !important;
}

.cm-proposal-reason-item input[type="radio"],
.cm-proposal-reason-item .cm-proposal-reason-radio {
	appearance: auto !important;
	-webkit-appearance: radio !important;
	display: inline-block !important;
	position: static !important;
	float: none !important;
	width: 18px !important;
	height: 18px !important;
	min-width: 18px !important;
	max-width: 18px !important;
	margin: 0 !important;
	padding: 0 !important;
	flex: 0 0 18px !important;
	vertical-align: middle;
	accent-color: #006af7;
	cursor: pointer;
}

.cm-proposal-reason-item .cm-proposal-reason-text {
	display: block !important;
	flex: 1 1 auto !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	font-size: 14px;
	font-weight: 400;
	color: #222;
	line-height: 1.4;
	cursor: pointer;
}

.cm-proposal-detail {
	min-height: 110px;
	border-radius: 10px;
	border: 1px solid #d0d5dd;
	resize: vertical;
	font-size: 14px;
	padding: 12px 14px;
}

.cm-proposal-detail:focus {
	border-color: #006af7;
	box-shadow: 0 0 0 3px rgba(0, 106, 247, 0.15);
}

.cm-proposal-modal .modal-footer {
	padding-top: 8px;
}

.cm-proposal-back-btn,
.cm-proposal-submit-btn {
	min-width: 110px;
	border-radius: 10px;
	font-weight: 600;
	padding: 9px 18px;
}

.cm-proposal-submit-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

@media (max-width: 767.98px) {
	.cm-right {
		margin-top: 12px;
		margin-bottom: 20px;
	}
}

.cm-page {
	min-height: calc(100vh - 80px);
	padding-bottom: 40px;
}

.cm-page > .container {
	padding-top: 8px;
}

/* =========================================================
 * Middle column – Create Post composer + feed cards
 * ========================================================= */

.cm-feed-middle {
	padding-top: 12px;
	padding-bottom: 28px;
}

.cm-feed-middle .communitie-tab {
	margin-bottom: 12px;
}

.cm-feed-middle .communitie-tab .nav-link {
	border-radius: 999px;
	padding: 8px 18px;
	font-weight: 600;
}

.cm-composer {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
	border: 1px solid rgba(15, 23, 42, 0.04);
	padding: 16px 18px 14px;
	margin-bottom: 10px;
}

.cm-composer-top {
	display: flex;
	align-items: center;
	gap: 12px;
}

.cm-composer-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	background: #e5e7eb;
}

.cm-composer-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.cm-composer-input {
	flex: 1;
	min-width: 0;
	text-align: left;
	border: 0;
	border-radius: 999px;
	background: #f3f4f6;
	color: #9ca3af;
	font-size: 15px;
	font-weight: 500;
	padding: 12px 18px;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.cm-composer-input:hover {
	background: #ebecef;
	color: #6b7280;
}

.cm-composer-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: 14px;
	padding-top: 2px;
	width: 100%;
}

.cm-composer-action {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 0;
	background: transparent;
	color: #1f2937;
	font-size: 14px;
	font-weight: 600;
	padding: 4px 2px;
	border-radius: 8px;
	text-decoration: none !important;
	cursor: pointer;
	transition: opacity 0.15s ease;
	flex: 1 1 0;
}

.cm-composer-action:nth-child(1) {
	justify-content: flex-start;
}

.cm-composer-action:nth-child(2) {
	justify-content: center;
}

.cm-composer-action:nth-child(3) {
	justify-content: flex-end;
}

/* Home: Discuss | Town blog | Town chats | + Discuss */
.cm-composer-actions--home {
	justify-content: space-between;
	gap: 4px;
}

.cm-composer-actions--home .cm-composer-action {
	flex: 1 1 0;
	justify-content: center;
	min-width: 0;
	padding: 4px 0;
}

.cm-composer-actions--home .cm-composer-action.is-active .cm-composer-action-label {
	color: #006af7;
}

.cm-composer-actions--home .cm-composer-action-label {
	font-size: 13px;
	white-space: nowrap;
}

@media (max-width: 576px) {
	.cm-composer-actions--home .cm-composer-action-label {
		font-size: 11px;
	}

	.cm-composer-actions--home .cm-composer-action-icon {
		width: 22px;
		height: 22px;
	}

	.cm-composer-actions--home .cm-composer-action-icon svg {
		width: 22px;
		height: 22px;
	}
}

.cm-composer-action:hover {
	background: transparent;
	color: #111827;
	opacity: 0.85;
	text-decoration: none !important;
}

.cm-composer-action-icon {
	width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	line-height: 0;
}

.cm-composer-action-icon svg {
	width: 28px;
	height: 28px;
	display: block;
}

.cm-composer-action-label {
	font-size: 14px;
	font-weight: 600;
	color: #1f2937;
	letter-spacing: -0.1px;
}

/* Feed cards inside community middle */
.cm-feed-middle .profile-feed {
	margin-top: 0;
}

.cm-feed-middle .feed_view_section .profile-sec {
	padding-left: 0;
	padding-right: 0;
}

.cm-feed-middle .feed_view_section .profile-secm {
	background: #fff;
	border-radius: 16px !important;
	box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
	border: 1px solid rgba(15, 23, 42, 0.04);
	overflow: visible;
	margin-top: 0 !important;
	margin-bottom: 10px;
}

.cm-feed-middle .feed_view_section .profile-sec + .profile-sec .profile-secm,
.cm-feed-middle .feed_view_section .feed-story-item + .feed-story-item .profile-secm {
	margin-top: 0 !important;
}

.cm-feed-middle .profile-pic-img {
	border-bottom: 0 !important;
	padding: 16px 18px 8px !important;
}

.cm-feed-middle .profile-pic-img .img-left img,
.cm-feed-middle .profile-pic-img .profile-placeholder {
	width: 44px !important;
	height: 44px !important;
}

.cm-feed-middle .text-img h3 {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
	color: #111827;
}

.cm-feed-middle .text-img h3 a {
	color: #111827;
	text-decoration: none;
}

.cm-feed-middle .text-img h3 a:hover {
	color: #006af7;
}

.cm-feed-middle .text-img h3 svg {
	width: 16px;
	height: 16px;
	vertical-align: -2px;
}

.cm-feed-middle .text-img h4,
.cm-feed-middle .cm-story-meta {
	font-size: 13px !important;
	font-weight: 500;
	color: #9ca3af;
	margin-top: 2px !important;
}

.cm-feed-middle .text-img h4 a {
	color: #006af7;
	text-decoration: none;
	font-weight: 600;
}

.cm-feed-middle .cm-story-category {
	color: #006af7;
	font-weight: 600;
}

.cm-feed-middle .cm-story-dot,
.cm-feed-middle .cm-story-time {
	color: #9ca3af;
	font-weight: 500;
}

.cm-feed-middle .apto-trigger-dropdown i {
	font-size: 18px !important;
	color: #9ca3af !important;
}

.cm-feed-middle .profile-pic-img .col-sm-12,
.cm-feed-middle .profile-pic-img .col-sm-8 {
	padding-left: 0;
	padding-right: 0;
	margin-top: 8px;
}

.cm-feed-middle .profile-pic-img p,
.cm-feed-middle .profile-pic-img .three-line-title,
.cm-feed-middle .feed_deails {
	color: #374151;
	font-size: 15px;
	line-height: 1.55;
}

.cm-feed-middle .profile-pic-img img.img-fluid,
.cm-feed-middle .profile-pic-img .slick-slide img,
.cm-feed-middle .feed_view_section img.img-fluid {
	border-radius: 12px;
}

/* Videos / media – match home feed middle display */
.cm-feed-middle .family-img {
	padding: 0 12px 8px;
	width: 100%;
}

.cm-feed-middle .story_image_div {
	width: 100%;
	margin: 0;
	padding: 8px 0 4px;
}

.cm-feed-middle .carousel_img_vid,
.cm-feed-middle .carousel_img_vid .carousel-inner,
.cm-feed-middle .carousel_img_vid .carousel-item {
	width: 100%;
	height: auto !important;
	min-height: 0;
}

.cm-feed-middle .carousel_img_vid .carousel-item {
	display: none;
}

.cm-feed-middle .carousel_img_vid .carousel-item.active {
	display: block;
}

.cm-feed-middle .carousel_img_vid .carousel-item img,
.cm-feed-middle .feed_detail_page_cru.feed_detail_page_cru_img {
	width: 100% !important;
	height: auto !important;
	max-height: none !important;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 12px;
	display: block;
}

.cm-feed-middle .video-center,
.cm-feed-middle .feed_image_1 {
	width: 100%;
	display: block;
}

.cm-feed-middle .video-center video,
.cm-feed-middle .carousel_img_vid .feed_detail_page_cru.feed_detail_page_cru_video,
.cm-feed-middle .feed_view_section video {
	width: 100% !important;
	height: auto !important;
	max-height: none !important;
	min-height: 220px;
	aspect-ratio: 16 / 9;
	object-fit: contain;
	background: #000;
	border-radius: 12px;
	display: block;
}

.cm-feed-middle .like_cmt_share_section {
	padding: 10px 16px 16px !important;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
}

.cm-feed-middle .like_cmt_share_section .likenav {
	flex: 1 1 auto;
	justify-content: flex-start !important;
	gap: 8px !important;
	margin: 0;
	padding: 0;
	width: 100%;
	max-width: none;
}

.cm-feed-middle .likenav .nav-item {
	padding-left: 0 !important;
	list-style: none;
}

.cm-feed-middle .likenav .feed-icon-circle {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 999px;
	background: #f3f4f6;
	text-decoration: none !important;
	color: #4b5563;
	font-size: 13px;
	font-weight: 600;
	min-height: 34px;
	transition: background 0.15s ease, color 0.15s ease;
}

.cm-feed-middle .likenav .feed-icon-circle:hover {
	background: #e8eef8;
	color: #006af7;
}

.cm-feed-middle .likenav .feed-icon-bg,
.cm-feed-middle .likenav .feed-icon-circle .feed-icon-bg {
	width: auto !important;
	height: auto !important;
	min-width: 0 !important;
	min-height: 0 !important;
	background: transparent !important;
	border-radius: 0 !important;
	padding: 0 !important;
}

.cm-feed-middle .likenav .feed-icon-bg svg,
.cm-feed-middle .likenav .feed-icon-circle .feed-icon-bg svg {
	width: 16px !important;
	height: 16px !important;
	stroke: currentColor;
}

.cm-feed-middle .likenav .likecomment,
.cm-feed-middle .likenav .comments_count {
	color: inherit;
	font-size: 13px;
	font-weight: 600;
}

.cm-feed-middle .likenav .feed_like.active,
.cm-feed-middle .likenav .feed_like.is-liked,
.cm-feed-middle .likenav a.feed_like[data-liked="1"] {
	background: rgba(0, 106, 247, 0.12);
	color: #006af7;
}

.cm-feed-middle .cm-story-buy-item {
	display: list-item;
}

.cm-feed-middle .cm-story-buy-link {
	text-decoration: none !important;
	display: inline-flex;
}

.cm-feed-middle .cm-story-buy-item .buybtn {
	width: auto !important;
	white-space: nowrap;
	padding: 6px 14px !important;
	font-size: 13px !important;
	border-radius: 999px;
	line-height: 1.2;
	min-height: 34px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.cm-feed-middle .cm-story-buy-item .buybtn span svg {
	width: 14px;
	height: 14px;
}

/* Bookmark – only visible in community middle theme, after actions on the right */
.cm-story-bookmark-item {
	display: none !important;
	padding-left: 0 !important;
	margin-left: 0 !important;
}

.cm-feed-middle .cm-story-bookmark-item {
	display: list-item !important;
	margin-left: auto !important;
}

.cm-feed-middle .cm-story-bookmark-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: transparent;
	color: #6b7280;
	padding: 6px 8px;
	border-radius: 8px;
	cursor: pointer;
	line-height: 1;
	font-size: 18px;
	min-height: 34px;
	transition: background 0.15s ease, color 0.15s ease;
}

.cm-feed-middle .cm-story-bookmark-btn:hover {
	color: #006af7;
	background: rgba(0, 106, 247, 0.08);
}

.cm-feed-middle .cm-story-bookmark-btn img {
	width: 16px;
	height: 16px;
	display: block;
}

@media (max-width: 767.98px) {
	.cm-composer {
		padding: 14px;
	}

	.cm-composer-actions {
		gap: 4px;
	}

	.cm-composer-action {
		padding: 4px 0;
		font-size: 13px;
		gap: 6px;
	}

	.cm-composer-action-label {
		font-size: 13px;
	}

	.cm-feed-middle .like_cmt_share_section .likenav {
		flex-wrap: wrap;
	}
}

/* =========================================================
 * Joined Communities + search – My Community card box design
 * ========================================================= */

.cm-join-community-list,
.cm-community-search-results {
	margin-top: 4px;
}

.cm-community-search-results[hidden] {
	display: none !important;
}

.cm-join-card-grid,
.cm-join-community-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.cm-join-card-item {
	width: 100%;
}

.cm-join-card.ucl-card {
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
	border: none;
	padding: 18px 18px 16px;
	height: auto;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.cm-join-card-actions {
	justify-content: flex-end;
}

.cm-join-action-btn {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 120px;
	padding: 10px 18px;
	border: none;
	border-radius: 10px;
	background: #006af7;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	box-shadow: 0 4px 12px rgba(0, 106, 247, 0.25);
	cursor: pointer;
	transition: background 0.15s ease, box-shadow 0.15s ease;
}

.cm-join-action-btn:hover,
.cm-join-action-btn:focus {
	background: #0058d4;
	color: #fff;
}

.cm-join-action-btn.is-following {
	background: #006af7;
	color: #fff;
}

.cm-join-action-btn.is-pending {
	background: #fff4e5;
	color: #d97706;
	box-shadow: none;
	cursor: default;
}

.cm-join-action-btn.is-rejected {
	background: #fde8e8;
	color: #dc2626;
	box-shadow: none;
	cursor: default;
}

.cm-join-action-btn:disabled {
	opacity: 1;
}

.cm-community-search-empty {
	color: #6b7280;
	font-size: 15px;
	font-weight: 500;
}

/* My Community – no joined communities empty state */
.cm-empty-join-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 8px 0 28px;
	width: 100%;
	clear: both;
}

.cm-empty-join-banner {
	width: 100%;
	background: #006af7;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	padding: 14px 18px;
	border-radius: 12px;
	margin-bottom: 28px;
}

.cm-empty-join-visual {
	width: 100%;
	max-width: 360px;
	margin: 0 auto 28px;
}

.cm-empty-join-visual img {
	width: 100%;
	height: auto;
	display: block;
}

.cm-empty-join-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 220px;
	padding: 12px 28px;
	border-radius: 10px;
	background: #111827;
	color: #fff !important;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none !important;
	border: 0;
	transition: background 0.15s ease, opacity 0.15s ease;
}

.cm-empty-join-btn:hover {
	background: #000;
	color: #fff !important;
	opacity: 0.92;
}

@media (max-width: 575.98px) {
	.cm-join-action-btn {
		width: 100%;
		min-width: 0;
	}

	.cm-join-card-actions {
		width: 100%;
	}

	.cm-empty-join-banner {
		font-size: 14px;
		padding: 12px 14px;
	}

	.cm-empty-join-btn {
		width: 100%;
		min-width: 0;
	}
}

/* =========================================================
 * Community details (ViewCommunity) – CVD layout
 * ========================================================= */

.cvd-page {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.cvd-hero-card,
.cvd-about-card,
.cvd-tabs-card {
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
	border: 1px solid rgba(15, 23, 42, 0.04);
}

.cvd-hero-card,
.cvd-about-card {
	overflow: hidden;
}

.cvd-tabs-card {
	overflow: visible;
	z-index: 5;
}

.cvd-banner {
	position: relative;
	height: 260px;
	background-color: #e5e7eb;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

.cvd-banner-actions {
	position: absolute;
	right: 16px;
	bottom: 16px;
	display: flex;
	align-items: center;
	gap: 10px;
	z-index: 2;
}

.cvd-chip-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 38px;
	padding: 8px 16px;
	border-radius: 999px;
	border: 1px solid rgba(15, 23, 42, 0.08);
	background: #fff;
	color: #111827;
	font-size: 14px;
	font-weight: 600;
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
}

.cvd-chip-btn:hover {
	background: #f9fafb;
	transform: translateY(-1px);
}

.cvd-hero-body {
	padding: 18px 20px 20px;
}

.cvd-hero-main {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.cvd-hero-info {
	flex: 1 1 240px;
	min-width: 0;
}

.cvd-title-block {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	min-width: 0;
}

.cvd-title {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.25;
	color: #111827;
	letter-spacing: -0.3px;
}

.cvd-members-pill {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border-radius: 999px;
	background: #e8f1ff;
	color: #006af7;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

.cvd-hero-about {
	margin: 8px 0 0;
	font-size: 14px;
	line-height: 1.55;
	color: #6b7280;
}

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

.cvd-join-wrap {
	display: inline-flex;
}

.cvd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	padding: 10px 20px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 700;
	border: 1px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
	white-space: nowrap;
}

.cvd-btn-primary,
.cvd-join-wrap .btn-primary {
	background: #006af7;
	border-color: #006af7;
	color: #fff;
	box-shadow: 0 6px 14px rgba(0, 106, 247, 0.25);
}

.cvd-btn-primary:hover,
.cvd-join-wrap .btn-primary:hover {
	background: #0058d4;
	border-color: #0058d4;
	color: #fff;
}

.cvd-join-wrap .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 10px 20px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
}

.cvd-btn-outline {
	background: #fff;
	border-color: #d1d5db;
	color: #111827;
}

.cvd-btn-outline:hover {
	border-color: #006af7;
	color: #006af7;
	background: #f5f9ff;
	text-decoration: none;
}

.cvd-qr-btn {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	border: 1px solid #e5e7eb;
	background: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.cvd-qr-btn:hover {
	border-color: #006af7;
	background: #f5f9ff;
}

.cvd-qr-btn img {
	width: 22px;
	height: 22px;
	display: block;
}

.cvd-qr-btn i {
	font-size: 18px;
	color: #374151;
}

.cvd-about-card {
	display: none;
}

.cvd-section-title {
	margin: 0 0 10px;
	font-size: 18px;
	font-weight: 700;
	color: #111827;
}

.cvd-about-text {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: #4b5563;
}

.cvd-read-more {
	border: 0;
	background: transparent;
	color: #006af7;
	font-size: 14px;
	font-weight: 700;
	padding: 0;
	margin-left: 2px;
	cursor: pointer;
	display: inline;
	vertical-align: baseline;
}

.cvd-read-more:hover {
	text-decoration: underline;
}

.cvd-tabs-card {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 8px 10px;
	position: relative;
}

.cvd-tabs {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	overflow-y: visible;
	scroll-behavior: smooth;
	width: 100%;
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.cvd-tabs-card.is-more-open .cvd-tabs {
	overflow: visible;
}

.cvd-tabs::-webkit-scrollbar {
	display: none;
}

.cvd-tabs .nav-item {
	flex: 1 1 0;
	min-width: 84px;
}

.cvd-tab {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 8px 12px;
	border: 0;
	background: transparent;
	border-radius: 0;
	color: #6b7280;
	position: relative;
	cursor: pointer;
}

.cvd-tab::after {
	content: '';
	position: absolute;
	left: 18%;
	right: 18%;
	bottom: 0;
	height: 3px;
	border-radius: 999px;
	background: transparent;
}

.cvd-tab.active,
.cvd-tab:hover {
	color: #111827;
	background: transparent;
}

.cvd-tab.active::after {
	background: #006af7;
}

.cvd-tab-icon {
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.cvd-tab-icon svg {
	width: 30px;
	height: 30px;
	display: block;
}

.cvd-tab-label {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: -0.1px;
	white-space: nowrap;
}

.cvd-tab-nav {
	display: none;
	border: 0;
	background: #fff;
	color: #555;
	font-size: 22px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
	cursor: pointer;
	flex-shrink: 0;
	line-height: 1;
}

.cvd-more-item {
	position: relative;
	z-index: 6;
}

.cvd-more-wrap {
	position: relative;
	width: 100%;
}

.cvd-more-wrap.is-open .cvd-more-trigger {
	color: #111827;
}

.cvd-more-wrap.is-open .cvd-more-trigger::after {
	background: #006af7;
}

.cvd-more-menu {
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	z-index: 40;
	min-width: 160px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
	border: 1px solid rgba(15, 23, 42, 0.06);
	padding: 6px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.cvd-more-menu[hidden] {
	display: none !important;
}

.cvd-more-option {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	border: 0;
	background: transparent;
	text-align: left;
	padding: 11px 12px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	color: #1f2937;
	cursor: pointer;
}

.cvd-more-option-icon {
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: #f3f4f6;
	color: #4b5563;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	flex-shrink: 0;
}

.cvd-more-option:hover {
	background: rgba(0, 106, 247, 0.08);
	color: #006af7;
}

.cvd-more-option:hover .cvd-more-option-icon {
	background: rgba(0, 106, 247, 0.12);
	color: #006af7;
}

.cvd-page .cm-composer {
	margin-bottom: 0;
}

.cvd-page .cm-composer--compact {
	padding: 14px 16px;
}

.cvd-tab-content {
	margin-top: 2px;
}

.cvd-members-panel {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
	border: 1px solid rgba(15, 23, 42, 0.04);
	padding: 8px 6px;
}

.cvd-members-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cvd-member-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	border-radius: 12px;
}

.cvd-member-row:hover {
	background: #f8fafc;
}

.cvd-member-avatar {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	background: #e5e7eb;
}

.cvd-member-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.cvd-member-fallback {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #6b7280;
	color: #fff;
	font-weight: 700;
	font-size: 16px;
	text-transform: uppercase;
}

.cvd-member-name {
	font-size: 15px;
	font-weight: 600;
	color: #111827;
}

.cvd-empty-tab {
	margin: 8px 0 24px;
	padding: 28px 20px 36px;
	text-align: center;
	color: #6b7280;
	font-size: 14px;
	background: #fff;
	border-radius: 16px;
}

.cvd-empty-illust {
	display: block;
	width: min(280px, 78%);
	height: auto;
	margin: 0 auto 18px;
	user-select: none;
	pointer-events: none;
}

.cvd-empty-title {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.35;
	color: #111827;
	text-align: center;
	width: 100%;
}

.cvd-empty-desc {
	margin: 0 auto 22px;
	font-size: 14px;
	line-height: 1.45;
	color: #6b7280;
	text-align: center;
	width: 100%;
	display: block;
}

.cvd-empty-actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
	max-width: 360px;
	margin: 0 auto;
}

.cvd-empty-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 48px;
	padding: 12px 18px;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	border: 1.5px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.cvd-empty-btn i {
	font-size: 15px;
}

.cvd-empty-btn-primary {
	background: #2563eb;
	border-color: #2563eb;
	color: #fff;
}

.cvd-empty-btn-primary:hover,
.cvd-empty-btn-primary:focus {
	background: #1d4ed8;
	border-color: #1d4ed8;
	color: #fff;
}

.cvd-empty-btn-outline {
	background: #fff;
	border-color: #2563eb;
	color: #2563eb;
}

.cvd-empty-btn-outline:hover,
.cvd-empty-btn-outline:focus {
	background: #eff6ff;
	color: #1d4ed8;
	border-color: #1d4ed8;
}

.cvd-qr-modal {
	border-radius: 16px;
	border: 0;
}

.cvd-qr-image {
	width: 180px;
	height: 180px;
	object-fit: contain;
	margin: 8px auto 12px;
	display: block;
}

.cvd-qr-hint {
	font-size: 13px;
	color: #6b7280;
}

@media (max-width: 768px) {
	.cvd-banner {
		height: 180px;
	}

	.cvd-title {
		font-size: 20px;
	}

	.cvd-hero-body {
		padding: 14px 14px 16px;
	}

	.cvd-hero-main {
		align-items: flex-start;
	}

	.cvd-hero-actions {
		width: 100%;
	}

	.cvd-btn {
		flex: 1 1 auto;
	}

	.cvd-qr-btn {
		flex: 0 0 42px;
	}

	.cvd-tab-nav {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.cvd-tabs .nav-item {
		flex: 0 0 auto;
		min-width: 76px;
	}

	.cvd-banner-actions {
		right: 10px;
		bottom: 10px;
		gap: 8px;
	}

	.cvd-chip-btn {
		min-height: 34px;
		padding: 6px 12px;
		font-size: 13px;
	}
}
