/* Appeal Panel - Custom slide-in panel for admin context */
.appeal_panel_overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 9998;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	-webkit-tap-highlight-color: transparent;
}

.appeal_panel_overlay.active {
	opacity: 1;
	visibility: visible;
}

.appeal_panel {
	position: fixed;
	top: 0;
	right: -500px;
	width: 500px;
	max-width: 90vw;
	height: 100vh;
	height: 100dvh;
	/* Dynamic viewport height for mobile */
	background: var(--bg-color, #1a1a1a);
	box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
	z-index: 9999;
	display: flex;
	flex-direction: column;
	transition: right 0.3s ease;
	overflow: hidden;
	-webkit-overflow-scrolling: touch;
}

.appeal_panel.active {
	right: 0;
}

.appeal_panel_header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 15px 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	background: var(--bg-color, #1a1a1a);
	flex-shrink: 0;
	min-height: 50px;
}

.appeal_panel_title {
	font-weight: bold;
	font-size: 16px;
	color: var(--text-color, #ffffff);
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	padding-right: 10px;
}

.appeal_panel_close {
	cursor: pointer;
	padding: 8px 12px;
	color: var(--text-color, #ffffff);
	font-size: 20px;
	margin-left: 10px;
	opacity: 0.7;
	transition: opacity 0.2s ease;
	-webkit-tap-highlight-color: transparent;
	min-width: 44px;
	min-height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.appeal_panel_close:hover,
.appeal_panel_close:active {
	opacity: 1;
}

.appeal_panel_content {
	flex: 1;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 15px;
	-webkit-overflow-scrolling: touch;
}

.appeal_panel_body {
	padding: 0;
	display: block;
}

.appeal_panel_body .bflow {
	max-height: calc(100vh - 450px);
	max-height: calc(100dvh - 450px);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	margin-bottom: 15px;
}

.appeal_panel_actions {
	padding: 12px 15px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	background: var(--bg-color, #1a1a1a);
	flex-shrink: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	max-height: 50vh;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.appeal_panel_actions .reg_button {
	margin: 0;
	min-height: 40px;
	font-size: 14px;
	padding: 10px 15px;
}

/* Mobile responsive */
@media (max-width: 768px) {
	.appeal_panel {
		width: 100vw;
		right: -100vw;
		max-width: 100vw;
	}

	.appeal_panel_header {
		padding: 12px 15px;
		min-height: 48px;
	}

	.appeal_panel_title {
		font-size: 15px;
	}

	.appeal_panel_close {
		padding: 10px;
		font-size: 22px;
		min-width: 48px;
		min-height: 48px;
	}

	.appeal_panel_content {
		padding: 12px;
	}

	.appeal_panel_actions {
		padding: 10px 12px;
		gap: 6px;
	}

	.appeal_panel_actions .reg_button {
		flex: 1 1 calc(50% - 3px);
		min-width: calc(50% - 3px);
		font-size: 13px;
		padding: 12px 10px;
		min-height: 44px;
	}

	.appeal_panel_body .bflow {
		max-height: calc(100vh - 300px);
		max-height: calc(100dvh - 300px);
	}
}

@media (max-width: 480px) {
	.appeal_panel_actions .reg_button {
		flex: 1 1 100%;
		min-width: 100%;
	}

	.appeal_panel_body .bflow {
		max-height: calc(100vh - 250px);
		max-height: calc(100dvh - 250px);
	}
}



/* Premium Modal & Panel Animations */
.modal_back {
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	transition: all 0.3s ease;
}

.modal_in {
	animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
	0% {
		transform: translateY(20px);
		opacity: 0;
	}

	100% {
		transform: translateY(0);
		opacity: 1;
	}
}

/* Room Members Panel Enhancements */
#main_member_list {
	animation: panelPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes panelPop {
	0% {
		transform: scale(0.9) translateY(10px);
		opacity: 0;
	}

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

.puser_avatar img {
	transition: transform 0.2s ease;
}

.puser_item:hover .puser_avatar img {
	transform: scale(1.1);
}


/* Chat Rules Panel Styles */
.rules_panel_container {
	padding: 15px;
}

.rules_welcome {
	font-size: 16px;
	font-weight: 700;
	text-align: center;
	margin-bottom: 25px;
	padding: 0 10px;
	line-height: 1.3;
}

.rule_item {
	margin-bottom: 20px;
}

.rule_title {
	padding: 10px 15px;
	border-radius: 6px;
	font-weight: 700;
	font-size: 15px;
}

.rule_description {
	padding: 8px 5px 0 5px;
	font-size: 13px;
	line-height: 1.4;
}