:root {
  --primary: #0f766e;
  --primary-dark: #115e59;
  --primary-soft: #ccfbf1;

  --blue: #0369a1;
  --blue-dark: #075985;
  --blue-soft: #eff6ff;
  --blue-border: #bfdbfe;

  --red: #dc2626;
  --red-dark: #b91c1c;
  --red-soft: #fef2f2;

  --green: #047857;
  --green-soft: #ecfdf5;

  --amber: #f59e0b;
  --amber-soft: #fffbeb;
  --amber-border: #fde68a;
  --amber-text: #78350f;

  --text: #0f172a;
  --muted: #475569;
  --light-muted: #64748b;
  --border: #e5e7eb;
  --bg: #f3f6f8;
  --white: #ffffff;

  --font-main: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;

  --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.13), transparent 34%),
    radial-gradient(circle at top right, rgba(3, 105, 161, 0.09), transparent 30%),
    linear-gradient(180deg, #f8fafc 0%, var(--bg) 100%);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 18px 56px;
}

/* =========================
   BRAND
========================= */

.site-brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(15, 118, 110, 0.16);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.site-brand img {
  width: 34px;
  height: 34px;
  display: block;
  object-fit: contain;
}

.site-brand span {
  line-height: 1;
}

/* =========================
   SHARED
========================= */

.section-heading {
  position: relative;
  margin-bottom: 26px;
  padding-left: 18px;
}

.section-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 5px;
  height: 54px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary), #14b8a6);
}

.section-heading span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-heading span::before {
  content: "●";
  color: #14b8a6;
  font-size: 10px;
}

.section-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: 34px;
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 900;
}

.note {
  margin: 0;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--amber-soft);
  border: 1px solid var(--amber-border);
  color: var(--amber-text);
  line-height: 1.65;
}

.hidden {
  display: none !important;
}

.btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 14px;
  border: none;
  background: var(--primary);
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(15, 118, 110, 0.22);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(15, 118, 110, 0.26);
}

.outline-btn {
  background: #ffffff;
  color: var(--primary);
  border: 1px solid rgba(15, 118, 110, 0.35);
  box-shadow: none;
}

.outline-btn:hover {
  background: #f0fdfa;
  color: var(--primary-dark);
  box-shadow: none;
}

.secondary-btn {
  background: #334155;
  box-shadow: 0 10px 18px rgba(51, 65, 85, 0.18);
}

.secondary-btn:hover {
  background: #1e293b;
}

/* =========================
   HERO
========================= */

.hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  padding: 42px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 253, 250, 0.95));
  border: 1px solid rgba(15, 118, 110, 0.12);
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
}

.hero h1 {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 0 18px;
  color: var(--text);
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 900;
}

.hero p {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 0 14px;
  color: #26384d;
  font-size: 18px;
  line-height: 1.75;
}

/* =========================
   HOME NAVIGATION
========================= */

.home-nav-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.home-nav-card {
  position: relative;
  overflow: hidden;
  display: block;
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 70%, #ecfdf5 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.home-nav-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.09);
  border-color: rgba(15, 118, 110, 0.35);
}

.home-nav-card::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -36px;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
}

.home-nav-card span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 900;
}

.home-nav-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 24px;
  line-height: 1.25;
  font-weight: 900;
}

.home-nav-card small {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

#on-tap,
#thi-thu,
#thanh-tich {
  scroll-margin-top: 24px;
}

/* =========================
   LEARNING REF LINK BOX
========================= */

.learning-link-box {
  margin-bottom: 28px;
  padding: 32px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, #ffffff 0%, #f8fafc 70%, #eff6ff 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.learning-link-box p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
}

.learning-link-group {
  margin-top: 18px;
}

.learning-link-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 900;
}

.learning-link-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin: 10px 0 12px;
}

.learning-link-row input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--text);
  font-family: var(--font-main);
  font-size: 15px;
}

.learning-link-row button {
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 14px;
  border: none;
  background: var(--blue);
  color: #ffffff;
  font-family: var(--font-main);
  font-weight: 900;
  cursor: pointer;
}

.learning-link-row button:hover {
  background: var(--blue-dark);
}

.learning-link-note {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--amber-soft);
  border: 1px solid var(--amber-border);
  color: var(--amber-text) !important;
}

.invite-link-group {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.invite-note {
  background: var(--green-soft) !important;
  border-color: rgba(15, 118, 110, 0.22) !important;
  color: #065f46 !important;
}

/* =========================
   RULE BOX
========================= */

.rule-box {
  margin-bottom: 28px;
  padding: 36px 30px 30px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, #ffffff 0%, #f8fafc 75%, #eff6ff 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.rule-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 8px 0 20px;
}

.rule-grid div {
  position: relative;
  padding: 20px;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.rule-grid div::before {
  content: "";
  display: block;
  width: 36px;
  height: 4px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--primary);
}

.rule-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.rule-grid span {
  display: block;
  color: var(--primary);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

/* =========================
   MODE CARDS
========================= */

.mode-section {
  margin-bottom: 28px;
}

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

.card {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(15, 118, 110, 0.28);
}

.card::after {
  content: "";
  position: absolute;
  right: -55px;
  bottom: -55px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
}

.card-tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
}

.card h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 900;
}

.card p {
  margin: 0 0 18px;
  color: #334155;
  font-size: 16px;
  line-height: 1.75;
}

.card ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 24px;
  padding: 0;
  list-style: none;
}

.card li {
  position: relative;
  padding: 12px 14px 12px 42px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #edf2f7;
  color: #334155;
  font-weight: 700;
}

.card li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  transform: translateY(-50%);
}

.card-actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

/* =========================
   GUIDE BOX
========================= */

.guide-box {
  margin-top: 34px;
  padding: 36px 34px 34px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.guide-grid > div {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 24px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.guide-grid > div::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
}

.guide-grid strong {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.guide-grid h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  color: var(--text);
  font-size: 21px;
  line-height: 1.35;
  font-weight: 900;
}

.guide-grid p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

/* =========================
   DAILY MISSIONS
========================= */

.daily-mission-box {
  margin-bottom: 28px;
  padding: 34px;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.daily-mission-box .section-heading {
  margin-bottom: 24px;
}

.daily-mission-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.daily-mission-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 22px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.daily-mission-card::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -38px;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.07);
}

.daily-mission-card.mission-completed {
  background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%);
  border-color: rgba(16, 185, 129, 0.45);
}

.mission-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.mission-top strong {
  display: block;
  color: var(--text);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
}

.mission-top span {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--primary);
  border: 1px solid rgba(15, 118, 110, 0.18);
  font-size: 13px;
  font-weight: 900;
}

.daily-mission-card p {
  position: relative;
  z-index: 1;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.mission-progress-info {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.mission-progress-bar {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 10px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.mission-progress-bar div {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), #14b8a6);
}

.daily-mission-card small {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--light-muted);
  font-size: 13px;
  font-weight: 800;
}

/* =========================
   QUESTION BANK PROGRESS
========================= */

.question-progress-box,
.exam-history-box,
.leaderboard-box {
  margin-bottom: 28px;
  padding: 34px;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.exam-history-box {
  margin-top: 42px;
}

.question-progress-overview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.question-progress-overview div {
  padding: 22px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%);
  border: 1px solid rgba(15, 118, 110, 0.18);
}

.question-progress-overview strong {
  display: block;
  margin-bottom: 6px;
  color: var(--primary);
  font-size: 34px;
  font-weight: 900;
}

.question-progress-overview span {
  color: var(--muted);
  font-weight: 800;
}

.question-progress-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.question-progress-card {
  padding: 22px;
  border-radius: 20px;
  background: #f8fafc;
  border: 1px solid var(--border);
}

.progress-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.progress-card-top strong {
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.progress-card-top span {
  color: var(--primary);
  font-weight: 900;
}

.bank-progress-bar {
  height: 12px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: #dbeafe;
  overflow: hidden;
}

.bank-progress-bar div {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), #14b8a6);
}

.question-progress-card small {
  color: var(--light-muted);
  font-weight: 800;
}

/* =========================
   EXAM HISTORY
========================= */

.exam-history-list {
  display: grid;
  gap: 12px;
}

.exam-history-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid var(--border);
}

.exam-history-item strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.exam-history-item span {
  color: var(--light-muted);
  font-size: 14px;
}

.history-score {
  font-size: 22px;
  font-weight: 900;
}

.history-pass {
  color: var(--green);
}

.history-fail {
  color: var(--red);
}

.history-status {
  min-width: 96px;
  padding: 8px 12px;
  border-radius: 999px;
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--border);
  font-weight: 900;
}

/* =========================
   LEADERBOARD
========================= */

.leaderboard-list {
  display: grid;
  gap: 12px;
}

.leaderboard-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.leaderboard-rank {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.leaderboard-info strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.leaderboard-info span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.leaderboard-score {
  color: var(--primary);
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.leaderboard-loading {
  margin: 0;
  color: var(--muted);
}

/* =========================
   GAMIFICATION DASHBOARD
========================= */

.profile-box {
  margin-bottom: 28px;
  padding: 32px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.profile-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.profile-action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.share-achievement-btn,
.certificate-btn {
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.share-achievement-btn {
  border: none;
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(15, 118, 110, 0.22);
}

.share-achievement-btn:hover,
.share-achievement-btn.share-copied {
  background: var(--primary-dark);
}

.certificate-btn {
  border: 1px solid rgba(15, 118, 110, 0.3);
  background: #ffffff;
  color: var(--primary);
}

.certificate-btn:hover {
  background: var(--green-soft);
}

.profile-main {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 22px;
  align-items: stretch;
}

.level-card {
  padding: 24px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, #ecfdf5 0%, #ffffff 65%, #eff6ff 100%);
  border: 1px solid rgba(15, 118, 110, 0.18);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.level-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.level-top span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-weight: 800;
}

.level-top strong {
  display: block;
  color: var(--primary);
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
}

.level-top p {
  margin: 8px 0 0;
  color: #334155;
  font-weight: 700;
}

.level-badge {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(15, 118, 110, 0.28);
}

.exp-info {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.exp-bar {
  height: 14px;
  border-radius: 999px;
  background: #dbeafe;
  overflow: hidden;
}

.exp-bar div {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), #14b8a6);
  transition: width 0.3s ease;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.stats-grid div {
  padding: 18px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid var(--border);
}

.stats-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--light-muted);
  font-size: 14px;
  font-weight: 800;
}

.stats-grid strong {
  display: block;
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
}

/* =========================
   BADGES
========================= */

.badge-section {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.badge-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 16px;
}

.badge-header-row h3,
.badge-section h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 23px;
  font-weight: 900;
}

.badge-header-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.badge-count-pill {
  flex-shrink: 0;
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--primary);
  border: 1px solid rgba(15, 118, 110, 0.18);
  font-size: 14px;
  font-weight: 900;
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.badge-item {
  padding: 16px;
  border-radius: 18px;
  background: var(--amber-soft);
  border: 1px solid var(--amber-border);
}

.badge-item span {
  display: block;
  margin-bottom: 8px;
  font-size: 28px;
}

.badge-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--amber-text);
  font-size: 16px;
  font-weight: 900;
}

.badge-item small {
  display: block;
  color: #92400e;
  line-height: 1.5;
}

.empty-badge {
  margin: 0;
  padding: 16px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  color: var(--muted);
}

.badge-journey-section {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.badge-journey-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.badge-journey-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.badge-journey-card::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -36px;
  width: 100px;
  height: 100px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.06);
}

.badge-journey-card.badge-unlocked {
  background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%);
  border-color: rgba(16, 185, 129, 0.45);
}

.badge-journey-card.badge-locked {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.badge-journey-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.badge-journey-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f1f5f9;
  font-size: 24px;
}

.badge-unlocked .badge-journey-icon {
  background: #d1fae5;
}

.badge-journey-top strong {
  display: block;
  color: var(--text);
  font-size: 17px;
  line-height: 1.3;
  font-weight: 900;
}

.badge-journey-top span {
  display: block;
  margin-top: 3px;
  color: var(--light-muted);
  font-size: 13px;
  font-weight: 800;
}

.badge-unlocked .badge-journey-top span {
  color: var(--green);
}

.badge-journey-card p {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.badge-progress-info {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.badge-progress-bar {
  position: relative;
  z-index: 1;
  height: 10px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.badge-progress-bar div {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), #14b8a6);
  transition: width 0.3s ease;
}

.badge-journey-card small {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--light-muted);
  line-height: 1.45;
}

.badge-unlocked small {
  color: var(--green);
  font-weight: 800;
}

/* =========================
   EXAM / PRACTICE PAGE
========================= */

.exam-container {
  max-width: 1050px;
}

.exam-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  margin-bottom: 22px;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-left: 8px solid var(--primary);
  box-shadow: var(--shadow-soft);
}

.practice-header {
  border-left-color: var(--blue);
}

.exam-header h1 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 900;
}

#progressText,
#practiceProgress,
#wrongProgress {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.timer-box,
.practice-score-box {
  min-width: 230px;
  padding: 18px;
  border-radius: 18px;
  text-align: center;
}

.timer-box {
  background: var(--red-soft);
  border: 1px solid #fecaca;
}

.timer-box span,
.practice-score-box span {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 800;
}

.timer-box span {
  color: #991b1b;
}

.timer-box strong {
  display: block;
  color: var(--red);
  font-size: 34px;
  letter-spacing: -0.02em;
  font-weight: 900;
}

.practice-score-box {
  background: var(--blue-soft);
  border: 1px solid var(--blue-border);
}

.practice-score-box span {
  color: #1d4ed8;
}

.practice-score-box strong {
  display: block;
  color: #1e40af;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 900;
}

.question-box {
  margin-bottom: 16px;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.question-box h2 {
  margin: 0 0 20px;
  color: var(--text);
  font-size: 24px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  font-weight: 800;
}

.question-box h3 {
  margin-top: 0;
  color: var(--text);
  line-height: 1.5;
  font-weight: 800;
}

.option {
  display: block;
  margin: 12px 0;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  cursor: pointer;
  transition: all 0.18s ease;
}

.option:hover {
  background: #f0fdfa;
  border-color: var(--primary);
}

.option input {
  margin-right: 10px;
  transform: scale(1.1);
}

.option:has(input:checked) {
  background: var(--primary-soft);
  border-color: var(--primary);
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.08);
}

.actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
}

.actions button {
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 14px;
  border: none;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

#prevBtn {
  background: #e5e7eb;
  color: #111827;
}

#prevBtn:hover {
  background: #d1d5db;
}

#prevBtn:disabled,
#nextBtn:disabled,
#checkBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#nextBtn {
  background: var(--primary);
  color: #ffffff;
}

#nextBtn:hover {
  background: var(--primary-dark);
}

#submitBtn {
  background: var(--red);
  color: #ffffff;
}

#submitBtn:hover {
  background: var(--red-dark);
}

#checkBtn {
  background: var(--blue);
  color: #ffffff;
}

#checkBtn:hover {
  background: var(--blue-dark);
}

#clearBtn {
  background: #334155;
  color: #ffffff;
}

#clearBtn:hover {
  background: #1e293b;
}

.practice-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 14px;
  background: #e5e7eb;
  color: #111827;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
}

.practice-home-btn:hover {
  background: #d1d5db;
}

.exam-note {
  color: var(--light-muted);
  font-size: 14px;
  text-align: center;
}

.feedback-box {
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  line-height: 1.6;
}

.feedback-box h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.feedback-box p {
  margin: 6px 0;
}

.feedback-correct {
  background: var(--green-soft);
  border: 1px solid #10b981;
  color: #064e3b;
}

.feedback-wrong {
  background: var(--red-soft);
  border: 1px solid #ef4444;
  color: #7f1d1d;
}

.practice-correct-option {
  background: var(--green-soft) !important;
  border-color: #10b981 !important;
}

.practice-wrong-option {
  background: var(--red-soft) !important;
  border-color: #ef4444 !important;
}

/* =========================
   RESULT PAGE
========================= */

.result-hero {
  border-top: 8px solid var(--primary);
}

.result-card {
  margin-top: 20px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 22px 0;
}

.result-grid div {
  padding: 18px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid var(--border);
}

.result-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--light-muted);
  font-size: 14px;
  font-weight: 800;
}

.result-grid strong {
  color: var(--text);
  font-size: 24px;
  font-weight: 900;
}

.final-score {
  margin: 22px 0;
  padding: 24px;
  border-radius: 18px;
  background: var(--blue-soft);
  border: 1px solid var(--blue-border);
}

.final-score span {
  display: block;
  margin-bottom: 8px;
  color: #1d4ed8;
  font-weight: 800;
}

.final-score strong {
  color: #1e40af;
  font-size: 40px;
  letter-spacing: -0.02em;
  font-weight: 900;
}

.final-conclusion {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  font-size: 24px;
}

.result-pass {
  color: var(--green);
  font-weight: 900;
}

.result-fail {
  color: var(--red);
  font-weight: 900;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.review-section h2 {
  margin-top: 30px;
  font-weight: 900;
}

.review-item {
  margin-bottom: 18px;
}

.review-options {
  margin: 14px 0;
}

.review-option {
  margin: 8px 0;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  line-height: 1.55;
}

.correct-option {
  border-color: #10b981;
  background: var(--green-soft);
}

.wrong-option {
  border-color: #ef4444;
  background: var(--red-soft);
}

/* =========================
   CUSTOM MODAL
========================= */

.velis-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(6px);
  animation: velisFadeIn 0.18s ease;
}

.velis-modal {
  position: relative;
  width: min(520px, 100%);
  padding: 30px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.12), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(15, 118, 110, 0.16);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
  text-align: left;
  animation: velisPopIn 0.2s ease;
}

.velis-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.velis-modal-close:hover {
  background: #e2e8f0;
}

.velis-modal-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 18px;
  background: var(--green-soft);
  border: 1px solid rgba(15, 118, 110, 0.18);
  font-size: 30px;
}

.velis-modal h3 {
  margin: 0 42px 12px 0;
  color: var(--text);
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 900;
}

.velis-modal p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.velis-modal-btn {
  width: 100%;
  min-height: 50px;
  margin-top: 22px;
  border: none;
  border-radius: 16px;
  background: var(--primary);
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.24);
}

.velis-modal-btn:hover {
  background: var(--primary-dark);
}

.velis-modal-hide {
  animation: velisFadeOut 0.18s ease forwards;
}

@keyframes velisFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes velisFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes velisPopIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* =========================
   GAME POPUP - EXP + BADGE
========================= */

#toastStack,
.toast-stack,
#velisToastStack,
.velis-toast-stack,
#velisBadgeToastStack,
.velis-badge-toast-stack {
  position: fixed;
  left: 50%;
  top: 24px;
  right: auto;
  bottom: auto;
  z-index: 999999;
  width: min(420px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  transform: translateX(-50%);
  pointer-events: none;
}

.exp-toast,
.velis-exp-toast,
.velis-badge-toast {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 56px 1fr 32px;
  align-items: center;
  gap: 14px;
  padding: 16px 14px 16px 16px;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 0%, rgba(20, 184, 166, 0.22), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 253, 250, 0.96));
  border: 1px solid rgba(15, 118, 110, 0.22);
  box-shadow:
    0 24px 70px rgba(15, 23, 42, 0.24),
    0 4px 14px rgba(15, 118, 110, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: var(--text);
  opacity: 0;
  transform: translateY(-18px) scale(0.94);
  animation: gamePopupIn 0.34s cubic-bezier(0.2, 0.9, 0.2, 1.15) forwards;
  pointer-events: auto;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.exp-toast::before,
.velis-exp-toast::before,
.velis-badge-toast::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #14b8a6, #f59e0b);
  opacity: 0.08;
}

.exp-toast::after,
.velis-exp-toast::after,
.velis-badge-toast::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 48px;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.13);
  filter: blur(1px);
  z-index: -1;
}

.exp-toast.hide,
.exp-toast.toast-hide,
.velis-exp-toast.toast-hide,
.velis-exp-toast.hide,
.velis-badge-toast.toast-hide,
.velis-badge-toast.hide {
  animation: gamePopupOut 0.22s ease forwards;
}

.exp-toast-icon,
.badge-toast-icon,
.game-toast-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.65), transparent 26%),
    linear-gradient(135deg, var(--primary), #14b8a6);
  color: #ffffff;
  font-size: 27px;
  font-weight: 900;
  box-shadow:
    0 14px 26px rgba(15, 118, 110, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.exp-toast-content,
.badge-toast-content,
.game-toast-content {
  min-width: 0;
}

.exp-toast-title,
.game-toast-title,
.velis-exp-toast strong,
.badge-toast-content strong {
  display: block;
  margin: 0 0 4px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.18;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.exp-toast-text,
.game-toast-text,
.velis-exp-toast span,
.badge-toast-content p {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 750;
}

.badge-toast-content small {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.13);
  color: #92400e;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.game-toast-close,
.badge-toast-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #64748b;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.game-toast-close:hover,
.badge-toast-close:hover {
  background: rgba(15, 23, 42, 0.12);
  color: #0f172a;
  transform: scale(1.06);
}

.velis-badge-toast {
  background:
    radial-gradient(circle at 12% 0%, rgba(245, 158, 11, 0.24), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 235, 0.96));
  border-color: rgba(245, 158, 11, 0.28);
  box-shadow:
    0 28px 76px rgba(15, 23, 42, 0.26),
    0 4px 16px rgba(245, 158, 11, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.velis-badge-toast .badge-toast-icon,
.velis-badge-toast .game-toast-icon {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.7), transparent 26%),
    linear-gradient(135deg, var(--amber), #f97316);
  box-shadow:
    0 14px 26px rgba(245, 158, 11, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

@keyframes gamePopupIn {
  0% {
    opacity: 0;
    transform: translateY(-18px) scale(0.94);
  }

  70% {
    opacity: 1;
    transform: translateY(4px) scale(1.015);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes gamePopupOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(-12px) scale(0.96);
  }
}

@media (prefers-reduced-motion: reduce) {
  .exp-toast,
  .velis-exp-toast,
  .velis-badge-toast,
  .exp-toast.hide,
  .exp-toast.toast-hide,
  .velis-exp-toast.toast-hide,
  .velis-exp-toast.hide,
  .velis-badge-toast.toast-hide,
  .velis-badge-toast.hide {
    animation-duration: 0.01ms;
  }
}

/* =========================
   FOOTER / ZALO CTA
========================= */

.site-footer {
  margin-top: 34px;
  padding: 34px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.16), transparent 34%),
    linear-gradient(135deg, #0f172a 0%, #115e59 100%);
  color: #ffffff;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr;
  gap: 28px;
  align-items: center;
}

.footer-logo {
  margin-bottom: 18px;
  color: var(--primary);
}

.footer-brand h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 34px;
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 900;
}

.footer-brand p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.75;
}

.footer-cta {
  padding: 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.footer-cta span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  font-weight: 800;
}

.footer-cta strong {
  display: block;
  margin-bottom: 18px;
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 900;
}

.zalo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 13px 20px;
  border-radius: 16px;
  background: #ffffff;
  color: var(--primary);
  text-decoration: none;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.zalo-btn::before {
  content: "💬";
  margin-right: 8px;
}

.zalo-btn:hover {
  transform: translateY(-2px);
  background: var(--green-soft);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
}

.footer-bottom {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 1.6;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {
  .daily-mission-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero {
    padding: 30px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .home-nav-box,
  .quick-actions-grid,
  .profile-main,
  .exam-grid,
  .rule-grid,
  .guide-grid,
  .result-grid,
  .stats-grid,
  .badge-grid,
  .badge-journey-grid,
  .daily-mission-grid,
  .question-progress-overview,
  .question-progress-grid {
    grid-template-columns: 1fr;
  }

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

  .timer-box,
  .practice-score-box {
    width: 100%;
  }

  .card-actions {
    flex-direction: column;
  }

  .card-actions .btn {
    width: 100%;
  }

  .guide-grid > div {
    min-height: auto;
  }

  .profile-title-row,
  .badge-header-row {
    flex-direction: column;
  }

  .profile-action-row {
    width: 100%;
    justify-content: flex-start;
  }

  .leaderboard-item {
    grid-template-columns: 46px 1fr;
  }

  .leaderboard-score {
    grid-column: 2;
  }

  .exam-history-item {
    grid-template-columns: 1fr;
  }

  .history-status {
    width: fit-content;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-brand h2 {
    font-size: 28px;
  }

  .footer-cta strong {
    font-size: 26px;
  }
}

@media (max-width: 700px) {
  .learning-link-row {
    grid-template-columns: 1fr;
  }

  .learning-link-row button {
    width: 100%;
  }

  .share-achievement-btn,
  .certificate-btn {
    width: 100%;
  }

  .profile-action-row {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  #toastStack,
  .toast-stack,
  #velisToastStack,
  .velis-toast-stack,
  #velisBadgeToastStack,
  .velis-badge-toast-stack {
    left: 12px;
    right: 12px;
    top: 12px;
    bottom: auto;
    width: auto;
    transform: none;
  }

  .exp-toast,
  .velis-exp-toast,
  .velis-badge-toast {
    grid-template-columns: 48px 1fr 30px;
    gap: 12px;
    padding: 13px 12px;
    border-radius: 20px;
    max-width: none;
  }

  .exp-toast-icon,
  .badge-toast-icon,
  .game-toast-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 16px;
    font-size: 23px;
  }

  .exp-toast-title,
  .game-toast-title,
  .velis-exp-toast strong,
  .badge-toast-content strong {
    font-size: 17px;
  }

  .exp-toast-text,
  .game-toast-text,
  .velis-exp-toast span,
  .badge-toast-content p {
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 20px 12px 40px;
  }

  .hero,
  .profile-box,
  .learning-link-box,
  .rule-box,
  .card,
  .question-box,
  .guide-box,
  .daily-mission-box,
  .question-progress-box,
  .exam-history-box,
  .leaderboard-box {
    padding: 22px;
    border-radius: 20px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }

  .section-heading {
    padding-left: 14px;
    margin-bottom: 22px;
  }

  .section-heading::before {
    height: 48px;
  }

  .section-heading h2,
  .card h2 {
    font-size: 25px;
  }

  .section-heading span {
    padding: 6px 10px;
    font-size: 11px;
  }

  .level-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .level-badge {
    width: 64px;
    height: 64px;
    font-size: 18px;
  }

  .exp-info {
    flex-direction: column;
  }

  .actions,
  .practice-actions,
  .result-actions {
    flex-direction: column;
  }

  .actions button,
  .practice-home-btn,
  .result-actions .btn {
    width: 100%;
  }

  .daily-mission-card {
    min-height: auto;
  }

  .mission-top {
    flex-direction: column;
  }

  .site-footer {
    padding: 24px;
    border-radius: 22px;
  }

  .footer-brand h2 {
    font-size: 25px;
  }

  .footer-brand p {
    font-size: 15px;
  }

  .velis-modal {
    padding: 24px;
    border-radius: 22px;
  }

  .velis-modal h3 {
    font-size: 22px;
  }

  .velis-modal p {
    font-size: 15px;
  }
}

/* =========================
   PRINT
========================= */

@media print {
  body {
    background: #ffffff;
  }

  .btn,
  .review-section,
  .result-actions,
  .guide-box,
  .profile-box,
  .learning-link-box,
  .home-nav-box,
  .daily-mission-box,
  .question-progress-box,
  .exam-history-box,
  .leaderboard-box,
  .site-footer {
    display: none !important;
  }

  .hero {
    box-shadow: none;
    border: 1px solid #000;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }
}

/* =========================
   SMART REVIEW BOX
========================= */

.smart-review-box {
  margin-bottom: 34px;
  padding: 34px;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.smart-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.smart-review-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  align-items: flex-start;
  min-height: 150px;
  padding: 22px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e5e7eb;
  color: #0f172a;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.smart-review-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.09);
}

.smart-review-card::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -38px;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.07);
}

.smart-review-icon {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #0f766e;
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(15, 118, 110, 0.22);
}

.smart-review-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 900;
}

.smart-review-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #475569;
  font-size: 15px;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .smart-review-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .smart-review-box {
    padding: 22px;
    border-radius: 20px;
  }

  .smart-review-card {
    grid-template-columns: 46px 1fr;
    min-height: auto;
    padding: 18px;
  }

  .smart-review-icon {
    width: 46px;
    height: 46px;
    font-size: 17px;
  }

  .smart-review-card strong {
    font-size: 18px;
  }
}

.site-brand {
  text-decoration: none;
}

/* =========================
   FLOATING VELISER POPUP
========================= */

.veliser-floating-btn {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 9998;
  border: 0;
  padding: 13px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #063b45, #0f766e);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.veliser-floating-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.32);
  filter: brightness(1.06);
}

.veliser-floating-btn:active {
  transform: translateY(-1px) scale(0.98);
}

.veliser-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 22px;
  background: rgba(2, 8, 23, 0.58);
  backdrop-filter: blur(8px);
}

.veliser-popup-overlay.hidden {
  display: none;
}

.veliser-popup {
  position: relative;
  width: min(520px, 100%);
  padding: 34px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.35), transparent 42%),
    linear-gradient(135deg, #071a2f, #0f766e);
  color: #ffffff;
  box-shadow: 0 34px 100px rgba(2, 8, 23, 0.42);
  overflow: hidden;
  animation: veliserPopupIn 0.28s ease both;
}

.veliser-popup::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

.veliser-popup-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.veliser-popup-close:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: rotate(90deg);
}

.veliser-popup-logo {
  width: fit-content;
  margin-bottom: 28px;
  background: rgba(255, 255, 255, 0.96);
  text-decoration: none;
}

.veliser-popup-content {
  position: relative;
  z-index: 1;
}

.veliser-popup-label {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ccfbf1;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.veliser-popup h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.veliser-popup p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  line-height: 1.75;
}

.veliser-contact-box {
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.veliser-contact-box span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  font-weight: 800;
}

.veliser-contact-box strong {
  display: block;
  margin: 8px 0 18px;
  color: #ffffff;
  font-size: 36px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.veliser-zalo-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 14px 18px;
  border-radius: 20px;
  background: #ffffff;
  color: #0f766e;
  font-size: 17px;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(2, 8, 23, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.veliser-zalo-btn::before {
  content: "💬";
  margin-right: 10px;
}

.veliser-zalo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(2, 8, 23, 0.24);
}

@keyframes veliserPopupIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 768px) {
  .veliser-floating-btn {
    left: 14px;
    bottom: 14px;
    padding: 12px 16px;
    font-size: 12px;
  }

  .veliser-popup {
    padding: 26px;
    border-radius: 28px;
  }

  .veliser-popup h2 {
    font-size: 36px;
  }

  .veliser-contact-box strong {
    font-size: 32px;
  }
}

/* =========================
   FIX: GUIDE BOX + LEARNING LINK SPACING
========================= */

.guide-box {
  margin-bottom: 28px;
}

#learningRefBox {
  margin-top: 28px;
}

.learning-link-box {
  margin-top: 0;
}

/* Nếu learning-link-box nằm ngay sau guide-box thì luôn có khoảng cách */
.guide-box + #learningRefBox,
.guide-box + .learning-link-box {
  margin-top: 28px;
}


/* =========================
   FIX: FLOATING VELISER CTA MOBILE
========================= */

.veliser-floating-btn {
  position: fixed !important;
  left: 18px !important;
  bottom: calc(18px + env(safe-area-inset-bottom)) !important;
  z-index: 9998 !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;

  width: auto !important;
  max-width: calc(100vw - 36px) !important;
  min-height: 44px !important;
  padding: 12px 18px !important;

  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #071a2f, #0f766e) !important;
  color: #ffffff !important;

  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;

  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;

  box-shadow: 0 16px 38px rgba(2, 8, 23, 0.28) !important;
  transform: translateZ(0);
}

.veliser-floating-btn::before {
  content: "✦";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 11px;
}

.veliser-floating-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.veliser-floating-btn:active {
  transform: scale(0.98);
}


/* =========================
   FIX: POPUP MOBILE
========================= */

.veliser-popup-overlay {
  padding: 18px !important;
  align-items: center !important;
}

.veliser-popup {
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}


/* =========================
   MOBILE ONLY
========================= */

@media (max-width: 768px) {
  .guide-box {
    margin-bottom: 22px;
  }

  #learningRefBox {
    margin-top: 22px;
  }

  .guide-box + #learningRefBox,
  .guide-box + .learning-link-box {
    margin-top: 22px;
  }

  .veliser-floating-btn {
    left: 14px !important;
    bottom: calc(18px + env(safe-area-inset-bottom)) !important;
    min-height: 40px !important;
    padding: 10px 14px !important;
    font-size: 11px !important;
    box-shadow: 0 12px 30px rgba(2, 8, 23, 0.24) !important;
  }

  .veliser-floating-btn::before {
    width: 16px;
    height: 16px;
    font-size: 10px;
  }

  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }
}

/* =========================
   EXAM REAL TEST UI ONLY
   Không tác động trang luyện tập / kết quả
========================= */

.exam-real-container {
  max-width: 1320px;
}

.exam-real-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
  padding: 22px 24px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid #d8e2ec;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.exam-real-top-left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.exam-real-number {
  flex: 0 0 auto;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(180deg, #f0a739, #c8780b);
  color: #ffffff;
  font-size: 38px;
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 10px 22px rgba(194, 112, 9, 0.22);
}

.exam-real-title-block {
  min-width: 0;
}

.exam-real-brand {
  margin-bottom: 10px;
}

.exam-real-topbar #examTitle {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 25px;
  line-height: 1.2;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.exam-real-topbar #progressText {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.exam-real-timer-card {
  flex: 0 0 230px;
  padding: 14px 16px;
  border-radius: 17px;
  background: linear-gradient(135deg, #f59e0b, #ea7a0a);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(234, 122, 10, 0.25);
}

.exam-real-timer-card span,
.exam-real-timer-card small {
  display: block;
  font-weight: 850;
}

.exam-real-timer-card span {
  font-size: 13px;
  opacity: 0.95;
}

.exam-real-timer-card strong {
  display: block;
  margin: 5px 0 3px;
  font-size: 32px;
  line-height: 1;
  font-weight: 950;
}

.exam-real-timer-card small {
  font-size: 12px;
  opacity: 0.9;
}

.exam-real-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 22px;
  align-items: start;
}

.exam-real-main,
.exam-real-side {
  min-width: 0;
}

.exam-real-question-box {
  margin-bottom: 0;
  padding: 26px;
  border-radius: 22px;
  border: 1px solid #d8e2ec;
}

.exam-real-question-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.exam-real-question-head span {
  display: inline-flex;
  padding: 8px 13px;
  border-radius: 999px;
  background: #eef6ff;
  color: #1e3a5f;
  font-size: 13px;
  font-weight: 900;
}

.exam-real-question-head strong {
  color: #b45309;
  font-size: 18px;
  font-weight: 950;
}

.exam-real-question-box #questionText {
  font-size: 23px;
  line-height: 1.45;
}

.exam-real-options .exam-real-option {
  margin: 11px 0;
  padding: 15px 17px;
  border-radius: 14px;
}

.exam-real-actions {
  justify-content: center;
  flex-wrap: wrap;
}

.exam-real-side-card {
  position: sticky;
  top: 18px;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid #d8e2ec;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.exam-real-side-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.exam-real-side-head strong {
  color: var(--text);
  font-size: 17px;
  font-weight: 950;
}

.exam-real-side-head span {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 950;
}

.exam-real-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 14px;
  color: var(--light-muted);
  font-size: 12px;
  font-weight: 800;
}

.exam-real-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.exam-real-legend i {
  width: 11px;
  height: 11px;
  display: inline-block;
  border-radius: 3px;
}

.legend-current {
  background: #f59e0b;
}

.legend-answered {
  background: #0ea5e9;
}

.exam-real-palette {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.exam-real-palette-col {
  display: grid;
  gap: 7px;
}

.exam-real-palette-row {
  display: grid;
  grid-template-columns: 56px repeat(4, 1fr);
  gap: 4px;
  align-items: center;
  padding: 3px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.exam-real-palette-row.is-current {
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.16);
}

.exam-real-question-jump,
.exam-real-choice {
  min-height: 28px;
  border-radius: 7px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.exam-real-question-jump {
  padding: 0 5px;
  text-align: left;
  white-space: nowrap;
}

.exam-real-choice {
  padding: 0;
  text-align: center;
}

.exam-real-choice.selected {
  border-color: #0284c7;
  background: #0ea5e9;
  color: #ffffff;
}

.exam-real-palette-row.is-current .exam-real-question-jump {
  border-color: #f59e0b;
  background: #fff7ed;
  color: #92400e;
}

.exam-real-side-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.exam-real-side-summary div {
  padding: 12px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  text-align: center;
}

.exam-real-side-summary span {
  display: block;
  margin-bottom: 4px;
  color: var(--light-muted);
  font-size: 12px;
  font-weight: 850;
}

.exam-real-side-summary strong {
  display: block;
  color: var(--text);
  font-size: 22px;
  font-weight: 950;
}

.exam-real-submit-side {
  width: 100%;
  min-height: 46px;
  margin-top: 14px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #1d4ed8, #1727b8);
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 950;
  cursor: pointer;
}

.exam-real-submit-side:hover {
  filter: brightness(1.05);
}

.exam-real-note {
  margin-top: 18px;
}

@media (max-width: 992px) {
  .exam-real-shell {
    grid-template-columns: 1fr;
  }

  .exam-real-side-card {
    position: static;
  }
}

@media (max-width: 768px) {
  .exam-real-topbar {
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
  }

  .exam-real-top-left {
    align-items: flex-start;
  }

  .exam-real-number {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    font-size: 30px;
  }

  .exam-real-topbar #examTitle {
    font-size: 21px;
  }

  .exam-real-timer-card {
    flex-basis: auto;
  }

  .exam-real-question-box {
    padding: 18px;
  }

  .exam-real-question-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .exam-real-question-box #questionText {
    font-size: 20px;
  }

  .exam-real-palette {
    grid-template-columns: 1fr;
  }

  .exam-real-palette-row {
    grid-template-columns: 58px repeat(4, 1fr);
  }
}

/* =========================
   EXAM UI FIX - ONLY THI PAGE
   20260508-exam-ui-4
========================= */

/* Ẩn số câu lớn màu cam trên header */
.exam-real-number,
#currentQuestionBadge {
  display: none !important;
}

/* Khi ẩn badge thì khối header tự dồn gọn lại */
.exam-real-top-left {
  align-items: flex-start;
}

/* Ẩn chữ Câu 1 / Câu 2 / Câu 3 ngang hàng với Phần I: Cơ sở */
.exam-real-question-head strong,
#questionIndexText {
  display: none !important;
}

/* Phần head câu hỏi chỉ giữ lại pill Phần I / Phần II */
.exam-real-question-head {
  justify-content: flex-start !important;
}

/* Làm Câu x/40 ở header lớn hơn, dễ nhìn hơn */
.exam-real-topbar #progressText {
  margin-top: 4px;
  line-height: 1.4;
}

.exam-real-topbar #progressText strong {
  display: block;
  margin-bottom: 6px;
  color: #334155;
  font-size: 15px;
  font-weight: 800;
}

.exam-real-topbar #progressText .exam-real-progress-main {
  display: block;
  margin-bottom: 4px;
  color: #2563eb;
  font-size: 28px;
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.exam-real-topbar #progressText .exam-real-progress-meta {
  display: block;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

/* Box đồng hồ chỉ còn tiêu đề + đồng hồ */
.exam-real-timer-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 108px;
}

.exam-real-timer-card span {
  font-size: 15px;
  font-weight: 900;
}

.exam-real-timer-card strong {
  margin-top: 8px;
  margin-bottom: 0;
  font-size: 38px;
}

.exam-real-timer-card small,
#examTimeCompact {
  display: none !important;
}

/* Mobile */
@media (max-width: 768px) {
  .exam-real-topbar #progressText .exam-real-progress-main {
    font-size: 24px;
  }

  .exam-real-topbar #progressText .exam-real-progress-meta {
    font-size: 14px;
  }

  .exam-real-timer-card {
    min-height: 92px;
  }

  .exam-real-timer-card strong {
    font-size: 34px;
  }
}