/* TracNghiem theme — main stylesheet */
:root {
	--tn-primary: #1d4ed8;
	--tn-primary-dark: #1e40af;
	--tn-accent: #f59e0b;
	--tn-bg: #f6f8fc;
	--tn-card: #ffffff;
	--tn-text: #1f2937;
	--tn-muted: #6b7280;
	--tn-border: #e5e7eb;
	--tn-success: #16a34a;
	--tn-danger: #dc2626;
	--tn-radius: 12px;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--tn-text);
	background: var(--tn-bg);
	line-height: 1.6;
}

a { color: var(--tn-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.tn-container { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.tn-main { min-height: 60vh; }
.tn-page { padding: 28px 16px 48px; }
.tn-narrow { max-width: 800px; }
.tn-center { text-align: center; padding: 80px 16px; }

/* Header */
.tn-header { background: #fff; border-bottom: 1px solid var(--tn-border); position: sticky; top: 0; z-index: 50; }
.tn-header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.tn-logo-text { font-size: 20px; font-weight: 800; color: var(--tn-text); display: inline-flex; align-items: center; gap: 8px; }
.tn-logo-text:hover { text-decoration: none; }
.tn-logo-mark {
	display: inline-flex; align-items: center; justify-content: center;
	width: 32px; height: 32px; border-radius: 8px;
	background: var(--tn-primary); color: #fff; font-size: 18px;
}
.tn-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.tn-nav a { display: block; padding: 8px 14px; border-radius: 8px; color: var(--tn-text); font-weight: 600; }
.tn-nav a:hover { background: var(--tn-bg); text-decoration: none; }
.tn-search { margin-left: auto; display: flex; }
.tn-search input {
	border: 1px solid var(--tn-border); border-radius: 8px 0 0 8px;
	padding: 8px 12px; width: 200px; font-size: 14px;
}
.tn-search button {
	border: 1px solid var(--tn-primary); background: var(--tn-primary); color: #fff;
	border-radius: 0 8px 8px 0; padding: 8px 14px; cursor: pointer; font-size: 16px;
}
.tn-menu-toggle { display: none; background: none; border: 1px solid var(--tn-border); border-radius: 8px; padding: 6px 12px; font-size: 18px; cursor: pointer; }

/* Hero */
.tn-hero {
	background: linear-gradient(135deg, var(--tn-primary), var(--tn-primary-dark));
	color: #fff; padding: 64px 0; text-align: center;
}
.tn-hero h1 { font-size: 36px; margin: 0 0 12px; }
.tn-hero-sub { font-size: 17px; opacity: .92; max-width: 680px; margin: 0 auto 24px; }
.tn-hero-search { display: flex; max-width: 560px; margin: 0 auto 20px; }
.tn-hero-search input {
	flex: 1; border: none; border-radius: 10px 0 0 10px; padding: 14px 18px; font-size: 16px;
}
.tn-hero-search button {
	border: none; background: var(--tn-accent); color: #1f2937; font-weight: 700;
	border-radius: 0 10px 10px 0; padding: 14px 24px; font-size: 16px; cursor: pointer;
}
.tn-hero-tags { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.tn-hero-tags a {
	color: #fff; border: 1px solid rgba(255,255,255,.5); border-radius: 999px;
	padding: 6px 16px; font-size: 14px;
}
.tn-hero-tags a:hover { background: rgba(255,255,255,.15); text-decoration: none; }

/* Sections */
.tn-section { padding: 48px 0; }
.tn-section-alt { background: #fff; }
.tn-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.tn-section-title { font-size: 24px; margin: 0 0 20px; }
.tn-section-head .tn-section-title { margin: 0; }
.tn-link { font-weight: 600; white-space: nowrap; }

/* Grids & cards */
.tn-grid { display: grid; gap: 20px; }
.tn-grid-3 { grid-template-columns: repeat(3, 1fr); }
.tn-grid-4 { grid-template-columns: repeat(4, 1fr); }

.tn-card { background: var(--tn-card); border: 1px solid var(--tn-border); border-radius: var(--tn-radius); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.tn-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.tn-card-body { display: block; padding: 20px; color: var(--tn-text); height: 100%; }
.tn-card-body:hover { text-decoration: none; }
.tn-card-title { font-size: 17px; margin: 10px 0 8px; line-height: 1.45; }
.tn-card-meta { display: flex; gap: 14px; color: var(--tn-muted); font-size: 14px; margin-bottom: 12px; }
.tn-card-excerpt { color: var(--tn-muted); font-size: 14px; margin: 0 0 12px; }
.tn-card-cta { font-weight: 700; color: var(--tn-primary); font-size: 14px; }
.tn-badge {
	display: inline-block; background: #eef2ff; color: var(--tn-primary);
	font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 12px;
}
.tn-badge-gray { background: #f3f4f6; color: var(--tn-muted); }

.tn-subject-card {
	background: var(--tn-card); border: 1px solid var(--tn-border); border-radius: var(--tn-radius);
	padding: 24px; color: var(--tn-text); transition: transform .15s, box-shadow .15s;
}
.tn-subject-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.tn-subject-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; border-radius: 12px; font-size: 24px; font-weight: 800;
	background: linear-gradient(135deg, var(--tn-primary), var(--tn-primary-dark)); color: #fff; margin-bottom: 12px;
}
.tn-subject-card h3 { margin: 0 0 6px; font-size: 19px; }
.tn-subject-card p { color: var(--tn-muted); font-size: 14px; margin: 0 0 10px; }

/* Breadcrumb, chips, pagination */
.tn-breadcrumb { font-size: 14px; color: var(--tn-muted); margin-bottom: 16px; }
.tn-breadcrumb a { color: var(--tn-muted); }
.tn-breadcrumb .current { color: var(--tn-text); font-weight: 600; }
.tn-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.tn-chip { border: 1px solid var(--tn-border); background: #fff; border-radius: 999px; padding: 8px 18px; color: var(--tn-text); font-weight: 600; font-size: 14px; }
.tn-chip:hover { border-color: var(--tn-primary); color: var(--tn-primary); text-decoration: none; }
.tn-chip.active { background: var(--tn-primary); border-color: var(--tn-primary); color: #fff; }
.tn-filter { margin-bottom: 24px; }
.tn-filter-label { display: block; font-weight: 700; margin-bottom: 10px; font-size: 15px; }
.tn-filter .tn-chips { margin-bottom: 0; }
.tn-pagination { margin-top: 32px; text-align: center; }
.tn-pagination .page-numbers { display: inline-block; padding: 8px 14px; border: 1px solid var(--tn-border); border-radius: 8px; background: #fff; margin: 0 4px; color: var(--tn-text); }
.tn-pagination .page-numbers.current { background: var(--tn-primary); border-color: var(--tn-primary); color: #fff; }
.tn-empty { background: #fff; border: 1px dashed var(--tn-border); border-radius: var(--tn-radius); padding: 40px; text-align: center; color: var(--tn-muted); }
.tn-page-title { margin: 0 0 24px; }
.tn-term-head { margin-bottom: 8px; }
.tn-term-head h1 { margin: 0 0 8px; }
.tn-term-head p { color: var(--tn-muted); }

/* Quiz page */
.tn-quiz-head { margin-bottom: 24px; }
.tn-quiz-head h1 { margin: 0 0 12px; font-size: 28px; }
.tn-quiz-meta { display: flex; flex-wrap: wrap; gap: 18px; color: var(--tn-muted); margin-bottom: 12px; }
.tn-meta-item strong { color: var(--tn-text); }
.tn-quiz-desc { color: var(--tn-muted); }

.tn-panel { background: #fff; border: 1px solid var(--tn-border); border-radius: var(--tn-radius); padding: 48px 32px; text-align: center; max-width: 640px; margin: 0 auto; }
.tn-start-icon { font-size: 56px; margin-bottom: 12px; }
.tn-panel h2 { margin: 0 0 12px; }
.tn-panel p { color: var(--tn-muted); margin-bottom: 24px; }

.tn-btn { display: inline-block; border: none; border-radius: 10px; padding: 12px 28px; font-size: 16px; font-weight: 700; cursor: pointer; }
.tn-btn-primary { background: var(--tn-primary); color: #fff; }
.tn-btn-primary:hover { background: var(--tn-primary-dark); }
.tn-btn-lg { padding: 14px 40px; font-size: 17px; }

.tn-quiz-layout { display: grid; grid-template-columns: 1fr 240px; gap: 24px; align-items: start; }
.tn-quiz-toolbar {
	display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
	background: #fff; border: 1px solid var(--tn-border); border-radius: var(--tn-radius);
	padding: 12px 18px; margin-bottom: 20px; position: sticky; top: 76px; z-index: 20;
}
.tn-timer { font-size: 22px; font-weight: 800; color: var(--tn-primary); font-variant-numeric: tabular-nums; }
.tn-timer.warning { color: var(--tn-danger); animation: tn-blink 1s infinite; }
@keyframes tn-blink { 50% { opacity: .5; } }
.tn-progress-text { color: var(--tn-muted); font-size: 14px; }
.tn-instant { margin-left: auto; font-size: 14px; color: var(--tn-muted); display: flex; align-items: center; gap: 6px; cursor: pointer; }

.tn-question { background: #fff; border: 1px solid var(--tn-border); border-radius: var(--tn-radius); padding: 22px; margin-bottom: 18px; }
.tn-question.correct { border-color: var(--tn-success); }
.tn-question.wrong { border-color: var(--tn-danger); }
.tn-q-title { font-size: 17px; font-weight: 700; margin: 0 0 14px; }
.tn-q-title .tn-q-num { color: var(--tn-primary); margin-right: 6px; }
.tn-option { display: block; border: 1px solid var(--tn-border); border-radius: 10px; padding: 12px 16px; margin-bottom: 10px; cursor: pointer; transition: border-color .12s, background .12s; }
.tn-option:hover { border-color: var(--tn-primary); background: #f8faff; }
.tn-option input { margin-right: 10px; accent-color: var(--tn-primary); }
.tn-option.selected { border-color: var(--tn-primary); background: #eff4ff; font-weight: 600; }
.tn-option.is-correct { border-color: var(--tn-success); background: #f0fdf4; }
.tn-option.is-wrong { border-color: var(--tn-danger); background: #fef2f2; }
.tn-option.disabled { cursor: default; }
.tn-option.disabled:hover { border-color: var(--tn-border); background: none; }
.tn-option.is-correct.disabled:hover, .tn-option.is-wrong.disabled:hover { border-color: inherit; }
.tn-q-feedback { font-weight: 700; margin: 8px 0 0; font-size: 15px; }
.tn-q-feedback.ok { color: var(--tn-success); }
.tn-q-feedback.no { color: var(--tn-danger); }
.tn-q-explain { background: #f8fafc; border-left: 3px solid var(--tn-primary); padding: 10px 14px; margin-top: 10px; font-size: 14px; color: var(--tn-muted); border-radius: 0 8px 8px 0; }

.tn-submit-row { text-align: center; margin: 28px 0; }

.tn-nav-panel { background: #fff; border: 1px solid var(--tn-border); border-radius: var(--tn-radius); padding: 18px; }
.tn-nav-panel h3 { margin: 0 0 12px; font-size: 16px; }
.tn-nav-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.tn-nav-btn {
	aspect-ratio: 1; border: 1px solid var(--tn-border); background: #fff; border-radius: 8px;
	font-weight: 700; cursor: pointer; font-size: 14px; color: var(--tn-muted);
}
.tn-nav-btn.done { background: var(--tn-primary); border-color: var(--tn-primary); color: #fff; }
.tn-nav-btn.current { border-color: var(--tn-primary); color: var(--tn-primary); }
.tn-legend { margin-top: 12px; font-size: 13px; color: var(--tn-muted); display: flex; flex-direction: column; gap: 6px; }
.tn-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--tn-border); margin-right: 6px; vertical-align: -1px; }
.tn-dot-done { background: var(--tn-primary); border-color: var(--tn-primary); }

/* Đúng/Sai + Trả lời ngắn (định dạng đề Bộ GD&ĐT) */
.tn-part-title { font-size: 19px; margin: 28px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--tn-primary); }
.tn-q-tf { display: flex; flex-direction: column; gap: 10px; }
.tn-tf-row {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	border: 1px solid var(--tn-border); border-radius: 10px; padding: 10px 14px;
}
.tn-tf-row.answered { border-color: #bfdbfe; background: #f8faff; }
.tn-tf-row.is-correct { border-color: var(--tn-success); background: #f0fdf4; }
.tn-tf-row.is-wrong { border-color: var(--tn-danger); background: #fef2f2; }
.tn-tf-text { flex: 1; }
.tn-tf-opts { display: flex; gap: 8px; white-space: nowrap; }
.tn-yn {
	display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
	border: 1px solid var(--tn-border); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600;
}
.tn-yn input { accent-color: var(--tn-primary); }
.tn-yn:has(input:checked) { border-color: var(--tn-primary); background: #eff4ff; color: var(--tn-primary); }
.tn-tf-badge { font-size: 13px; font-weight: 700; white-space: nowrap; }
.tn-tf-badge.ok { color: var(--tn-success); }
.tn-tf-badge.no { color: var(--tn-danger); }
.tn-q-short { margin-bottom: 6px; }
.tn-short-input {
	width: 100%; max-width: 420px; border: 1px solid var(--tn-border); border-radius: 10px;
	padding: 12px 16px; font-size: 16px;
}
.tn-short-input:focus { outline: none; border-color: var(--tn-primary); box-shadow: 0 0 0 3px rgba(29,78,216,.12); }
.tn-short-input:disabled { background: #f3f4f6; }

/* Results */
.tn-score-wrap { display: flex; align-items: center; justify-content: center; gap: 24px; margin: 8px 0 24px; }
.tn-score-circle {
	width: 120px; height: 120px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-size: 30px; font-weight: 800; color: #fff;
	background: conic-gradient(var(--tn-success) 0deg, #e5e7eb 0deg);
}
.tn-score-circle span { background: #fff; color: var(--tn-text); width: 92px; height: 92px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.tn-score-stats { text-align: left; font-size: 16px; }
.tn-score-stats p { margin: 6px 0; color: var(--tn-text); }
#tn-review { text-align: left; margin: 24px 0; }
#tn-review .tn-question { margin-bottom: 14px; }

/* Article */
.tn-article { background: #fff; border: 1px solid var(--tn-border); border-radius: var(--tn-radius); padding: 36px; }
.tn-article h1 { margin: 0 0 10px; }
.tn-article-meta { color: var(--tn-muted); font-size: 14px; margin-bottom: 20px; }
.tn-article-thumb { margin-bottom: 20px; }
.tn-article-thumb img { border-radius: var(--tn-radius); }
.tn-article-content { font-size: 16px; }
.tn-article-content h2, .tn-article-content h3 { margin-top: 1.5em; }

/* Footer */
.tn-footer { background: #111827; color: #d1d5db; margin-top: 0; }
.tn-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding: 48px 16px; }
.tn-footer-logo { color: #fff; margin-bottom: 12px; }
.tn-footer-desc { font-size: 14px; color: #9ca3af; }
.tn-footer-col h4 { color: #fff; margin: 0 0 14px; font-size: 16px; }
.tn-footer-col ul { list-style: none; margin: 0; padding: 0; }
.tn-footer-col li { margin-bottom: 8px; }
.tn-footer-col a { color: #d1d5db; font-size: 14px; }
.tn-footer-col a:hover { color: #fff; }
.tn-footer-bottom { border-top: 1px solid #374151; padding: 18px 0; font-size: 13px; color: #9ca3af; text-align: center; }

/* Responsive */
@media (max-width: 900px) {
	.tn-grid-4 { grid-template-columns: repeat(2, 1fr); }
	.tn-grid-3 { grid-template-columns: repeat(2, 1fr); }
	.tn-quiz-layout { grid-template-columns: 1fr; }
	.tn-quiz-side { order: -1; position: static; max-height: none; overflow: visible; }
	.tn-nav-grid { grid-template-columns: repeat(10, 1fr); }
	.tn-footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.tn-grid-3, .tn-grid-4 { grid-template-columns: 1fr; }
	.tn-hero h1 { font-size: 26px; }
	.tn-search { display: none; }
	.tn-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--tn-border); }
	.tn-nav.open { display: block; }
	.tn-nav ul { flex-direction: column; padding: 8px; }
	.tn-menu-toggle { display: block; margin-left: auto; }
	.tn-header-inner { gap: 12px; }
	.tn-panel { padding: 32px 18px; }
	.tn-article { padding: 22px 18px; }
}

/* ============ Trang nhiệm vụ tìm mã ============ */
.tn-code-box {
	border: 1px solid #b8d4f0;
	background: #f0f6ff;
	border-radius: 12px;
	padding: 24px;
	margin: 20px 0 28px;
}
.tn-code-box h2 { color: var(--tn-primary); font-size: 18px; margin-bottom: 14px; }
.tn-code-box input[type="text"] {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid #b8d4f0;
	border-radius: 8px;
	font-size: 16px;
	margin-bottom: 12px;
}
.tn-btn-block { width: 100%; margin-bottom: 10px; }
.tn-btn-gray { background: #f3f4f6; color: #4b5563; border: 1px solid #e5e7eb; }
.tn-btn-gray:hover { background: #e5e7eb; }
.tn-code-msg { margin-top: 10px; padding: 12px 14px; border-radius: 8px; font-weight: 600; }
.tn-code-msg.ok { background: #dcfce7; color: #166534; }
.tn-code-msg.error { background: #fee2e2; color: #991b1b; }
.tn-remaining-note { margin-top: 12px; color: #6b7280; font-size: 14px; text-align: center; }
.tn-mission-quiz { background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 12px 16px; }
.tn-mission-steps-title { font-size: 22px; margin: 28px 0 16px; }
.tn-step {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 16px;
}
.tn-step h3 { font-size: 16px; margin-bottom: 10px; }
.tn-step-num { color: var(--tn-danger); }
.tn-step-inline { font-weight: 400; }
.tn-step-body p { margin: 0 0 8px; }
.tn-keyword-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.tn-keyword-pill {
	display: inline-block;
	border: 1px solid #e5e7eb;
	background: #fff;
	border-radius: 999px;
	padding: 8px 18px;
	color: var(--tn-danger);
	font-weight: 600;
}
.tn-btn-small {
	border: 1px solid #d1d5db;
	background: #fff;
	border-radius: 6px;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}
.tn-btn-small:hover { background: #f3f4f6; }
.tn-target-link { word-break: break-all; font-weight: 600; }
.tn-step-img { margin-top: 12px; }
.tn-step-img img { max-width: 100%; height: auto; border: 1px solid #e5e7eb; border-radius: 8px; }

/* Fix: thuộc tính hidden luôn được tôn trọng (không bị display đè) */
[hidden] { display: none !important; }

/* Nút "Làm bài ngay" nổi bật trên card */
.tn-card-cta {
	display: block;
	text-align: center;
	background: var(--tn-primary);
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	padding: 12px 16px;
	border-radius: 10px;
	margin-top: 14px;
	transition: background .2s, transform .2s;
}
.tn-card-body:hover .tn-card-cta { background: var(--tn-primary-dark); color: #fff; }

/* Nút làm đề ngẫu nhiên ở hero */
.tn-hero-cta { margin-top: 16px; text-align: center; }
.tn-btn-random {
	display: inline-block;
	background: #fff;
	color: var(--tn-primary);
	border: 2px solid var(--tn-primary);
	font-weight: 700;
	padding: 12px 28px;
	border-radius: 999px;
	font-size: 16px;
}
.tn-btn-random:hover { background: var(--tn-primary); color: #fff; text-decoration: none; }
.tn-term-head .tn-btn-random { margin-top: 12px; }

/* Mô tả rút gọn + nút Xem thêm */
.tn-rm-body { max-height: 92px; overflow: hidden; position: relative; transition: max-height .3s; }
.tn-rm-body::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40px;
	background: linear-gradient(transparent, #fff); pointer-events: none;
}
.tn-rm.open .tn-rm-body { max-height: 2000px; }
.tn-rm.open .tn-rm-body::after { display: none; }
.tn-rm-btn {
	background: none; border: none; padding: 8px 0 0;
	color: var(--tn-primary); font-weight: 700; font-size: 14px; cursor: pointer;
}
.tn-rm-btn:hover { text-decoration: underline; }
.tn-term-desc-bottom {
	margin-top: 32px; background: #fff; border: 1px solid var(--tn-border);
	border-radius: var(--tn-radius); padding: 24px 28px;
}
.tn-start-desc { text-align: left; margin: 0 auto 24px; max-width: 560px; color: var(--tn-muted); }
.tn-term-head .tn-rm-body::after { background: linear-gradient(transparent, var(--tn-bg)); }

/* Logo custom vừa với chiều cao header */
.tn-logo .custom-logo { max-height: 52px; width: auto; height: auto; display: block; }

/* Sidebar làm bài bám theo khi cuộn */
.tn-quiz-side { position: sticky; top: 76px; align-self: start; max-height: calc(100vh - 96px); overflow-y: auto; }

/* ============ Làm mới giao diện v1.2.6 ============ */

/* Icon SVG nội tuyến */
.tn-ic { display: inline-flex; vertical-align: -3px; }
.tn-ic svg { display: block; }
.tn-card-meta .tn-ic, .tn-meta-item .tn-ic { color: var(--tn-muted); }
.tn-logo-mark .tn-ic { vertical-align: 0; }
:focus-visible { outline: 2px solid var(--tn-primary); outline-offset: 2px; }

/* Header: bóng đổ nhẹ */
.tn-header { box-shadow: 0 1px 4px rgba(15,23,42,.07); }

/* Hero: gradient sâu hơn + họa tiết chấm mờ */
.tn-hero {
	background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 55%, #3b82f6 100%);
	position: relative; overflow: hidden;
}
.tn-hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: radial-gradient(rgba(255,255,255,.13) 1.5px, transparent 1.5px);
	background-size: 26px 26px;
}
.tn-hero .tn-container { position: relative; }
.tn-hero-search { box-shadow: 0 14px 34px rgba(0,0,0,.25); border-radius: 12px; }
.tn-hero-search input { border-radius: 12px 0 0 12px; }
.tn-hero-search button { border-radius: 0 12px 12px 0; transition: filter .15s; }
.tn-hero-search button:hover { filter: brightness(1.06); }

/* Tiêu đề section có vạch nhấn */
.tn-section-title { position: relative; padding-left: 14px; }
.tn-section-title::before {
	content: ""; position: absolute; left: 0; top: 5px; bottom: 5px; width: 4px;
	border-radius: 4px; background: linear-gradient(var(--tn-primary), var(--tn-accent));
}

/* Card: bóng mềm, hover nâng rõ hơn */
.tn-card { box-shadow: 0 1px 3px rgba(15,23,42,.06); }
.tn-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(29,78,216,.13); }
.tn-subject-card { box-shadow: 0 1px 3px rgba(15,23,42,.06); }
.tn-subject-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(29,78,216,.13); }

/* Nút chính có bóng + nhấc nhẹ khi hover */
.tn-btn-primary { box-shadow: 0 6px 16px rgba(29,78,216,.26); transition: transform .15s, box-shadow .15s, background .15s; }
.tn-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(29,78,216,.32); }

/* Icon màn hình bắt đầu: khối gradient */
.tn-start-icon {
	width: 88px; height: 88px; margin: 0 auto 16px; border-radius: 26px;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, var(--tn-primary), #3b82f6); color: #fff;
	box-shadow: 0 14px 30px rgba(29,78,216,.32);
}

/* Trang nhiệm vụ: hộp mã và bước làm nổi bật */
.tn-code-box { box-shadow: 0 14px 34px rgba(29,78,216,.1); }
.tn-step-num {
	display: inline-block; background: var(--tn-danger); color: #fff;
	font-size: 13px; font-weight: 700; padding: 4px 14px; border-radius: 999px; margin-right: 6px;
}
.tn-mission-steps-title { position: relative; padding-left: 14px; }
.tn-mission-steps-title::before {
	content: ""; position: absolute; left: 0; top: 5px; bottom: 5px; width: 4px;
	border-radius: 4px; background: linear-gradient(var(--tn-primary), var(--tn-accent));
}
