.poll-page-container {
	max-width: 880px;
	margin: 2rem auto;
	font-family: sans-serif;
	padding: 0 1rem;
	margin-bottom: 0;
}

.poll-box {
	border: 1px solid #ddd;
	padding: 1rem;
	margin-top: 3rem;
	margin-bottom: 0.5rem;
	background: #fff;
}

.poll-header {
	display: flex;
	justify-content: space-between;
	margin-bottom: 0.25rem;
	font-size: 12px;
	color: #666;
}

.poll-question {
	margin-bottom: 0.5rem;
	text-align: right;
	color: #323232;
	font-size: 18px;
	font-weight: 400;
}

.poll-btn {
	display: block;
	width: 100%;
	margin: 0.25rem 0;
	padding: 0.5rem;
	background: #fff;
	color: #333;
	border: 1px solid #ccc;
	cursor: pointer;
	text-align: right;
	transition: background 0.2s;
}

.poll-btn:hover,
.poll-btn.active {
	background: #e0e0e0;
}

.poll-result {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 0.25rem 0;
	padding: 0.3rem;
	background: #f9f9f9;
	border: 1px solid #eee;
	position: relative;
}
.poll-result::after {
	content: '';
	position: absolute;
	width: var(--score-width, 0%);
	height: 100%;
	background: var(--primary-color);
	bottom: 0;
	right: 0;
}
.poll-result span {
	z-index: 999;
}
.poll-opt {
	color: #333;
	text-align: right;
	flex: 1;
}

.poll-percent {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 12px;
	justify-content: flex-start;
	min-width: 50px;
}

.poll-percent span {
	height: 10px;
	background: #003366;
	display: inline-block;
}

.poll-footer {
	margin-top: 0.5rem;
	font-size: 12px;
	display: flex;
	justify-content: space-between;
	color: #aaa;
	flex-direction: row-reverse;
}

.poll-msg {
	margin-top: 0.25rem;
	color: red;
}

.poll-page-container a {
	color: #003366;
	text-decoration: none;
}

.poll-page-container a:hover {
	text-decoration: underline;
}
.poll-footer + p {
	margin-top: 10px;
	margin-bottom: 0;
}
/* استایل‌های فعلی نظرسنجی رو نگه دار و اینارو اضافه کن */

/* توستر */
.custom-toast {
	position: fixed;
	bottom: 60px;
	right: 30px;
	min-width: 320px;
	max-width: 450px;
	background: #1e1e2f;
	color: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 20px rgba(0,0,0,0.2);
	z-index: 10000;
	transform: translateX(400px);
	opacity: 0;
	transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
	direction: rtl;
	font-family: inherit;
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255,255,255,0.1);
}

.custom-toast.show {
	transform: translateX(0);
	opacity: 1;
}

.toast-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 15px 20px;
	gap: 15px;
}

.toast-message {
	flex: 1;
	font-size: 14px;
	line-height: 1.6;
	font-weight: 400;
}

.toast-login-btn {
	background: var(--primary-color);
	color: white;
	border: none;
	padding: 8px 20px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 500;
	transition: all 0.2s;
	white-space: nowrap;
}

.toast-login-btn:hover {
	transform: scale(1.02);
	box-shadow: 0 4px 12px rgba(102,126,234,0.4);
}

.toast-progress {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: var(--primary-color);
	border-radius: 0 0 12px 12px;
	animation: progress 4s linear forwards;
}

@keyframes progress {
	from {
		width: 100%;
	}
	to {
		width: 0%;
	}
}
@media (min-width: 769px) {
	.poll-page-container {
		max-width: 100%;
		padding: 0;
		height: 65vh;
		background: #fff;
		margin-top: 0;
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		padding-top: 100px;
	}
	.poll-box {
		padding: 1rem;
		margin-top: 0;
		margin-bottom: 0.5rem;
		background: #fff;
		max-width: 800px;
		width: 800px;
		border: unset;
	}
}
/* ریسپانسیو */
@media (max-width: 480px) {
	.custom-toast {
		left: 15px;
		right: 15px;
		min-width: auto;
		bottom: 60px;
	}

	.toast-content {
		padding: 12px 15px;
	}

	.toast-message {
		font-size: 13px;
	}

	.toast-login-btn {
		padding: 6px 14px;
		font-size: 12px;
	}
}
/* Responsive */
@media (max-width: 600px) {
	.poll-page-container {
		margin: 0;
		padding: 0 0.5rem;
		max-width: 100%;
		width: 100%;
		margin-top: 67px !important;
	}

	.poll-box {
		width: 100%;
		box-sizing: border-box;
	}

	.poll-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.poll-percent {
		font-size: 10px;
	}

	.poll-btn {
		font-size: 14px;
		padding: 0.4rem;
	}

	.poll-result {
		align-items: flex-end;
	}

	.poll-opt {
		margin-bottom: 0.2rem;
	}
}
