/* ==========================================================================
   ENNEAGRAM QUIZ LANDING PAGE - MODERN COSMIC / INDIGO DESIGN SYSTEM
   ========================================================================== */

:root {
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: #e0e7ff;
  --accent: #06b6d4;
  --accent-glow: rgba(6, 182, 212, 0.25);
  --bg-dark: #090d16;
  --bg-card: #111827;
  --bg-card-alt: #1f2937;
  --border-color: #2e384d;
  --border-highlight: #4338ca;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 0 20px rgba(99, 102, 241, 0.1);
  --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.35);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, rgba(6, 182, 212, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(236, 72, 153, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ================= HEADER & NAV ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(46, 56, 77, 0.5);
  padding: 14px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-badge {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  box-shadow: var(--shadow-glow);
}

.logo-text h1 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
  margin: 0;
}

.logo-text p {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0;
}

.btn-header-cta {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #c7d2fe;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-header-cta:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

/* ================= HERO SECTION ================= */
.hero-section {
  padding: 60px 0 40px 0;
  text-align: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 18px;
}

.text-gradient {
  background: linear-gradient(135deg, #a5b4fc 0%, #38bdf8 50%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 16.5px;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 30px auto;
  line-height: 1.65;
}

.hero-features-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 35px;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #cbd5e1;
}

.hero-feature-item span {
  color: var(--accent);
  font-size: 16px;
}

.btn-hero-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary), #4338ca);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
  transition: var(--transition);
  text-decoration: none;
}

.btn-hero-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(79, 70, 229, 0.6);
}

/* ================= INTRO & CONCEPT SECTION ================= */
.concepts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.concept-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
}

.concept-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.concept-card-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.concept-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.concept-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ================= QUIZ SECTION ================= */
.quiz-section {
  padding: 30px 0 60px 0;
}

.quiz-main-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.quiz-main-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), #ec4899);
}

/* Thanh Tiến Độ */
.progress-container {
  margin-bottom: 28px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.progress-bar-track {
  width: 100%;
  height: 8px;
  background: var(--bg-card-alt);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  width: 0%;
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

/* Hộp Câu Hỏi */
.question-category {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.question-text {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 1.5;
  margin-bottom: 30px;
  min-height: 60px;
}

/* Tùy chọn Likert 5 mức */
.options-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 30px;
}

.likert-btn {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 8px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.likert-btn:hover {
  background: #283548;
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.likert-btn.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.35);
}

.likert-score {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
}

.likert-btn.active .likert-score {
  color: #fff;
}

.likert-label {
  font-size: 11.5px;
  line-height: 1.3;
}

.quiz-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.btn-quiz-prev {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-quiz-prev:hover:not(:disabled) {
  background: var(--bg-card-alt);
  color: #fff;
}

.quiz-hint {
  font-size: 12px;
  color: var(--text-dim);
}

/* ================= LOADER BOX ================= */
.loader-wrapper {
  text-align: center;
  padding: 60px 20px;
}

.cosmic-spinner {
  width: 56px;
  height: 56px;
  border: 4px solid rgba(99, 102, 241, 0.2);
  border-top-color: var(--primary);
  border-right-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto 24px auto;
  animation: spin 0.9s linear infinite;
}

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

.loader-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.loader-desc {
  font-size: 14px;
  color: var(--text-muted);
}

/* ================= LEAD CAPTURE FORM ================= */
.lead-card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.lead-icon-badge {
  width: 54px;
  height: 54px;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 16px auto;
}

.lead-title {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.lead-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.form-group {
  text-align: left;
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 14px;
  color: #fff;
  outline: none;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

.form-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  margin: 16px 0 24px 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

.form-checkbox-row input {
  margin-top: 3px;
  accent-color: var(--primary);
}

.btn-submit-lead {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), #4338ca);
  color: #fff;
  font-size: 15.5px;
  font-weight: 700;
  padding: 15px 24px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-submit-lead:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(79, 70, 229, 0.6);
}

.btn-submit-lead:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.lead-error {
  color: var(--danger);
  font-size: 13px;
  margin-bottom: 14px;
  display: none;
}

/* ================= RESULTS DASHBOARD ================= */
.result-header-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(6, 182, 212, 0.15));
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  margin-bottom: 30px;
}

.result-avatar {
  font-size: 48px;
  margin-bottom: 8px;
}

.result-dominant-title {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.result-dominant-eng {
  font-size: 14.5px;
  color: var(--accent);
  font-style: italic;
  margin-bottom: 12px;
}

.result-tagline {
  font-size: 15.5px;
  color: #cbd5e1;
  max-width: 680px;
  margin: 0 auto 18px auto;
  line-height: 1.55;
}

.badge-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.badge-item {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  color: #e2e8f0;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 600;
}

.badge-item strong {
  color: var(--accent);
}

/* Grid kết quả chi tiết */
.result-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.result-card {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
}

.result-card-heading {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}

.result-card-body {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.result-card-body p {
  margin-bottom: 10px;
}

.result-card-body p:last-child {
  margin-bottom: 0;
}

.highlight-amber {
  color: #fde047;
}

.highlight-rose {
  color: #f43f5e;
}

.highlight-emerald {
  color: #34d399;
}

.bullet-list {
  padding-left: 18px;
  margin: 0;
}

.bullet-list li {
  margin-bottom: 6px;
}

.bullet-list li:last-child {
  margin-bottom: 0;
}

/* Nghề nghiệp tags */
.career-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.career-tag {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: #7dd3fc;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
}

/* Thanh xếp hạng 9 nhóm */
.ranking-bars-wrap {
  margin-top: 10px;
}

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

.ranking-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: #cbd5e1;
  margin-bottom: 4px;
}

.dominant-tag {
  color: #fbbf24;
  font-size: 11px;
  font-weight: bold;
  margin-left: 6px;
}

.ranking-bar-track {
  width: 100%;
  height: 8px;
  background: #1e293b;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.ranking-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

/* 3 Triad breakdown */
.triad-breakdown-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 25px;
}

.triad-bars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 14px;
}

.triad-col {
  text-align: center;
}

.triad-col-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.triad-bar-track {
  width: 100%;
  height: 10px;
  background: #1e293b;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 6px;
}

.triad-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

.triad-score-num {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

/* Nút hành động báo cáo */
.result-actions-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 30px;
  border-top: 1px solid var(--border-color);
  padding-top: 25px;
}

.btn-open-pdf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent), #0284c7);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(6, 182, 212, 0.35);
  transition: var(--transition);
}

.btn-open-pdf:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(6, 182, 212, 0.5);
}

.btn-retest {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.btn-retest:hover {
  background: var(--bg-card-alt);
  color: #fff;
}

/* ================= FAQ SECTION ================= */
.faq-section {
  padding: 50px 0 70px 0;
}

.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  font-size: 15px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 36px auto;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
}

.faq-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.faq-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ================= FOOTER ================= */
.site-footer {
  border-top: 1px solid rgba(46, 56, 77, 0.5);
  background: #060911;
  padding: 40px 0 30px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .hero-title {
    font-size: 28px;
  }
  .options-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .likert-btn {
    flex-direction: row;
    justify-content: flex-start;
    padding: 12px 16px;
    gap: 14px;
    text-align: left;
  }
  .quiz-main-card {
    padding: 22px;
  }
  .question-text {
    font-size: 17px;
    min-height: auto;
  }
  .triad-bars-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}


/* ================= DYNAMICS & ADAPTABILITY SECTION ================= */
.dynamics-section {
  padding: 40px 0 60px 0;
  border-top: 1px solid rgba(46, 56, 77, 0.4);
}

.dynamics-hero-card {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.9), rgba(30, 41, 59, 0.8));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
  margin-bottom: 40px;
}

.dynamics-visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.dynamics-img-container {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 30px rgba(99, 102, 241, 0.25);
  border: 1px solid rgba(99, 102, 241, 0.4);
  background: #090d16;
}

.dynamics-img-container img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.dynamics-img-container:hover img {
  transform: scale(1.02);
}

.dynamics-img-overlay-tag {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #c7d2fe;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.geometry-legend-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.geometry-item {
  background: rgba(31, 41, 55, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  border-left: 4px solid var(--primary);
  transition: var(--transition);
}

.geometry-item:hover {
  background: rgba(31, 41, 55, 0.9);
  border-color: var(--primary);
  transform: translateX(4px);
}

.geometry-item h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.geometry-item p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* 4 Trục Biến Hóa Grid */
.dynamics-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pillar-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.pillar-badge {
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 12px;
  width: fit-content;
}

.badge-wing { background: rgba(236, 72, 153, 0.15); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.3); }
.badge-arrow { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-level { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-essence { background: rgba(6, 182, 212, 0.15); color: #38bdf8; border: 1px solid rgba(6, 182, 212, 0.3); }

.pillar-card h3 {
  font-size: 16.5px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.pillar-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 14px;
}

.pillar-example {
  background: var(--bg-card-alt);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 11.5px;
  color: #cbd5e1;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  line-height: 1.45;
}

/* Interactive Dynamics Explorer */
.interactive-dynamics-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-card);
}

.explorer-header {
  text-align: center;
  margin-bottom: 24px;
}

.explorer-header h3 {
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.explorer-header p {
  font-size: 13.5px;
  color: var(--text-muted);
}

.type-buttons-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.btn-type-tab {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-type-tab:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-type-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 18px rgba(99, 102, 241, 0.5);
  transform: scale(1.08);
}

.explorer-display-card {
  background: var(--bg-card-alt);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.explorer-display-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.explorer-type-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.explorer-type-badge {
  font-size: 26px;
}

.explorer-type-titles h4 {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.explorer-type-titles span {
  font-size: 12.5px;
  color: var(--accent);
  font-style: italic;
}

.explorer-meta-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill-meta {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: #1e293b;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.explorer-flow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.flow-card {
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.flow-card.growth {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-left: 4px solid var(--success);
}

.flow-card.stress {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-left: 4px solid var(--danger);
}

.flow-title {
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.flow-card.growth .flow-title { color: #34d399; }
.flow-card.stress .flow-title { color: #f87171; }

.flow-desc {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0;
}

.explorer-wings-row {
  background: rgba(15, 23, 42, 0.6);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.55;
  border: 1px solid var(--border-color);
}

.explorer-wings-row strong {
  color: #c7d2fe;
}

@media (max-width: 768px) {
  .dynamics-visual-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .explorer-flow-grid {
    grid-template-columns: 1fr;
  }
}

/* ================= INSTANT RESULTS & PDF DOWNLOAD SUITE ================= */
.result-quick-action-bar {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(17, 24, 39, 0.95));
  border: 1.5px solid rgba(99, 102, 241, 0.4);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(99, 102, 241, 0.15);
}

.congrats-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.sparkle-icon {
  font-size: 32px;
}

.congrats-title h3 {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px 0;
}

.congrats-title p {
  font-size: 13px;
  color: #cbd5e1;
  margin: 0;
}

/* Personalize Name Bar */
.personalize-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.personalize-bar label {
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  white-space: nowrap;
}

.personalize-input-wrap {
  display: flex;
  gap: 8px;
  flex: 1;
  min-width: 240px;
}

.personalize-input {
  flex: 1;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 13.5px;
  color: #fff;
  outline: none;
  transition: var(--transition);
}

.personalize-input:focus {
  border-color: var(--primary);
}

.btn-sm-update {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-sm-update:hover {
  background: var(--primary-hover);
}

/* Download Action Buttons */
.result-top-download-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-download-primary {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  padding: 14px 24px;
  border-radius: var(--radius-full);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
  transition: var(--transition);
  text-decoration: none;
}

.btn-download-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.5);
  background: linear-gradient(135deg, #059669, #047857);
}

.btn-download-primary .btn-subtext {
  font-size: 11.5px;
  font-weight: normal;
  opacity: 0.9;
}

.btn-download-secondary {
  background: var(--bg-card-alt);
  color: #e2e8f0;
  border: 1px solid var(--border-color);
  padding: 14px 20px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  text-decoration: none;
}

.btn-download-secondary:hover {
  background: #283548;
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.pdf-download-status {
  margin-top: 14px;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Email Sync Card */
.email-sync-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.6));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 35px;
  margin-bottom: 25px;
}

.email-sync-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.sync-icon {
  font-size: 28px;
}

.email-sync-header h4 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px 0;
}

.email-sync-header p {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0;
}

.email-sync-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sync-input {
  flex: 1;
  min-width: 200px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  color: #fff;
  outline: none;
  transition: var(--transition);
}

.sync-input:focus {
  border-color: var(--primary);
}

.btn-sync-submit {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-sync-submit:hover {
  background: var(--primary-hover);
}

.sync-msg {
  margin-top: 10px;
  font-size: 12.5px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

/* OFFSCREEN PDF RENDER TEMPLATE (A4 PRINT OPTIMIZED) */
.pdf-offscreen-container {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 794px; /* A4 standard width at 96 DPI */
  background: #ffffff;
  color: #1e293b;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.5;
  padding: 20px;
  box-sizing: border-box;
}

.pdf-page-sheet {
  background: #ffffff;
  padding: 24px 30px;
  box-sizing: border-box;
  page-break-after: always;
  min-height: 1120px;
}

.pdf-page-sheet:last-child {
  page-break-after: avoid;
}

/* Global Print Styles */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .site-header,
  .hero-section,
  .dynamics-section,
  .concepts-grid,
  .faq-section,
  .site-footer,
  .result-quick-action-bar,
  .email-sync-card,
  .result-actions-row,
  .quiz-nav-row,
  #quiz-card-wrapper,
  #quiz-loader-wrapper {
    display: none !important;
  }
  .quiz-section {
    padding: 0 !important;
  }
  .quiz-main-card {
    background: #fff !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  #quiz-result-wrapper {
    display: block !important;
    color: #1e293b !important;
  }
  .result-header-card {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
  }
  .result-dominant-title {
    color: #0284c7 !important;
  }
  .result-card {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
    page-break-inside: avoid;
  }
  .result-card-heading {
    color: #0284c7 !important;
    border-bottom: 1px solid #cbd5e1 !important;
  }
}


/* ================= PHẦN 2: HƯỚNG DẪN CÁCH TRẢ LỜI BÀI TEST ================= */
.test-guide-section {
  padding: 40px 0 50px 0;
}

.test-guide-card {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(30, 41, 59, 0.85));
  border: 1.5px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.guide-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin: 28px 0 32px 0;
}

.guide-step-item {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  position: relative;
  transition: var(--transition);
}

.guide-step-item:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  background: rgba(15, 23, 42, 0.95);
}

.step-number-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.guide-step-item h4 {
  font-size: 15.5px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.guide-step-item p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* Bảng giải thích thang Likert */
.likert-explanation-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 28px;
}

.likert-explanation-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.likert-table-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.likert-table-cell {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  text-align: center;
}

.likert-num {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}

.likert-desc-title {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  display: block;
  margin-bottom: 3px;
}

.likert-desc-sub {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
}

.guide-action-row {
  text-align: center;
  padding-top: 10px;
}

.btn-start-quiz-now {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary), #4338ca);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 40px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.45);
  transition: var(--transition);
  text-decoration: none;
}

.btn-start-quiz-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(79, 70, 229, 0.65);
}

@media (max-width: 768px) {
  .likert-table-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .likert-table-cell {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 12px;
    padding: 10px 14px;
  }
  .likert-num {
    margin-bottom: 0;
    min-width: 20px;
  }
}
