@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Flex:opsz,wght@6..72,400..800&display=swap');

:root {
  color-scheme: dark;
  --bg: #02060d;
  --panel: rgba(8, 15, 28, 0.9);
  --panel-soft: rgba(13, 23, 40, 0.72);
  --line: rgba(174, 199, 255, 0.18);
  --line-strong: rgba(183, 203, 255, 0.33);
  --text: #f6f8ff;
  --muted: #aeb7cb;
  --faint: #6f7890;
  --violet: #9ca7ff;
  --blue: #72c8ff;
  --green: #6ee7bb;
  --amber: #f5a55f;
  --orange: #ff7d4f;
  --red: #ff5e67;
  --plum: #b678ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
  --radius: 8px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font-sans: "Google Sans Flex", "Google Sans", sans-serif;
  --font-admin: "Google Sans Flex", "Google Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(circle at 72% 28%, rgba(77, 168, 142, 0.14), transparent 31%),
    radial-gradient(circle at 25% 25%, rgba(119, 132, 255, 0.17), transparent 33%),
    radial-gradient(circle at 50% 88%, rgba(255, 125, 79, 0.1), transparent 28%),
    var(--bg);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.page {
  display: grid;
  place-items: center;
  padding: clamp(12px, 2vw, 28px);
}

.screen {
  position: relative;
  width: min(1180px, calc(100vw - 24px));
  min-height: min(760px, calc(100vh - 24px));
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 80% 48%, rgba(34, 128, 146, 0.13), transparent 26%),
    radial-gradient(circle at 42% 0%, rgba(120, 128, 255, 0.08), transparent 30%),
    linear-gradient(145deg, rgba(6, 14, 27, 0.98), rgba(3, 9, 19, 0.96));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.page .screen {
  overflow-x: clip;
  overflow-y: visible;
}

.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.08), transparent 1px),
    radial-gradient(circle at 76% 72%, rgba(255, 255, 255, 0.08), transparent 1px),
    radial-gradient(circle at 42% 52%, rgba(255, 255, 255, 0.05), transparent 1px);
  background-size: 170px 170px, 210px 210px, 120px 120px;
  opacity: 0.75;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Submenu topbar luôn nổi trên nội dung trang (catalog, quiz, …) */
.screen > .topbar,
.screen > .quiz-topbar,
.screen > .quiz-result-topbar,
.screen > .reset-topbar {
  z-index: 40;
}

.topbar .brand,
.quiz-topbar .brand,
.quiz-result-topbar .brand,
.analysis-screen .topbar .brand,
.reset-topbar .brand {
  position: relative;
  z-index: 6;
  pointer-events: auto;
}

.topbar-trailing {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 16px);
  margin-left: auto;
  flex-shrink: 0;
}

.topbar-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: #fff;
  background: rgba(8, 15, 29, 0.45);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.topbar-nav-link:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(127, 165, 255, 0.18);
  transform: translateY(-1px);
}

.topbar-nav-link.is-active {
  border-color: rgba(255, 214, 120, 0.75);
  background: rgba(245, 166, 35, 0.22);
}

.topbar-nav-link.is-inline {
  display: inline-flex;
}

.topbar-social {
  position: relative;
  z-index: 6;
  margin-left: 0;
  flex-shrink: 0;
}

.topbar-social__list {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topbar-social__link {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: #fff;
  background: rgba(8, 15, 29, 0.45);
  font-size: 15px;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.topbar-social__link:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(127, 165, 255, 0.18);
  transform: translateY(-1px);
}

.topbar-social__link.is-disabled {
  color: rgba(255, 255, 255, 0.45);
  cursor: default;
}

/* Khoảng cách giữa header (logo) và khối hero «Não bạn…» */
.landing-screen > .topbar {
  margin-bottom: clamp(36px, 5vw, 72px);
}

/* Logo → nội dung các trang frontend còn lại */
.quiz-screen > .quiz-topbar,
.analysis-screen > .topbar,
.result-screen > .quiz-result-topbar,
.reset-screen > .reset-topbar,
.quiz-screen > .topbar:not(.quiz-topbar) {
  margin-bottom: clamp(22px, 4vw, 40px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  font-size: 15px;
  font-weight: 800;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.brand:hover {
  color: inherit;
  text-decoration: none;
  opacity: 0.92;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  font-size: 22px;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
}

.brand-logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  color: rgba(246, 248, 255, 0.88);
  font-size: 13px;
  font-weight: 650;
}

.nav-links a,
.exit-link,
.back-link {
  transition: color 180ms var(--ease), opacity 180ms var(--ease);
}

.nav-links a:hover,
.exit-link:hover,
.back-link:hover {
  color: white;
}

.primary-action,
.secondary-action,
.share-button,
.ghost-next {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 30px;
  border-radius: 18px;
  border: 1px solid rgba(203, 212, 255, 0.34);
  color: var(--text);
  font-weight: 750;
}

.primary-action {
  background: linear-gradient(135deg, #7fa5ff 0%, #b8a7ff 100%);
  color: #071021;
  box-shadow: 0 16px 42px rgba(127, 165, 255, 0.27);
}

.hero-copy .primary-action {
  width: 330px;
  max-width: 100%;
  display: flex;
  margin-inline: auto;
}

.secondary-action,
.share-button,
.ghost-next {
  background: rgba(7, 13, 24, 0.38);
}

.secondary-action:hover,
.share-button:hover,
.ghost-next:hover {
  border-color: rgba(255, 255, 255, 0.52);
}

.landing-grid {
  position: relative;
  z-index: 1;
  min-height: 620px;
  row-gap: clamp(24px, 4vw, 64px);
}

.hero-copy {
  max-width: 470px;
}

.hero-copy h1 {
  margin: 0 0 24px;
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.12;
  font-weight: 850;
}

.hero-lead {
  width: min(420px, 100%);
  margin: 0 0 56px;
  color: #d6dceb;
  line-height: 1.8;
}

.mini-stats {
  max-width: 470px;
  margin-bottom: 46px;
}

.mini-stats.row {
  display: flex;
}

.mini-stats > div {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}

.mini-stats strong {
  color: var(--text);
  font-size: 13px;
}

.stat-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(177, 192, 255, 0.68);
  border-radius: 50%;
  font-size: 16px;
  box-shadow: 0 0 18px rgba(156, 167, 255, 0.18);
}

.clock-icon::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.clock-icon::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 12px;
  width: 1px;
  height: 11px;
  background: currentColor;
  box-shadow: 5px 8px 0 currentColor;
  transform-origin: bottom;
}

.focus-icon::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid currentColor;
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px rgba(156, 167, 255, 0.14);
}

.focus-icon::after {
  content: "";
  position: absolute;
  inset: 15px;
  background: currentColor;
  border-radius: 50%;
}

.science-icon::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 9px;
  width: 4px;
  height: 20px;
  border: 1px solid currentColor;
  border-radius: 4px;
}

.science-icon::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 20px;
  width: 16px;
  height: 11px;
  border: 1px solid currentColor;
  border-top: 0;
  border-radius: 0 0 9px 9px;
}

.fine-print {
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  width: 330px;
  max-width: 100%;
}

.landing-disclaimer {
  position: relative;
  z-index: 2;
  margin: clamp(20px, 4vw, 36px) auto 0;
  padding: 0 16px clamp(6px, 1.2vw, 10px);
  max-width: min(640px, 100%);
  color: var(--muted);
  font-size: 12px;
  font-style: italic;
  line-height: 1.6;
  text-align: center;
}

.landing-page .landing-screen {
  padding-bottom: clamp(12px, 2.5vw, 20px);
  overflow-x: clip;
  overflow-y: visible;
}

.landing-quiz-list {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: clamp(28px, 5vw, 52px) 0 0;
  padding: 0 0 clamp(8px, 2vw, 16px);
}

.landing-quiz-list__title {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 800;
  color: #fff;
}

.landing-quiz-list__lead {
  margin: 0 0 22px;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}

.landing-quiz-category {
  margin-top: clamp(24px, 4vw, 36px);
}

.landing-quiz-category:first-of-type {
  margin-top: 0;
}

.landing-quiz-category__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 14px;
}

.landing-quiz-category__title {
  margin: 0;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 800;
  color: #fff;
}

.landing-quiz-category__lead {
  margin: 6px 0 0;
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.5;
}

.landing-quiz-slider__controls {
  display: inline-flex;
  gap: 8px;
}

.landing-quiz-slider__btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  color: #fff;
  background: rgba(8, 15, 29, 0.45);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.landing-quiz-slider__btn:hover:not(:disabled) {
  border-color: rgba(127, 165, 255, 0.55);
  background: rgba(127, 165, 255, 0.15);
}

.landing-quiz-slider__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.landing-quiz-slider {
  --quiz-cards-per-row: 2;
  width: 100%;
  min-width: 0;
}

.landing-quiz-slider__viewport {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
  cursor: grab;
  touch-action: pan-y;
}

.landing-quiz-slider__viewport.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
  user-select: none;
}

.landing-quiz-slider__viewport.is-dragging a {
  pointer-events: none;
}

.landing-quiz-slider__viewport::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.landing-quiz-slider__viewport:focus-visible {
  outline: 2px solid rgba(127, 165, 255, 0.65);
  outline-offset: 3px;
  border-radius: 12px;
}

.landing-quiz-slider__slide {
  flex: 0 0 calc((100% - (var(--quiz-cards-per-row) - 1) * 18px) / var(--quiz-cards-per-row));
  scroll-snap-align: start;
  min-width: 0;
}

.landing-quiz-slider__slide .quiz-catalog-card {
  height: 100%;
  margin: 0;
}

@media (max-width: 767.98px) {
  .landing-quiz-slider__slide {
    flex: 0 0 100%;
  }
}

.mind-map {
  position: relative;
  width: min(560px, 100%);
  aspect-ratio: 1 / 1;
  margin-left: auto;
}

.mind-map-wrap {
  display: flex;
  justify-content: flex-end;
}

.axis {
  position: absolute;
  left: 50%;
  top: 50%;
  background: linear-gradient(90deg, transparent, rgba(214, 224, 255, 0.7), transparent);
  transform: translate(-50%, -50%);
}

.axis.horizontal {
  width: 58%;
  height: 1px;
}

.axis.vertical {
  width: 1px;
  height: 68%;
  background: linear-gradient(transparent, rgba(214, 224, 255, 0.7), transparent);
}

.axis.horizontal::after,
.axis.vertical::after {
  content: "";
  position: absolute;
  border: solid rgba(214, 224, 255, 0.78);
}

.axis.horizontal::after {
  right: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  border-width: 1px 1px 0 0;
  transform: translateY(-50%) rotate(45deg);
}

.axis.vertical::after {
  left: 50%;
  top: 0;
  width: 8px;
  height: 8px;
  border-width: 1px 1px 0 0;
  transform: translateX(-50%) rotate(-45deg);
}

.axis-label {
  position: absolute;
  margin: 0;
  color: rgba(214, 224, 255, 0.82);
  font-size: 12px;
  line-height: 1.4;
}

.axis-top {
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
}

.axis-bottom {
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
}

.axis-left {
  left: 12%;
  top: 50%;
  transform: translateY(-50%);
  text-align: right;
}

.axis-right {
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
}

.orbit {
  position: absolute;
  border: 1px dashed rgba(148, 166, 255, 0.22);
  border-radius: 50%;
  transform: rotate(-18deg);
  animation: orbitDrift 24s linear infinite;
}

.orbit-one {
  inset: 20% 29% 23% 18%;
}

.orbit-two {
  inset: 27% 20% 18% 24%;
  border-color: rgba(113, 216, 180, 0.18);
  animation-duration: 32s;
  animation-direction: reverse;
}

.zone-bubble {
  position: absolute;
  display: grid;
  place-items: center;
  align-content: center;
  width: 88px;
  height: 88px;
  padding: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  text-align: center;
  font-size: 10px;
  color: white;
  box-shadow: inset 0 0 28px rgba(255, 255, 255, 0.06), 0 0 34px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  animation: zoneFloat 7s ease-in-out infinite;
}

.zone-bubble strong {
  font-size: 11px;
}

.zone-symbol {
  margin-bottom: 5px;
  font-size: 18px;
  line-height: 1;
}

.zone-stress {
  left: 24%;
  top: 13%;
  color: #ff9b9d;
  background: radial-gradient(circle, rgba(255, 94, 103, 0.35), rgba(88, 25, 42, 0.72));
  animation-delay: -0.6s;
}

.zone-overload {
  left: 28%;
  top: 30%;
  color: #ffc27e;
  background: radial-gradient(circle, rgba(245, 165, 95, 0.34), rgba(83, 43, 21, 0.72));
  animation-delay: -1.8s;
}

.zone-fog {
  left: 41%;
  top: 42%;
  color: #d8deec;
  background: radial-gradient(circle, rgba(129, 140, 166, 0.36), rgba(28, 36, 55, 0.78));
  animation-delay: -3.1s;
}

.zone-offline {
  left: 26%;
  top: 55%;
  color: #99c9ff;
  background: radial-gradient(circle, rgba(114, 200, 255, 0.32), rgba(19, 52, 84, 0.74));
  animation-delay: -2.4s;
}

.zone-burnout {
  left: 22%;
  top: 73%;
  color: #d2a3ff;
  background: radial-gradient(circle, rgba(182, 120, 255, 0.31), rgba(57, 32, 78, 0.76));
  animation-delay: -4.2s;
}

.zone-clear {
  right: 10%;
  top: 15%;
  color: #9bffd9;
  background: radial-gradient(circle, rgba(110, 231, 187, 0.34), rgba(25, 78, 62, 0.72));
  animation-delay: -1.1s;
}

.zone-recovery {
  right: 8%;
  bottom: 12%;
  color: #9fffe3;
  background: radial-gradient(circle, rgba(110, 231, 187, 0.26), rgba(21, 70, 72, 0.74));
  animation-delay: -3.6s;
}

@media (min-width: 992px) {
  .landing-page .mind-map {
    width: min(500px, 100%);
  }

  .landing-page .zone-bubble {
    width: 78px;
    height: 78px;
    padding: 7px;
    font-size: 8px;
  }

  .landing-page .zone-bubble strong {
    font-size: 9px;
  }

  .landing-page .zone-symbol {
    margin-bottom: 4px;
    font-size: 15px;
  }
}

.mind-map--result .zone-bubble:not(.is-result-active) {
  opacity: 0.18;
  filter: saturate(0.42);
}

.zone-bubble.is-result-active {
  z-index: 4;
  opacity: 1;
  filter: none;
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 0 32px rgba(255, 255, 255, 0.12),
    0 0 42px rgba(110, 231, 187, 0.28);
  animation: zoneResultPulse 2.6s ease-in-out infinite;
}

.zone-result-ring {
  position: absolute;
  inset: -12px;
  border: 2px solid rgba(110, 231, 187, 0.82);
  border-radius: 50%;
  pointer-events: none;
  animation: plotPulse 3.2s ease-in-out infinite;
}

.zone-result-marker {
  position: absolute;
  inset: auto;
  top: -18px;
  right: -10px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #062318;
  background: linear-gradient(145deg, #9bffd9, #6ee7bb);
  box-shadow: 0 0 28px rgba(110, 231, 187, 0.55);
  font-size: 16px;
  pointer-events: none;
}

.quiz-result-mind-map-wrap {
  justify-content: center;
}

.quiz-done-page .result-eyebrow-mobile {
  position: relative;
  z-index: 2;
  margin: 0 0 clamp(16px, 3vw, 24px);
  padding: 0;
}

.quiz-done-page .result-copy > .eyebrow,
.quiz-done-page .result-eyebrow-mobile {
  font-size: 16px;
  font-weight: 600;
  color: rgba(246, 248, 255, 0.72);
}

.quiz-done-page .result-grid {
  min-height: auto;
  padding-top: 0;
}

@media (min-width: 992px) {
  .quiz-done-page .result-grid {
    align-items: flex-start;
    padding-top: 0;
  }
}

.quiz-result-mind-map-wrap .mind-map {
  margin-inline: auto;
  width: min(450px, 100%);
}

@media (max-width: 991.98px) {
  .quiz-done-page .result-grid {
    padding-top: 0;
  }

  .quiz-done-page .quiz-result-mind-map-wrap {
    width: 100%;
  }

  .quiz-done-page .quiz-result-mind-map-wrap .mind-map {
    width: min(100%, 520px);
  }
}

.mind-map--result .axis-label {
  opacity: 0.48;
}

.mind-map--result .orbit {
  opacity: 0.38;
}

.mind-map--result .axis {
  opacity: 0.52;
}

.mind-map--result .zone-bubble {
  width: 68px;
  height: 68px;
  padding: 6px;
  font-size: 7px;
}

.mind-map--result .zone-bubble strong {
  font-size: 8px;
}

.mind-map--result .zone-symbol {
  margin-bottom: 2px;
  font-size: 13px;
}

.mind-map--result .zone-result-ring {
  inset: -8px;
}

.mind-map--result .zone-result-marker {
  width: 32px;
  height: 32px;
  top: -13px;
  right: -7px;
  font-size: 13px;
}

@keyframes zoneResultPulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.quiz-screen {
  width: min(1120px, calc(100vw - 24px));
}

.quiz-topbar {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 330px) 1fr;
  align-items: center;
}

.quiz-topbar .topbar-trailing,
.quiz-topbar .topbar-social {
  justify-self: end;
  margin-left: 0;
}

.progress-head {
  justify-self: center;
  display: grid;
  gap: 14px;
  width: 100%;
  color: #d7dded;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.quiz-set-title {
  margin: -24px 0 18px;
  color: #fff;
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 400;
  line-height: 1.3;
  text-align: left;
  overflow-wrap: anywhere;
}

.progress-track {
  position: relative;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8ea4ff, #b8a7ff);
  box-shadow: 0 0 18px rgba(156, 167, 255, 0.72);
}

.exit-link {
  justify-self: end;
  color: rgba(246, 248, 255, 0.88);
  font-size: 13px;
  font-weight: 700;
}

.question-panel {
  position: relative;
  z-index: 2;
  width: min(820px, 100%);
  margin: clamp(58px, 9vh, 96px) 0 0 60px;
}

.question-panel h1 {
  margin: 0 0 30px;
  font-size: clamp(19px, 2.2vw, 27px);
  line-height: 1.3;
  font-weight: 820;
}

.answer-list {
  display: grid;
  gap: 14px;
}

.answer-card {
  position: relative;
  display: grid;
  grid-template-columns: 42px 48px 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 82px;
  padding: 16px 18px;
  border: 1px solid rgba(189, 204, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(8, 15, 29, 0.72);
  color: #f5f7ff;
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.42;
  transition:
    transform 180ms var(--ease),
    border-color 180ms var(--ease),
    background 180ms var(--ease),
    opacity 0.38s ease,
    filter 0.38s ease;
}

button.answer-card {
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

button.answer-card:disabled {
  cursor: default;
  opacity: 1;
}

.quiz-form-locked .answer-card:hover {
  transform: none;
  border-color: rgba(189, 204, 255, 0.18);
  background: rgba(8, 15, 29, 0.72);
}

.quiz-form-locked .answer-card.is-selected:hover {
  transform: none;
  border-color: rgba(255, 94, 103, 0.86);
  background:
    linear-gradient(90deg, rgba(255, 94, 103, 0.23), rgba(80, 22, 31, 0.66)),
    rgba(8, 15, 29, 0.76);
}

.answer-card:hover {
  transform: translateY(-2px);
  border-color: rgba(183, 203, 255, 0.48);
  background: rgba(14, 24, 44, 0.84);
}

.answer-key {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-weight: 850;
}

.answer-a {
  color: #ff7887;
}

.answer-b {
  color: #f5b35f;
}

.answer-c {
  color: #73e2ae;
}

.answer-d {
  color: #bda4ff;
}

.answer-card > span:nth-child(3) {
  color: #f7f8ff;
}

.answer-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  font-size: 30px;
  color: currentColor;
  animation: iconDrift 4.8s ease-in-out infinite;
}

.answer-a .answer-visual {
  animation-delay: -0.5s;
}

.answer-b .answer-visual {
  animation-delay: -1.4s;
}

.answer-c .answer-visual {
  animation-delay: -2.2s;
}

.answer-d .answer-visual {
  animation-delay: -3s;
}

.grid-visual {
  background:
    radial-gradient(circle, currentColor 0 4px, transparent 5px) 4px 4px / 17px 17px,
    radial-gradient(circle, currentColor 0 4px, transparent 5px) 21px 21px / 17px 17px;
  opacity: 0.85;
}

.grid-visual::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 2px solid currentColor;
  border-radius: 6px;
  clip-path: polygon(0 0, 42% 0, 42% 42%, 0 42%, 0 0, 58% 0, 100% 0, 100% 42%, 58% 42%, 58% 0, 0 58%, 42% 58%, 42% 100%, 0 100%, 0 58%, 58% 58%, 100% 58%, 100% 100%, 58% 100%);
}

.timer-visual {
  border: 3px solid currentColor;
  border-radius: 50%;
}

.timer-visual::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 6px;
  width: 3px;
  height: 15px;
  background: currentColor;
  border-radius: 2px;
}

.timer-visual::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 18px;
  width: 12px;
  height: 3px;
  background: currentColor;
  border-radius: 2px;
  transform: rotate(36deg);
  transform-origin: left center;
}

.list-visual::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 8px;
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 10px 0 currentColor, 0 20px 0 currentColor;
}

.list-visual::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 10px 0 currentColor, 0 20px 0 currentColor;
}

.close-visual {
  border: 2px solid currentColor;
  border-radius: 50%;
}

.close-visual::before,
.close-visual::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 18px;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transform: rotate(45deg);
}

.close-visual::after {
  transform: rotate(-45deg);
}

.quiz-hint {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 40px 0 0;
  color: #f3d29b;
  font-weight: 700;
}

.quiz-hint i {
  color: #ffba6b;
  font-size: 22px;
}

.selected-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(2, 6, 13, 0.04), rgba(2, 6, 13, 0.62));
  pointer-events: none;
}

.selected-screen .quiz-topbar {
  position: relative;
  z-index: 3;
}

.selected-state {
  position: relative;
  z-index: 2;
}

.selected-state h1 {
  color: rgba(246, 248, 255, 0.42);
}

.answer-card.is-selected {
  z-index: 2;
  border-color: rgba(255, 94, 103, 0.86);
  background:
    linear-gradient(90deg, rgba(255, 94, 103, 0.23), rgba(80, 22, 31, 0.66)),
    rgba(8, 15, 29, 0.76);
  box-shadow: 0 0 0 1px rgba(255, 94, 103, 0.18), 0 0 36px rgba(255, 94, 103, 0.22);
  animation: selectedAnswerPulse 1.8s ease-in-out infinite;
}

.answer-card.is-muted {
  opacity: 0.29;
  filter: grayscale(0.55);
}

.answer-card:not(.is-selected) .check-mark {
  visibility: hidden;
  opacity: 0;
  transform: scale(0.35) rotate(-16deg);
  pointer-events: none;
}

.answer-card.is-selected .check-mark {
  visibility: visible;
  animation: quizCheckPopIn 0.52s cubic-bezier(0.22, 1.08, 0.36, 1) forwards;
}

.answer-card.is-muted .answer-visual {
  animation: none !important;
}

.selected-screen .progress-track span {
  animation: quizProgressShimmer 1.35s ease-in-out infinite;
}

.check-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 94, 103, 0.18);
  color: #ff9aa0;
  font-size: 22px;
  box-shadow: 0 0 22px rgba(255, 94, 103, 0.32);
}

.transfer-link {
  display: block;
  width: max-content;
  margin: 48px auto 0;
  color: #ff827e;
  font-weight: 750;
}

.quiz-transfer-msg:not([hidden]) {
  animation: quizTransferGlide 0.52s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.question-panel.selected-state .quiz-hint {
  visibility: hidden;
  height: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
}

.quiz-actions {
  display: none;
  gap: 14px;
  margin: 28px auto 0;
  max-width: min(480px, 100%);
  justify-content: center;
  align-items: center;
}

.quiz-actions.is-visible {
  display: flex;
  flex-wrap: wrap;
}

.quiz-actions--solo {
  max-width: min(280px, 100%);
}

.quiz-actions .secondary-action,
.quiz-actions .primary-action {
  min-height: 52px;
  min-width: min(160px, 46vw);
  flex: 0 1 auto;
  width: auto;
  margin: 0;
  padding-inline: 24px;
  box-sizing: border-box;
}

.quiz-actions .quiz-btn-back {
  gap: 8px;
}

.quiz-actions .quiz-btn-confirm:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (max-width: 767.98px) {
  .quiz-page .quiz-actions,
  .quiz-page .quiz-actions.is-visible,
  .quiz-page .quiz-actions--solo {
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    margin: 28px 0 0;
    gap: 0;
    justify-content: space-between;
  }

  .quiz-page .quiz-actions .secondary-action,
  .quiz-page .quiz-actions .primary-action {
    display: flex;
    flex: 0 0 49%;
    width: 49%;
    max-width: 49%;
    min-width: 0;
    min-height: 42px;
    padding-inline: 12px;
    font-size: 13px;
    font-weight: 700;
    gap: 6px;
    border-radius: 14px;
    white-space: nowrap;
  }

  .quiz-page .quiz-actions.quiz-actions--solo,
  .quiz-page .quiz-actions.quiz-actions--solo.is-visible {
    width: 100vw;
    max-width: 100vw;
    margin-inline: calc(50% - 50vw);
    justify-content: center;
  }

  .quiz-page .quiz-actions.quiz-actions--solo .primary-action {
    flex: 0 0 50vw;
    width: 50vw;
    max-width: 50vw;
    min-width: 0;
    margin-inline: 0;
  }
}

.analysis-screen {
  min-height: min(720px, calc(100vh - 24px));
}

.analysis-content {
  position: relative;
  z-index: 2;
  min-height: 560px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 32px;
  text-align: center;
}

.brain-scan {
  position: relative;
  width: min(470px, 84vw);
  aspect-ratio: 1.6 / 1;
  display: grid;
  place-items: center;
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, rgba(140, 160, 255, 0.95), transparent);
  box-shadow: 0 0 32px rgba(140, 160, 255, 0.85);
  animation: scanGlow 2.6s ease-in-out infinite;
}

.ring {
  position: absolute;
  border: 1px solid rgba(142, 164, 255, 0.48);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(142, 164, 255, 0.18);
  animation: spin 16s linear infinite;
}

.ring-one {
  width: 154px;
  height: 154px;
}

.ring-two {
  width: 214px;
  height: 214px;
  border-style: dashed;
  animation-duration: 24s;
}

.ring-three {
  width: 284px;
  height: 284px;
  border-color: rgba(142, 164, 255, 0.18);
  animation-duration: 32s;
}

.brain-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 148px;
  height: 148px;
  color: #a7b3ff;
  font-size: 104px;
  filter: drop-shadow(0 0 24px rgba(142, 164, 255, 0.92));
  animation: brainPulse 2.8s ease-in-out infinite;
}

.analysis-copy h1 {
  margin: 0;
  font-size: clamp(24px, 3.6vw, 34px);
}

.analysis-copy p {
  margin: 22px 0 0;
  color: var(--muted);
}

.analysis-progress {
  width: min(760px, 86vw);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}

.progress-track.large {
  height: 12px;
}

.progress-track.large span {
  width: 0;
  transition: width 1.2s var(--ease);
}

.ghost-next {
  min-height: 44px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 300ms var(--ease), transform 300ms var(--ease);
}

.ghost-next.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.quiz-analyzing-page .analysis-content {
  gap: clamp(22px, 3.5vw, 36px);
}

.quiz-analyzing-page .progress-track.large .quiz-analyzing-fill {
  display: block;
  width: 0;
  max-width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8ea4ff, #b8a7ff);
  box-shadow: 0 0 18px rgba(156, 167, 255, 0.72);
  transition: width var(--quiz-analyzing-bar-ms, 2s) cubic-bezier(0.42, 0, 0.2, 1);
}

.quiz-analyzing-page .progress-track.large.quiz-analyzing-track {
  position: relative;
}

.analysis-attribute-list {
  width: min(560px, 90vw);
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
  text-align: left;
}

.analysis-attribute-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(189, 204, 255, 0.16);
  background: rgba(8, 15, 29, 0.48);
}

.analysis-attribute-name {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: rgba(246, 248, 255, 0.9);
  font-size: clamp(13px, 1.35vw, 15px);
  font-weight: 720;
}

.analysis-attribute-slug {
  font-size: 11px;
  font-weight: 650;
  font-family: ui-monospace, monospace;
  color: rgba(174, 184, 210, 0.78);
}

.analysis-attribute-total {
  flex: 0 0 auto;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  color: #8fffcf;
}

.analysis-empty-attrs {
  margin: 0;
  width: min(520px, 90vw);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.quiz-analyzing-percent {
  font-size: clamp(22px, 3vw, 30px);
  font-variant-numeric: tabular-nums;
}

.quiz-analyzing-page .quiz-analyzing-fallback {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.quiz-analyzing-handoff {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 420ms var(--ease);
}

.quiz-analyzing-handoff.is-active {
  opacity: 1;
  pointer-events: auto;
}

.quiz-analyzing-handoff__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 18, 0.72);
  backdrop-filter: blur(6px);
}

.quiz-analyzing-handoff__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  min-width: min(320px, 88vw);
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 155, 98, 0.35);
  background: linear-gradient(145deg, rgba(18, 28, 52, 0.96), rgba(9, 17, 31, 0.92));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  transform: translateY(12px) scale(0.98);
  transition: transform 480ms var(--ease);
}

.quiz-analyzing-handoff.is-active .quiz-analyzing-handoff__panel {
  transform: translateY(0) scale(1);
}

.quiz-analyzing-handoff__spinner {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  color: #ffb088;
  font-size: 1.35rem;
  background: rgba(255, 125, 79, 0.12);
  box-shadow: 0 0 24px rgba(255, 125, 79, 0.25);
}

.quiz-analyzing-handoff__text {
  margin: 0;
  text-align: center;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  font-weight: 650;
  color: rgba(246, 248, 255, 0.92);
}

.quiz-analyzing-page.quiz-analyzing-leaving .analysis-content {
  opacity: 0.35;
  transform: scale(0.985);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}

.result-screen {
  width: min(1260px, calc(100vw - 24px));
}

.share-button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  color: rgba(246, 248, 255, 0.92);
}

.result-grid {
  position: relative;
  z-index: 2;
  min-height: 520px;
}

.eyebrow {
  margin: 0 0 18px;
  color: rgba(246, 248, 255, 0.82);
  font-size: 20px;
  font-weight: 800;
}

.zone-title {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.zone-title h1 {
  margin: 0;
  color: #ff9b62;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1;
}

.zone-chip {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  color: #ff9b62;
  border: 2px solid currentColor;
  border-radius: var(--radius);
  box-shadow: 0 0 22px rgba(255, 125, 79, 0.28);
}

.result-copy h2 {
  margin: 0 0 26px;
  font-size: clamp(21px, 2.2vw, 26px);
}

.result-copy > p:last-of-type {
  width: min(610px, 100%);
  margin: 0 0 42px;
  color: #d1d8e9;
  line-height: 1.8;
  font-size: 17px;
}

.score-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(70px, 1fr));
  gap: 12px;
}

.score-card {
  display: grid;
  place-items: center;
  gap: 5px;
  min-height: 106px;
  padding: 10px 8px;
  border: 1px solid rgba(189, 204, 255, 0.17);
  border-radius: var(--radius);
  background: rgba(9, 17, 31, 0.7);
}

.score-card span {
  font-size: 22px;
  animation: iconGlow 4.5s ease-in-out infinite;
}

.score-card small {
  color: var(--muted);
}

.score-card strong {
  font-size: 26px;
}

.score-card.stress span {
  color: var(--red);
}

.score-card.overload span,
.score-card.overload strong {
  color: var(--orange);
}

.score-card.fog span {
  color: #d2d8e8;
}

.score-card.offline span {
  color: var(--blue);
}

.score-card.burnout span {
  color: var(--plum);
}

.score-card.clear span {
  color: var(--green);
}

.score-card.is-hot {
  border-color: rgba(255, 125, 79, 0.45);
  background: rgba(255, 125, 79, 0.13);
  animation: hotScorePulse 2.8s ease-in-out infinite;
}

/* Quiz done: không cố định 6 cột khi có nhiều/ít thuộc tính */
.quiz-done-page .quiz-result-score-grid.score-row {
  grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
}

/*
 * Tránh tone "overload" (ô đầu khi xe vòng ATTRIBUTE_VISUAL_RING) luôn cam:
 * chỉ ô đạt điểm cao nhất (.is-hot) dùng cam nổi bật.
 */
.quiz-done-page .quiz-result-score-grid .score-card.overload:not(.is-hot) span,
.quiz-done-page .quiz-result-score-grid .score-card.overload:not(.is-hot) strong {
  color: rgba(208, 216, 240, 0.92);
}

.quiz-done-page .quiz-result-score-grid .score-card.is-hot span,
.quiz-done-page .quiz-result-score-grid .score-card.is-hot strong {
  color: var(--orange);
}

/* Tách hai nút khỏi khối kết quả — khoảng tương đương ~1 đoạn ngắn */
.quiz-done-page .result-actions {
  margin-top: clamp(2rem, 4.5vw, 3rem);
  padding-top: clamp(1.25rem, 2.8vw, 1.75rem);
}

/* —— Quiz done: chấm điểm từng đáp án —— */
.quiz-done-page--option-points .result-grid {
  display: none;
}

.quiz-op-result {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.75rem);
  width: min(980px, 100%);
  margin-inline: auto;
  padding: clamp(0.5rem, 2vw, 1rem) 0 clamp(1rem, 3vw, 2rem);
}

@media (min-width: 992px) {
  .quiz-op-result {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    align-items: start;
    gap: clamp(2rem, 4vw, 3.5rem);
  }
}

.quiz-op-score-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.quiz-op-score-hero__glow {
  position: absolute;
  inset: 10% 5% auto;
  height: 55%;
  background: radial-gradient(ellipse at center, rgba(255, 155, 98, 0.35) 0%, transparent 72%);
  filter: blur(18px);
  pointer-events: none;
}

.quiz-op-score-hero__ring {
  position: absolute;
  width: min(240px, 72vw);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(255, 155, 98, 0.35);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 0 48px rgba(255, 125, 79, 0.22);
  animation: quizOpRingPulse 4s ease-in-out infinite;
}

@keyframes quizOpRingPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.92;
  }

  50% {
    transform: scale(1.03);
    opacity: 1;
  }
}

.quiz-op-score-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(200px, 64vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 125, 79, 0.18) 0%, rgba(9, 17, 31, 0.85) 55%);
  border: 1px solid rgba(255, 155, 98, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.quiz-op-score-hero__value {
  font-size: clamp(3rem, 10vw, 4.25rem);
  font-weight: 800;
  line-height: 1;
  color: #ffb088;
  letter-spacing: -0.02em;
  text-shadow: 0 0 28px rgba(255, 155, 98, 0.45);
}

.quiz-op-score-hero__unit {
  margin-top: 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(246, 248, 255, 0.55);
}

.quiz-op-score-hero__caption {
  position: relative;
  z-index: 1;
  margin: 1.15rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(246, 248, 255, 0.62);
}

.quiz-op-result__eyebrow {
  margin-bottom: 0.75rem;
}

.quiz-op-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(246, 248, 255, 0.88);
  background: rgba(110, 231, 187, 0.12);
  border: 1px solid rgba(110, 231, 187, 0.28);
}

.quiz-op-tier-badge i {
  color: #6ee7bb;
  font-size: 0.75rem;
}

.quiz-op-tier-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.65rem, 4.2vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  color: #ff9b62;
}

.quiz-op-advice-card {
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
  padding: clamp(1.15rem, 2.8vw, 1.5rem) clamp(1.1rem, 2.5vw, 1.45rem);
  border-radius: var(--radius);
  border: 1px solid rgba(189, 204, 255, 0.16);
  background: linear-gradient(135deg, rgba(15, 26, 48, 0.92) 0%, rgba(9, 17, 31, 0.78) 100%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
}

.quiz-op-advice-card__lead {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  font-weight: 600;
  line-height: 1.55;
  color: #eef2ff;
}

.quiz-op-advice-card__lead p {
  margin: 0;
}

.quiz-op-advice-card__body {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(189, 204, 255, 0.12);
  font-size: 1rem;
  line-height: 1.75;
  color: #c8d0e4;
}

.quiz-op-advice-card__body p {
  margin: 0 0 0.65rem;
}

.quiz-op-advice-card__body p:last-child {
  margin-bottom: 0;
}

.quiz-op-ladder__title {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(246, 248, 255, 0.48);
}

.quiz-op-ladder__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.quiz-op-ladder__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid rgba(189, 204, 255, 0.1);
  background: rgba(9, 17, 31, 0.45);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.quiz-op-ladder__item.is-active {
  border-color: rgba(255, 155, 98, 0.45);
  background: rgba(255, 125, 79, 0.1);
  box-shadow: 0 0 24px rgba(255, 125, 79, 0.12);
}

.quiz-op-ladder__marker {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.15rem;
  border-radius: 50%;
  border: 2px solid rgba(189, 204, 255, 0.25);
  font-size: 0.65rem;
  color: transparent;
}

.quiz-op-ladder__item.is-active .quiz-op-ladder__marker {
  border-color: #ff9b62;
  background: rgba(255, 155, 98, 0.2);
  color: #ffb088;
}

.quiz-op-ladder__text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.quiz-op-ladder__text strong {
  font-size: 0.9375rem;
  font-weight: 700;
  color: rgba(246, 248, 255, 0.92);
}

.quiz-op-ladder__item.is-active .quiz-op-ladder__text strong {
  color: #ffb088;
}

.quiz-op-ladder__text span {
  font-size: 0.8125rem;
  color: rgba(246, 248, 255, 0.52);
}

.quiz-done-page--option-points .result-actions {
  max-width: min(980px, 100%);
  margin-inline: auto;
}

.quiz-done-page .quiz-reset-hints-panel,
.reset-page .quiz-reset-hints-panel {
  margin-top: clamp(1rem, 2.5vw, 1.5rem);
  padding: clamp(1.35rem, 3vw, 2rem)
    clamp(1.05rem, 2.8vw, 1.85rem)
    clamp(2rem, 4vw, 2.85rem)
    clamp(1.05rem, 2.8vw, 1.85rem);
  border-top: 1px solid rgba(189, 204, 255, 0.12);
}

.reset-page .quiz-reset-hints-panel {
  width: min(720px, 100%);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  padding-left: 0;
  padding-right: 0;
}

.quiz-done-page .quiz-reset-hints-panel .eyebrow,
.reset-page .quiz-reset-hints-panel .eyebrow {
  margin-bottom: 0.6rem;
}

.quiz-done-page .quiz-reset-hint-cards,
.reset-page .quiz-reset-hint-cards {
  display: grid;
  gap: 16px;
  margin-top: 10px;
}

.quiz-done-page .quiz-reset-hint-card,
.reset-page .quiz-reset-hint-card {
  border-radius: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(189, 204, 255, 0.12);
  background: rgba(3, 9, 19, 0.35);
}

.quiz-done-page .quiz-reset-hint-card.overload,
.reset-page .quiz-reset-hint-card.overload {
  border-left: 5px solid rgba(255, 125, 79, 0.55);
}

.quiz-done-page .quiz-reset-hint-card.stress,
.reset-page .quiz-reset-hint-card.stress {
  border-left: 5px solid rgba(255, 94, 103, 0.55);
}

.quiz-done-page .quiz-reset-hint-card.clear,
.reset-page .quiz-reset-hint-card.clear {
  border-left: 5px solid rgba(110, 231, 187, 0.5);
}

.quiz-done-page .quiz-reset-hint-card.fog,
.reset-page .quiz-reset-hint-card.fog {
  border-left: 5px solid rgba(215, 221, 237, 0.45);
}

.quiz-done-page .quiz-reset-hint-card.offline,
.reset-page .quiz-reset-hint-card.offline {
  border-left: 5px solid rgba(180, 195, 220, 0.45);
}

.quiz-done-page .quiz-reset-hint-card.burnout,
.reset-page .quiz-reset-hint-card.burnout {
  border-left: 5px solid rgba(255, 186, 120, 0.5);
}

.quiz-done-page .quiz-reset-hint-card__title,
.reset-page .quiz-reset-hint-card__title {
  margin: 0 0 0.75rem;
  font-size: 16px;
  font-weight: 820;
}

.quiz-done-page .quiz-reset-hint-card__line1,
.reset-page .quiz-reset-hint-card__line1 {
  margin: 0 0 0.5rem;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.55;
  color: #d1d9ea;
}

.quiz-done-page .quiz-reset-hint-card__line2,
.reset-page .quiz-reset-hint-card__line2 {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
  color: rgba(193, 203, 226, 0.82);
}

.quadrant {
  position: relative;
  width: min(430px, 100%);
  aspect-ratio: 1 / 1;
  justify-self: center;
}

.quadrant-wrap {
  display: flex;
  justify-content: center;
}

.q-axis {
  position: absolute;
  left: 50%;
  top: 50%;
  background: rgba(214, 224, 255, 0.52);
  transform: translate(-50%, -50%);
}

.q-vertical {
  width: 1px;
  height: 72%;
}

.q-horizontal {
  width: 80%;
  height: 1px;
}

.q-horizontal::after,
.q-vertical::after {
  content: "";
  position: absolute;
  border: solid rgba(214, 224, 255, 0.72);
}

.q-horizontal::after {
  right: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  border-width: 1px 1px 0 0;
  transform: translateY(-50%) rotate(45deg);
}

.q-vertical::after {
  left: 50%;
  top: 0;
  width: 8px;
  height: 8px;
  border-width: 1px 1px 0 0;
  transform: translateX(-50%) rotate(-45deg);
}

.q-label {
  position: absolute;
  color: rgba(214, 224, 255, 0.82);
  font-size: 12px;
  line-height: 1.35;
}

.q-top {
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
}

.q-bottom {
  bottom: 7%;
  left: 50%;
  transform: translateX(-50%);
}

.q-left {
  left: 2%;
  top: 48%;
  transform: translateY(-50%);
  text-align: right;
}

.q-right {
  right: 0;
  top: 48%;
  transform: translateY(-50%);
}

.plot-dot {
  position: absolute;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(110, 231, 187, 0.18);
  box-shadow: 0 0 36px rgba(110, 231, 187, 0.2);
  animation: plotPulse 3.8s ease-in-out infinite;
}

.dot-overload {
  left: 29%;
  top: 19%;
  color: var(--orange);
  border: 1px solid rgba(255, 125, 79, 0.72);
  background: rgba(255, 125, 79, 0.12);
  box-shadow: 0 0 34px rgba(255, 125, 79, 0.45);
}

.dot-clear {
  right: 14%;
  top: 22%;
  animation-delay: -0.9s;
}

.dot-burnout {
  left: 32%;
  bottom: 22%;
  background: rgba(182, 120, 255, 0.16);
  animation-delay: -1.8s;
}

.dot-recovery {
  right: 13%;
  bottom: 22%;
  animation-delay: -2.7s;
}

.result-actions {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 24px;
}

.result-actions .primary-action,
.result-actions .secondary-action {
  width: 100%;
}

.reset-screen {
  width: min(1180px, calc(100vw - 24px));
}

.reset-page .reset-topbar {
  position: relative;
  z-index: 5;
}

.reset-page .reset-topbar .brand,
.reset-page .reset-topbar .back-link {
  position: relative;
  z-index: 6;
  pointer-events: auto;
  cursor: pointer;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(246, 248, 255, 0.86);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.reset-grid {
  position: relative;
  z-index: 2;
  min-height: 470px;
}

.tiny-reset {
  align-self: center;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid rgba(189, 204, 255, 0.13);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(13, 24, 43, 0.86), rgba(8, 15, 27, 0.7));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.reset-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 125, 79, 0.78);
  border-radius: 50%;
  color: var(--orange);
  box-shadow: 0 0 30px rgba(255, 125, 79, 0.23);
}

.tiny-reset h1 {
  margin: 0 0 28px;
  font-size: clamp(24px, 3.2vw, 34px);
}

.tiny-reset__hints {
  margin-top: 0;
}

.tiny-reset__hints .eyebrow {
  margin: 0 0 1.25rem;
}

.reset-page .tiny-reset__hints .reset-hint-body {
  display: grid;
  gap: 1rem;
}

.reset-page .tiny-reset__hints .reset-hint-group__name {
  margin: 0 0 0.35rem;
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
}

.reset-page .tiny-reset__hints .reset-hint-line {
  margin: 0;
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  color: #d8deec;
}

.reset-page .tiny-reset__hints .reset-hint-line p,
.reset-page .tiny-reset__hints .reset-hint-line li {
  margin: 0;
  font-size: inherit;
  font-weight: 400;
}

.reset-page .tiny-reset__hints .reset-hint-line ul,
.reset-page .tiny-reset__hints .reset-hint-line ol {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
  list-style-type: disc;
}

.reset-page .tiny-reset__hints .reset-hint-line h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.35;
  font-weight: 400;
  color: #e8edf8;
}

.reset-page .tiny-reset__hints .reset-hint-line h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(21px, 2.2vw, 26px);
  line-height: 1.4;
  font-weight: 400;
  color: #e2e8f4;
}

.reset-page .tiny-reset__hints .reset-hint-line h3 {
  margin: 0 0 0.5rem;
  font-size: clamp(18px, 1.9vw, 22px);
  line-height: 1.45;
  font-weight: 400;
  color: #d8deec;
}

.reset-page .tiny-reset__hints .reset-hint-line strong,
.reset-page .tiny-reset__hints .reset-hint-line b {
  font-weight: 400;
}

.reset-page .tiny-reset__empty {
  margin: 0;
  color: #d8deec;
  font-size: 17px;
  line-height: 1.75;
}

.tiny-reset p {
  margin: 0 0 20px;
  color: #d8deec;
  line-height: 1.75;
  font-size: 17px;
}

.duration {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  color: var(--muted);
  font-weight: 750;
}

.reset-illustration {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.reset-illustration svg {
  width: min(620px, 100%);
  overflow: visible;
}

.mail-cloud {
  transform-box: fill-box;
  transform-origin: center;
  animation: mailDrift 5.8s ease-in-out infinite;
}

.person {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: personBreathe 6.5s ease-in-out infinite;
}

.reset-illustration path,
.reset-illustration circle {
  fill: none;
  stroke: rgba(214, 224, 255, 0.52);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mail-cloud path,
.mail-cloud circle {
  stroke: rgba(255, 125, 79, 0.78);
  filter: drop-shadow(0 0 9px rgba(255, 125, 79, 0.3));
}

.desk path:nth-last-child(-n + 4) {
  stroke: rgba(110, 231, 187, 0.45);
}

.deep-dive {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(189, 204, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(8, 15, 29, 0.48);
  margin-inline: 0;
}

.deep-copy {
  flex: 1.35 1 280px;
  width: auto;
  padding: 14px 18px;
}

.deep-copy h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.deep-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.deep-card {
  flex: 1 1 170px;
  width: auto;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  min-height: 118px;
  padding: 18px;
  border: 1px solid rgba(189, 204, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(13, 23, 40, 0.72);
  text-align: center;
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease);
}

.deep-card:hover {
  border-color: rgba(183, 203, 255, 0.42);
  background: rgba(17, 30, 52, 0.86);
  transform: translateY(-3px);
}

.deep-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(189, 204, 255, 0.48);
  border-radius: 50%;
  color: #dfe5ff;
  animation: iconGlow 4s ease-in-out infinite;
}

.reset-newsletter {
  position: relative;
  z-index: 2;
  width: min(640px, 100%);
  margin: clamp(28px, 5vw, 52px) auto 0;
  padding: 0 14px clamp(36px, 5vw, 56px);
  text-align: center;
}

.reset-newsletter-alert {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: calc(var(--radius) - 2px);
  font-size: 14px;
  font-weight: 650;
}

.reset-newsletter-alert--ok {
  border: 1px solid rgba(110, 231, 187, 0.35);
  background: rgba(110, 231, 187, 0.1);
  color: #b8f5d9;
}

.reset-newsletter-alert--err {
  border: 1px solid rgba(255, 120, 120, 0.4);
  background: rgba(255, 90, 90, 0.1);
  color: #ffc8c8;
}

.reset-newsletter-title {
  margin: 0 0 18px;
  font-size: clamp(20px, 2.4vw, 27px);
  font-weight: 850;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: rgba(246, 248, 255, 0.96);
}

.reset-newsletter-form {
  margin: 0;
}

.reset-email-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  min-height: 52px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(173, 186, 255, 0.35);
  background: rgba(10, 16, 30, 0.85);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 40px rgba(0, 0, 0, 0.35);
}

.reset-email-input {
  flex: 1 1 180px;
  min-width: 0;
  border: 0;
  outline: none;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(236, 240, 255, 0.95);
  background: transparent;
}

.reset-email-input::placeholder {
  color: rgba(180, 188, 214, 0.65);
  font-weight: 500;
}

.reset-email-submit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 22px 0 20px;
  min-height: 52px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.03em;
  color: #fff;
  background: linear-gradient(115deg, #ff9b62 0%, #c86bff 52%, #6b4dff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 24px rgba(200, 107, 255, 0.22);
  transition: filter 160ms ease, transform 160ms ease;
}

.reset-email-submit:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.reset-email-submit:active {
  transform: translateY(0);
}

.reset-email-submit i {
  font-size: 14px;
}

@media (max-width: 575.98px) {
  .reset-newsletter {
    width: min(300px, calc(100% - 28px));
    margin-top: 24px;
    padding: 0 0 28px;
  }

  .reset-newsletter-title {
    margin-bottom: 12px;
    font-size: 17px;
    font-weight: 800;
  }

  .reset-newsletter-alert {
    padding: 8px 12px;
    font-size: 12px;
  }

  .reset-email-bar {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    min-height: 38px;
    max-width: 100%;
    margin-inline: auto;
    border-radius: 999px;
    border-color: rgba(173, 186, 255, 0.28);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.05),
      0 6px 22px rgba(0, 0, 0, 0.28);
  }

  .reset-email-input {
    padding: 8px 10px 8px 14px;
    font-size: 13px;
    font-weight: 550;
  }

  .reset-email-input::placeholder {
    font-size: 12px;
  }

  .reset-email-submit {
    width: auto;
    min-width: 34px;
    min-height: 34px;
    margin: 2px;
    padding: 0 10px;
    gap: 0;
    border-radius: 999px;
    font-size: 12px;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.16),
      0 0 16px rgba(200, 107, 255, 0.18);
  }

  .reset-email-submit span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .reset-email-submit i {
    font-size: 11px;
  }
}

/* —— Danh sách quiz (frontend) —— */
.quiz-catalog-page .quiz-catalog-screen {
  /* Cùng max-width với .screen / trang chủ (1180px) */
  padding-bottom: clamp(12px, 2.5vw, 20px);
  overflow-x: clip;
  overflow-y: visible;
}

.quiz-catalog-wrap {
  position: relative;
  z-index: 1;
  padding-top: clamp(14px, 2.8vw, 28px);
  padding-bottom: 48px;
}

.quiz-catalog-title {
  margin: clamp(6px, 1.2vw, 14px) 0 8px;
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 800;
  color: #fff;
}

.quiz-catalog-lead {
  margin: 0 0 28px;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}

.quiz-catalog-empty {
  color: rgba(255, 255, 255, 0.75);
}

.quiz-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quiz-catalog-grid--cols {
  grid-template-columns: repeat(var(--quiz-cards-per-row, 2), minmax(0, 1fr));
}

.quiz-catalog-grid__cell {
  margin: 0;
  min-width: 0;
}

.quiz-catalog-grid__cell .quiz-catalog-card {
  height: 100%;
}

.quiz-catalog-sections {
  margin-top: 8px;
}

.quiz-catalog-section__title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.quiz-catalog-section__title-link:hover {
  color: rgba(255, 214, 120, 0.95);
}

.quiz-catalog-breadcrumb {
  margin: 0 0 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

.quiz-catalog-breadcrumb__link {
  color: rgba(127, 165, 255, 0.95);
  text-decoration: none;
}

.quiz-catalog-breadcrumb__link:hover {
  text-decoration: underline;
}

.quiz-catalog-breadcrumb__sep {
  margin-inline: 8px;
  opacity: 0.5;
}

.topbar-nav-dropdown {
  position: relative;
  flex-shrink: 0;
  z-index: 2;
}

.topbar-nav-submenu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  min-width: min(280px, calc(100vw - 32px));
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(8, 15, 29, 0.96);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.topbar-nav-dropdown:hover .topbar-nav-submenu,
.topbar-nav-dropdown:focus-within .topbar-nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.topbar-nav-submenu__link {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.topbar-nav-submenu__link:hover {
  color: #fff;
  background: rgba(127, 165, 255, 0.16);
}

.topbar-nav-submenu__link.is-active {
  color: rgba(255, 214, 120, 0.98);
  background: rgba(245, 166, 35, 0.12);
}

.quiz-catalog-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(8, 15, 29, 0.55);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.quiz-catalog-card__link:hover {
  color: #fff;
  transform: translateY(-3px);
  border-color: rgba(127, 165, 255, 0.45);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
}

.quiz-catalog-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.quiz-catalog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quiz-catalog-card__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 160px;
  font-size: 2.4rem;
  color: rgba(255, 255, 255, 0.35);
}

.quiz-catalog-card__body {
  display: grid;
  gap: 8px;
  padding: 16px 16px 18px;
}

.quiz-catalog-card__title {
  font-size: 1.05rem;
  line-height: 1.35;
}

.quiz-catalog-card__desc {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.45;
}

.quiz-catalog-card__meta {
  margin-top: 4px;
  color: rgba(245, 166, 35, 0.95);
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 575.98px) {
  .topbar-trailing {
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 100%;
  }

  .topbar-nav-link span {
    display: none;
  }

  .topbar-nav-link {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .quiz-catalog-grid--cols {
    grid-template-columns: 1fr;
    --quiz-cards-per-row: 1;
  }
}

/* —— Responsive: tablet —— */
@media (max-width: 991.98px) {
  .question-panel {
    margin: clamp(32px, 6vh, 56px) auto 0;
  }

  .landing-grid,
  .result-grid,
  .reset-grid {
    min-height: 0;
  }

  .hero-copy {
    max-width: 640px;
    margin-inline: auto;
    text-align: center;
  }

  .hero-lead {
    margin-inline: auto;
  }

  .mini-stats {
    margin-inline: auto;
  }

  .mind-map-wrap {
    justify-content: center;
  }

  .mind-map {
    margin-inline: auto;
  }
}

/* —— Responsive: mobile (full width, không tràn viền) —— */
@media (max-width: 767.98px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .page {
    display: block;
    padding: 0;
  }

  .screen,
  .quiz-screen,
  .result-screen,
  .reset-screen,
  .analysis-screen {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    padding:
      calc(14px + env(safe-area-inset-top, 0px))
      calc(16px + env(safe-area-inset-right, 0px))
      calc(28px + env(safe-area-inset-bottom, 0px))
      calc(16px + env(safe-area-inset-left, 0px));
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  /* Header */
  .topbar {
    gap: 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo-img {
    height: 42px;
  }

  .topbar-trailing {
    gap: 8px;
  }

  .topbar-social__list {
    gap: 6px;
  }

  .topbar-social__link {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .landing-screen > .topbar {
    margin-bottom: 28px;
  }

  .quiz-screen > .quiz-topbar,
  .analysis-screen > .topbar,
  .result-screen > .quiz-result-topbar,
  .reset-screen > .reset-topbar,
  .quiz-screen > .topbar:not(.quiz-topbar) {
    margin-bottom: 20px;
  }

  .topbar-nav-submenu {
    position: fixed;
    top: calc(64px + env(safe-area-inset-top, 0px));
    left: 16px;
    right: 16px;
    min-width: 0;
    max-height: 70vh;
    overflow-y: auto;
  }

  /* Landing */
  .hero-copy h1 {
    margin-bottom: 16px;
    font-size: clamp(26px, 7.4vw, 34px);
  }

  .hero-lead {
    margin-bottom: 28px;
    font-size: 15px;
    line-height: 1.7;
  }

  .mini-stats {
    margin-bottom: 28px;
  }

  .hero-copy .primary-action,
  .fine-print {
    width: 100%;
  }

  .primary-action,
  .secondary-action {
    min-height: 52px;
    padding: 0 22px;
    border-radius: 16px;
  }

  .mind-map,
  .landing-page .mind-map {
    width: min(100%, 420px);
  }

  .zone-bubble,
  .landing-page .zone-bubble {
    width: 58px;
    height: 58px;
    padding: 4px;
    font-size: 6.5px;
    line-height: 1.15;
  }

  .zone-bubble strong,
  .landing-page .zone-bubble strong {
    font-size: 7.5px;
    letter-spacing: 0.01em;
  }

  .zone-symbol,
  .landing-page .zone-symbol {
    margin-bottom: 2px;
    font-size: 13px;
  }

  .axis-label {
    font-size: 10px;
  }

  .axis-left {
    left: 2%;
  }

  .axis-right {
    right: 0;
  }

  .landing-quiz-list {
    margin-top: 32px;
  }

  .landing-quiz-slider__viewport {
    gap: 12px;
    margin-inline: -16px;
    padding-inline: 16px;
    scroll-padding-inline: 16px;
  }

  .landing-quiz-slider__slide {
    flex: 0 0 86%;
  }

  .landing-disclaimer {
    padding-inline: 0;
  }

  /* Quiz */
  .quiz-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand trailing"
      "progress progress";
    row-gap: 16px;
  }

  .quiz-topbar .brand {
    grid-area: brand;
  }

  .quiz-topbar .topbar-trailing,
  .quiz-topbar .topbar-social {
    grid-area: trailing;
  }

  .quiz-topbar .progress-head {
    grid-area: progress;
    gap: 10px;
    font-size: 12px;
  }

  .quiz-set-title {
    margin: 0 0 12px;
    font-size: clamp(13px, 3.6vw, 15px);
  }

  .question-panel {
    width: 100%;
    margin: 8px 0 0;
  }

  .question-panel h1 {
    margin-bottom: 20px;
    font-size: clamp(16px, 4.2vw, 18px);
    line-height: 1.35;
  }

  .answer-list {
    gap: 10px;
  }

  .answer-card {
    grid-template-columns: 30px 30px minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 64px;
    padding: 12px 12px 12px 14px;
    font-size: 15px;
    line-height: 1.4;
  }

  .answer-card:hover {
    transform: none;
  }

  .answer-key {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .answer-visual {
    width: 28px;
    height: 28px;
    font-size: 22px;
  }

  .answer-card > span:nth-child(3) {
    overflow-wrap: anywhere;
  }

  .check-mark {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }

  .quiz-hint {
    margin-top: 22px;
    font-size: 14px;
    line-height: 1.45;
  }

  .quiz-hint i {
    font-size: 18px;
  }

  .quiz-page .quiz-actions.quiz-actions--solo,
  .quiz-page .quiz-actions.quiz-actions--solo.is-visible {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
  }

  .quiz-page .quiz-actions.quiz-actions--solo .primary-action {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
  }

  .quiz-page .quiz-actions .secondary-action,
  .quiz-page .quiz-actions .primary-action {
    min-height: 48px;
    font-size: 14px;
  }

  .transfer-link {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  /* Analyzing */
  .analysis-content {
    min-height: calc(100svh - 140px);
    gap: 24px;
  }

  .brain-scan {
    width: 100%;
    max-width: 320px;
  }

  .ring-one {
    width: 110px;
    height: 110px;
  }

  .ring-two {
    width: 152px;
    height: 152px;
  }

  .ring-three {
    width: 196px;
    height: 196px;
  }

  .brain-icon {
    width: 100px;
    height: 100px;
    font-size: 64px;
  }

  .analysis-copy h1 {
    font-size: 22px;
    line-height: 1.35;
  }

  .analysis-copy p {
    margin-top: 12px;
    font-size: 14px;
  }

  .analysis-progress,
  .analysis-attribute-list,
  .analysis-empty-attrs {
    width: 100%;
  }

  .analysis-progress {
    gap: 14px;
  }

  .quiz-analyzing-percent {
    font-size: 20px;
  }

  /* Result */
  .eyebrow {
    font-size: 16px;
  }

  .zone-title {
    gap: 12px;
    margin-bottom: 16px;
  }

  .zone-title h1 {
    font-size: clamp(28px, 8vw, 36px);
    overflow-wrap: anywhere;
  }

  .zone-chip {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
  }

  .result-copy h2 {
    margin-bottom: 16px;
    font-size: 19px;
  }

  .result-copy > p:last-of-type {
    margin-bottom: 28px;
    font-size: 15px;
    line-height: 1.7;
  }

  .score-row,
  .quiz-done-page .quiz-result-score-grid.score-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .score-card {
    min-height: 88px;
    padding: 8px 6px;
  }

  .score-card small {
    max-width: 100%;
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .score-card strong {
    font-size: 22px;
  }

  .mind-map--result .zone-bubble {
    width: 52px;
    height: 52px;
    padding: 4px;
    font-size: 6px;
  }

  .mind-map--result .zone-bubble strong {
    font-size: 7px;
  }

  .mind-map--result .zone-symbol {
    margin-bottom: 2px;
    font-size: 12px;
  }

  .mind-map--result .zone-result-ring {
    inset: -6px;
  }

  .mind-map--result .zone-result-marker {
    top: -10px;
    right: -6px;
    width: 24px;
    height: 24px;
    font-size: 10px;
  }

  .result-actions {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .quiz-done-page .result-actions {
    margin-top: 28px;
    padding-top: 0;
  }

  .quiz-op-score-hero__ring {
    width: min(210px, 64vw);
  }

  .quiz-op-score-hero__inner {
    width: min(176px, 54vw);
  }

  .quiz-done-page .quiz-reset-hints-panel {
    padding-inline: 0;
  }

  .quiz-done-page .quiz-reset-hint-card,
  .reset-page .quiz-reset-hint-card {
    padding: 14px 16px;
    border-radius: 14px;
  }

  /* Reset */
  .tiny-reset {
    padding: 22px 18px;
  }

  .reset-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
  }

  .tiny-reset p,
  .reset-page .tiny-reset__empty,
  .reset-page .tiny-reset__hints .reset-hint-line {
    font-size: 15px;
    line-height: 1.7;
  }

  .reset-illustration {
    min-height: 0;
  }

  .reset-newsletter {
    width: 100%;
    padding-inline: 0;
  }

  .deep-dive {
    padding: 12px;
  }

  .deep-copy {
    padding: 8px;
  }

  /* Catalog */
  .quiz-catalog-wrap {
    padding-top: 8px;
    padding-bottom: 24px;
  }

  .quiz-catalog-lead {
    margin-bottom: 20px;
    font-size: 14px;
  }

  .quiz-catalog-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .quiz-catalog-card__link:hover {
    transform: none;
  }
}

@media (max-width: 575.98px) {
  .reset-newsletter {
    width: 100%;
  }
}

@media (max-width: 379.98px) {
  .answer-card {
    grid-template-columns: 28px minmax(0, 1fr) auto;
  }

  .answer-visual {
    display: none;
  }

  .zone-bubble,
  .landing-page .zone-bubble {
    width: 50px;
    height: 50px;
    padding: 3px;
    font-size: 5.5px;
  }

  .zone-bubble strong,
  .landing-page .zone-bubble strong {
    font-size: 6.5px;
  }

  .zone-symbol,
  .landing-page .zone-symbol {
    font-size: 11px;
  }

  .mind-map--result .zone-bubble {
    width: 46px;
    height: 46px;
  }

  .topbar-social__link {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
}
