/**
 * صفحه قدم بعدی آزمون — راهنمای شخصی (IRANYekan + کارت‌ها + سایدبار)
 */
:root {
	--wpcrm-qns-primary: #4f46e5;
	--wpcrm-qns-accent: #7c3aed;
	--wpcrm-qns-cyan: #0ea5e9;
	--wpcrm-qns-gold: #f59e0b;
	--wpcrm-qns-ink: #0f172a;
	--wpcrm-qns-muted: #64748b;
	--wpcrm-qns-border: #e2e8f0;
	--wpcrm-qns-bg: #f1f5f9;
	--wpcrm-qns-radius: 20px;
	--wpcrm-qns-font: "IRANYekan", Tahoma, Arial, sans-serif;
}

body.wpcrm-qns-body {
	margin: 0;
	padding: 0;
	background: var(--wpcrm-qns-bg);
	color: var(--wpcrm-qns-ink);
	font-family: var(--wpcrm-qns-font);
	line-height: 1.75;
	direction: rtl;
}

.wpcrm-qns-page {
	min-height: 100vh;
}

/* ——— نوار بالا (فقط پنل کاربری) ——— */
.wpcrm-qns-topbar {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--wpcrm-qns-border);
	box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.wpcrm-qns-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	max-width: 1120px;
	margin: 0 auto;
	padding: 14px 20px;
}

.wpcrm-qns-topbar__brand {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 800;
	color: var(--wpcrm-qns-ink);
}

.wpcrm-qns-topbar__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	font-size: 14px;
	color: #fff;
	background: linear-gradient(135deg, var(--wpcrm-qns-primary), var(--wpcrm-qns-accent));
	border-radius: 10px;
}

.wpcrm-qns-topbar__panel {
	display: inline-flex;
	align-items: center;
	padding: 10px 18px;
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	text-decoration: none;
	background: linear-gradient(135deg, var(--wpcrm-qns-primary) 0%, var(--wpcrm-qns-accent) 100%);
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wpcrm-qns-topbar__panel:hover,
.wpcrm-qns-topbar__panel:focus {
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 12px 28px rgba(79, 70, 229, 0.45);
}

/* ——— چیدمان ——— */
.wpcrm-qns-wrap {
	max-width: 1120px;
	margin: 0 auto;
	padding: 24px 20px 48px;
}

.wpcrm-qns-layout {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 28px;
	align-items: start;
}

@media (max-width: 900px) {
	.wpcrm-qns-layout {
		grid-template-columns: 1fr;
	}

	.wpcrm-qns-sidebar {
		order: 2;
	}
}

/* ——— هیرو ——— */
.wpcrm-qns-hero {
	position: relative;
	margin-bottom: 24px;
	padding: 32px 28px 28px;
	text-align: center;
	border-radius: var(--wpcrm-qns-radius);
	background: linear-gradient(135deg, #1e1b4b 0%, var(--wpcrm-qns-primary) 40%, var(--wpcrm-qns-accent) 70%, var(--wpcrm-qns-cyan) 100%);
	box-shadow: 0 24px 56px rgba(79, 70, 229, 0.32);
	overflow: hidden;
}

.wpcrm-qns-hero__glow {
	position: absolute;
	inset: -30% -10% auto;
	height: 100%;
	background: radial-gradient(circle at 25% 15%, rgba(255, 255, 255, 0.22) 0%, transparent 55%);
	pointer-events: none;
}

.wpcrm-qns-hero__quiz {
	position: relative;
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.82);
}

.wpcrm-qns-hero__badge {
	position: relative;
	display: inline-block;
	margin-bottom: 12px;
	padding: 6px 14px;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	background: rgba(255, 255, 255, 0.16);
	border-radius: 999px;
	backdrop-filter: blur(6px);
}

.wpcrm-qns-hero__title {
	position: relative;
	margin: 0 0 10px;
	font-size: clamp(22px, 4vw, 28px);
	font-weight: 800;
	color: #fff;
	line-height: 1.35;
	letter-spacing: -0.02em;
}

.wpcrm-qns-hero__subtitle {
	position: relative;
	margin: 0;
	font-size: 15px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.9);
	line-height: 1.65;
	max-width: 36em;
	margin-inline: auto;
}

/* ——— مقاله / راهنما ——— */
.wpcrm-qns-article {
	background: #fff;
	border-radius: var(--wpcrm-qns-radius);
	border: 1px solid var(--wpcrm-qns-border);
	box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
	overflow: hidden;
}

.wpcrm-qns-article__body {
	padding: 8px 8px 4px;
}

.wpcrm-qns-article__foot {
	padding: 20px 24px 24px;
	border-top: 1px solid var(--wpcrm-qns-border);
	background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
	text-align: center;
}

.wpcrm-qns-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 24px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	border-radius: 14px;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wpcrm-qns-btn--panel {
	color: #fff;
	background: linear-gradient(135deg, var(--wpcrm-qns-primary), var(--wpcrm-qns-accent));
	box-shadow: 0 10px 28px rgba(79, 70, 229, 0.3);
}

.wpcrm-qns-btn--panel:hover,
.wpcrm-qns-btn--panel:focus {
	color: #fff;
	transform: translateY(-1px);
}

/* ——— بلوک‌های راهنما (محتوای AI) ——— */
.wpcrm-guide-wrap {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 16px 16px 8px;
}

.wpcrm-guide-hero {
	padding: 20px 22px;
	background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 50%, #ecfeff 100%);
	border: 1px solid #c7d2fe;
	border-radius: 16px;
}

.wpcrm-guide-lead {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: #312e81;
	line-height: 1.8;
}

.wpcrm-guide-lead p {
	margin: 0;
}

.wpcrm-guide-card {
	padding: 22px 24px;
	background: #fff;
	border: 1px solid var(--wpcrm-qns-border);
	border-radius: 16px;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.wpcrm-guide-card h2 {
	margin: 0 0 14px;
	padding-bottom: 12px;
	font-size: 18px;
	font-weight: 800;
	color: var(--wpcrm-qns-ink);
	border-bottom: 2px solid #e0e7ff;
	line-height: 1.4;
}

.wpcrm-guide-card h2::before {
	content: "◆ ";
	color: var(--wpcrm-qns-primary);
	font-size: 0.85em;
}

.wpcrm-guide-card h3 {
	margin: 1.25em 0 0.5em;
	font-size: 15px;
	font-weight: 700;
	color: #4338ca;
}

.wpcrm-guide-card p {
	margin: 0 0 1em;
	font-size: 15px;
	color: #334155;
}

.wpcrm-guide-card p:last-child {
	margin-bottom: 0;
}

.wpcrm-guide-card ul,
.wpcrm-guide-card ol {
	margin: 0 0 1em;
	padding-right: 1.35em;
	font-size: 15px;
	color: #334155;
}

.wpcrm-guide-card li {
	margin-bottom: 0.45em;
}

.wpcrm-guide-card li::marker {
	color: var(--wpcrm-qns-primary);
}

.wpcrm-guide-card strong {
	font-weight: 800;
	color: var(--wpcrm-qns-ink);
}

.wpcrm-guide-tip {
	margin-top: 14px;
	padding: 14px 16px;
	background: #fffbeb;
	border-right: 4px solid var(--wpcrm-qns-gold);
	border-radius: 0 12px 12px 0;
	font-size: 14px;
	color: #92400e;
}

.wpcrm-guide-card--cta {
	background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
	border-color: #a5b4fc;
}

.wpcrm-guide-card--cta h2::before {
	content: "→ ";
	color: var(--wpcrm-qns-gold);
}

/* ——— سایدبار ——— */
.wpcrm-qns-sidebar {
	position: sticky;
	top: 72px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.wpcrm-qns-sidebar__box {
	padding: 20px 18px;
	background: #fff;
	border: 1px solid var(--wpcrm-qns-border);
	border-radius: var(--wpcrm-qns-radius);
	box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.wpcrm-qns-sidebar__title {
	margin: 0 0 16px;
	padding-bottom: 12px;
	font-size: 15px;
	font-weight: 800;
	color: var(--wpcrm-qns-ink);
	border-bottom: 2px solid #e0e7ff;
	line-height: 1.4;
}

.wpcrm-qns-related {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wpcrm-qns-related__item {
	margin-bottom: 10px;
}

.wpcrm-qns-related__item:last-child {
	margin-bottom: 0;
}

.wpcrm-qns-related__link {
	display: block;
	padding: 12px 14px;
	text-decoration: none;
	background: #f8fafc;
	border: 1px solid transparent;
	border-radius: 12px;
	transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.wpcrm-qns-related__link:hover,
.wpcrm-qns-related__link:focus {
	background: #eef2ff;
	border-color: #c7d2fe;
	transform: translateX(-2px);
}

.wpcrm-qns-related__title {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: var(--wpcrm-qns-ink);
	line-height: 1.45;
}

.wpcrm-qns-related__excerpt {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	font-weight: 500;
	color: var(--wpcrm-qns-muted);
	line-height: 1.5;
}

.wpcrm-qns-sidebar__empty {
	margin: 0;
	font-size: 13px;
	color: var(--wpcrm-qns-muted);
	line-height: 1.65;
}

.wpcrm-qns-sidebar__panel {
	display: block;
	padding: 14px;
	text-align: center;
	font-size: 14px;
	font-weight: 700;
	color: var(--wpcrm-qns-primary);
	text-decoration: none;
	background: #fff;
	border: 2px solid #c7d2fe;
	border-radius: 14px;
	transition: background 0.15s ease, color 0.15s ease;
}

.wpcrm-qns-sidebar__panel:hover,
.wpcrm-qns-sidebar__panel:focus {
	color: #fff;
	background: var(--wpcrm-qns-primary);
	border-color: var(--wpcrm-qns-primary);
}

/* ——— پروفایل ادوایزر ——— */
.wpcrm-qns-advisor {
	position: relative;
	margin-bottom: 1.5rem;
	padding: 1.35rem 1.5rem;
	border-radius: var(--wpcrm-qns-radius);
	overflow: hidden;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.97) 0%, rgba(248, 250, 252, 0.95) 100%);
	border: 1px solid rgba(99, 102, 241, 0.18);
	box-shadow:
		0 16px 48px rgba(79, 70, 229, 0.12),
		0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.wpcrm-qns-advisor__mesh {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		120deg,
		rgba(79, 70, 229, 0.12) 0%,
		rgba(124, 58, 237, 0.08) 40%,
		rgba(14, 165, 233, 0.08) 70%,
		rgba(245, 158, 11, 0.06) 100%
	);
	background-size: 280% 280%;
	animation: wpcrmQnsAdvMesh 12s ease infinite;
	pointer-events: none;
}

.wpcrm-qns-advisor__orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(42px);
	opacity: 0.5;
	pointer-events: none;
	animation: wpcrmQnsAdvOrb 16s ease-in-out infinite;
}

.wpcrm-qns-advisor__orb--1 {
	width: 160px;
	height: 160px;
	top: -50px;
	right: -20px;
	background: #818cf8;
}

.wpcrm-qns-advisor__orb--2 {
	width: 120px;
	height: 120px;
	bottom: -30px;
	left: -10px;
	background: #22d3ee;
	animation-delay: -7s;
}

@keyframes wpcrmQnsAdvMesh {
	0%,
	100% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
}

@keyframes wpcrmQnsAdvOrb {
	0%,
	100% {
		transform: translate(0, 0);
	}
	50% {
		transform: translate(-10px, 8px);
	}
}

.wpcrm-qns-advisor__inner {
	position: relative;
	z-index: 1;
	display: flex;
	gap: 1.25rem;
	align-items: center;
}

.wpcrm-qns-advisor__avatar-wrap {
	position: relative;
	flex-shrink: 0;
	width: 96px;
	height: 96px;
	overflow: hidden;
	border-radius: 50%;
}

.wpcrm-qns-advisor__avatar-ring {
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	background: conic-gradient(
		from 0deg,
		var(--wpcrm-qns-primary),
		var(--wpcrm-qns-accent),
		var(--wpcrm-qns-cyan),
		var(--wpcrm-qns-gold),
		var(--wpcrm-qns-primary)
	);
	animation: wpcrmQnsAdvRing 5s linear infinite;
}

@keyframes wpcrmQnsAdvRing {
	to {
		transform: rotate(360deg);
	}
}

.wpcrm-qns-advisor__avatar {
	position: relative;
	z-index: 1;
	display: block;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid #fff;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
}

.wpcrm-qns-advisor__avatar--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(145deg, var(--wpcrm-qns-primary), var(--wpcrm-qns-accent));
	color: #fff;
}

.wpcrm-qns-advisor__avatar--placeholder svg {
	position: absolute;
	width: 52px;
	height: 52px;
	opacity: 0.35;
}

.wpcrm-qns-advisor__initial {
	position: relative;
	z-index: 2;
	font-size: 2rem;
	font-weight: 800;
	line-height: 1;
}

.wpcrm-qns-advisor__badge {
	position: absolute;
	z-index: 3;
	bottom: 2px;
	left: 2px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	color: #fff;
	background: linear-gradient(135deg, var(--wpcrm-qns-gold), #f97316);
	border-radius: 50%;
	border: 2px solid #fff;
	box-shadow: 0 4px 12px rgba(245, 158, 11, 0.45);
}

.wpcrm-qns-advisor__badge svg {
	width: 14px;
	height: 14px;
}

.wpcrm-qns-advisor__content {
	flex: 1;
	min-width: 0;
}

.wpcrm-qns-advisor__label {
	margin: 0 0 0.25rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wpcrm-qns-primary);
}

.wpcrm-qns-advisor__name {
	margin: 0 0 0.45rem;
	font-size: clamp(1.1rem, 2.5vw, 1.35rem);
	font-weight: 800;
	line-height: 1.35;
	color: var(--wpcrm-qns-ink);
}

.wpcrm-qns-advisor__intro {
	margin: 0 0 0.5rem;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.75;
	color: #334155;
}

.wpcrm-qns-advisor__bio {
	margin: 0;
	font-size: 0.86rem;
	line-height: 1.7;
	color: var(--wpcrm-qns-muted);
}

@media (max-width: 560px) {
	.wpcrm-qns-advisor__inner {
		flex-direction: column;
		text-align: center;
	}

	.wpcrm-qns-advisor__avatar-wrap {
		margin: 0 auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wpcrm-qns-advisor__mesh,
	.wpcrm-qns-advisor__orb,
	.wpcrm-qns-advisor__avatar-ring {
		animation: none !important;
	}
}
