/**
 * Persea Group Manager
 * Dashboard Styles
 */

.pgmp-dashboard {
	width: 100%;
	max-width: 1200px;
	margin: 30px auto;
	font-family: inherit;
	box-sizing: border-box;
}

.pgmp-dashboard *,
.pgmp-dashboard *::before,
.pgmp-dashboard *::after {
	box-sizing: border-box;
}

/* ---------------------------------------------------------
   HEADER
--------------------------------------------------------- */

.pgmp-dashboard-header {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	margin-bottom: 20px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pgmp-dashboard-header-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 22px 24px;
}

.pgmp-dashboard-title {
	display: flex;
	align-items: center;
	gap: 15px;
	min-width: 0;
}

.pgmp-dashboard-icon {
	width: 52px;
	height: 52px;
	flex: 0 0 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f0f6fc;
	color: #2271b1;
	border-radius: 12px;
}

.pgmp-dashboard-icon .dashicons {
	font-size: 27px;
	width: 27px;
	height: 27px;
}

.pgmp-dashboard-title h2 {
	margin: 0 0 4px;
	font-size: 24px;
	line-height: 1.3;
}

.pgmp-dashboard-title p {
	margin: 0;
	color: #6b7280;
	font-size: 14px;
}

.pgmp-dashboard-header-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* ---------------------------------------------------------
   BUTTONS
--------------------------------------------------------- */

.pgmp-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 40px;
	padding: 9px 16px;
	border: 1px solid transparent;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none !important;
	cursor: pointer;
	transition: all 0.18s ease;
}

.pgmp-button .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.pgmp-button-primary {
	background: #2271b1;
	border-color: #2271b1;
	color: #fff !important;
}

.pgmp-button-primary:hover {
	background: #135e96;
	border-color: #135e96;
	color: #fff !important;
}

.pgmp-button-secondary {
	background: #fff;
	border-color: #d1d5db;
	color: #374151 !important;
}

.pgmp-button-secondary:hover {
	background: #f9fafb;
	border-color: #9ca3af;
}

.pgmp-button-danger {
	background: #dc3232;
	border-color: #dc3232;
	color: #fff !important;
}

.pgmp-button-danger:hover {
	background: #b32d2e;
	border-color: #b32d2e;
	color: #fff !important;
}

.pgmp-button-small {
	min-height: 34px;
	padding: 6px 11px;
	font-size: 13px;
}

.pgmp-button-large {
	min-height: 48px;
	padding: 12px 22px;
	font-size: 15px;
}

.pgmp-button:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

/* ---------------------------------------------------------
   BODY
--------------------------------------------------------- */

.pgmp-dashboard-body {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

/* ---------------------------------------------------------
   TABS
--------------------------------------------------------- */

.pgmp-dashboard-tabs {
	display: flex;
	align-items: center;
	gap: 3px;
	padding: 8px;
	border-bottom: 1px solid #e5e7eb;
	background: #fafafa;
	overflow-x: auto;
	scrollbar-width: thin;
}

.pgmp-dashboard-tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	flex: 0 0 auto;
	padding: 10px 13px;
	border-radius: 7px;
	color: #4b5563 !important;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
	white-space: nowrap;
	transition: all 0.18s ease;
}

.pgmp-dashboard-tab .dashicons {
	width: 17px;
	height: 17px;
	font-size: 17px;
}

.pgmp-dashboard-tab:hover {
	background: #f0f0f1;
	color: #1d2327 !important;
}

.pgmp-dashboard-tab.is-active {
	background: #2271b1;
	color: #fff !important;
}

.pgmp-dashboard-tab.is-active:hover {
	background: #135e96;
	color: #fff !important;
}

.pgmp-tab-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 20px;
	background: rgba(0, 0, 0, 0.08);
	font-size: 11px;
}

.pgmp-dashboard-tab.is-active .pgmp-tab-count {
	background: rgba(255, 255, 255, 0.2);
}

/* ---------------------------------------------------------
   CONTENT
--------------------------------------------------------- */

.pgmp-dashboard-content {
	padding: 28px;
}

.pgmp-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	margin-bottom: 18px;
}

.pgmp-section-header h3 {
	margin: 0 0 5px;
	font-size: 19px;
	line-height: 1.35;
}

.pgmp-section-header p {
	margin: 0;
	color: #6b7280;
	font-size: 13px;
}

/* ---------------------------------------------------------
   FORMS
--------------------------------------------------------- */

.pgmp-form {
	width: 100%;
}

.pgmp-form-row {
	margin-bottom: 18px;
}

.pgmp-form-row label {
	display: block;
	margin-bottom: 7px;
	font-size: 14px;
	font-weight: 600;
	color: #1d2327;
}

.pgmp-form-control {
	display: block;
	width: 100%;
	min-height: 42px;
	padding: 9px 12px;
	border: 1px solid #d1d5db;
	border-radius: 7px;
	background: #fff;
	color: #1d2327;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.5;
	box-shadow: none;
}

.pgmp-form-control:focus {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
	outline: none;
}

textarea.pgmp-form-control {
	min-height: 110px;
	resize: vertical;
}

.pgmp-form-help {
	margin: 6px 0 0;
	color: #6b7280;
	font-size: 12px;
}

.pgmp-form-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 20px;
}

.pgmp-form-message {
	display: none;
	margin-top: 15px;
	padding: 11px 14px;
	border-radius: 7px;
	font-size: 13px;
	line-height: 1.5;
}

.pgmp-form-message.is-success {
	display: block;
	background: #ecfdf3;
	border: 1px solid #a7f3d0;
	color: #166534;
}

.pgmp-form-message.is-error {
	display: block;
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
}

/* ---------------------------------------------------------
   CREATE SECTIONS
--------------------------------------------------------- */

.pgmp-create-announcement,
.pgmp-history-section,
.pgmp-settings-section {
	padding: 22px;
	margin-bottom: 24px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #fff;
}

.pgmp-create-announcement {
	background: #f9fbfd;
}

/* ---------------------------------------------------------
   ANNOUNCEMENTS
--------------------------------------------------------- */

.pgmp-announcement-list {
	display: grid;
	gap: 15px;
}

.pgmp-announcement-card {
	display: flex;
	gap: 15px;
	padding: 20px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #fff;
}

.pgmp-announcement-author {
	flex: 0 0 45px;
}

.pgmp-announcement-author img {
	display: block;
	width: 45px;
	height: 45px;
	border-radius: 50%;
	object-fit: cover;
}

.pgmp-announcement-content {
	flex: 1;
	min-width: 0;
}

.pgmp-announcement-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 7px;
	font-size: 12px;
}

.pgmp-announcement-meta strong {
	color: #1d2327;
}

.pgmp-announcement-meta span {
	color: #6b7280;
}

.pgmp-announcement-content h3 {
	margin: 0 0 9px;
	font-size: 17px;
	line-height: 1.4;
}

.pgmp-announcement-text {
	color: #4b5563;
	font-size: 14px;
	line-height: 1.65;
}

.pgmp-announcement-text p {
	margin: 0 0 8px;
}

.pgmp-announcement-text p:last-child {
	margin-bottom: 0;
}

.pgmp-announcement-actions {
	display: flex;
	margin-top: 15px;
}

/* ---------------------------------------------------------
   EMPTY STATE
--------------------------------------------------------- */

.pgmp-empty-state {
	padding: 55px 25px;
	text-align: center;
	border: 1px dashed #d1d5db;
	border-radius: 12px;
	background: #fafafa;
}

.pgmp-empty-state .dashicons {
	width: 45px;
	height: 45px;
	font-size: 45px;
	color: #9ca3af;
}

.pgmp-empty-state h3 {
	margin: 15px 0 7px;
	font-size: 18px;
}

.pgmp-empty-state p {
	margin: 0;
	color: #6b7280;
	font-size: 14px;
}

/* ---------------------------------------------------------
   AUDIO ROOM
--------------------------------------------------------- */

.pgmp-audio-room-card {
	position: relative;
	overflow: hidden;
	margin-bottom: 25px;
	padding: 25px;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	background: #fff;
}

.pgmp-audio-room-live {
	border-color: #fca5a5;
}

.pgmp-audio-room-scheduled {
	border-color: #93c5fd;
}

.pgmp-audio-room-offline {
	border-color: #d1d5db;
}

.pgmp-audio-room-status {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-bottom: 20px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.05em;
}

.pgmp-audio-room-live .pgmp-audio-room-status {
	color: #dc2626;
}

.pgmp-audio-room-scheduled .pgmp-audio-room-status {
	color: #2563eb;
}

.pgmp-audio-room-offline .pgmp-audio-room-status {
	color: #6b7280;
}

.pgmp-live-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #dc2626;
	animation: pgmp-pulse 1.5s infinite;
}

@keyframes pgmp-pulse {
	0% {
		opacity: 1;
		transform: scale(1);
	}

	50% {
		opacity: 0.45;
		transform: scale(0.8);
	}

	100% {
		opacity: 1;
		transform: scale(1);
	}
}

.pgmp-scheduled-icon {
	display: inline-flex;
	align-items: center;
}

.pgmp-audio-room-main {
	display: flex;
	align-items: center;
	gap: 20px;
}

.pgmp-audio-room-icon {
	width: 70px;
	height: 70px;
	flex: 0 0 70px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #f0f6fc;
	color: #2271b1;
}

.pgmp-audio-room-icon .dashicons {
	width: 34px;
	height: 34px;
	font-size: 34px;
}

.pgmp-audio-room-details {
	flex: 1;
	min-width: 0;
}

.pgmp-audio-room-details h2 {
	margin: 0 0 7px;
	font-size: 22px;
	line-height: 1.35;
}

.pgmp-audio-room-details p {
	margin: 0;
	color: #6b7280;
	font-size: 14px;
	line-height: 1.6;
}

.pgmp-audio-room-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin-top: 12px;
	color: #6b7280;
	font-size: 12px;
}

.pgmp-audio-room-meta span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.pgmp-audio-room-meta .dashicons {
	width: 15px;
	height: 15px;
	font-size: 15px;
}

.pgmp-audio-room-schedule {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 14px;
	color: #2563eb;
}

.pgmp-audio-room-schedule > .dashicons {
	width: 22px;
	height: 22px;
	font-size: 22px;
}

.pgmp-audio-room-schedule div {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.pgmp-audio-room-schedule strong {
	font-size: 12px;
}

.pgmp-audio-room-schedule span {
	color: #374151;
	font-size: 14px;
}

.pgmp-audio-room-actions {
	display: flex;
	gap: 10px;
	margin-top: 22px;
}

.pgmp-audio-room-admin-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #e5e7eb;
}

/* ---------------------------------------------------------
   SETTINGS
--------------------------------------------------------- */

.pgmp-settings-options {
	display: grid;
	gap: 10px;
}

.pgmp-setting-option {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 15px;
	border: 1px solid #e5e7eb;
	border-radius: 9px;
	cursor: pointer;
	transition: border-color 0.18s ease, background 0.18s ease;
}

.pgmp-setting-option:hover {
	background: #f9fafb;
	border-color: #cbd5e1;
}

.pgmp-setting-option input {
	margin-top: 3px;
	flex: 0 0 auto;
}

.pgmp-setting-option-content {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.pgmp-setting-option-content strong {
	font-size: 14px;
}

.pgmp-setting-option-content small {
	color: #6b7280;
	font-size: 12px;
	line-height: 1.5;
}

.pgmp-toggle-option {
	display: flex;
	align-items: center;
	gap: 13px;
	padding: 16px;
	border: 1px solid #e5e7eb;
	border-radius: 9px;
	cursor: pointer;
}

.pgmp-toggle-option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.pgmp-toggle-switch {
	position: relative;
	width: 42px;
	height: 24px;
	flex: 0 0 42px;
	border-radius: 20px;
	background: #d1d5db;
	transition: background 0.2s ease;
}

.pgmp-toggle-switch::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
	transition: transform 0.2s ease;
}

.pgmp-toggle-option input:checked + .pgmp-toggle-switch {
	background: #2271b1;
}

.pgmp-toggle-option input:checked + .pgmp-toggle-switch::after {
	transform: translateX(18px);
}

.pgmp-toggle-content {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.pgmp-toggle-content strong {
	font-size: 14px;
}

.pgmp-toggle-content small {
	color: #6b7280;
	font-size: 12px;
	line-height: 1.5;
}

.pgmp-settings-info-row {
	display: flex;
	align-items: flex-start;
	gap: 13px;
	padding: 16px;
	border-radius: 9px;
	background: #f9fafb;
}

.pgmp-settings-info-row > .dashicons {
	width: 25px;
	height: 25px;
	font-size: 25px;
	color: #2271b1;
}

.pgmp-settings-info-row strong {
	display: block;
	margin-bottom: 4px;
	font-size: 14px;
}

.pgmp-settings-info-row p {
	margin: 0;
	color: #6b7280;
	font-size: 13px;
	line-height: 1.6;
}

.pgmp-danger-zone {
	border-color: #fecaca;
	background: #fffafa;
}

.pgmp-danger-zone .pgmp-section-header h3 {
	color: #b91c1c;
}

.pgmp-danger-action {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 15px;
	border: 1px solid #fecaca;
	border-radius: 9px;
}

.pgmp-danger-action strong {
	display: block;
	margin-bottom: 4px;
	color: #991b1b;
}

.pgmp-danger-action p {
	margin: 0;
	color: #6b7280;
	font-size: 13px;
	line-height: 1.5;
}

/* ---------------------------------------------------------
   INFO / NOTICES
--------------------------------------------------------- */

.pgmp-dashboard-info {
	margin-top: 25px;
}

.pgmp-info-box {
	padding: 18px;
	border: 1px solid #dbeafe;
	border-radius: 10px;
	background: #eff6ff;
}

.pgmp-info-box h3 {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0 0 7px;
	font-size: 15px;
	color: #1e40af;
}

.pgmp-info-box h3 .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
}

.pgmp-info-box p {
	margin: 0;
	color: #374151;
	font-size: 13px;
	line-height: 1.6;
}

.pgmp-notice {
	margin: 20px 0;
	padding: 14px 16px;
	border-radius: 8px;
	font-size: 14px;
}

.pgmp-notice-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
}

/* ---------------------------------------------------------
   MEMBERS
--------------------------------------------------------- */

.pgmp-members-list {
	display: grid;
	gap: 10px;
}

.pgmp-member-card {
	display: flex;
	align-items: center;
	gap: 13px;
	padding: 14px;
	border: 1px solid #e5e7eb;
	border-radius: 9px;
	background: #fff;
}

.pgmp-member-avatar {
	width: 45px;
	height: 45px;
	flex: 0 0 45px;
	border-radius: 50%;
	object-fit: cover;
}

.pgmp-member-info {
	flex: 1;
	min-width: 0;
}

.pgmp-member-info strong {
	display: block;
	font-size: 14px;
}

.pgmp-member-info span {
	display: block;
	margin-top: 3px;
	color: #6b7280;
	font-size: 12px;
}

.pgmp-member-actions {
	display: flex;
	align-items: center;
	gap: 7px;
}

/* ---------------------------------------------------------
   MODERATORS
--------------------------------------------------------- */

.pgmp-moderator-card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 15px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
}

.pgmp-moderator-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
}

.pgmp-moderator-info {
	flex: 1;
}

.pgmp-moderator-info strong {
	display: block;
	font-size: 14px;
}

.pgmp-moderator-info span {
	display: block;
	margin-top: 3px;
	color: #6b7280;
	font-size: 12px;
}

/* ---------------------------------------------------------
   JOIN REQUESTS
--------------------------------------------------------- */

.pgmp-request-card {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 15px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
}

.pgmp-request-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-left: auto;
}

/* ---------------------------------------------------------
   LOADING
--------------------------------------------------------- */

.pgmp-is-loading {
	position: relative;
	pointer-events: none;
	opacity: 0.65;
}

.pgmp-loading {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.pgmp-spinner {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.45);
	border-top-color: #fff;
	border-radius: 50%;
	animation: pgmp-spin 0.7s linear infinite;
}

@keyframes pgmp-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */

@media (max-width: 900px) {

	.pgmp-dashboard {
		margin: 20px auto;
	}

	.pgmp-dashboard-content {
		padding: 20px;
	}

	.pgmp-dashboard-header-content {
		align-items: flex-start;
		flex-direction: column;
	}

	.pgmp-dashboard-header-actions {
		width: 100%;
	}

	.pgmp-dashboard-header-actions .pgmp-button {
		width: 100%;
	}

	.pgmp-audio-room-main {
		align-items: flex-start;
	}

}

@media (max-width: 640px) {

	.pgmp-dashboard {
		margin: 10px auto;
	}

	.pgmp-dashboard-header,
	.pgmp-dashboard-body {
		border-radius: 9px;
	}

	.pgmp-dashboard-content {
		padding: 14px;
	}

	.pgmp-dashboard-title h2 {
		font-size: 20px;
	}

	.pgmp-dashboard-tabs {
		padding: 6px;
	}

	.pgmp-dashboard-tab {
		padding: 9px 10px;
		font-size: 12px;
	}

	.pgmp-create-announcement,
	.pgmp-history-section,
	.pgmp-settings-section {
		padding: 16px;
	}

	.pgmp-announcement-card {
		padding: 15px;
	}

	.pgmp-audio-room-card {
		padding: 18px;
	}

	.pgmp-audio-room-main {
		flex-direction: column;
	}

	.pgmp-audio-room-icon {
		width: 58px;
		height: 58px;
		flex-basis: 58px;
	}

	.pgmp-audio-room-icon .dashicons {
		width: 28px;
		height: 28px;
		font-size: 28px;
	}

	.pgmp-audio-room-actions,
	.pgmp-audio-room-admin-actions {
		flex-direction: column;
	}

	.pgmp-audio-room-actions .pgmp-button,
	.pgmp-audio-room-admin-actions .pgmp-button {
		width: 100%;
	}

	.pgmp-request-card,
	.pgmp-member-card,
	.pgmp-moderator-card {
		align-items: flex-start;
		flex-wrap: wrap;
	}

	.pgmp-request-actions {
		width: 100%;
		margin-left: 0;
	}

	.pgmp-request-actions .pgmp-button {
		flex: 1;
	}

	.pgmp-danger-action {
		flex-direction: column;
		align-items: flex-start;
	}

}
/* ---------------------------------------------------------
   LIVE AGORA AUDIO ROOM
--------------------------------------------------------- */
.pgmp-live-room{max-width:1100px;margin:20px auto;padding:24px;border:1px solid #e5e7eb;border-radius:14px;background:#fff}.pgmp-live-room-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:20px}.pgmp-live-room-head h2{margin:7px 0 5px}.pgmp-live-room-head p{margin:0;color:#6b7280}.pgmp-live-badge{display:inline-flex;align-items:center;gap:7px;color:#dc2626;font-size:12px;font-weight:800}.pgmp-live-room-count{padding:8px 12px;background:#f3f4f6;border-radius:20px;font-size:13px}.pgmp-live-controls{display:flex;flex-wrap:wrap;gap:10px;padding:18px 0;border-top:1px solid #e5e7eb;border-bottom:1px solid #e5e7eb}.pgmp-live-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:22px}.pgmp-live-columns section{min-width:0}.pgmp-live-columns h3{margin:0 0 10px;font-size:16px}.pgmp-audio-people{display:grid;gap:9px}.pgmp-audio-person{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid #e5e7eb;border-radius:10px}.pgmp-audio-person img{width:42px;height:42px;border-radius:50%;object-fit:cover}.pgmp-audio-person>div:nth-child(2){flex:1;min-width:0}.pgmp-audio-person strong,.pgmp-audio-person small{display:block}.pgmp-audio-person small{margin-top:2px;color:#6b7280;text-transform:capitalize}.pgmp-audio-person-actions{display:flex;gap:5px;flex-wrap:wrap}.pgmp-muted-text{color:#6b7280;font-size:13px}.pgmp-is-muted{opacity:.7}@media(max-width:800px){.pgmp-live-columns{grid-template-columns:1fr}.pgmp-live-room-head{flex-direction:column}.pgmp-live-controls .pgmp-button{flex:1 1 45%}}

/* ---------------------------------------------------------
   LIVE AUDIO BANNERS
--------------------------------------------------------- */
.pgmp-front-live-wrap {
	max-width: 1200px;
	margin: 12px auto;
	padding: 0 15px;
}

.pgmp-live-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 12px 0;
	padding: 14px 16px;
	background: #fff;
	border: 1px solid #fecaca;
	border-radius: 12px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.pgmp-live-banner-main {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.pgmp-live-banner-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.pgmp-live-banner-text strong {
	font-size: 15px;
	line-height: 1.35;
	color: #111827;
}

.pgmp-live-banner-text span {
	font-size: 12px;
	color: #6b7280;
}

.pgmp-live-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
	font-size: 12px;
	font-weight: 800;
	color: #dc2626;
	letter-spacing: .04em;
}

.pgmp-live-join {
	flex: 0 0 auto;
}

@media (max-width: 640px) {
	.pgmp-live-banner {
		align-items: stretch;
		flex-direction: column;
	}
	.pgmp-live-banner .pgmp-button {
		width: 100%;
	}
}

/* ---------------------------------------------------------
   v2.1.5 - HIGH VISIBILITY LIVE AUDIO CONTROLS
--------------------------------------------------------- */
.pgmp-live-room .pgmp-button,
.pgmp-live-banner .pgmp-button,
.pgmp-audio-room-card .pgmp-button {
	opacity: 1;
	visibility: visible;
	text-shadow: none;
	box-shadow: 0 2px 6px rgba(0,0,0,.14);
}

.pgmp-live-room .pgmp-button-primary,
.pgmp-live-banner .pgmp-button-primary,
.pgmp-audio-room-card .pgmp-button-primary {
	background: #2563eb !important;
	border: 2px solid #1d4ed8 !important;
	color: #ffffff !important;
}

.pgmp-live-room .pgmp-button-primary:hover,
.pgmp-live-banner .pgmp-button-primary:hover,
.pgmp-audio-room-card .pgmp-button-primary:hover {
	background: #1d4ed8 !important;
	border-color: #1e40af !important;
	color: #ffffff !important;
}

.pgmp-live-room .pgmp-button-danger,
.pgmp-audio-room-card .pgmp-button-danger,
.pgmp-end-live-room {
	background: #dc2626 !important;
	border: 2px solid #b91c1c !important;
	color: #ffffff !important;
}

.pgmp-live-room .pgmp-button-danger:hover,
.pgmp-audio-room-card .pgmp-button-danger:hover,
.pgmp-end-live-room:hover {
	background: #b91c1c !important;
	border-color: #991b1b !important;
	color: #ffffff !important;
}

.pgmp-live-room .pgmp-button-secondary {
	background: #ffffff !important;
	border: 2px solid #94a3b8 !important;
	color: #0f172a !important;
}

.pgmp-live-room .pgmp-button:disabled {
	opacity: .48 !important;
	visibility: visible !important;
	box-shadow: none;
}

#pgmp-audio-join,
#pgmp-audio-leave,
#pgmp-audio-end-room {
	min-height: 46px;
	font-weight: 800;
	padding-left: 18px;
	padding-right: 18px;
}

#pgmp-audio-end-room {
	margin-left: auto;
}

@media (max-width: 800px) {
	#pgmp-audio-end-room {
		margin-left: 0;
	}
}

/* =========================================================
   PGMP v2.1.6 – Global button + light/dark theme compatibility
   Keeps all plugin controls visible even when Astra/BuddyPress/
   Elementor or a dark theme overrides generic button styles.
========================================================= */

.pgmp-dashboard,
.pgmp-live-room,
.pgmp-live-banner,
.pgmp-audio-room-card {
	--pgmp-surface: #ffffff;
	--pgmp-surface-soft: #f8fafc;
	--pgmp-text: #111827;
	--pgmp-muted: #6b7280;
	--pgmp-border: #d1d5db;
	--pgmp-primary: #2563eb;
	--pgmp-primary-hover: #1d4ed8;
	--pgmp-primary-text: #ffffff;
	--pgmp-secondary: #ffffff;
	--pgmp-secondary-hover: #f3f4f6;
	--pgmp-secondary-text: #1f2937;
	--pgmp-danger: #dc2626;
	--pgmp-danger-hover: #b91c1c;
	--pgmp-danger-text: #ffffff;
	--pgmp-disabled: #e5e7eb;
	--pgmp-disabled-text: #6b7280;
}

/* Base button: visible even when no primary/secondary modifier exists. */
.pgmp-dashboard .pgmp-button,
.pgmp-live-room .pgmp-button,
.pgmp-live-banner .pgmp-button,
.pgmp-audio-room-card .pgmp-button,
a.pgmp-button,
button.pgmp-button,
input.pgmp-button {
	appearance: none !important;
	-webkit-appearance: none !important;
	background: var(--pgmp-secondary, #ffffff) !important;
	background-color: var(--pgmp-secondary, #ffffff) !important;
	color: var(--pgmp-secondary-text, #1f2937) !important;
	border: 1px solid var(--pgmp-border, #d1d5db) !important;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08) !important;
	text-shadow: none !important;
	opacity: 1;
	visibility: visible;
}

.pgmp-dashboard .pgmp-button:hover,
.pgmp-dashboard .pgmp-button:focus,
.pgmp-live-room .pgmp-button:hover,
.pgmp-live-room .pgmp-button:focus,
.pgmp-live-banner .pgmp-button:hover,
.pgmp-live-banner .pgmp-button:focus,
.pgmp-audio-room-card .pgmp-button:hover,
.pgmp-audio-room-card .pgmp-button:focus,
a.pgmp-button:hover,
a.pgmp-button:focus,
button.pgmp-button:hover,
button.pgmp-button:focus {
	background: var(--pgmp-secondary-hover, #f3f4f6) !important;
	background-color: var(--pgmp-secondary-hover, #f3f4f6) !important;
	color: var(--pgmp-secondary-text, #1f2937) !important;
	border-color: #9ca3af !important;
	outline: 2px solid transparent;
	outline-offset: 2px;
}

/* Primary actions: Create Live Room, Join, Approve, Save, Start, Add etc. */
.pgmp-dashboard .pgmp-button-primary,
.pgmp-live-room .pgmp-button-primary,
.pgmp-live-banner .pgmp-button-primary,
.pgmp-audio-room-card .pgmp-button-primary,
a.pgmp-button-primary,
button.pgmp-button-primary,
input.pgmp-button-primary {
	background: var(--pgmp-primary, #2563eb) !important;
	background-color: var(--pgmp-primary, #2563eb) !important;
	color: var(--pgmp-primary-text, #ffffff) !important;
	border-color: var(--pgmp-primary, #2563eb) !important;
	box-shadow: 0 2px 5px rgba(37, 99, 235, 0.25) !important;
}

.pgmp-dashboard .pgmp-button-primary:hover,
.pgmp-dashboard .pgmp-button-primary:focus,
.pgmp-live-room .pgmp-button-primary:hover,
.pgmp-live-room .pgmp-button-primary:focus,
.pgmp-live-banner .pgmp-button-primary:hover,
.pgmp-live-banner .pgmp-button-primary:focus,
.pgmp-audio-room-card .pgmp-button-primary:hover,
.pgmp-audio-room-card .pgmp-button-primary:focus,
a.pgmp-button-primary:hover,
a.pgmp-button-primary:focus,
button.pgmp-button-primary:hover,
button.pgmp-button-primary:focus {
	background: var(--pgmp-primary-hover, #1d4ed8) !important;
	background-color: var(--pgmp-primary-hover, #1d4ed8) !important;
	color: #ffffff !important;
	border-color: var(--pgmp-primary-hover, #1d4ed8) !important;
}

/* Secondary controls: Mic, Raise Hand, Mute All, Back to Group etc. */
.pgmp-dashboard .pgmp-button-secondary,
.pgmp-live-room .pgmp-button-secondary,
.pgmp-live-banner .pgmp-button-secondary,
.pgmp-audio-room-card .pgmp-button-secondary,
a.pgmp-button-secondary,
button.pgmp-button-secondary {
	background: var(--pgmp-secondary, #ffffff) !important;
	background-color: var(--pgmp-secondary, #ffffff) !important;
	color: var(--pgmp-secondary-text, #1f2937) !important;
	border-color: var(--pgmp-border, #d1d5db) !important;
}

/* Destructive actions: End Live Room, Leave, Reject, Remove, Delete. */
.pgmp-dashboard .pgmp-button-danger,
.pgmp-live-room .pgmp-button-danger,
.pgmp-live-banner .pgmp-button-danger,
.pgmp-audio-room-card .pgmp-button-danger,
a.pgmp-button-danger,
button.pgmp-button-danger,
.pgmp-end-live-room,
.pgmp-end-audio-room,
.pgmp-audio-leave-button {
	background: var(--pgmp-danger, #dc2626) !important;
	background-color: var(--pgmp-danger, #dc2626) !important;
	color: var(--pgmp-danger-text, #ffffff) !important;
	border-color: var(--pgmp-danger, #dc2626) !important;
	box-shadow: 0 2px 5px rgba(220, 38, 38, 0.24) !important;
}

.pgmp-dashboard .pgmp-button-danger:hover,
.pgmp-dashboard .pgmp-button-danger:focus,
.pgmp-live-room .pgmp-button-danger:hover,
.pgmp-live-room .pgmp-button-danger:focus,
.pgmp-live-banner .pgmp-button-danger:hover,
.pgmp-live-banner .pgmp-button-danger:focus,
.pgmp-audio-room-card .pgmp-button-danger:hover,
.pgmp-audio-room-card .pgmp-button-danger:focus,
.pgmp-end-live-room:hover,
.pgmp-end-live-room:focus,
.pgmp-end-audio-room:hover,
.pgmp-end-audio-room:focus,
.pgmp-audio-leave-button:hover,
.pgmp-audio-leave-button:focus {
	background: var(--pgmp-danger-hover, #b91c1c) !important;
	background-color: var(--pgmp-danger-hover, #b91c1c) !important;
	color: #ffffff !important;
	border-color: var(--pgmp-danger-hover, #b91c1c) !important;
}

/* Disabled controls remain visible instead of becoming transparent. */
.pgmp-dashboard .pgmp-button:disabled,
.pgmp-live-room .pgmp-button:disabled,
.pgmp-live-banner .pgmp-button:disabled,
.pgmp-audio-room-card .pgmp-button:disabled,
button.pgmp-button:disabled,
input.pgmp-button:disabled {
	background: var(--pgmp-disabled, #e5e7eb) !important;
	background-color: var(--pgmp-disabled, #e5e7eb) !important;
	color: var(--pgmp-disabled-text, #6b7280) !important;
	border-color: var(--pgmp-border, #d1d5db) !important;
	box-shadow: none !important;
	opacity: 0.78 !important;
	cursor: not-allowed !important;
}

/* Keyboard focus is always visible. */
.pgmp-button:focus-visible {
	outline: 3px solid rgba(37, 99, 235, 0.35) !important;
	outline-offset: 2px !important;
}

/* Common dark-theme class names used by WordPress themes/plugins. */
body.dark-mode .pgmp-dashboard,
body.dark-mode .pgmp-live-room,
body.dark-mode .pgmp-live-banner,
body.dark-mode .pgmp-audio-room-card,
body.is-dark-theme .pgmp-dashboard,
body.is-dark-theme .pgmp-live-room,
body.is-dark-theme .pgmp-live-banner,
body.is-dark-theme .pgmp-audio-room-card,
body[data-theme="dark"] .pgmp-dashboard,
body[data-theme="dark"] .pgmp-live-room,
body[data-theme="dark"] .pgmp-live-banner,
body[data-theme="dark"] .pgmp-audio-room-card,
html[data-theme="dark"] .pgmp-dashboard,
html[data-theme="dark"] .pgmp-live-room,
html[data-theme="dark"] .pgmp-live-banner,
html[data-theme="dark"] .pgmp-audio-room-card {
	--pgmp-surface: #111827;
	--pgmp-surface-soft: #1f2937;
	--pgmp-text: #f9fafb;
	--pgmp-muted: #cbd5e1;
	--pgmp-border: #475569;
	--pgmp-primary: #3b82f6;
	--pgmp-primary-hover: #60a5fa;
	--pgmp-primary-text: #ffffff;
	--pgmp-secondary: #1f2937;
	--pgmp-secondary-hover: #334155;
	--pgmp-secondary-text: #f8fafc;
	--pgmp-danger: #ef4444;
	--pgmp-danger-hover: #f87171;
	--pgmp-danger-text: #ffffff;
	--pgmp-disabled: #374151;
	--pgmp-disabled-text: #cbd5e1;
}

/* If the visitor's OS/browser is dark and the theme follows it, PGMP follows too. */
@media (prefers-color-scheme: dark) {
	.pgmp-dashboard,
	.pgmp-live-room,
	.pgmp-live-banner,
	.pgmp-audio-room-card {
		--pgmp-surface: #111827;
		--pgmp-surface-soft: #1f2937;
		--pgmp-text: #f9fafb;
		--pgmp-muted: #cbd5e1;
		--pgmp-border: #475569;
		--pgmp-primary: #3b82f6;
		--pgmp-primary-hover: #60a5fa;
		--pgmp-secondary: #1f2937;
		--pgmp-secondary-hover: #334155;
		--pgmp-secondary-text: #f8fafc;
		--pgmp-danger: #ef4444;
		--pgmp-danger-hover: #f87171;
		--pgmp-disabled: #374151;
		--pgmp-disabled-text: #cbd5e1;
	}
}

/* =========================================================
   Persea Group Manager 2.3 - Mobile App Dashboard
   ========================================================= */
.pgmp-mobile-hero{background:linear-gradient(145deg,#eef5ff 0%,#f8fbff 65%,#fff 100%);border:1px solid #e4ebf5;border-radius:24px;padding:18px 18px 22px;margin-bottom:14px;box-shadow:0 8px 30px rgba(30,64,175,.07)}
.pgmp-mobile-topbar{display:grid;grid-template-columns:42px 1fr 42px;align-items:center;gap:10px;margin-bottom:18px}.pgmp-mobile-back,.pgmp-mobile-settings-link{width:42px;height:42px;border-radius:14px;background:#fff;display:flex;align-items:center;justify-content:center;text-decoration:none!important;color:#173b6c!important;box-shadow:0 3px 12px rgba(15,23,42,.07)}.pgmp-mobile-back{font-size:32px;line-height:1}.pgmp-mobile-kicker{text-align:center;font-size:13px;font-weight:800;color:#7184a2;letter-spacing:.04em;text-transform:uppercase}
.pgmp-mobile-group-head{display:flex;align-items:center;gap:15px}.pgmp-mobile-avatar-wrap{width:78px;height:78px;min-width:78px;border-radius:22px;background:#dfe9f7;overflow:hidden;display:flex;align-items:center;justify-content:center;box-shadow:0 5px 18px rgba(15,23,42,.09)}.pgmp-mobile-avatar-wrap img{width:100%;height:100%;object-fit:cover}.pgmp-mobile-avatar-wrap .dashicons{font-size:40px;width:40px;height:40px;color:#55749b}.pgmp-mobile-group-copy{min-width:0}.pgmp-mobile-group-copy h2{font-size:22px!important;line-height:1.15!important;margin:0 0 7px!important;color:#0f315e!important}.pgmp-mobile-group-copy p{font-size:13px;line-height:1.45;color:#6f809a;margin:8px 0 0}.pgmp-mobile-meta{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:700;color:#657892}.pgmp-mobile-meta i{width:4px;height:4px;background:#9babc0;border-radius:50%}
.pgmp-mobile-section-head{display:flex;align-items:end;justify-content:space-between;margin:18px 2px 12px}.pgmp-mobile-section-head h3{margin:0!important;font-size:18px!important;color:#122f57!important}.pgmp-mobile-section-head span{font-size:12px;color:#8190a5}.pgmp-mobile-manage-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.pgmp-mobile-mini-card{min-height:118px;background:#fff;border:1px solid #e8edf5;border-radius:18px;padding:15px;text-decoration:none!important;display:flex;flex-direction:column;box-shadow:0 6px 18px rgba(15,23,42,.055);transition:.2s}.pgmp-mobile-mini-card:hover{transform:translateY(-2px);box-shadow:0 10px 22px rgba(15,23,42,.08)}.pgmp-mobile-icon{width:42px;height:42px;border-radius:13px;background:#edf4ff;color:#2468e8;display:flex;align-items:center;justify-content:center;margin-bottom:11px}.pgmp-mobile-mini-card strong{font-size:14px;color:#18375f;line-height:1.25}.pgmp-mobile-mini-card small{font-size:11px;color:#8492a6;margin-top:4px}.pgmp-feature-head{margin-top:24px}
.pgmp-mobile-feature-card{display:grid;grid-template-columns:50px 1fr auto auto;align-items:center;gap:12px;background:#fff;border:1px solid #e8edf5;border-radius:18px;padding:14px 15px;margin-bottom:11px;text-decoration:none!important;box-shadow:0 5px 16px rgba(15,23,42,.05)}.pgmp-mobile-feature-icon{width:50px;height:50px;border-radius:16px;display:flex;align-items:center;justify-content:center;background:#eef5ff;color:#2468e8}.pgmp-mobile-feature-icon .dashicons{font-size:24px;width:24px;height:24px}.pgmp-mobile-feature-card.audio .pgmp-mobile-feature-icon{background:#eef9f5;color:#0e9f6e}.pgmp-mobile-feature-card.live .pgmp-mobile-feature-icon{background:#fff1f2;color:#e11d48}.pgmp-mobile-feature-card.settings .pgmp-mobile-feature-icon{background:#f4f1ff;color:#7c3aed}.pgmp-mobile-feature-copy{display:flex;flex-direction:column;min-width:0}.pgmp-mobile-feature-copy strong{font-size:15px;color:#18375f}.pgmp-mobile-feature-copy small{font-size:11px;color:#8492a6;margin-top:3px}.pgmp-mobile-arrow{font-size:25px;color:#9aabc0}.pgmp-mobile-status{font-size:10px;font-weight:800;padding:5px 8px;border-radius:999px;background:#f1f5f9;color:#64748b;text-transform:uppercase}.pgmp-mobile-status.is-live{background:#fee2e2;color:#dc2626}
.pgmp-app-bottom-nav{display:none}
@media(max-width:782px){body{padding-bottom:84px!important}.pgmp-mobile-group-dashboard{max-width:100%;padding:0 10px 18px}.pgmp-mobile-group-dashboard .pgmp-dashboard-header{display:none}.pgmp-mobile-group-dashboard .pgmp-dashboard-body{display:block}.pgmp-mobile-group-dashboard .pgmp-mobile-content{padding:0!important;background:transparent!important}.pgmp-mobile-tabs{display:flex!important;overflow-x:auto!important;gap:8px!important;padding:3px 0 10px!important;margin:0 0 8px!important;border:0!important;white-space:nowrap;scrollbar-width:none}.pgmp-mobile-tabs::-webkit-scrollbar{display:none}.pgmp-mobile-tabs .pgmp-dashboard-tab{flex:0 0 auto!important;width:auto!important;border:1px solid #e3eaf3!important;border-radius:999px!important;padding:9px 13px!important;background:#fff!important;box-shadow:none!important;font-size:12px!important;gap:5px!important}.pgmp-mobile-tabs .pgmp-dashboard-tab.is-active{background:#2563eb!important;color:#fff!important;border-color:#2563eb!important}.pgmp-mobile-tabs .dashicons{font-size:16px!important;width:16px!important;height:16px!important}.pgmp-app-bottom-nav{position:fixed;display:grid;grid-template-columns:repeat(5,1fr);align-items:end;left:0;right:0;bottom:0;z-index:99999;background:rgba(255,255,255,.97);border-top:1px solid #e6ebf2;box-shadow:0 -5px 20px rgba(15,23,42,.08);padding:8px max(8px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));backdrop-filter:blur(12px)}.pgmp-app-bottom-nav a{display:flex;min-width:0;flex-direction:column;align-items:center;gap:3px;text-decoration:none!important;color:#7c8ca3!important;font-size:10px;font-weight:700}.pgmp-app-bottom-nav a.active{color:#2563eb!important}.pgmp-app-bottom-nav .dashicons{font-size:21px;width:21px;height:21px}.pgmp-app-bottom-nav a.create .dashicons{width:48px;height:48px;margin-top:-28px;border-radius:16px;background:#2563eb;color:#fff;display:flex;align-items:center;justify-content:center;font-size:25px;box-shadow:0 7px 18px rgba(37,99,235,.35)}.pgmp-app-bottom-nav a.create small{margin-top:2px}.pgmp-mobile-hero{border-radius:0 0 25px 25px;margin:-1px -10px 14px;padding-top:max(18px,env(safe-area-inset-top))}.pgmp-mobile-group-copy h2{font-size:20px!important}}
@media(min-width:783px){.pgmp-mobile-hero{display:none}.pgmp-mobile-group-dashboard .pgmp-mobile-content{padding-top:18px}}


/* ==========================================================
   PERSEA GROUP APP SHELL v2.4
   Removes duplicate BuddyPress chrome on PGMP dashboard screens
   while keeping BuddyPress actions and PGMP functionality intact.
   ========================================================== */
body.pgmp-persea-app-screen #buddypress #item-nav,
body.pgmp-persea-app-screen #buddypress .bp-navs.group-nav,
body.pgmp-persea-app-screen #buddypress nav.groups-nav,
body.pgmp-persea-app-screen #buddypress .groups-header .bp-navs,
body.pgmp-persea-app-screen #buddypress #object-nav,
body.pgmp-persea-app-screen #buddypress .item-list-tabs#object-nav {
  display:none!important;
}
body.pgmp-persea-app-screen #buddypress #item-body,
body.pgmp-persea-app-screen #buddypress .bp-wrap,
body.pgmp-persea-app-screen #buddypress .item-body,
body.pgmp-persea-app-screen #buddypress .groups.single-item .item-body {
  width:100%!important;max-width:none!important;margin-left:0!important;float:none!important;
}
body.pgmp-persea-app-screen .pgmp-dashboard{max-width:1180px;margin-left:auto;margin-right:auto}
body.pgmp-persea-app-screen .pgmp-mobile-hero{display:block}

@media (min-width:783px){
  body.pgmp-persea-app-screen .pgmp-mobile-hero{display:block;max-width:1180px;margin:0 auto 16px}
  body.pgmp-persea-app-screen .pgmp-mobile-topbar{margin-bottom:12px}
  body.pgmp-persea-app-screen .pgmp-mobile-group-head{align-items:center}
  body.pgmp-persea-app-screen .pgmp-mobile-avatar-wrap{width:68px;height:68px;min-width:68px;border-radius:19px}
  body.pgmp-persea-app-screen .pgmp-mobile-group-copy h2{font-size:21px!important}
}

@media (max-width:782px){
  body.pgmp-persea-app-screen #buddypress #subnav,
  body.pgmp-persea-app-screen #buddypress .bp-navs.group-subnav,
  body.pgmp-persea-app-screen #buddypress .item-list-tabs#subnav{display:none!important}
  body.pgmp-persea-app-screen .pgmp-mobile-tabs{display:flex!important;position:sticky;top:0;z-index:9990;background:#f8fbff;padding:8px 4px 10px!important;margin:0 0 10px!important;border-bottom:1px solid #e8edf5!important}
  body.pgmp-persea-app-screen #buddypress #item-body{padding:0!important;margin:0!important}
  body.pgmp-persea-app-screen #buddypress .bp-wrap{padding:0!important}
  body.pgmp-persea-app-screen .pgmp-dashboard:not(.pgmp-mobile-group-dashboard){margin:0 10px 18px!important}
  body.pgmp-persea-app-screen .pgmp-dashboard:not(.pgmp-mobile-group-dashboard) .pgmp-dashboard-tabs{display:flex!important;overflow-x:auto!important;white-space:nowrap!important;scrollbar-width:none!important}
  body.pgmp-persea-app-screen .pgmp-dashboard:not(.pgmp-mobile-group-dashboard) .pgmp-dashboard-tabs::-webkit-scrollbar{display:none}
  body.pgmp-persea-app-screen .pgmp-dashboard-header{border-radius:18px 18px 0 0}
}

/* v2.4.1 mobile navigation visibility fix */
@media (max-width:782px){
 body.pgmp-persea-app-screen .pgmp-mobile-group-dashboard{padding-bottom:105px!important}
 body.pgmp-persea-app-screen .pgmp-mobile-tabs .pgmp-dashboard-tab{display:inline-flex!important;align-items:center!important}
 body.pgmp-persea-app-screen .pgmp-mobile-tabs .pgmp-dashboard-tab.is-active{background:#2563eb!important;color:#fff!important}
 body.pgmp-persea-app-screen .pgmp-mobile-feature-card:last-child{margin-bottom:24px!important}
}

/* =========================================================
   PERSEA 2.5 — BUDDYPRESS GROUP HOME / ACTIVITY APP UI
   Keeps BuddyPress actions and templates intact; presentation only.
========================================================= */
body.groups.single-item #buddypress,
body.bp-user.groups #buddypress {
  --persea-blue:#2563eb;
  --persea-ink:#0b315d;
  --persea-muted:#7184a3;
  --persea-bg:#f4f7fb;
  --persea-line:#e3eaf4;
  --persea-card:#fff;
}

body.groups.single-item #buddypress #item-header,
body.groups.single-item #buddypress #item-header-content,
body.groups.single-item #buddypress #item-body,
body.groups.single-item #buddypress .activity-list,
body.groups.single-item #buddypress .activity-update-form {
  box-sizing:border-box;
}

/* Group hero */
body.groups.single-item #buddypress #item-header {
  position:relative;
  margin:0 0 14px !important;
  padding:0 !important;
  border:1px solid var(--persea-line);
  border-radius:22px;
  overflow:hidden;
  background:var(--persea-card);
  box-shadow:0 8px 30px rgba(22,54,92,.06);
}
body.groups.single-item #buddypress #item-header-cover-image {
  min-height:220px;
  padding:118px 24px 24px !important;
  background:linear-gradient(135deg,#eaf2ff 0%,#f3f7ff 50%,#eef9f6 100%);
}
body.groups.single-item #buddypress #header-cover-image {
  height:145px !important;
  background-color:#dfe8f5;
}
body.groups.single-item #buddypress #item-header-avatar {
  float:none !important;
  margin:0 !important;
}
body.groups.single-item #buddypress #item-header-avatar img.avatar {
  width:92px !important;
  height:92px !important;
  border-radius:22px !important;
  border:4px solid #fff !important;
  box-shadow:0 8px 22px rgba(25,55,90,.14);
  object-fit:cover;
}
body.groups.single-item #buddypress #item-header-content {
  float:none !important;
  width:auto !important;
  margin:10px 0 0 !important;
  color:var(--persea-ink);
}
body.groups.single-item #buddypress #item-header-content h2,
body.groups.single-item #buddypress #item-header-content h2 a {
  margin:0 0 5px !important;
  color:var(--persea-ink) !important;
  font-size:24px !important;
  line-height:1.18 !important;
  font-weight:800 !important;
  text-decoration:none !important;
}
body.groups.single-item #buddypress #item-header-content .highlight,
body.groups.single-item #buddypress #item-header-content .activity,
body.groups.single-item #buddypress #item-header-content .group-status {
  color:var(--persea-muted) !important;
  font-size:13px !important;
}
body.groups.single-item #buddypress #item-meta {
  margin-top:12px !important;
  color:#526987 !important;
  font-size:14px !important;
  line-height:1.55 !important;
}

/* Swipeable group nav */
body.groups.single-item #buddypress #item-nav {
  margin:0 0 14px !important;
  border:1px solid var(--persea-line);
  border-radius:18px;
  background:#fff;
  box-shadow:0 5px 20px rgba(22,54,92,.04);
  overflow:hidden;
}
body.groups.single-item #buddypress #item-nav ul,
body.groups.single-item #buddypress .item-list-tabs ul {
  display:flex !important;
  gap:8px;
  margin:0 !important;
  padding:9px !important;
  overflow-x:auto;
  white-space:nowrap;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
body.groups.single-item #buddypress #item-nav ul::-webkit-scrollbar,
body.groups.single-item #buddypress .item-list-tabs ul::-webkit-scrollbar {display:none;}
body.groups.single-item #buddypress #item-nav li,
body.groups.single-item #buddypress .item-list-tabs li {float:none !important; flex:0 0 auto; margin:0 !important;}
body.groups.single-item #buddypress #item-nav li a,
body.groups.single-item #buddypress .item-list-tabs li a {
  display:inline-flex !important;
  align-items:center;
  min-height:42px;
  padding:9px 15px !important;
  border:1px solid var(--persea-line) !important;
  border-radius:999px !important;
  background:#fff !important;
  color:#334b6b !important;
  font-size:13px !important;
  font-weight:700 !important;
  text-decoration:none !important;
}
body.groups.single-item #buddypress #item-nav li.current a,
body.groups.single-item #buddypress #item-nav li.selected a,
body.groups.single-item #buddypress .item-list-tabs li.current a,
body.groups.single-item #buddypress .item-list-tabs li.selected a {
  background:var(--persea-blue) !important;
  border-color:var(--persea-blue) !important;
  color:#fff !important;
}

/* Main group content */
body.groups.single-item #buddypress #item-body {
  width:100% !important;
  margin:0 !important;
  padding:18px !important;
  border:1px solid var(--persea-line);
  border-radius:22px;
  background:#fff;
  box-shadow:0 8px 30px rgba(22,54,92,.05);
}
body.groups.single-item #buddypress #item-body h2,
body.groups.single-item #buddypress #item-body h3 {color:var(--persea-ink); font-weight:800;}

/* Activity composer */
body.groups.single-item #buddypress #whats-new-form,
body.groups.single-item #buddypress .activity-update-form {
  margin:0 0 18px !important;
  padding:16px !important;
  border:1px solid var(--persea-line) !important;
  border-radius:18px !important;
  background:#f9fbfe !important;
}
body.groups.single-item #buddypress #whats-new-avatar img {border-radius:14px !important;}
body.groups.single-item #buddypress textarea,
body.groups.single-item #buddypress input[type="text"],
body.groups.single-item #buddypress select {
  border:1px solid #d9e3f0 !important;
  border-radius:12px !important;
  background:#fff !important;
}
body.groups.single-item #buddypress #aw-whats-new-submit,
body.groups.single-item #buddypress input[type="submit"],
body.groups.single-item #buddypress button[type="submit"] {
  border:0 !important;
  border-radius:11px !important;
  background:var(--persea-blue) !important;
  color:#fff !important;
  font-weight:700 !important;
}

/* Activity feed cards */
body.groups.single-item #buddypress ul.activity-list {margin:0 !important; padding:0 !important;}
body.groups.single-item #buddypress ul.activity-list > li {
  margin:0 0 14px !important;
  padding:16px !important;
  border:1px solid var(--persea-line) !important;
  border-radius:18px !important;
  background:#fff !important;
  box-shadow:0 5px 18px rgba(22,54,92,.04);
}
body.groups.single-item #buddypress .activity-avatar img.avatar {
  width:48px !important;
  height:48px !important;
  border-radius:14px !important;
}
body.groups.single-item #buddypress .activity-header,
body.groups.single-item #buddypress .activity-header p {color:#526987 !important; font-size:13px !important; line-height:1.5 !important;}
body.groups.single-item #buddypress .activity-content .activity-inner {
  margin:10px 0 !important;
  padding:12px 14px !important;
  border-radius:13px;
  background:#f7f9fc;
  color:#213a59;
}
body.groups.single-item #buddypress .activity-meta a,
body.groups.single-item #buddypress .activity-meta button {
  display:inline-flex !important;
  align-items:center;
  min-height:34px;
  margin:3px 5px 3px 0 !important;
  padding:6px 10px !important;
  border:1px solid var(--persea-line) !important;
  border-radius:9px !important;
  background:#fff !important;
  color:#49627f !important;
  font-size:12px !important;
  font-weight:700 !important;
}

@media (max-width: 782px) {
  body.groups.single-item {background:var(--persea-bg,#f4f7fb);}
  body.groups.single-item #primary,
  body.groups.single-item #main,
  body.groups.single-item .site-main,
  body.groups.single-item .content-area {width:100% !important; max-width:100% !important; margin:0 !important;}
  body.groups.single-item #buddypress {padding:10px 10px 96px !important;}
  body.groups.single-item #buddypress #item-header {border-radius:20px;}
  body.groups.single-item #buddypress #item-header-cover-image {min-height:0; padding:92px 16px 18px !important;}
  body.groups.single-item #buddypress #header-cover-image {height:112px !important;}
  body.groups.single-item #buddypress #item-header-avatar img.avatar {width:78px !important;height:78px !important;border-radius:20px !important;}
  body.groups.single-item #buddypress #item-header-content h2,
  body.groups.single-item #buddypress #item-header-content h2 a {font-size:20px !important; word-break:normal !important; overflow-wrap:anywhere;}
  body.groups.single-item #buddypress #item-body {padding:12px !important; border-radius:18px;}
  body.groups.single-item #buddypress #whats-new-form,
  body.groups.single-item #buddypress .activity-update-form {padding:12px !important;}
  body.groups.single-item #buddypress ul.activity-list > li {padding:13px !important; border-radius:16px !important;}
  body.groups.single-item #buddypress .activity-avatar {width:44px !important; margin-right:10px !important;}
  body.groups.single-item #buddypress .activity-content {margin-left:54px !important;}
}

@media (min-width: 783px) {
  body.groups.single-item #buddypress {max-width:1180px; margin:28px auto !important; padding:0 22px;}
  body.groups.single-item #buddypress #item-header-cover-image {display:grid; grid-template-columns:110px 1fr; column-gap:18px; align-items:end;}
  body.groups.single-item #buddypress #item-header-content {grid-column:2;}
}

/* =========================================================
   PERSEA 2.5.1 — DESKTOP/TABLET RESPONSIVE HOTFIX
   Prevent BuddyPress header columns from collapsing vertically.
========================================================= */
@media (min-width:783px) {
  body.groups.single-item #buddypress {
    width:100% !important;
    max-width:1180px !important;
    margin:0 auto !important;
    padding:24px !important;
  }
  body.groups.single-item #buddypress #item-header {
    min-height:0 !important;
    height:auto !important;
  }
  body.groups.single-item #buddypress #item-header-cover-image {
    position:relative !important;
    display:grid !important;
    grid-template-columns:112px minmax(0,1fr) minmax(180px,260px) !important;
    grid-template-rows:auto !important;
    align-items:end !important;
    gap:22px !important;
    width:100% !important;
    min-width:0 !important;
    min-height:260px !important;
    height:auto !important;
    padding:145px 28px 28px !important;
  }
  body.groups.single-item #buddypress #item-header-avatar {
    grid-column:1 !important;
    position:relative !important;
    width:112px !important;
    min-width:112px !important;
    max-width:112px !important;
    float:none !important;
    margin:0 !important;
  }
  body.groups.single-item #buddypress #item-header-avatar img.avatar {
    display:block !important;
    width:96px !important;
    height:96px !important;
  }
  body.groups.single-item #buddypress #item-header-content {
    grid-column:2 !important;
    align-self:end !important;
    min-width:0 !important;
    width:100% !important;
    max-width:none !important;
    float:none !important;
    margin:0 !important;
    padding:0 !important;
    overflow:visible !important;
  }
  body.groups.single-item #buddypress #item-header-content *,
  body.groups.single-item #buddypress #item-header-content h2,
  body.groups.single-item #buddypress #item-header-content h2 a,
  body.groups.single-item #buddypress #item-header-content p,
  body.groups.single-item #buddypress #item-header-content span {
    max-width:100% !important;
    word-break:normal !important;
    overflow-wrap:break-word !important;
    white-space:normal !important;
  }
  body.groups.single-item #buddypress #item-header-content h2,
  body.groups.single-item #buddypress #item-header-content h2 a {
    font-size:26px !important;
    line-height:1.2 !important;
  }
  body.groups.single-item #buddypress #item-header-content .highlight,
  body.groups.single-item #buddypress #item-header-content .activity,
  body.groups.single-item #buddypress #item-header-content .group-status {
    display:inline-block !important;
    width:auto !important;
    margin-right:10px !important;
  }
  body.groups.single-item #buddypress #item-actions {
    grid-column:3 !important;
    align-self:end !important;
    justify-self:end !important;
    width:100% !important;
    min-width:180px !important;
    max-width:260px !important;
    float:none !important;
    margin:0 !important;
    padding:0 !important;
    text-align:right !important;
  }
  body.groups.single-item #buddypress #item-actions h2,
  body.groups.single-item #buddypress #item-actions h3,
  body.groups.single-item #buddypress #item-actions h4,
  body.groups.single-item #buddypress #item-actions .moderators-lists,
  body.groups.single-item #buddypress #item-actions .admins-list,
  body.groups.single-item #buddypress #item-actions ul,
  body.groups.single-item #buddypress #item-actions li,
  body.groups.single-item #buddypress #item-actions a {
    width:auto !important;
    min-width:0 !important;
    max-width:100% !important;
    word-break:normal !important;
    overflow-wrap:normal !important;
    white-space:normal !important;
  }
  body.groups.single-item #buddypress #item-actions ul {
    display:flex !important;
    justify-content:flex-end !important;
    flex-wrap:wrap !important;
    gap:6px !important;
  }
  body.groups.single-item #buddypress #item-actions li {
    float:none !important;
    display:block !important;
  }
  body.groups.single-item #buddypress #item-actions img.avatar {
    width:38px !important;
    height:38px !important;
    border-radius:10px !important;
  }
  body.groups.single-item #buddypress #item-meta {
    width:auto !important;
    min-width:0 !important;
    max-width:720px !important;
  }
  body.groups.single-item #buddypress #item-nav,
  body.groups.single-item #buddypress #item-body {
    width:100% !important;
    max-width:none !important;
  }
}

@media (min-width:783px) and (max-width:1024px) {
  body.groups.single-item #buddypress {padding:18px !important;}
  body.groups.single-item #buddypress #item-header-cover-image {
    grid-template-columns:96px minmax(0,1fr) 190px !important;
    gap:16px !important;
    min-height:235px !important;
    padding:132px 20px 22px !important;
  }
  body.groups.single-item #buddypress #item-header-avatar {width:96px !important;min-width:96px !important;max-width:96px !important;}
  body.groups.single-item #buddypress #item-header-avatar img.avatar {width:82px !important;height:82px !important;}
  body.groups.single-item #buddypress #item-actions {min-width:170px !important;max-width:190px !important;}
}


/* =========================================================
   GROUP IMAGE DISPLAY — FULL ARTWORK IN LISTINGS / CARDS
   Keep the complete group logo/photo visible instead of
   forcing a crop. Cover images use contain where a card
   explicitly renders a cover thumbnail.
========================================================= */
#buddypress #groups-list .item-avatar img.avatar,
#buddypress .groups-list .item-avatar img.avatar,
#buddypress ul#groups-list .item-avatar img,
#buddypress .bp-block-groups .item-header-avatar img.avatar,
#buddypress .bp-block-group .item-header-avatar img.avatar {
  object-fit:contain !important;
  object-position:center center !important;
  background:#fff !important;
}

#buddypress .bp-block-groups .bp-group-cover-image,
#buddypress .bp-block-group .bp-group-cover-image,
#buddypress #groups-list .item-cover-image,
#buddypress #groups-list .group-cover-image,
#buddypress #groups-list .bp-group-cover-image,
#buddypress .groups-list .item-cover-image,
#buddypress .groups-list .group-cover-image,
#buddypress .groups-list .bp-group-cover-image {
  background-size:contain !important;
  background-position:center center !important;
  background-repeat:no-repeat !important;
  background-color:#f3f6fa !important;
}

#buddypress .bp-block-groups .bp-group-cover-image img,
#buddypress .bp-block-group .bp-group-cover-image img,
#buddypress #groups-list .item-cover-image img,
#buddypress #groups-list .group-cover-image img,
#buddypress #groups-list .bp-group-cover-image img,
#buddypress .groups-list .item-cover-image img,
#buddypress .groups-list .group-cover-image img,
#buddypress .groups-list .bp-group-cover-image img {
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  object-position:center center !important;
}

/* Common Persea/Elementor-style community cards. */
.pgmp-group-card img,
.pgmp-featured-community img,
.persea-group-card img,
.persea-community-card img {
  object-fit:contain !important;
  object-position:center center !important;
}
.pgmp-group-card .group-cover-image,
.pgmp-group-card .item-cover-image,
.pgmp-group-card .bp-group-cover-image,
.pgmp-featured-community .group-cover-image,
.pgmp-featured-community .item-cover-image,
.pgmp-featured-community .bp-group-cover-image,
.persea-group-card .group-cover-image,
.persea-group-card .item-cover-image,
.persea-group-card .bp-group-cover-image,
.persea-community-card .group-cover-image,
.persea-community-card .item-cover-image,
.persea-community-card .bp-group-cover-image {
  background-size:contain !important;
  background-position:center center !important;
  background-repeat:no-repeat !important;
  background-color:#f3f6fa !important;
}

@media (max-width:782px) {
  #buddypress #groups-list .item-avatar img.avatar,
  #buddypress .groups-list .item-avatar img.avatar,
  #buddypress .bp-block-groups .item-header-avatar img.avatar {
    object-fit:contain !important;
  }
}


/* Group invitation / WhatsApp sharing */
.pgmp-invite-content{max-width:900px;margin:0 auto}
.pgmp-invite-card{background:#fff;border:1px solid #e5ebf4;border-radius:22px;padding:30px;box-shadow:0 8px 28px rgba(15,23,42,.06)}
.pgmp-invite-icon{width:58px;height:58px;border-radius:18px;background:#eef5ff;color:#2563eb;display:flex;align-items:center;justify-content:center;margin-bottom:16px}
.pgmp-invite-icon .dashicons{font-size:28px;width:28px;height:28px}
.pgmp-invite-card h3{margin:0 0 8px!important;font-size:24px!important;color:#12345d!important}
.pgmp-invite-card>p{margin:0 0 22px;color:#6d7f96;line-height:1.6}
.pgmp-invite-card label{display:block;font-weight:700;color:#17385f;margin-bottom:7px}
.pgmp-invite-link-row{display:flex;gap:10px;align-items:center}
.pgmp-invite-link-row input{flex:1;min-width:0;height:46px;border:1px solid #d9e2ee;border-radius:12px;padding:0 13px;background:#f8fafc;color:#3a506d}
.pgmp-invite-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.pgmp-invite-actions .dashicons{vertical-align:middle}
.pgmp-invite-message{margin-top:14px;min-height:20px;font-size:13px;color:#52708f}
@media(max-width:782px){.pgmp-invite-card{padding:20px;border-radius:18px}.pgmp-invite-card h3{font-size:20px!important}.pgmp-invite-link-row{flex-direction:column;align-items:stretch}.pgmp-invite-link-row .pgmp-btn{width:100%;justify-content:center}.pgmp-invite-actions{display:grid;grid-template-columns:1fr}.pgmp-invite-actions .pgmp-btn{width:100%;justify-content:center}}


/* ---------------------------------------------------------
   BUDDYPRESS GROUP HEADER - FULL GROUP IDENTITY
   Keep the existing BuddyPress Photo/Cover Image uploads, but
   present the saved images clearly on the actual group page.
--------------------------------------------------------- */
body.groups.single-item #buddypress #header-cover-image,
body.groups.single-item #buddypress #item-header-cover-image {
	background-size: contain !important;
	background-position: center center !important;
	background-repeat: no-repeat !important;
	background-color: #eef3f8 !important;
}

body.groups.single-item #buddypress #item-header-avatar {
	position: relative !important;
	z-index: 5 !important;
}

body.groups.single-item #buddypress #item-header-avatar img.avatar,
body.groups.single-item #buddypress #item-header-avatar .avatar {
	width: 140px !important;
	height: 140px !important;
	max-width: 140px !important;
	max-height: 140px !important;
	object-fit: contain !important;
	object-position: center !important;
	border-radius: 50% !important;
	background: #fff !important;
	padding: 5px !important;
	box-shadow: 0 4px 16px rgba(0,0,0,.16) !important;
}

@media (max-width: 640px) {
	body.groups.single-item #buddypress #header-cover-image,
	body.groups.single-item #buddypress #item-header-cover-image {
		background-size: contain !important;
		min-height: 230px !important;
		background-position: center top !important;
	}

	body.groups.single-item #buddypress #item-header-avatar img.avatar,
	body.groups.single-item #buddypress #item-header-avatar .avatar {
		width: 110px !important;
		height: 110px !important;
		max-width: 110px !important;
		max-height: 110px !important;
	}
}

/* Persea dashboard hero: show the complete saved cover image. */
.pgmp-mobile-hero {
	background-size: contain !important;
	background-position: center center !important;
	background-repeat: no-repeat !important;
	background-color: #eef3f8 !important;
}


/* In-group membership request notification */
.pgmp-group-request-alert{display:flex;align-items:center;gap:10px;margin:0 0 18px;padding:12px 16px;border:1px solid #bfdbfe;border-left:4px solid #2563eb;border-radius:12px;background:#eff6ff;color:#16365f;font-size:14px;box-shadow:0 3px 12px rgba(15,23,42,.05)}
.pgmp-group-request-alert .dashicons{font-size:20px;width:20px;height:20px;color:#2563eb}
.pgmp-group-request-alert strong{flex:1}
.pgmp-group-request-alert a{font-weight:700;text-decoration:none;color:#2563eb;white-space:nowrap}
.pgmp-group-request-notification{display:flex;align-items:center;gap:10px;margin:0 0 20px;padding:13px 16px;border:1px solid #bfdbfe;border-left:4px solid #2563eb;border-radius:12px;background:#eff6ff;color:#16365f}
.pgmp-group-request-notification .dashicons{color:#2563eb}
.pgmp-group-request-notification span:last-child{color:#55708d}
@media(max-width:640px){.pgmp-group-request-alert{align-items:flex-start;flex-wrap:wrap}.pgmp-group-request-alert strong{flex:1 1 calc(100% - 35px)}.pgmp-group-request-alert a{margin-left:30px}.pgmp-group-request-notification{align-items:flex-start;flex-wrap:wrap}.pgmp-group-request-notification span:last-child{width:100%;margin-left:30px}}

/* PGMP 2.9.0 — clear notification labels on dashboard tabs/cards */
.pgmp-dashboard-tab{position:relative!important;}
.pgmp-tab-alert{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:20px!important;height:20px!important;padding:0 6px!important;margin-left:5px!important;border-radius:999px!important;background:#dc2626!important;color:#fff!important;font:700 11px/20px Arial,sans-serif!important;box-sizing:border-box!important;}
.pgmp-dashboard-tab.has-pgmp-alert{color:#b91c1c!important;}
.pgmp-mobile-request-alert{display:flex!important;align-items:center!important;gap:11px!important;margin:0 0 14px!important;padding:12px 14px!important;border:1px solid #fecaca!important;border-left:4px solid #dc2626!important;border-radius:14px!important;background:#fff5f5!important;color:#7f1d1d!important;text-decoration:none!important;box-shadow:0 3px 12px rgba(127,29,29,.06)!important;}
.pgmp-mobile-request-alert>.dashicons{color:#dc2626!important;font-size:22px!important;width:22px!important;height:22px!important;}
.pgmp-mobile-request-alert>span:nth-child(2){display:flex!important;flex-direction:column!important;gap:2px!important;flex:1!important;min-width:0!important;}
.pgmp-mobile-request-alert strong{font-size:13px!important;line-height:1.3!important;}
.pgmp-mobile-request-alert small{font-size:11px!important;line-height:1.35!important;color:#991b1b!important;}
.pgmp-mobile-request-alert>b{font-size:22px!important;line-height:1!important;}
.pgmp-card-alert{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:20px!important;height:20px!important;padding:0 5px!important;margin-left:4px!important;border-radius:999px!important;background:#dc2626!important;color:#fff!important;font-style:normal!important;font-size:10px!important;line-height:20px!important;vertical-align:middle!important;}
@media(max-width:640px){.pgmp-tab-alert{min-width:18px!important;height:18px!important;font-size:10px!important;line-height:18px!important;padding:0 5px!important}.pgmp-dashboard-tabs{overflow-x:auto!important;scrollbar-width:none!important}.pgmp-dashboard-tabs::-webkit-scrollbar{display:none!important}}
