/* ===================== QUIZ SHOW PAGE ===================== */

/* Quiz hero */
.quiz-hero {
  background: linear-gradient(135deg, #4C1D95, #7C3AED 55%, #5B21B6 100%);
  padding: 56px 32px 80px;
  position: relative;
  overflow: hidden;
}

.quiz-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 90% 20%, rgba(245,158,11,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 5% 80%, rgba(13,148,136,0.2) 0%, transparent 50%);
}

.quiz-hero-pattern {
  position: absolute; top: 0; right: 0;
  width: 400px; height: 100%; opacity: 0.05;
  background-image: radial-gradient(circle, white 1.5px, transparent 1.5px);
  background-size: 28px 28px;
}

.quiz-hero-inner {
  max-width: 680px; margin: 0 auto;
  position: relative; z-index: 1;
  text-align: center;
}

.quiz-hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.15);
  color: white; padding: 6px 16px;
  border-radius: 20px; font-size: 12px;
  font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 20px;
}

.quiz-hero-title {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 44px; color: white;
  letter-spacing: -0.025em; line-height: 1.15;
  margin-bottom: 16px;
}

.quiz-hero-desc {
  font-size: 17px; color: rgba(255,255,255,0.72);
  line-height: 1.65; margin-bottom: 32px;
}

.quiz-hero-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 28px; flex-wrap: wrap;
}

.quiz-stat {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; color: rgba(255,255,255,0.65);
}

.quiz-stat strong { color: white; font-weight: 700; }

/* ===================== QUIZ CARD (PLAY PAGE) ===================== */
.quiz-wrap {
  max-width: 720px; margin: -48px auto 0;
  padding: 0 24px 80px;
  position: relative; z-index: 10;
}

.quiz-card {
  background: white; border-radius: 24px;
  box-shadow: 0 8px 48px rgba(49,46,129,0.14);
  overflow: hidden;
}

/* Progress bar */
.quiz-progress-bar-wrap {
  height: 5px; background: var(--light);
}

.quiz-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cat1), var(--teal2));
  border-radius: 0 4px 4px 0;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz-card-inner { padding: 40px 48px 44px; }

/* Step indicator */
.step-indicator {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.step-label {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--cat1);
}

.step-dots {
  display: flex; gap: 6px; align-items: center;
}

.step-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--light); transition: all 0.3s;
}

.step-dot.done { background: var(--cat1); }
.step-dot.active { background: var(--cat1); width: 24px; border-radius: 4px; }

/* Question */
.question-area { min-height: 260px; }

.question-num {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 56px; color: var(--light);
  line-height: 1; margin-bottom: -10px;
  display: block;
}

.question-text {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 24px; color: var(--ink);
  letter-spacing: -0.02em; line-height: 1.3;
  margin-bottom: 28px;
}

/* Answer options */
.options { display: flex; flex-direction: column; gap: 10px; }

.option {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; border-radius: 14px;
  border: 2px solid var(--light);
  cursor: pointer; transition: all 0.2s;
  background: #FAFAFA;
  position: relative; overflow: hidden;
}

.option:hover {
  border-color: var(--cat1);
  background: rgba(124,58,237,0.04);
  transform: translateX(4px);
}

.option.selected {
  border-color: var(--cat1);
  background: rgba(124,58,237,0.06);
}

.option.selected::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--cat1);
  border-radius: 0 2px 2px 0;
}

.option-letter {
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--light); display: flex;
  align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 13px; color: var(--gray);
  flex-shrink: 0; transition: all 0.2s;
}

.option.selected .option-letter {
  background: var(--cat1); color: white;
}

.option:hover .option-letter {
  background: rgba(124,58,237,0.15); color: var(--cat1);
}

.option-text {
  font-size: 15px; color: var(--ink); line-height: 1.45;
  font-weight: 500; flex: 1;
}

.option-check {
  margin-left: auto; width: 22px; height: 22px;
  border-radius: 50%; border: 2px solid var(--light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all 0.2s;
}

.option.selected .option-check {
  background: var(--cat1); border-color: var(--cat1);
}

/* Nav buttons */
.quiz-nav {
  display: flex; align-items: center;
  justify-content: space-between; margin-top: 32px;
  padding-top: 24px; border-top: 1px solid var(--light);
}

.quiz-btn-back {
  display: flex; align-items: center; gap: 6px;
  padding: 11px 20px; border-radius: 12px;
  background: var(--light); color: var(--gray);
  font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.15s;
  border: none; font-family: 'DM Sans', sans-serif;
}

.quiz-btn-back:hover { background: #E5E7EB; color: var(--ink); }
.quiz-btn-back:disabled { opacity: 0.3; cursor: not-allowed; }

.quiz-btn-next {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 12px;
  background: var(--cat1); color: white;
  font-size: 14px; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
  border: none; font-family: 'DM Sans', sans-serif;
  box-shadow: 0 4px 14px rgba(124,58,237,0.35);
}

.quiz-btn-next:hover { background: #4C1D95; transform: translateX(2px); box-shadow: 0 6px 20px rgba(124,58,237,0.4); }
.quiz-btn-next:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

/* ===================== SCREEN: INTRO ===================== */
.screen { display: none; }
.screen.active { display: block; }

.intro-emoji { font-size: 64px; display: block; text-align: center; margin-bottom: 20px; }

.intro-title {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 28px; color: var(--ink);
  letter-spacing: -0.02em; text-align: center;
  line-height: 1.2; margin-bottom: 12px;
}

.intro-sub {
  font-size: 15px; color: var(--gray);
  text-align: center; line-height: 1.65;
  margin-bottom: 28px; max-width: 420px;
  margin-left: auto; margin-right: auto;
}

.intro-facts {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-bottom: 32px;
}

.intro-fact {
  background: var(--bg); border-radius: 12px;
  padding: 14px 16px; display: flex;
  align-items: flex-start; gap: 10px;
}

.intro-fact-icon { font-size: 20px; flex-shrink: 0; }

.intro-fact-text {
  font-size: 13px; color: var(--gray); line-height: 1.5;
}

.intro-fact-text strong { color: var(--ink); font-weight: 600; }

.start-btn {
  width: 100%; padding: 16px;
  background: linear-gradient(135deg, var(--cat1), #5B21B6);
  color: white; border: none; border-radius: 14px;
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 16px; cursor: pointer;
  transition: all 0.2s; letter-spacing: -0.01em;
  box-shadow: 0 6px 24px rgba(124,58,237,0.35);
  display: flex; align-items: center; justify-content: center; gap: 10px;
}

.start-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(124,58,237,0.4); }

/* ===================== SCREEN: RESULT ===================== */
.result-header {
  background: linear-gradient(135deg, #4C1D95, var(--cat1));
  padding: 36px 48px;
  text-align: center; position: relative; overflow: hidden;
}

.result-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(245,158,11,0.2), transparent 55%);
}

.result-congrats {
  font-size: 11px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(255,255,255,0.6);
  margin-bottom: 8px; position: relative; z-index: 1;
}

.result-type-emoji {
  font-size: 72px; display: block;
  margin-bottom: 12px; position: relative; z-index: 1;
  animation: bounce 0.6s ease 0.3s both;
}

@keyframes bounce {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.result-type-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--amber);
  margin-bottom: 10px; position: relative; z-index: 1;
}

.result-type-name {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 36px; color: white;
  letter-spacing: -0.02em; line-height: 1.15;
  margin-bottom: 10px; position: relative; z-index: 1;
}

.result-type-tagline {
  font-family: 'Playfair Display', serif; font-style: italic;
  font-size: 17px; color: rgba(255,255,255,0.7);
  position: relative; z-index: 1;
}

.result-body { padding: 36px 48px; }

/* Score bars */
.score-bars { margin-bottom: 32px; }

.score-bars-title {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 13px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gray);
  margin-bottom: 16px;
}

.score-bar-item { margin-bottom: 12px; }

.score-bar-label {
  display: flex; justify-content: space-between;
  font-size: 13px; font-weight: 600; color: var(--ink);
  margin-bottom: 6px;
}

.score-bar-pct { color: var(--gray2); font-weight: 400; }

.score-bar-track {
  height: 8px; background: var(--light);
  border-radius: 4px; overflow: hidden;
}

.score-bar-fill {
  height: 100%; border-radius: 4px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Result description */
.result-desc-title {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 20px; color: var(--ink);
  margin-bottom: 12px; letter-spacing: -0.01em;
}

.result-desc-text {
  font-size: 15px; color: #374151;
  line-height: 1.75; margin-bottom: 24px;
}

/* Traits */
.traits-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin-bottom: 28px;
}

.trait-card {
  background: var(--bg); border-radius: 12px;
  padding: 14px 16px; display: flex;
  align-items: flex-start; gap: 10px;
}

.trait-icon { font-size: 20px; flex-shrink: 0; }
.trait-text { font-size: 13px; color: var(--gray); line-height: 1.5; }
.trait-text strong { color: var(--ink); font-weight: 600; display: block; margin-bottom: 2px; }

/* Share result */
.share-result {
  background: linear-gradient(135deg, #1A1744, var(--indigo));
  border-radius: 16px; padding: 28px;
  text-align: center; margin-bottom: 28px;
  position: relative; overflow: hidden;
}

.share-result::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at right, rgba(13,148,136,0.2), transparent 60%);
}

.share-result-text {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 17px; color: white; margin-bottom: 6px;
  position: relative; z-index: 1;
}

.share-result-sub {
  font-size: 13px; color: rgba(255,255,255,0.5);
  margin-bottom: 18px; position: relative; z-index: 1;
}

.share-btns {
  display: flex; gap: 10px; justify-content: center;
  position: relative; z-index: 1; flex-wrap: wrap;
}

.share-btn-big {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 10px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  transition: opacity 0.15s; border: none;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
}

.share-btn-big:hover { opacity: 0.85; }

/* Retake & related */
.retake-btn {
  width: 100%; padding: 14px;
  background: var(--light); color: var(--ink);
  border: none; border-radius: 12px;
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 14px; cursor: pointer;
  transition: background 0.15s; margin-bottom: 32px;
}

.retake-btn:hover { background: #E5E7EB; }

/* Save banner */
.quiz-save-banner {
  text-align: center; padding: 14px 20px;
  border-radius: 12px; font-size: 13.5px;
  font-weight: 500; margin-bottom: 16px;
  background: rgba(16,185,129,0.1); color: #059669;
  border: 1px solid rgba(16,185,129,0.2);
  animation: fadeSlideIn 0.3s ease forwards;
}
.quiz-save-banner a {
  color: #059669; font-weight: 700;
  text-decoration: underline;
}

.related-articles-title {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 16px; color: var(--ink);
  margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}

.related-articles-title::before {
  content: ''; display: block;
  width: 3px; height: 18px; border-radius: 2px;
  background: var(--cat1);
}

.related-mini-list { display: flex; flex-direction: column; gap: 10px; }

.related-mini-item {
  display: flex; gap: 12px; align-items: center;
  background: var(--bg); border-radius: 12px;
  padding: 12px 14px; cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}

.related-mini-item:hover { background: rgba(124,58,237,0.05); }

.related-mini-emoji {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, #4C1D95, var(--cat1));
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}

.related-mini-title {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 13.5px; color: var(--ink); line-height: 1.3;
  flex: 1;
}

.related-mini-meta { font-size: 11px; color: var(--gray2); margin-top: 2px; }

/* ===================== FADE ===================== */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.question-area { animation: fadeSlideIn 0.3s ease forwards; }


/* =================================================================
   QUIZ HUB / INDEX PAGE
   ================================================================= */

/* ===== HERO ===== */
.qh-hero {
  background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 50%, #134E4A 100%);
  padding: 64px 32px 80px;
  position: relative; overflow: hidden;
}

.qh-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(124,58,237,0.2) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 30%, rgba(13,148,136,0.2) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 90%, rgba(245,158,11,0.1) 0%, transparent 50%);
}

.orb {
  position: absolute; border-radius: 50%;
  filter: blur(60px); opacity: 0.25;
  animation: qh-float 8s ease-in-out infinite;
}
.orb-1 { width: 300px; height: 300px; background: var(--cat1); top: -80px; right: 10%; animation-delay: 0s; }
.orb-2 { width: 200px; height: 200px; background: var(--teal); bottom: -40px; left: 5%; animation-delay: -3s; }
.orb-3 { width: 150px; height: 150px; background: var(--amber); top: 30%; right: 25%; animation-delay: -5s; }

@keyframes qh-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.qh-hero-inner {
  max-width: 1200px; margin: 0 auto;
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}

.qh-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1);
  color: var(--teal2); padding: 6px 16px;
  border-radius: 20px; font-size: 12px;
  font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 20px;
}

.qh-hero-title {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 52px; color: white;
  letter-spacing: -0.03em; line-height: 1.1;
  margin-bottom: 16px;
}

.qh-hero-title em { color: var(--amber); font-style: normal; }

.qh-hero-desc {
  font-size: 17px; color: rgba(255,255,255,0.65);
  line-height: 1.7; margin-bottom: 32px;
}

.qh-hero-stats {
  display: flex; gap: 28px; flex-wrap: wrap;
}

.qh-hero-stat { display: flex; flex-direction: column; gap: 2px; }
.qh-hero-stat-num { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 28px; color: white; line-height: 1; }
.qh-hero-stat-label { font-size: 12px; color: rgba(255,255,255,0.45); }

/* Hero right quiz pills */
.qh-hero-right { display: flex; flex-direction: column; gap: 12px; }

.qh-quiz-pill {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 16px 20px;
  display: flex; align-items: center; gap: 14px;
  cursor: pointer; transition: all 0.2s;
  text-decoration: none; color: inherit;
}
.qh-quiz-pill:hover { background: rgba(255,255,255,0.13); transform: translateX(4px); }

.qh-quiz-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}

.qh-quiz-pill-content { flex: 1; }
.qh-quiz-pill-cat { font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6; margin-bottom: 3px; color: white; }
.qh-quiz-pill-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 14px; color: white; line-height: 1.3; }
.qh-quiz-pill-meta { font-size: 11px; color: rgba(255,255,255,0.45); margin-top: 3px; }

.qh-quiz-pill-arrow { color: rgba(255,255,255,0.35); flex-shrink: 0; }

/* ===== FILTER STRIP ===== */
.qh-filter-strip {
  background: white;
  border-bottom: 1px solid var(--light);
  position: sticky; top: 68px; z-index: 90;
}

.qh-filter-strip-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 32px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
}

.qh-filter-tabs {
  display: flex; gap: 0;
  overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none;
}
.qh-filter-tabs::-webkit-scrollbar { display: none; }

.qh-filter-tab {
  display: flex; align-items: center; gap: 7px;
  padding: 16px 18px;
  font-size: 13.5px; font-weight: 600;
  color: var(--gray); cursor: pointer;
  white-space: nowrap; border-bottom: 3px solid transparent;
  transition: all 0.15s;
  text-decoration: none;
}
.qh-filter-tab:hover { color: var(--ink); }
.qh-filter-tab.active { color: var(--teal); border-bottom-color: var(--teal); }

.qh-tab-count {
  background: var(--light); color: var(--gray2);
  padding: 2px 7px; border-radius: 10px;
  font-size: 11px; font-weight: 700;
}
.qh-filter-tab.active .qh-tab-count { background: rgba(13,148,136,0.12); color: var(--teal); }

/* ===== PAGE BODY ===== */
.qh-body {
  max-width: 1200px; margin: 0 auto;
  padding: 40px 32px 80px;
}

/* ===== SECTION HEADER ===== */
.qh-sec-head {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 20px;
}
.qh-sec-title {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 19px; color: var(--ink);
  display: flex; align-items: center; gap: 10px;
}
.qh-sec-title-bar { width: 4px; height: 22px; border-radius: 2px; }
.qh-sec-count { font-family: 'DM Sans', sans-serif; font-weight: 400; font-size: 14px; color: var(--gray2); }

/* ===== FEATURED LARGE QUIZ ===== */
.qh-featured {
  background: white; border-radius: 24px;
  overflow: hidden; margin-bottom: 40px;
  box-shadow: 0 2px 24px rgba(49,46,129,0.09);
  display: grid; grid-template-columns: 1.1fr 1fr;
  cursor: pointer; transition: transform 0.18s, box-shadow 0.18s;
  text-decoration: none; color: inherit;
}
.qh-featured:hover { transform: translateY(-4px); box-shadow: 0 10px 48px rgba(49,46,129,0.15); }

.qh-fq-visual {
  min-height: 340px; position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.qh-fq-visual-emoji { font-size: 110px; opacity: 0.18; user-select: none; }

.qh-fq-badge {
  position: absolute; top: 20px; left: 20px;
  background: var(--amber); color: var(--ink);
  padding: 5px 12px; border-radius: 20px;
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
}

.qh-fq-body {
  padding: 36px 40px;
  display: flex; flex-direction: column;
  justify-content: center; gap: 14px;
}

.qh-fq-cat { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.qh-fq-title { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 28px; color: var(--ink); letter-spacing: -0.02em; line-height: 1.2; }
.qh-fq-desc { font-size: 14.5px; color: var(--gray); line-height: 1.65; }

.qh-fq-meta { display: flex; gap: 14px; flex-wrap: wrap; }
.qh-fq-meta-item { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--gray2); }

.qh-fq-start {
  display: inline-flex; align-items: center; gap: 8px;
  color: white;
  padding: 12px 24px; border-radius: 12px;
  font-size: 14px; font-weight: 700;
  align-self: flex-start; transition: all 0.18s;
  box-shadow: 0 4px 16px rgba(124,58,237,0.3);
}
.qh-featured:hover .qh-fq-start { gap: 12px; filter: brightness(0.9); }

/* ===== QUIZ GRID (HUB) ===== */
.qh-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.qh-qc {
  border-radius: 20px; overflow: hidden;
  cursor: pointer; position: relative;
  min-height: 280px; display: flex;
  flex-direction: column; justify-content: flex-end;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 16px rgba(49,46,129,0.1);
  text-decoration: none; color: inherit;
}
.qh-qc:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(49,46,129,0.2); }

.qh-qc-bg { position: absolute; inset: 0; z-index: 0; }

.qh-qc-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.15) 100%);
}

.qh-qc-emoji {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -60%);
  font-size: 64px; opacity: 0.22; z-index: 1; user-select: none;
}

.qh-qc-body {
  position: relative; z-index: 2;
  padding: 20px 22px 22px;
}

.qh-qc-cat {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 20px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: white; margin-bottom: 8px;
  backdrop-filter: blur(4px);
  width: fit-content;
}

.qh-qc-dot { width: 5px; height: 5px; border-radius: 50%; background: white; opacity: 0.8; }

.qh-qc-title {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 16px; color: white; line-height: 1.3;
  margin-bottom: 12px;
}

.qh-qc-footer {
  display: flex; align-items: center;
  justify-content: space-between;
}

.qh-qc-meta { font-size: 11.5px; color: rgba(255,255,255,0.5); }

.qh-qc-btn {
  display: flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  color: white; padding: 7px 14px;
  border-radius: 8px; font-size: 12px;
  font-weight: 700; transition: background 0.15s;
}
.qh-qc:hover .qh-qc-btn { background: rgba(255,255,255,0.25); }

/* ===== LIST VIEW ===== */
.qh-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }

.qh-ql-item {
  background: white; border-radius: 16px;
  display: flex; gap: 0; overflow: hidden;
  cursor: pointer; transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 10px rgba(49,46,129,0.05);
  align-items: stretch; text-decoration: none; color: inherit;
}
.qh-ql-item:hover { transform: translateX(4px); box-shadow: 0 4px 20px rgba(49,46,129,0.1); }

.qh-ql-color { width: 5px; flex-shrink: 0; }

.qh-ql-thumb {
  width: 80px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
}

.qh-ql-body { flex: 1; padding: 16px 20px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.qh-ql-cat { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.qh-ql-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 14.5px; color: var(--ink); line-height: 1.3; }
.qh-ql-meta { font-size: 11px; color: var(--gray2); display: flex; gap: 8px; margin-top: 2px; }

.qh-ql-right {
  padding: 16px 20px; display: flex; flex-direction: column;
  align-items: flex-end; justify-content: center; gap: 8px;
  flex-shrink: 0;
}

.qh-ql-start-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 7px 14px; border-radius: 8px;
  font-size: 12px; font-weight: 700;
  color: white; white-space: nowrap;
  transition: opacity 0.15s; text-decoration: none;
}
.qh-ql-start-btn:hover { opacity: 0.85; }

/* ===== CATEGORY SECTIONS ===== */
.qh-cat-section { margin-bottom: 56px; }

.qh-cat-header {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 14px 20px; border-radius: 14px;
  color: white; margin-bottom: 16px;
}

.qh-cat-header-left { display: flex; align-items: center; gap: 12px; }
.qh-cat-header-icon { font-size: 22px; }
.qh-cat-header-title { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 17px; }
.qh-cat-header-count { font-size: 12px; opacity: 0.65; margin-top: 1px; }
.qh-cat-see-all { font-size: 12.5px; font-weight: 700; color: white; opacity: 0.75; display: flex; align-items: center; gap: 4px; cursor: pointer; transition: all 0.15s; white-space: nowrap; text-decoration: none; }
.qh-cat-see-all:hover { opacity: 1; gap: 8px; }

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

.qh-cq-card {
  background: white; border-radius: 14px;
  overflow: hidden; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 10px rgba(49,46,129,0.05);
  text-decoration: none; color: inherit;
}
.qh-cq-card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(49,46,129,0.12); }

.qh-cq-thumb {
  height: 110px; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.qh-cq-thumb-emoji { font-size: 40px; opacity: 0.22; }

.qh-cq-body { padding: 14px 16px 16px; }
.qh-cq-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 13.5px; color: var(--ink); line-height: 1.35; margin-bottom: 8px; }
.qh-cq-footer { display: flex; align-items: center; justify-content: space-between; }
.qh-cq-meta { font-size: 11px; color: var(--gray2); }
.qh-cq-arrow { color: var(--gray2); }

/* ===== LOAD MORE ===== */
.qh-load-more-wrap { display: flex; justify-content: center; padding-top: 8px; }

.load-more-btn {
  display: flex; align-items: center; gap: 10px;
  background: white; border: 2px solid var(--light);
  color: var(--ink); padding: 13px 36px;
  border-radius: 12px; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: all 0.15s;
  font-family: 'DM Sans', sans-serif;
}
.load-more-btn:hover { border-color: var(--teal); color: var(--teal); background: rgba(13,148,136,0.04); }

/* ===== CATEGORY BG GRADIENTS ===== */
.bg-rel  { background: linear-gradient(135deg, #4C1D95, #7C3AED); }
.bg-hlth { background: linear-gradient(135deg, #064E3B, #059669); }
.bg-fin  { background: linear-gradient(135deg, #78350F, #D97706); }
.bg-car  { background: linear-gradient(135deg, #1E3A8A, #2563EB); }
.bg-tc   { background: linear-gradient(135deg, #7F1D1D, #DC2626); }
.bg-mix  { background: linear-gradient(135deg, #312E81, #6D28D9); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 960px) {
  .qh-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .qh-hero-right { display: none; }
  .qh-hero-title { font-size: 38px; }
  .qh-grid { grid-template-columns: repeat(2, 1fr); }
  .qh-cat-row { grid-template-columns: repeat(2, 1fr); }
  .qh-featured { grid-template-columns: 1fr; }
  .qh-fq-visual { min-height: 220px; }
  .qh-filter-strip-inner { padding: 0 16px; }
  .qh-body { padding: 32px 16px 80px; }
  .qh-hero { padding: 48px 16px 72px; }
  .qh-ql-right { display: none; }
}

@media (max-width: 768px) {
  .quiz-hero { padding: 40px 16px 72px; }
  .quiz-hero-title { font-size: 30px; }
  .quiz-hero-desc { font-size: 15px; }
  .quiz-wrap { padding: 0 16px 80px; }
  .quiz-card-inner { padding: 28px 24px 32px; }
  .result-header { padding: 32px 24px; }
  .result-body { padding: 28px 24px; }
  .traits-grid { grid-template-columns: 1fr; }
  .intro-facts { grid-template-columns: 1fr; }
  .question-text { font-size: 20px; }
  .result-type-name { font-size: 28px; }
}

@media (max-width: 580px) {
  .qh-grid { grid-template-columns: 1fr; }
  .qh-cat-row { grid-template-columns: 1fr; }
  .qh-hero-title { font-size: 30px; }
  .qh-filter-tab { padding: 14px 12px; font-size: 12.5px; }
}
