.telegram-widget {
	position: fixed;
	bottom: 24px;
	left: 24px;
	z-index: 9999;
	display: flex;
	align-items: center;
	gap: 12px;
	background: rgba(30, 34, 42, 0.82);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-radius: 56px;
	padding: 8px 20px 8px 12px;
	box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.2) inset, 0 0 0 1px rgba(0, 0, 0, 0.04);
	transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1), background 0.2s, box-shadow 0.2s;
	cursor: pointer;
	user-select: none;
}

.telegram-widget:hover {
	transform: translateY(-3px) scale(1.02);
	background: rgba(25, 29, 36, 0.92);
	box-shadow: 0 20px 32px -10px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.28) inset;
}

.telegram-widget:active {
	transform: translateY(1px) scale(0.98);
	transition-duration: 0.1s;
}

.tg-icon-circle {
	background: #27A6E5;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	transition: all 0.2s ease;
}

.telegram-widget:hover .tg-icon-circle {
	background: #34b7f1;
	transform: scale(1.02);
}

.tg-icon {
	width: 26px;
	height: 26px;
	display: block;
	filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}

.widget-text {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.widget-title {
	font-weight: 800;
	font-size: 1rem;
	letter-spacing: -0.2px;
	color: white;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.widget-badge {
	font-size: 0.68rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.85);
	letter-spacing: 0.2px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.pulse-dot {
	display: inline-block;
	width: 12px;
	height: 12px;
	background-color: #2ecc71;
	border-radius: 50%;
	position: relative;
	box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
	animation: pulse-green 1.2s ease-in-out infinite;
}

@keyframes pulse-green {
	0% {
		box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.8);
		transform: scale(0.95);
	}

	40% {
		box-shadow: 0 0 0 10px rgba(46, 204, 113, 0.3);
		transform: scale(1.05);
	}

	70% {
		box-shadow: 0 0 0 14px rgba(46, 204, 113, 0.1);
		transform: scale(1);
	}

	100% {
		box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
		transform: scale(0.95);
	}
}

@media (max-width: 520px) {
	.telegram-widget {
		bottom: 18px;
		left: 18px;
		padding: 6px 16px 6px 10px;
		gap: 8px;
	}

	.tg-icon-circle {
		width: 38px;
		height: 38px;
	}

	.tg-icon {
		width: 22px;
		height: 22px;
	}

	.widget-title {
		font-size: 0.85rem;
	}

	.widget-badge {
		font-size: 0.62rem;
	}

	.pulse-dot {
		width: 10px;
		height: 10px;
	}

	@keyframes pulse-green {
		0% {
			box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.8);
		}

		40% {
			box-shadow: 0 0 0 8px rgba(46, 204, 113, 0.3);
		}

		70% {
			box-shadow: 0 0 0 12px rgba(46, 204, 113, 0.1);
		}

		100% {
			box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
		}
	}
}

@keyframes fadeSlideUp {
	from {
		opacity: 0;
		transform: translateX(-20px) translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateX(0) translateY(0);
	}
}

.telegram-widget {
	animation: fadeSlideUp 0.5s ease-out forwards;
}

.telegram-widget a {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: inherit;
	width: 100%;
	height: 100%;
}

.attribution {
	margin-top: 3rem;
	font-size: 0.75rem;
	color: #5f6c7a;
	border-top: 1px solid #cdd9ed;
	padding-top: 1.5rem;
	text-align: center;
}