/* Nghiền Học Quiz — giao diện phía người dùng */

.nhq-app,
.nhq-list {
	--nhq-primary: #6366f1;
	--nhq-accent: #a855f7;
	--nhq-ok: #22c55e;
	--nhq-bad: #ef4444;
	--nhq-warn: #f59e0b;
	--nhq-radius: 16px;
	--nhq-grad: linear-gradient(135deg, var(--nhq-primary), var(--nhq-accent));
	box-sizing: border-box;
	font-family: inherit;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

.nhq-app *,
.nhq-app *::before,
.nhq-app *::after,
.nhq-list *,
.nhq-list *::before,
.nhq-list *::after {
	box-sizing: border-box;
}

/* ---------- bảng màu ---------- */

.nhq-theme-dark {
	--nhq-bg: #16133a;
	--nhq-bg-2: #221c55;
	--nhq-surface: rgba(255, 255, 255, 0.06);
	--nhq-surface-2: rgba(255, 255, 255, 0.1);
	--nhq-border: rgba(255, 255, 255, 0.12);
	--nhq-text: #f1f2fb;
	--nhq-muted: #a9abcf;
	--nhq-ok-bg: rgba(34, 197, 94, 0.14);
	--nhq-bad-bg: rgba(239, 68, 68, 0.14);
}

.nhq-theme-light {
	--nhq-bg: #f5f6fb;
	--nhq-bg-2: #eef0fa;
	--nhq-surface: #ffffff;
	--nhq-surface-2: #f1f2f9;
	--nhq-border: #e2e4f0;
	--nhq-text: #1d1f3a;
	--nhq-muted: #636888;
	--nhq-ok-bg: #e8f8ee;
	--nhq-bad-bg: #fdecec;
}

.nhq-app {
	position: relative;
	max-width: 780px;
	margin: 24px auto;
	padding: 24px;
	border-radius: 24px;
	color: var(--nhq-text);
	background: radial-gradient(1200px 400px at 10% -10%, var(--nhq-bg-2), transparent 60%), var(--nhq-bg);
}

/* ---------- nút (đặt lại style của theme) ---------- */

.nhq-app button,
.nhq-list button {
	font: inherit;
	letter-spacing: normal;
	text-transform: none;
	text-shadow: none;
	box-shadow: none;
	margin: 0;
	min-height: 0;
	line-height: 1.3;
	cursor: pointer;
}

.nhq-app .nhq-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 20px;
	border: 1px solid transparent;
	border-radius: 12px;
	font-weight: 600;
	font-size: 15px;
	color: var(--nhq-text);
	background: var(--nhq-surface-2);
	transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
	text-decoration: none;
}

.nhq-app .nhq-btn:hover:not(:disabled) {
	transform: translateY(-1px);
}

.nhq-app .nhq-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.nhq-app .nhq-btn-primary {
	color: #fff;
	background: var(--nhq-grad);
	box-shadow: 0 8px 22px -10px var(--nhq-primary);
}

.nhq-app .nhq-btn-ghost {
	background: transparent;
	border-color: var(--nhq-border);
}

.nhq-app .nhq-btn-facebook {
	color: #fff;
	background: #1877f2;
}

.nhq-app .nhq-btn-lg {
	padding: 14px 32px;
	font-size: 17px;
}

.nhq-app .nhq-btn-block {
	width: 100%;
}

.nhq-app .nhq-link-btn {
	padding: 4px 8px;
	border: 0;
	background: none;
	color: var(--nhq-muted);
	font-size: 14px;
	text-decoration: underline;
}

.nhq-app :focus-visible {
	outline: 2px solid var(--nhq-accent);
	outline-offset: 2px;
}

/* ---------- khối dùng chung ---------- */

.nhq-card-box {
	padding: 22px;
	border: 1px solid var(--nhq-border);
	border-radius: var(--nhq-radius);
	background: var(--nhq-surface);
}

.nhq-center {
	text-align: center;
}

.nhq-muted {
	color: var(--nhq-muted);
}

.nhq-small {
	font-size: 13px;
}

.nhq-error {
	margin: 12px 0 0;
	color: var(--nhq-bad);
	font-weight: 600;
}

.nhq-warn-text {
	color: var(--nhq-warn);
	font-weight: 600;
}

.nhq-pill {
	display: inline-block;
	padding: 3px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	background: var(--nhq-grad);
}

.nhq-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	border: 1px solid currentColor;
}

.nhq-diff-easy {
	color: #22c55e;
}

.nhq-diff-medium {
	color: #f59e0b;
}

.nhq-diff-hard {
	color: #f43f5e;
}

/* ---------- màn hình giới thiệu ---------- */

.nhq-intro {
	text-align: center;
	padding: 12px 0;
}

.nhq-intro-title {
	margin: 0 0 18px;
	color: var(--nhq-text);
	font-size: 26px;
}

.nhq-intro-stats,
.nhq-result-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 0 auto 24px;
	max-width: 520px;
}

.nhq-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 14px 8px;
	border: 1px solid var(--nhq-border);
	border-radius: 14px;
	background: var(--nhq-surface);
}

.nhq-stat-value {
	font-size: 22px;
	font-weight: 800;
	line-height: 1.2;
}

.nhq-stat-label {
	font-size: 13px;
	color: var(--nhq-muted);
}

.nhq-quiz-desc {
	margin-bottom: 8px;
}

/* ---------- đang tải ---------- */

.nhq-loading {
	padding: 60px 0;
	text-align: center;
	color: var(--nhq-muted);
}

.nhq-spinner {
	width: 38px;
	height: 38px;
	margin: 0 auto 12px;
	border: 3px solid var(--nhq-border);
	border-top-color: var(--nhq-accent);
	border-radius: 50%;
	animation: nhq-spin 0.8s linear infinite;
}

@keyframes nhq-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ---------- làm bài ---------- */

.nhq-play {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.nhq-head {
	padding: 16px 18px;
}

.nhq-head-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.nhq-head-name {
	font-weight: 700;
	font-size: 16px;
}

.nhq-head-sub {
	font-size: 13px;
	color: var(--nhq-muted);
}

.nhq-timer {
	flex-shrink: 0;
	padding: 8px 14px;
	border-radius: 12px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	background: var(--nhq-surface-2);
}

.nhq-timer.is-warning {
	color: #fff;
	background: var(--nhq-bad);
	animation: nhq-pulse 1s ease-in-out infinite;
}

@keyframes nhq-pulse {
	50% {
		opacity: 0.7;
	}
}

.nhq-progress-row {
	display: flex;
	justify-content: space-between;
	margin: 12px 0 6px;
	font-size: 13px;
	color: var(--nhq-muted);
}

.nhq-bar {
	height: 6px;
	border-radius: 999px;
	background: var(--nhq-surface-2);
	overflow: hidden;
}

.nhq-bar-fill {
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: var(--nhq-grad);
	transition: width 0.3s ease;
}

.nhq-question-text {
	margin: 14px 0 16px;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.45;
	overflow-wrap: anywhere;
}

.nhq-question-text p {
	margin: 0 0 8px;
}

.nhq-question-img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto 16px;
	border-radius: 12px;
}

.nhq-options {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.nhq-app .nhq-option {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	padding: 14px 16px;
	border: 1px solid var(--nhq-border);
	border-radius: 14px;
	background: var(--nhq-surface);
	color: var(--nhq-text);
	text-align: left;
	font-size: 16px;
	transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.nhq-app .nhq-option:hover {
	border-color: var(--nhq-primary);
	background: var(--nhq-surface-2);
}

.nhq-app .nhq-option.is-selected {
	border-color: var(--nhq-accent);
	background: color-mix(in srgb, var(--nhq-accent) 18%, transparent);
}

.nhq-option-letter {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	font-weight: 800;
	font-size: 14px;
	background: var(--nhq-surface-2);
}

.nhq-option.is-selected .nhq-option-letter {
	color: #fff;
	background: var(--nhq-grad);
}

.nhq-option-text {
	flex: 1;
	overflow-wrap: anywhere;
}

.nhq-nav {
	display: grid;
	grid-template-columns: auto 1fr auto;
	grid-template-areas: "prev grid next";
	align-items: center;
	gap: 12px;
}

.nhq-nav > .nhq-btn:first-child {
	grid-area: prev;
}

.nhq-nav > .nhq-btn:last-child {
	grid-area: next;
}

.nhq-grid {
	grid-area: grid;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}

.nhq-app .nhq-grid-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	min-width: 0;
	height: 34px;
	padding: 0;
	line-height: 1;
	text-align: center;
	border: 1px solid var(--nhq-border);
	border-radius: 9px;
	background: var(--nhq-surface);
	color: var(--nhq-muted);
	font-size: 13px;
	font-weight: 600;
}

.nhq-app .nhq-grid-btn.is-answered {
	color: #fff;
	border-color: transparent;
	background: color-mix(in srgb, var(--nhq-ok) 75%, #000 0%);
}

.nhq-app .nhq-grid-btn.is-current {
	color: #fff;
	border-color: transparent;
	background: var(--nhq-grad);
	box-shadow: 0 0 0 2px var(--nhq-bg), 0 0 0 4px var(--nhq-accent);
}

.nhq-submit-row {
	text-align: center;
}

/* ---------- hộp xác nhận ---------- */

.nhq-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(8, 7, 25, 0.6);
	backdrop-filter: blur(6px);
}

.nhq-modal-box {
	width: 100%;
	max-width: 380px;
	padding: 26px 24px;
	border: 1px solid var(--nhq-border);
	border-radius: 20px;
	text-align: center;
	color: var(--nhq-text);
	background: var(--nhq-bg);
	box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}

.nhq-modal-box h3 {
	margin: 10px 0 6px;
	color: var(--nhq-text);
	font-size: 20px;
}

.nhq-modal-box p {
	margin: 4px 0;
}

.nhq-modal-icon,
.nhq-gate-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 16px;
	font-size: 24px;
	color: #fff;
	background: var(--nhq-grad);
}

.nhq-modal-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-top: 18px;
}

/* ---------- mở khóa ---------- */

.nhq-gate {
	max-width: 520px;
	margin: 0 auto;
}

.nhq-gate-title {
	margin: 14px 0 6px;
	color: var(--nhq-text);
	font-size: 22px;
}

.nhq-gate-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 18px;
	text-align: left;
}

.nhq-app .nhq-input {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--nhq-border);
	border-radius: 12px;
	background: var(--nhq-surface);
	color: var(--nhq-text);
	font: inherit;
	font-size: 15px;
}

.nhq-app .nhq-input::placeholder {
	color: var(--nhq-muted);
}

.nhq-consent {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	font-size: 13px;
	color: var(--nhq-muted);
}

.nhq-consent input {
	margin-top: 3px;
}

.nhq-share-buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 16px 0 8px;
}

.nhq-gate-share .nhq-btn-block {
	margin-top: 10px;
}

/* ---------- đề dẫn & các kiểu câu ---------- */

.nhq-passage {
	margin: 0 0 16px;
	padding: 14px 16px;
	border: 1px solid var(--nhq-border);
	border-left: 4px solid var(--nhq-accent);
	border-radius: 12px;
	background: var(--nhq-surface-2);
	max-height: 45vh;
	overflow: auto;
}

.nhq-passage-head {
	margin-bottom: 6px;
	color: var(--nhq-accent);
	font-size: 13px;
	font-weight: 700;
}

.nhq-passage-text {
	line-height: 1.6;
}

.nhq-review-passage {
	list-style: none;
}

.nhq-review-passage .nhq-passage {
	max-height: none;
	margin: 0;
}

.nhq-pill-type {
	margin-left: 6px;
	background: var(--nhq-surface-2);
	color: var(--nhq-text);
}

.nhq-tf {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 16px;
}

.nhq-tf-row {
	display: flex;
	gap: 10px;
	align-items: center;
	padding: 10px 12px;
	border: 1px solid var(--nhq-border);
	border-radius: 12px;
	background: var(--nhq-surface);
}

.nhq-tf-row .nhq-option-text {
	flex: 1;
	min-width: 0;
}

.nhq-tf-btns {
	display: flex;
	flex: 0 0 auto;
	gap: 6px;
}

.nhq-app .nhq-tf-btn {
	min-width: 56px;
	padding: 7px 10px;
	border: 1px solid var(--nhq-border);
	border-radius: 9px;
	background: transparent;
	color: var(--nhq-text);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.nhq-app .nhq-tf-btn.is-true {
	border-color: transparent;
	background: var(--nhq-ok);
	color: #fff;
}

.nhq-app .nhq-tf-btn.is-false {
	border-color: transparent;
	background: var(--nhq-bad);
	color: #fff;
}

.nhq-short {
	margin-top: 16px;
}

.nhq-app .nhq-short-input {
	font-size: 18px;
	font-weight: 600;
}

@media (max-width: 600px) {
	.nhq-tf-row {
		flex-wrap: wrap;
	}

	.nhq-tf-btns {
		width: 100%;
		justify-content: flex-end;
	}
}

/* ---------- nhiệm vụ lấy mã ---------- */

.nhq-task {
	margin-top: 18px;
	text-align: left;
}

.nhq-task-steps {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nhq-task-step {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin: 0;
}

.nhq-task-num {
	flex: 0 0 28px;
	height: 28px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--nhq-grad);
	color: #fff;
	font-weight: 700;
	font-size: 14px;
}

.nhq-task-body {
	flex: 1;
	min-width: 0;
	padding-top: 3px;
	font-size: 15px;
}

.nhq-task-kw {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-top: 8px;
	padding: 10px 12px;
	border: 1px dashed var(--nhq-primary);
	border-radius: 12px;
	background: var(--nhq-surface-2);
}

.nhq-task-kw strong {
	flex: 1 1 160px;
	font-size: 16px;
	word-break: break-word;
}

.nhq-app .nhq-btn-sm {
	padding: 6px 12px;
	font-size: 13px;
	text-decoration: none;
}

.nhq-task-domain {
	color: var(--nhq-accent);
}

.nhq-task-fig {
	margin: 8px 0 0;
}

.nhq-task-img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	border: 1px solid var(--nhq-border);
	border-radius: 10px;
	cursor: zoom-in;
}

.nhq-task-fig figcaption {
	margin-top: 4px;
	text-align: center;
}

.nhq-zoom {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
	background: rgba(0, 0, 0, 0.88);
	cursor: zoom-out;
}

.nhq-zoom img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 8px;
}

.nhq-zoom-x {
	position: absolute;
	top: 10px;
	right: 14px;
	border: 0;
	background: none;
	color: #fff;
	font-size: 34px;
	line-height: 1;
	cursor: pointer;
}

/* Điện thoại: bỏ lề của số thứ tự để chữ và ảnh hướng dẫn rộng hết khung. */
@media (max-width: 600px) {
	.nhq-app {
		padding: 14px;
	}

	.nhq-gate.nhq-card-box {
		padding: 16px 12px;
	}

	.nhq-task-step {
		display: block;
	}

	.nhq-task-num {
		float: left;
		width: 26px;
		height: 26px;
		margin: 0 10px 2px 0;
	}

	.nhq-task-body {
		padding-top: 1px;
	}

	.nhq-task-fig {
		clear: both;
		padding-top: 6px;
	}
}

.nhq-task-form {
	display: flex;
	gap: 10px;
	margin: 18px 0 8px;
}

.nhq-app .nhq-code-input {
	flex: 1;
	min-width: 0;
	text-transform: uppercase;
	letter-spacing: 3px;
	font-weight: 700;
	text-align: center;
}

.nhq-task .nhq-link-btn {
	display: block;
	margin: 0 auto;
}

/* ---------- kết quả ---------- */

.nhq-result-screen {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.nhq-result-quiz {
	font-weight: 600;
	color: var(--nhq-muted);
}

.nhq-ring {
	--nhq-pct: 0;
	position: relative;
	width: 180px;
	height: 180px;
	margin: 18px auto 10px;
	border-radius: 50%;
	background: conic-gradient(var(--nhq-accent) calc(var(--nhq-pct) * 1%), var(--nhq-surface-2) 0);
}

.nhq-ring-inner {
	position: absolute;
	inset: 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--nhq-bg);
}

.nhq-ring-value {
	font-size: 44px;
	font-weight: 800;
	line-height: 1;
	background: var(--nhq-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.nhq-ring-value small {
	font-size: 18px;
	color: var(--nhq-muted);
	-webkit-text-fill-color: var(--nhq-muted);
}

.nhq-ring-label {
	margin-top: 6px;
	font-size: 12px;
	color: var(--nhq-muted);
}

.nhq-band {
	margin: 8px 0 4px;
	color: var(--nhq-text);
	font-size: 22px;
}

.nhq-result-stats {
	margin: 20px auto;
}

.nhq-result-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.nhq-review-title {
	margin: 8px 0 12px;
	color: var(--nhq-text);
}

.nhq-review-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nhq-review-item.is-ok {
	border-left: 4px solid var(--nhq-ok);
}

.nhq-review-item.is-bad {
	border-left: 4px solid var(--nhq-bad);
}

.nhq-review-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.nhq-review-mark {
	font-weight: 800;
	font-size: 18px;
}

.is-ok .nhq-review-mark {
	color: var(--nhq-ok);
}

.is-bad .nhq-review-mark {
	color: var(--nhq-bad);
}

.nhq-review-item .nhq-question-text {
	font-size: 16px;
	margin: 10px 0 12px;
}

.nhq-review-options {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.nhq-review-opt {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border: 1px solid var(--nhq-border);
	border-radius: 10px;
	font-size: 15px;
}

.nhq-review-opt .nhq-option-letter {
	width: 28px;
	height: 28px;
	font-size: 13px;
}

.nhq-review-opt.is-correct {
	border-color: var(--nhq-ok);
	background: var(--nhq-ok-bg);
}

.nhq-review-opt.is-correct .nhq-option-letter {
	color: #fff;
	background: var(--nhq-ok);
}

.nhq-review-opt.is-wrong {
	border-color: var(--nhq-bad);
	background: var(--nhq-bad-bg);
}

.nhq-review-opt.is-wrong .nhq-option-letter {
	color: #fff;
	background: var(--nhq-bad);
}

.nhq-chosen-tag {
	margin-left: auto;
	font-size: 12px;
	color: var(--nhq-muted);
	white-space: nowrap;
}

.nhq-explain {
	margin-top: 12px;
	padding: 10px 12px;
	border-radius: 10px;
	font-size: 14px;
	background: var(--nhq-surface-2);
}

/* ---------- danh sách đề (shortcode nhq_quiz_list) ---------- */

.nhq-list {
	--nhq-cols: 3;
	display: grid;
	grid-template-columns: repeat(var(--nhq-cols), minmax(0, 1fr));
	gap: 18px;
	margin: 24px 0;
}

.nhq-list.nhq-theme-dark {
	padding: 20px;
	border-radius: 24px;
	background: var(--nhq-bg);
}

.nhq-list .nhq-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 22px 20px 20px;
	border: 1px solid var(--nhq-border);
	border-radius: var(--nhq-radius);
	background: var(--nhq-surface);
	color: var(--nhq-text);
	text-decoration: none;
	overflow: hidden;
	transition: transform 0.2s ease, border-color 0.2s ease;
}

.nhq-list .nhq-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 4px;
	background: var(--nhq-grad);
}

.nhq-list .nhq-card:hover {
	transform: translateY(-3px);
	border-color: var(--nhq-primary);
}

.nhq-card-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.nhq-card-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 11px;
	color: #fff;
	font-weight: 800;
	background: var(--nhq-grad);
}

.nhq-list .nhq-card-title {
	margin: 6px 0 0;
	color: var(--nhq-text);
	font-size: 18px;
	line-height: 1.35;
}

.nhq-card-desc {
	margin: 0;
	font-size: 14px;
	color: var(--nhq-muted);
}

.nhq-card-meta {
	display: flex;
	gap: 14px;
	font-size: 13px;
	color: var(--nhq-muted);
}

.nhq-card-cta {
	margin-top: auto;
	padding-top: 10px;
	font-weight: 700;
	font-size: 14px;
	color: var(--nhq-accent);
}

/* ---------- màn hình nhỏ ---------- */

@media (max-width: 860px) {
	.nhq-list {
		grid-template-columns: repeat(min(var(--nhq-cols), 2), minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.nhq-app {
		margin: 12px 0;
		padding: 14px;
		border-radius: 18px;
	}

	.nhq-card-box {
		padding: 16px;
	}

	.nhq-question-text {
		font-size: 17px;
	}

	.nhq-nav {
		grid-template-columns: 1fr 1fr;
		grid-template-areas:
			"grid grid"
			"prev next";
	}

	.nhq-intro-stats,
	.nhq-result-stats {
		gap: 8px;
	}

	.nhq-stat-value {
		font-size: 18px;
	}

	.nhq-list {
		grid-template-columns: 1fr;
		padding: 12px;
	}
}

/* Tiêu đề dùng font của nội dung thay vì font tiêu đề của theme */
.nhq-app h2,
.nhq-app h3,
.nhq-list h3 {
	font-family: inherit;
	font-weight: 700;
	letter-spacing: normal;
	text-transform: none;
}

/* Đạt / Không đạt (kiểu thi sát hạch) */
.nhq-intro-rule {
	max-width: 520px;
	margin: -8px auto 20px;
	font-size: 14px;
	color: var(--nhq-muted);
}

.nhq-verdict {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	margin: 6px auto 4px;
	padding: 10px 26px;
	border-radius: 14px;
}

.nhq-verdict-label {
	font-size: 26px;
	font-weight: 900;
	letter-spacing: 0.04em;
}

.nhq-verdict-reason {
	font-size: 14px;
	font-weight: 600;
}

.nhq-verdict.is-pass {
	color: var(--nhq-ok);
	background: var(--nhq-ok-bg);
}

.nhq-verdict.is-fail {
	color: var(--nhq-bad);
	background: var(--nhq-bad-bg);
}

.nhq-review-tags {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
}

.nhq-pill.nhq-pill-critical {
	background: var(--nhq-bad);
}

/* Phần mô tả đề thi canh cùng khung làm bài */
.nhq-quiz-desc {
	max-width: 780px;
	margin-left: auto;
	margin-right: auto;
}

/* ================================================================== */
/* Trang đề thi: khung giới thiệu + ô liên kết các đề khác            */
/* ================================================================== */

.nhq-tone-blue   { --t1: #3b82f6; --t2: #6366f1; --tbg: #eff6ff; }
.nhq-tone-indigo { --t1: #6366f1; --t2: #8b5cf6; --tbg: #eef2ff; }
.nhq-tone-purple { --t1: #8b5cf6; --t2: #d946ef; --tbg: #f5f3ff; }
.nhq-tone-red    { --t1: #ef4444; --t2: #f97316; --tbg: #fef2f2; }
.nhq-tone-orange { --t1: #f97316; --t2: #f59e0b; --tbg: #fff7ed; }
.nhq-tone-amber  { --t1: #f59e0b; --t2: #eab308; --tbg: #fffbeb; }
.nhq-tone-yellow { --t1: #eab308; --t2: #f59e0b; --tbg: #fefce8; }
.nhq-tone-green  { --t1: #16a34a; --t2: #14b8a6; --tbg: #f0fdf4; }
.nhq-tone-teal   { --t1: #0d9488; --t2: #0ea5e9; --tbg: #f0fdfa; }
.nhq-tone-pink   { --t1: #ec4899; --t2: #f43f5e; --tbg: #fdf2f8; }
.nhq-tone-slate  { --t1: #475569; --t2: #0ea5e9; --tbg: #f1f5f9; }

.nhq-ico {
	display: block;
	width: 24px;
	height: 24px;
}

.nhq-quiz-desc,
.nhq-related {
	box-sizing: border-box;
	max-width: 780px;
	margin: 28px auto 0;
}

/* Khung nội dung */
.nhq-quiz-desc {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.nhq-box {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 18px 20px;
	border: 1px solid #e5e7eb;
	border-left: 4px solid var(--t1, #3b82f6);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 6px 18px -12px rgba(15, 23, 42, 0.35);
	color: inherit;
}

.nhq-box-icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	color: #fff;
	background: linear-gradient(135deg, var(--t1), var(--t2));
	box-shadow: 0 6px 14px -6px var(--t1);
}

.nhq-box-body {
	flex: 1;
	min-width: 0;
}

.nhq-box-body > :last-child {
	margin-bottom: 0;
}

.nhq-box-body p {
	margin: 0 0 8px;
	line-height: 1.65;
}

.nhq-box .nhq-box-title {
	margin: 2px 0 6px;
	padding: 0;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--t1);
	text-transform: none;
	letter-spacing: normal;
}

.nhq-box ul,
.nhq-box ol {
	margin: 0 0 8px 1.2em;
}

/* Ô liên kết */
.nhq-related-title {
	margin: 0 0 14px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	text-transform: none;
	letter-spacing: normal;
}

.nhq-tiles {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

a.nhq-tile,
a.nhq-tile:hover,
a.nhq-tile:focus {
	color: #fff;
	text-decoration: none;
}

.nhq-tile {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 16px;
	border-radius: 16px;
	background: linear-gradient(135deg, var(--t1), var(--t2));
	box-shadow: 0 10px 22px -14px var(--t1);
	overflow: hidden;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.nhq-tile::after {
	content: "";
	position: absolute;
	right: -28px;
	top: -28px;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	pointer-events: none;
}

.nhq-tile:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 28px -14px var(--t1);
}

.nhq-tile-icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 13px;
	background: rgba(255, 255, 255, 0.22);
}

.nhq-tile-text {
	display: flex;
	flex: 1;
	min-width: 0;
	flex-direction: column;
	gap: 3px;
}

.nhq-tile-name {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
}

.nhq-tile-meta {
	font-size: 12.5px;
	opacity: 0.9;
}

.nhq-tile-arrow {
	flex-shrink: 0;
	font-size: 18px;
	font-weight: 700;
	transition: transform 0.18s ease;
}

.nhq-tile:hover .nhq-tile-arrow {
	transform: translateX(3px);
}

@media (max-width: 600px) {
	.nhq-tiles {
		grid-template-columns: 1fr;
	}

	.nhq-box {
		gap: 12px;
		padding: 14px;
	}

	.nhq-box-icon {
		width: 38px;
		height: 38px;
	}
}
