.chatlog-block {
	padding: 0;
}

.chatlog-stats-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 15px;
	margin: 15px 24px;
	margin-bottom: 0;
}

.chatlog-stat-card {
	border-radius: 12px;
	padding: 18px 20px;
	background: #343434;
	border: 1px solid rgba(255, 255, 255, 0.08);
	position: relative;
	overflow: hidden;
	display: flex;
	margin-top: 12px;
	align-items: center;
	gap: 14px;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.chatlog-stat-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
	pointer-events: none;
}

.chatlog-stat-card:hover {
	background: linear-gradient(135deg, #3d3d3d 0%, #353535 100%);
	border-color: rgba(255, 255, 255, 0.12);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.chatlog-stat-card::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 3px;
	border-radius: 0 0 12px 12px;
}

.chatlog-stat-card-total::after {
	background: linear-gradient(90deg, #59cc94, #47bf85);
}

.chatlog-stat-card-today::after {
	background: linear-gradient(90deg, #59cc94, #47bf85);
}

.chatlog-stat-card-players::after {
	background: linear-gradient(90deg, #fda964, #da9256);
}

.chatlog-stat-icon {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	position: relative;
	overflow: hidden;
}

.chatlog-stat-card-total .chatlog-stat-icon {
	background: linear-gradient(135deg, rgba(89, 204, 148, 0.2) 0%, rgba(71, 191, 133, 0.15) 100%);
	color: #59cc94;
}

.chatlog-stat-card-today .chatlog-stat-icon {
	background: linear-gradient(135deg, rgba(89, 204, 148, 0.2) 0%, rgba(71, 191, 133, 0.15) 100%);
	color: #59cc94;
}

.chatlog-stat-card-players .chatlog-stat-icon {
	background: linear-gradient(135deg, rgba(253, 169, 100, 0.2) 0%, rgba(218, 146, 86, 0.15) 100%);
	color: #fda964;
}

.chatlog-stat-icon::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100%;
	height: 100%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.chatlog-stat-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.chatlog-stat-value {
	font-size: 26px;
	font-weight: 700;
	color: #ffffff;
	line-height: 1.1;
	letter-spacing: -0.5px;
}

.chatlog-stat-label {
	display: block;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #848484;
	font-weight: 500;
}

.chatlog-block .heading_block {
	padding: 24px 24px 0 24px;
}

.chatlog-messages-container {
	padding: 20px 24px 24px 24px;
}

#messages {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.chatlog-message-item {
	display: flex;
	align-items: flex-start;
	gap: 7px;
	padding: 9px 12px;
	background: #434343;
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: 11px;
	transition: all 0.2s ease;
}

.chatlog-message-item:hover {
	background: #3d3d3d;
	border-color: rgba(255, 255, 255, 0.1);
}

.chatlog-message-avatar-link {
	flex-shrink: 0;
	text-decoration: none;
	display: block;
	transition: transform 0.2s ease;
}

.chatlog-message-avatar-link:hover {
	transform: scale(1.05);
}

.chatlog-message-avatar-link .avatar_frame_container {
	position: relative;
	width: fit-content;
}

.chatlog-message-avatar-link .chat_img {
	width: 45px!important;
	height: 45px!important;
	border-radius: 8px;
	object-fit: cover;
	display: block;
}

.chatlog-message-avatar-link .chat_frame {
	position: absolute;
	left: 0px;
	top: 0px;
	height: 45px !important;
	width: 45px !important;
	z-index: 2;
	min-width: 40px;
	pointer-events: none;
}

.chatlog-message-content {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.chatlog-message-header {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.chatlog-message-username {
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: opacity 0.2s;
}

.chatlog-message-username:hover {
	opacity: 0.8;
}

.chatlog-username-ct {
	color: #5d9eff;
	transition: color 0.2s ease;
}

.chatlog-username-ct:hover {
	color: #7bb3ff;
}

.chatlog-username-tt {
	color: #ffa500;
	transition: color 0.2s ease;
}

.chatlog-username-tt:hover {
	color: #ffb833;
}

.chatlog-username-spec {
	color: #848484;
	transition: color 0.2s ease;
}

.chatlog-username-spec:hover {
	color: #a0a0a0;
}

.chatlog-username-no-link {
	cursor: default;
	opacity: 0.7;
}

.chatlog-username-no-link:hover {
	opacity: 0.7;
}

.chatlog-avatar-no-link {
	cursor: default;
	opacity: 0.8;
}

.chatlog-message-tags {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
}

.chatlog-tag {
	display: inline-block;
	padding: 2px 6px;
	background: rgba(67, 67, 67, 0.8);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 4px;
	font-size: 9px;
	font-weight: 500;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	line-height: 1.3;
}

.chatlog-tag-team {
	background: rgba(67, 67, 67, 0.9);
}

.chatlog-team-ct .chatlog-tag-team {
	background: rgba(93, 158, 255, 0.2);
	border-color: rgba(93, 158, 255, 0.3);
	color: #5d9eff;
}

.chatlog-team-tt .chatlog-tag-team {
	background: rgba(255, 165, 0, 0.2);
	border-color: rgba(255, 165, 0, 0.3);
	color: #ffa500;
}

.chatlog-team-spec .chatlog-tag-team {
	background: rgba(132, 132, 132, 0.2);
	border-color: rgba(132, 132, 132, 0.3);
	color: #848484;
}

.chatlog-message-text {
	font-size: 13px;
	color: #ffffff;
	line-height: 1.4;
	word-break: break-word;
}

.chatlog-private {
	color: #ff6e6e;
	font-style: italic;
}

.chatlog-message-date {
	flex-shrink: 0;
	font-size: 11px;
	color: #848484;
	white-space: nowrap;
	margin-left: auto;
	padding-left: 10px;
}

.chatlog-empty {
	text-align: center;
	padding: 40px 20px;
	color: #848484;
	font-size: 14px;
}

.chatlog-pagination {
	text-align: center;
	padding: 20px 0;
}

.chatlog-widget-messages-container {
	padding: 20px 24px;
}

.chatlog-widget-scroll {
	max-height: 500px;
	overflow-y: auto;
	overflow-x: hidden;
	padding-right: 5px;
	padding-top: 0;
}

#chatlog_widget_messages {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.chatlog-widget-footer {
	padding: 10px 0 10px 0;
	text-align: center;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chatlog-widget-show-all {
	color: #6c757d;
	text-decoration: none;
	font-size: 14px;
	border-bottom: 1px dashed #6c757d;
	transition: color 0.3s;
}

.chatlog-widget-show-all:hover {
	color: #fff;
	border-bottom-color: #fff;
	text-decoration: none;
}