.cspq-overlay {
	position: fixed;
	inset: 0;
	background: rgba(30, 32, 28, 0.45);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	padding: 24px;
}
.cspq-overlay.is-open {
	display: flex;
}

.cspq-stack {
	position: relative;
	width: 100%;
	max-width: 420px;
}

.cspq-card {
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
}

.cspq-card-back {
	position: absolute;
	left: 0;
	right: 0;
	height: 100%;
	background: #f2f1ea;
}
.cspq-card-back-1 {
	top: 14px;
	transform: scale(0.97);
	z-index: 1;
}
.cspq-card-back-2 {
	top: 26px;
	transform: scale(0.94);
	z-index: 0;
	opacity: 0.7;
}

.cspq-card-main {
	position: relative;
	z-index: 2;
	padding: 28px 26px 24px;
	min-height: 360px;
	display: flex;
	flex-direction: column;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.cspq-close {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 1px solid #e4e2d8;
	background: #fff;
	color: #999;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}
.cspq-close:hover { background: #f5f4ee; }

.cspq-progress-wrap { margin: 4px 40px 22px 0; }
.cspq-progress-bar {
	display: flex;
	gap: 6px;
}
.cspq-progress-bar .cspq-dot {
	height: 4px;
	flex: 1;
	border-radius: 4px;
	background: #e7e5db;
}
.cspq-progress-bar .cspq-dot.is-done { background: #2b2b26; }
.cspq-progress-bar .cspq-dot.is-current { background: #2b2b26; }

.cspq-body { flex: 1; display: flex; flex-direction: column; }

.cspq-eyebrow {
	font-size: 11px;
	letter-spacing: 0.12em;
	font-weight: 700;
	color: #8b8a80;
	text-transform: uppercase;
	margin-bottom: 10px;
}

.cspq-question-title {
	font-size: 22px;
	line-height: 1.35;
	font-weight: 600;
	color: #1f1f1c;
	margin: 0 0 22px;
}

.cspq-select-hint {
	font-size: 11px;
	letter-spacing: 0.1em;
	font-weight: 700;
	color: #a9a89d;
	text-transform: uppercase;
	margin-bottom: 14px;
}

.cspq-options { list-style: none; margin: 0 0 auto; padding: 0; }
.cspq-option {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 13px 4px;
	cursor: pointer;
	border-bottom: 1px solid #f1f0e9;
	font-size: 15px;
	color: #2c2c28;
}
.cspq-option:last-child { border-bottom: none; }
.cspq-option .cspq-radio {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid #c9c7ba;
	flex: 0 0 auto;
	position: relative;
}
.cspq-option.is-selected .cspq-radio { border-color: #2b2b26; }
.cspq-option.is-selected .cspq-radio::after {
	content: "";
	position: absolute;
	inset: 3px;
	border-radius: 50%;
	background: #2b2b26;
}

.cspq-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 24px;
}

.cspq-btn {
	border: none;
	border-radius: 10px;
	padding: 12px 22px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}
.cspq-btn-back { background: transparent; color: #2c2c28; padding-left: 4px; }
.cspq-btn-next {
	background: #b7e07f;
	color: #1f2b12;
}
.cspq-btn-next:disabled { opacity: 0.5; cursor: not-allowed; }
.cspq-btn-next:hover:not(:disabled) { background: #a7d76a; }

.cspq-timer {
	font-size: 12px;
	color: #a9a89d;
	font-weight: 600;
}

/* Trạng thái đăng nhập / kết quả */
.cspq-gate, .cspq-result {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	flex: 1;
	text-align: left;
}
.cspq-gate h3, .cspq-result h3 {
	font-size: 20px;
	margin: 0 0 10px;
	color: #1f1f1c;
}
.cspq-gate p, .cspq-result p { color: #6b6a60; font-size: 14px; line-height: 1.5; margin: 0 0 18px; }

.cspq-score-badge {
	display: inline-flex;
	align-items: baseline;
	gap: 8px;
	background: #f5f4ee;
	border-radius: 12px;
	padding: 14px 18px;
	margin-bottom: 18px;
}
.cspq-score-badge .cspq-score-number { font-size: 32px; font-weight: 700; color: #1f1f1c; }
.cspq-score-badge .cspq-score-label { font-size: 12px; color: #8b8a80; text-transform: uppercase; letter-spacing: 0.08em; }

.cspq-stats { display: flex; gap: 18px; margin-bottom: 20px; }
.cspq-stat { font-size: 13px; color: #6b6a60; }
.cspq-stat strong { display: block; color: #1f1f1c; font-size: 16px; }

.cspq-courses-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #8b8a80; margin: 6px 0 12px; }

.cspq-course-list { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.cspq-course-card {
	display: flex;
	align-items: center;
	gap: 12px;
	border: 1px solid #eeede4;
	border-radius: 12px;
	padding: 10px;
	text-decoration: none;
	color: inherit;
}
.cspq-course-card:hover { border-color: #cfcdbf; }
.cspq-course-card img {
	width: 52px;
	height: 52px;
	object-fit: cover;
	border-radius: 8px;
	background: #f2f1ea;
	flex: 0 0 auto;
}
.cspq-course-info { flex: 1; }
.cspq-course-info .cspq-course-name { font-weight: 600; font-size: 14px; color: #1f1f1c; }
.cspq-course-info .cspq-course-price { font-size: 12px; color: #8b8a80; }

.cspq-loading, .cspq-error { flex: 1; display: flex; align-items: center; justify-content: center; color: #8b8a80; font-size: 14px; }
