
.hpa-highlight {
  background: linear-gradient(90deg, var(--coral) 0%, var(--coral-soft) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ══════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

[data-anim] {
  opacity: 0;
  animation: fadeUp 0.65s var(--ease-out) both;
}

[data-anim="fade"] {
  animation-name: fadeIn;
}

@media (prefers-reduced-motion: reduce) {
  [data-anim] {
    animation: none;
    opacity: 1;
  }
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.dn-hero {
  background: linear-gradient(135deg, #091830 0%, #0d2d5e 55%, #1a4a7a 100%);
  padding: var(--space-9) 0 var(--space-8);
  position: relative;
  overflow: hidden;
}

.dn-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

/* teal glow top-right */
.dn-hero::after {
  content: "";
  position: absolute;
  top: -100px;
  right: -60px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(56, 217, 192, 0.12) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.dn-hero-sep {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
}

.dn-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 740px;
}

.dn-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.07);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--space-5);
}

.dn-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  flex-shrink: 0;
}

.dn-hero h1 {
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: #fff;
  margin-bottom: var(--space-4);
}

.dn-hero h1 .accent {
  color: var(--teal);
}

.dn-hero-sub {
  font-size: var(--text-md);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: var(--space-6);
}

.dn-hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.dn-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 48px;
  padding: 0 var(--space-6);
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform var(--duration) var(--ease-out),
    box-shadow var(--duration),
    background var(--duration);
}

.dn-btn:hover {
  transform: translateY(-2px);
}

.dn-btn:active {
  transform: translateY(0);
}

.dn-btn-primary {
  background: var(--coral);
  color: white;
  box-shadow: 0 4px 20px rgba(56, 217, 192, 0.3);
}

.dn-btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
}

.dn-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* ── Header ── */
.qt-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.qt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: var(--space-4);
}

.qt-eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--coral);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.hpa-headline {
  font-size: var(--text-xl);
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy-900);
  margin-bottom: var(--space-5);
}

/* coral gradient on the percentage */
.hpa-highlight {
  background: linear-gradient(90deg, var(--coral) 0%, var(--coral-soft) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Container bọc ngoài để căn giữa hoặc giới hạn độ rộng nếu cần */
.tabs-container {
  width: 100%;
  padding: var(--space-4) 0;
  display: flex;
  justify-content: center; /* Căn giữa giống như trong Screenshot 2026-06-23 at 11.34.05.png */
}

/* Thanh điều hướng chính */
.tabs-nav {
  display: flex;
  background-color: var(--surface-card);
  padding: var(--space-2);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  gap: var(--space-2);
  position: relative;
  max-width: 100%;
  border: 1px solid var(--coral);
  align-items: center;
  justify-content: space-between;
}

/* Định dạng các nút Tab */
.tab-btn {
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--navy-300);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-lg);
  cursor: pointer;
  white-space: nowrap;
  transition:
    color var(--duration) var(--ease-out),
    background-color var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

/* Hiệu ứng khi Hover (chưa active) */
.tab-btn:hover:not(.active) {
  color: var(--navy-700);
  background-color: var(--surface-muted);
}

/* Trạng thái Tab đang được chọn (Active) */
.tab-btn.active {
  color: #ffffff;
  background-color: var(--coral); /* Màu san hô chủ đạo */
  box-shadow: 0 4px 14px var(--coral-dim); /* Đổ bóng nhẹ cùng tone màu */
}

/* --- Giải pháp Responsive tối ưu --- */
@media (max-width: 768px) {
  .tabs-container {
    padding: var(--space-3) var(--space-4);
    justify-content: flex-start; /* Đưa về góc trái để cuộn mượt hơn */
  }

  .tabs-nav {
    overflow-x: auto; /* Tự động kích hoạt thanh cuộn ngang nếu tab quá dài */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Cuộn mượt trên iOS */
    width: 100%;
    /* Ẩn thanh cuộn vật lý để trông sạch sẽ hơn */
    scrollbar-width: none;
  }

  .tabs-nav::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    padding: var(--space-2) var(--space-4); /* Thu nhỏ khoảng cách trên mobile */
    font-size: var(--text-sm);
  }
}

/* Container bọc ngoài để căn giữa hoặc giới hạn độ rộng nếu cần */
.tabs-container {
  width: 100%;
  padding: var(--space-4) 0;
  display: flex;
  justify-content: center; /* Căn giữa giống như trong Screenshot 2026-06-23 at 11.34.05.png */
}

/* Thanh điều hướng chính */
.tabs-nav {
  display: flex;
  background-color: var(--surface-card);
  padding: var(--space-2);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  gap: var(--space-2);
  position: relative;
  max-width: 100%;
  border: 1px solid var(--coral);
}

/* Định dạng các nút Tab */
.tab-btn {
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--navy-300);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-lg);
  cursor: pointer;
  white-space: nowrap;
  transition:
    color var(--duration) var(--ease-out),
    background-color var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

/* Hiệu ứng khi Hover (chưa active) */
.tab-btn:hover:not(.active) {
  color: var(--navy-700);
  background-color: var(--surface-muted);
}

/* Trạng thái Tab đang được chọn (Active) */
.tab-btn.active {
  color: #ffffff;
  background-color: var(--coral); /* Màu san hô chủ đạo */
  box-shadow: 0 4px 14px var(--coral-dim); /* Đổ bóng nhẹ cùng tone màu */
}

/* --- Giải pháp Responsive tối ưu --- */
@media (max-width: 768px) {
  .tabs-container {
    padding: var(--space-3) var(--space-4);
    justify-content: center; /* Đưa về góc trái để cuộn mượt hơn */
  }

  .tabs-nav {
    overflow-x: auto; /* Tự động kích hoạt thanh cuộn ngang nếu tab quá dài */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Cuộn mượt trên iOS */
    width: 100%;
    /* Ẩn thanh cuộn vật lý để trông sạch sẽ hơn */
    scrollbar-width: none;
    justify-content: center;
    max-width: max-content;
  }

  .tabs-nav::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    padding: var(--space-2) var(--space-4); /* Thu nhỏ khoảng cách trên mobile */
    font-size: var(--text-sm);
  }
}

/* ── DASHBOARD GRID ── */
/* Hai card chiều cao bằng nhau nhờ align-items: stretch */
.dashboard-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-5);
  align-items: stretch;
  /* ← key fix: cả 2 card cùng chiều cao */
  margin-bottom: var(--space-6);
}

/* ── SECTION HEADER ── */
.kq-header {
    margin-bottom: var(--space-5);
}
.kq-header h2 {
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 800;
    color: var(--navy-900);
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.kq-header .kq-date {
    font-size: var(--text-sm);
    color: var(--navy-500);
}


/* CARD chung */
.card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--duration) var(--ease-out);
}

/* ── MEMBER INFO CARD ── */
.member-info-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-6) var(--space-5);
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.member-avatar-wrapper {
  position: relative;
  margin-bottom: var(--space-4);
}

.member-avatar {
  width: 110px;
  height: 110px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 4px solid var(--navy-100);
  box-shadow: var(--shadow-sm);
  display: block;
}

.date-badge {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-card);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--coral-hex);
  border: 1px solid rgba(232, 112, 95, 0.25);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: var(--shadow-sm);
}

.member-details {
  margin-bottom: var(--space-5);
  margin-top: var(--space-2);
}

.member-name {
  font-size: var(--text-md);
  color: var(--navy-900);
  font-weight: 700;
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.member-meta {
  font-size: var(--text-sm);
  color: var(--navy-500);
  margin-bottom: 4px;
}

/* Đẩy button xuống đáy card để hai card trông cân */
.member-info-card .btn-area {
  margin-top: auto;
  width: 100%;
}

.btn-download-premium {
  width: 100%;
  height: 44px;
  background: linear-gradient(135deg, var(--coral-hex) 0%, #d65a49 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  box-shadow: 0 4px 14px rgba(232, 112, 95, 0.3);
  transition: all var(--duration) var(--ease-out);
}

.btn-download-premium:hover {
  background: linear-gradient(135deg, #d65a49 0%, #be4636 100%);
  box-shadow: 0 6px 20px rgba(232, 112, 95, 0.4);
  transform: translateY(-1px);
}

/* ── TIMELINE PROGRESS CARD ── */
.timeline-progress-card {
  padding: var(--space-6) !important;
  display: flex;
  flex-direction: column;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
  gap: var(--space-2);
}

.timeline-header h3 {
  font-size: var(--text-lg);
  color: var(--navy-900);
  font-weight: 700;
}

.timeline-header .start-date {
  font-size: var(--text-sm);
  color: var(--navy-500);
  background: var(--surface-muted);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
}

/* Progress bar */
.timeline-steps-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: var(--space-6);
  background: var(--navy-100);
  padding: 4px;
  border-radius: var(--radius-full);
}

.progress-segment {
  height: 10px;
  border-radius: var(--radius-full);
  position: relative;
  overflow: hidden;
  background: transparent;
}

.progress-segment.completed {
  background: var(--teal-dark);
}

.progress-segment.active {
  background: rgba(34, 184, 160, 0.15);
}

.progress-segment.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--seg-width, 0%);
  background: var(--teal-dark);
  border-radius: var(--radius-full);
}

/* KPI grid — dùng flex để 4 ô luôn fill hết chiều ngang */
.download-grid-kpi {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  flex: 1;
  /* fill height trong flex-column */
}

.kpi-download-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-5) var(--space-2);
  border-radius: var(--radius-md);
  text-decoration: none;
  text-align: center;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  transition: all var(--duration) var(--ease-out);
  min-height: 96px;
}

.kpi-title {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--navy-700);
}

.kpi-action {
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--navy-500);
}

.kpi-download-item.available {
  background: rgba(56, 217, 192, 0.06);
  border-color: rgba(34, 184, 160, 0.2);
}

.kpi-download-item.available .kpi-title {
  color: var(--teal-dark);
}

.kpi-download-item.available .kpi-action {
  color: var(--teal-dark);
  font-weight: 600;
}

.kpi-download-item.available:hover {
  background: rgba(56, 217, 192, 0.12);
  border-color: var(--teal-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.kpi-download-item.active-survey {
  background: rgba(232, 112, 95, 0.05);
  border-color: rgba(232, 112, 95, 0.2);
}

.kpi-download-item.active-survey .kpi-title {
  color: var(--coral-hex);
}

.kpi-download-item.active-survey .kpi-action {
  color: var(--coral-hex);
  font-weight: 600;
}

.kpi-download-item.active-survey:hover {
  background: rgba(232, 112, 95, 0.1);
  border-color: var(--coral-hex);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.kpi-download-item.locked {
  background: var(--surface-muted);
  border-color: var(--border);
  cursor: not-allowed;
  opacity: 0.55;
}

.kpi-download-item.locked .kpi-title,
.kpi-download-item.locked .kpi-action {
  color: var(--navy-300);
}

/* ══════════════════════════════════════════
   SURVEY SECTION
══════════════════════════════════════════ */
.dg-survey-section {
  /* no extra top pad — page-body already has it */
}

.dg-section-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.dg-section-header h2 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--navy-500);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.dg-section-header .dg-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Survey card */
.dg-survey-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.dg-survey-body {
  padding: var(--space-6) var(--space-7);
  animation: fadeIn 0.2s var(--ease-out);
}

/* Question */
.dg-qblock {
  margin-bottom: var(--space-6);
}

.dg-qblock:last-of-type {
  margin-bottom: 0;
}

.dg-q-row {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  align-items: flex-start;
}

.dg-q-num {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--coral-hex);
  color: #fff;
  font-weight: 700;
  font-size: var(--text-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.dg-q-text {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--navy-900);
}

/* Scale */
.dg-scale-row {
  padding-left: 36px;
  margin-bottom: var(--space-4);
}

.dg-scale-row:last-child {
  margin-bottom: 0;
}

.dg-scale-label {
  font-size: var(--text-sm);
  color: var(--navy-500);
  margin-bottom: var(--space-3);
}

.dg-scale-track {
  display: flex;
  gap: 5px;
}

.dg-scale-pip {
  flex: 1;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--navy-500);
  cursor: pointer;
  transition:
    transform 0.12s var(--ease-out),
    background var(--duration) var(--ease-out),
    color var(--duration) var(--ease-out),
    border-color var(--duration) var(--ease-out);
}

.dg-scale-pip:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
}

.dg-scale-pip.filled {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.dg-scale-pip.active {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: #fff;
  font-weight: 700;
}

.dg-scale-ends {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--navy-300);
  margin-top: var(--space-2);
  padding: 0 2px;
}

/* Choice */
.dg-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-left: 36px;
}

.dg-opt {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background var(--duration),
    border-color var(--duration);
}

.dg-opt:hover {
  background: var(--surface-muted);
  border-color: var(--border);
}

.dg-opt.selected {
  background: rgba(34, 184, 160, 0.07);
  border-color: var(--teal-dark);
}

.dg-radio {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--navy-300);
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition:
    border-color var(--duration),
    background var(--duration);
}

.dg-opt.selected .dg-radio {
  border-color: var(--teal-dark);
  background: var(--teal-dark);
}

.dg-opt.selected .dg-radio svg {
  width: 11px;
  height: 11px;
  stroke: #fff;
}

.dg-opt-label {
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--navy-900);
}

/* Text */
.dg-text-wrap {
  padding-left: 36px;
}

.dg-text-input,
.dg-text-area {
  width: 100%;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  color: var(--navy-900);
  font-family: inherit;
  transition:
    border-color var(--duration),
    box-shadow var(--duration);
}

.dg-text-input {
  height: 44px;
}

.dg-text-area {
  min-height: 88px;
  resize: vertical;
  line-height: 1.5;
}

.dg-text-input::placeholder,
.dg-text-area::placeholder {
  color: var(--navy-300);
}

.dg-text-input:focus,
.dg-text-area:focus {
  outline: none;
  border-color: var(--teal-dark);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(34, 184, 160, 0.12);
}

/* Survey footer */
.dg-survey-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-7);
  border-top: 1px solid var(--border);
  background: var(--surface-muted);
}

.dg-progress-text {
  font-size: var(--text-sm);
  color: var(--navy-500);
}

.dg-progress-text b {
  color: var(--navy-900);
  font-weight: 700;
}

.dg-foot-actions {
  display: flex;
  gap: var(--space-3);
}

.dg-btn {
  border-radius: var(--radius-md);
  padding: 10px var(--space-5);
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  border: none;
  transition:
    opacity var(--duration),
    transform 0.1s var(--ease-out),
    box-shadow var(--duration);
}

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

.dg-btn-ghost {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--navy-900);
}

.dg-btn-ghost:hover:not([disabled]) {
  border-color: var(--border-hover);
}

.dg-btn-ghost[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.dg-btn-teal {
  background: var(--teal-dark);
  color: #fff;
  box-shadow: 0 4px 14px rgba(34, 184, 160, 0.25);
}

.dg-btn-teal:hover {
  opacity: 0.9;
}

/* Completion */
.dg-complete-view {
  text-align: center;
  padding: var(--space-8) var(--space-6) var(--space-7);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dg-complete-check {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-5);
  border-radius: var(--radius-full);
  background: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(34, 184, 160, 0.3);
}

.dg-complete-check svg {
  width: 36px;
  height: 36px;
  stroke: #fff;
}

.dg-complete-view h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy-900);
  margin: 0 0 var(--space-3);
}

.dg-complete-view p {
  font-size: var(--text-md);
  color: var(--navy-500);
  max-width: 420px;
  margin: 0 auto var(--space-6);
  line-height: 1.6;
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .download-grid-kpi {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .dg-survey-body {
    padding: var(--space-5);
  }

  .dg-survey-foot {
    padding: var(--space-4) var(--space-5);
    flex-direction: column;
    gap: var(--space-3);
    align-items: stretch;
  }

  .dg-options,
  .dg-scale-row,
  .dg-text-wrap {
    padding-left: 0;
  }

  .dg-foot-actions {
    justify-content: flex-end;
  }
}
/* ==========================================================================
   KPI ROW CONTAINER
   ========================================================================== */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* Định dạng 5 cột đều nhau trên PC */
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  width: 100%;
}

/* ==========================================================================
   KPI CARD COMPONENT
   ========================================================================== */
.kpi-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  position: relative;
  overflow: hidden;
  transition:
    box-shadow var(--duration) var(--ease-out),
    transform var(--duration) var(--ease-out);
}

/* Thanh Accent dọc màu Teal tinh tế khi Hover */
.kpi-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--teal-dark);
  opacity: 0;
  transition: opacity var(--duration);
}

.kpi-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.kpi-card:hover::before {
  opacity: 1;
}

/* Elements bên trong Card */
.kpi-card-head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.kpi-badge {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: var(--teal-dark);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.kpi-name {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1;
}

.kpi-label {
  font-size: var(--text-xs);
  color: var(--navy-500);
  line-height: 1.4;
  min-height: 28px; /* Giữ các ô chữ luôn bằng hàng nhau trên PC */
}

.kpi-value-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.kpi-value {
  font-size: clamp(24px, 3vw, 38px); /* Co giãn font chữ mượt theo khung nhìn */
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.kpi-unit {
  font-size: var(--text-sm);
  color: var(--navy-500);
  font-weight: 500;
}

/* Badge hiển thị tăng trưởng (Delta) */
.kpi-delta {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.kpi-delta.up {
  color: var(--teal-dark);
  background: rgba(34, 184, 160, 0.1);
}

.kpi-delta.down {
  color: var(--coral-hex);
  background: rgba(232, 112, 95, 0.1);
}

.kpi-prev {
  font-size: var(--text-xs);
  color: var(--navy-300);
}

/* ==========================================================================
   RESPONSIVE LAYOUT QUERIES
   ========================================================================== */
@media (max-width: 1100px) {
  .kpi-row {
    grid-template-columns: repeat(3, 1fr); /* Tablet màn ngang: 3 cột */
  }
}

@media (max-width: 768px) {
  .kpi-row {
    grid-template-columns: repeat(2, 1fr); /* Tablet dọc: 2 cột */
  }
  .kpi-card {
    padding: 14px 16px;
  }
}

@media (max-width: 480px) {
  .kpi-row {
    grid-template-columns: repeat(2, 1fr); /* Mobile chuẩn: Giữ 2 cột nhỏ gọn */
    gap: 10px;
  }
  .kpi-card {
    padding: 12px 14px;
  }
  .kpi-label {
    font-size: 11px;
    min-height: 0; /* Mobile bỏ khống chế chiều cao text để tối ưu không gian */
  }
}

@media (max-width: 360px) {
  .kpi-row {
    grid-template-columns: 1fr; /* Mobile siêu nhỏ: Ép về 1 cột dọc duy nhất */
  }
}







   /* =====================================================
      CI SECTION – wrapper ngoài cùng
      Dùng khi nhúng vào trang kết quả đánh giá
    ====================================================== */

    /* =====================================================
      CI GRID – 2 cột: card trái + card phải
      Responsive: ≤768px → xếp dọc 1 cột
    ====================================================== */
    .ci-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: var(--space-4);
      max-width: 1400px;
      margin: 0 auto;
      padding: 0 var(--space-7);
    }
 
    @media (max-width: 768px) {
      .ci-grid {
        grid-template-columns: 1fr;
      }
    }
 
    /* =====================================================
      CARD BASE – dùng chung cho cả 2 card
    ====================================================== */
    .ci-card {
      background: var(--surface-card);
      border-radius: var(--radius-lg);
      border: 1px solid var(--border);
      box-shadow: var(--shadow-sm);
      overflow: hidden;
    }
 
    /* ====================================================
      CARD TRÁI – chia 2 cột nội bộ bằng divider dọc
      Cột trái: text info | Cột phải: gauge + badge
    ===================================================== */
    .card-left {
      display: flex;
      flex-direction: row;
    }
 
    /* Phần text bên trái của card trái */
    .card-left__info {
      flex: 1;
      padding: var(--space-5);
      display: flex;
      flex-direction: column;
      gap: 0;
    }
 
    /* Tiêu đề "CI – Chỉ số hao phí" */
    .kpi-label {
      font-size: var(--text-base);
      font-weight: 600;
      color: var(--teal-dark);
      line-height: 1.3;
    }
 
    .kpi-label__sub {
      font-weight: 400;
      color: var(--navy-300);
      font-size: var(--text-sm);
    }
 
    /* Số điểm lớn "68.1 /100" */
    .kpi-score {
      display: flex;
      align-items: baseline;
      gap: var(--space-1);
      margin-top: var(--space-3);
      /* Animation: fade + slide lên khi load */
      opacity: 0;
      transform: translateY(8px);
      transition:
        opacity 0.55s var(--ease-out) 0.25s,
        transform 0.55s var(--ease-out) 0.25s;
    }
 
    .kpi-score.is-visible {
      opacity: 1;
      transform: translateY(0);
    }
 
    .kpi-score__num {
      font-size: 52px;
      font-weight: 700;
      color: var(--coral-hex);
      line-height: 1;
    }
 
    .kpi-score__denom {
      font-size: var(--text-sm);
      color: var(--navy-300);
      font-weight: 400;
    }
 
    /* Đường kẻ ngang phân cách score / mô tả */
    .kpi-divider {
      height: 1px;
      background: var(--border);
      margin: var(--space-4) 0;
    }
 
    /* Đoạn mô tả */
    .kpi-desc {
      font-size: var(--text-sm);
      color: var(--navy-300);
      line-height: 1.7;
    }
 
    .kpi-desc p + p {
      margin-top: var(--space-3);
    }
 
    /* Divider dọc giữa 2 nửa card trái */
    .card-left__divider {
      width: 1px;
      background: var(--border);
      /* Co giãn theo chiều cao card, trừ padding trên/dưới */
      align-self: stretch;
      margin: var(--space-5) 0;
    }
 
    /* Phần gauge bên phải của card trái */
    .card-left__gauge {
      width: 210px;
      flex-shrink: 0;
      padding: var(--space-5) var(--space-4);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-between;
      gap: var(--space-3);
    }
 
    /* Số "50" nhỏ nằm giữa trên đỉnh gauge */
    .gauge-midlabel {
      font-size: var(--text-xs);
      color: var(--navy-300);
    }
 
    /* Wrapper canvas – giữ tỉ lệ cung bán nguyệt */
    .gauge-canvas-wrap {
      position: relative;
      width: 172px;
      height: 92px;
    }
 
    .gauge-canvas-wrap canvas {
      display: block;
    }
 
    /* "0" và "100" hai đầu gauge */
    .gauge-axis {
      display: flex;
      justify-content: space-between;
      width: 172px;
      font-size: var(--text-xs);
      color: var(--navy-300);
      margin-top: -4px;
    }
 
    /* Số điểm dưới gauge: "68.1 /100" */
    .gauge-value {
      display: flex;
      align-items: baseline;
      gap: 2px;
    }
 
    .gauge-value__num {
      font-size: var(--text-lg);
      font-weight: 700;
      color: var(--coral-hex);
    }
 
    .gauge-value__denom {
      font-size: var(--text-xs);
      color: var(--navy-300);
    }
 
    /* Badge trạng thái "⚠ Hao phí trung bình cao" */
    .status-badge {
      display: inline-flex;
      align-items: center;
      gap: var(--space-2);
      border: 1.5px solid var(--coral-hex);
      border-radius: var(--radius-sm);
      padding: 6px var(--space-4);
      font-size: var(--text-xs);
      font-weight: 500;
      color: var(--coral-hex);
      white-space: nowrap;
    }
 
    .status-badge i {
      font-size: 13px;
    }
 
    /* ====================================================
      RESPONSIVE card trái – ≤480px xếp dọc
    ===================================================== */
    @media (max-width: 480px) {
      .card-left {
        flex-direction: column;
      }
 
      .card-left__divider {
        /* Đổi thành divider ngang khi xếp dọc */
        width: auto;
        height: 1px;
        margin: 0 var(--space-5);
        align-self: auto;
      }
 
      .card-left__gauge {
        width: 100%;
        padding-top: var(--space-4);
      }
    }
 
    /* ====================================================
      CARD PHẢI – "Phân bổ hao phí" donut chart
    ===================================================== */
    .card-right {
      padding: var(--space-5);
      display: flex;
      flex-direction: column;
    }
 
    /* Tiêu đề card phải */
    .card-right__title {
      font-size: var(--text-md);
      font-weight: 600;
      color: var(--navy-900);
      padding-bottom: var(--space-3);
      border-bottom: 1.5px solid var(--navy-900);
      margin-bottom: var(--space-4);
    }
 
    /* Layout: donut canvas + legend cạnh nhau */
    .donut-layout {
      display: flex;
      align-items: center;
      gap: var(--space-5);
      flex: 1;
      flex-wrap: wrap;
    }
 
    /* Wrapper canvas donut – vị trí relative để đặt số ở giữa */
    .donut-canvas-wrap {
      position: relative;
      width: 150px;
      height: 150px;
      flex-shrink: 0;
    }
 
    .donut-canvas-wrap canvas {
      display: block;
    }
 
    /* Số điểm ở giữa donut */
    .donut-center {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      pointer-events: none;
      text-align: center;
    }
 
    .donut-center__val {
      font-size: 24px;
      font-weight: 700;
      color: var(--coral-hex);
      line-height: 1;
    }
 
    .donut-center__sub {
      font-size: var(--text-xs);
      color: var(--navy-300);
      margin-top: 2px;
    }
 
    /* Legend danh sách các khía cạnh */
    .donut-legend {
      flex: 1;
      min-width: 130px;
      display: flex;
      flex-direction: column;
      gap: var(--space-2);
    }
 
    /* Từng dòng legend */
    .legend-item {
      display: flex;
      align-items: center;
      gap: var(--space-2);
      font-size: var(--text-sm);
      color: var(--navy-700);
      /* Stagger animation: slide từ phải vào */
      opacity: 0;
      transform: translateX(8px);
      transition:
        opacity 0.4s var(--ease-out),
        transform 0.4s var(--ease-out);
    }
 
    .legend-item.is-visible {
      opacity: 1;
      transform: translateX(0);
    }
 
    /* Chấm màu tròn */
    .legend-dot {
      width: 10px;
      height: 10px;
      border-radius: var(--radius-full);
      flex-shrink: 0;
    }
 
    .legend-name {
      flex: 1;
    }
 
    .legend-pct {
      font-weight: 500;
      color: var(--navy-300);
    }


    



       /* =====================================================
      ASPECTS SECTION
    ====================================================== */
    .aspects-section {
      padding: var(--space-4) var(--space-7);
      max-width: 1400px;
      margin: 0 auto;
    }
 
    .aspects-section__title {
      font-size: 22px;
      font-weight: 700;
      color: var(--score-red);
      margin-bottom: 1.5rem;
      letter-spacing: -0.01em;
    }
 
    /* =====================================================
      GRID – 2 cột, 1 card duy nhất
      Responsive ≤640px → 1 cột
    ====================================================== */
    .aspects-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      background: var(--surface-card);
      border-radius: var(--radius-lg);
      border: 1px solid var(--border);
      box-shadow: var(--shadow-sm);
      overflow: hidden;
    }
 
    @media (max-width: 640px) {
      .aspects-grid {
        grid-template-columns: 1fr;
      }
    }
 
    /* =====================================================
      ASPECT ITEM
    ====================================================== */
    .aspect-item {
      display: flex;
      align-items: center;
      padding: 1.5rem 1.75rem;
      gap: 18px;
      border-bottom: 1px solid var(--border);
      opacity: 0;
      transform: translateY(10px);
      transition:
        opacity  0.5s var(--ease-out),
        transform 0.5s var(--ease-out);
    }
 
    .aspect-item.is-visible {
      opacity: 1;
      transform: translateY(0);
    }
 
    .aspect-item:nth-child(odd) {
      border-right: 1px solid var(--border);
    }
 
    .aspect-item:nth-last-child(-n+2) {
      border-bottom: none;
    }
 
    @media (max-width: 640px) {
      .aspect-item:nth-child(odd) {
        border-right: none;
      }
      .aspect-item:nth-last-child(-n+2) {
        border-bottom: 1px solid var(--border);
      }
      .aspect-item:last-child {
        border-bottom: none;
      }
    }
 
    /* --- Icon tròn --- */
    .aspect-item__icon-wrap {
      width: 54px;
      height: 54px;
      border-radius: 50%;
      background: var(--icon-bg);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
 
    .aspect-item__icon-wrap i {
      font-size: 22px;
      color: var(--teal-dark);
    }
 
    /* --- Tên + mô tả --- */
    .aspect-item__body {
      flex: 1;
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 5px;
    }
 
    .aspect-item__name {
      font-size: var(--text-base);
      font-weight: 700;
      color: var(--navy-900);
      line-height: 1.3;
    }
 
    .aspect-item__desc {
      font-size: var(--text-sm);
      color: var(--navy-300);
      line-height: 1.6;
    }
 
    /* --- Cột phải: điểm + bar --- */
    .aspect-item__right {
      width: 140px;
      flex-shrink: 0;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: flex-end;
      gap: 10px;
    }
 
    @media (max-width: 420px) {
      .aspect-item__right {
        width: 110px;
      }
    }
 
    .aspect-score {
      display: flex;
      align-items: baseline;
      gap: 3px;
    }
 
    .aspect-score__num {
      font-size: 26px;
      font-weight: 700;
      color: var(--score-red);
      line-height: 1;
    }
 
    .aspect-score__denom {
      font-size: var(--text-xs);
      color: var(--navy-300);
    }
 
    .aspect-bar {
      width: 100%;
      height: 8px;
      background: var(--bar-track);
      border-radius: var(--radius-full);
      overflow: hidden;
    }
 
    .aspect-bar__fill {
      height: 100%;
      width: 0%;
      background: var(--bar-fill);
      border-radius: var(--radius-full);
      transition: width 0.9s var(--ease-out);
    }









        /* =====================================================
       WRAPPER – 2 cột desktop, 1 cột mobile
    ====================================================== */
    .mm-wrapper {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
      max-width: 1400px;
      margin: 0 auto;
      padding: 0 var(--space-7);
    }
    @media (max-width: 768px) {
      .mm-wrapper { grid-template-columns: 1fr; }
    }
 
    /* =====================================================
       CARD
    ====================================================== */
    .mm-card {
      background: var(--surface-card);
      border-radius: var(--radius-lg);
      border: 1px solid var(--border);
      box-shadow: var(--shadow-sm);
      padding: 1.5rem 1.5rem 1rem;
      display: flex;
      flex-direction: column;
    }
 
    .mm-card__title {
      font-size: 20px;
      font-weight: 700;
      color: var(--teal-dark);
      margin-bottom: 1rem;
    }
 
    /* =====================================================
       RADAR – legend + chart + score list
    ====================================================== */
    .mm-legend {
      display: flex;
      flex-wrap: wrap;
      gap: 16px;
      margin-bottom: 1rem;
    }
    .mm-legend__item {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      color: var(--navy-300);
    }
    .mm-legend__line {
      width: 28px;
      height: 2px;
    }
    .mm-legend__line--dashed {
      background: repeating-linear-gradient(
        to right, #94a3b8 0, #94a3b8 4px, transparent 4px, transparent 8px
      );
    }
 
    .mm-chart-wrap {
      position: relative;
      flex: 1;
      min-height: 260px;
    }
 
    .mm-scores {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0 24px;
      margin-top: 1rem;
    }
    .mm-score-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 14px;
      padding: 6px 0;
      border-bottom: 1px solid var(--border);
    }
    .mm-score-row__name { color: var(--navy-300); }
    .mm-score-row__val  { font-weight: 700; color: var(--navy-900); font-size: 17px; }
 
    /* =====================================================
       HEATMAP
       Responsive: desktop = table layout cố định
                   mobile ≤480px = scroll ngang tự nhiên
    ====================================================== */
    .hm-table-wrap {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      flex: 1;                /* chiếm hết chiều cao còn lại của card */
      display: flex;
      flex-direction: column;
    }
    .hm-table {
      width: 100%;
      border-collapse: collapse;
      table-layout: fixed;
      min-width: 420px;       /* đảm bảo không bị bóp quá trên mobile nhỏ */
    }
    .hm-table th {
      font-size: 13px;
      font-weight: 600;
      color: var(--navy-300);
      text-align: center;
      padding: 0 6px 14px;
    }
    .hm-table th.hm-row-header {
      text-align: left;
      width: 88px;            /* cột nhãn hàng (Chiến lược / Vận hành…) */
    }
    .hm-table td.hm-row-label {
      font-size: 14px;
      font-weight: 600;
      color: var(--navy-300);
      padding: 6px 0;
      vertical-align: middle;
      white-space: nowrap;
    }
    .hm-cell {
      padding: 5px 4px;       /* khoảng cách giữa các ô */
      text-align: center;
      vertical-align: middle;
    }
    /* Pill – ô màu chính, tăng min-height để to hơn */
    .hm-pill {
      border-radius: 12px;
      padding: 10px 6px;
      font-size: 13px;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 62px;       /* tăng từ 48 → 62px cho ô rộng hơn */
      line-height: 1.25;
      text-align: center;
    }
    /* Mobile: thu nhỏ nhẹ để vừa màn hình nhỏ khi cuộn ngang */
    @media (max-width: 480px) {
      .hm-pill {
        font-size: 12px;
        min-height: 52px;
        padding: 8px 4px;
      }
      .hm-table th { font-size: 12px; padding: 0 4px 10px; }
    }
    .hm-pill--thap   { background: var(--lvl-thap-bg);   color: var(--lvl-thap-text); }
    .hm-pill--tb     { background: var(--lvl-tb-bg);     color: var(--lvl-tb-text); }
    .hm-pill--cao    { background: var(--lvl-cao-bg);    color: var(--lvl-cao-text); }
    .hm-pill--ratcao { background: var(--lvl-ratcao-bg); color: var(--lvl-ratcao-text); }
 
    /* =====================================================
       LEGEND HEATMAP
    ====================================================== */
    .hm-legend {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: 1rem;
      padding-top: 0.75rem;
      border-top: 1px solid var(--border);
    }
    .hm-legend__item {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 13px;
      color: var(--navy-300);
    }
    .hm-legend__dot {
      width: 12px; height: 12px;
      border-radius: 3px;
      flex-shrink: 0;
    }
 
    /* =====================================================
       CARD FOOTER LINK
    ====================================================== */
    .mm-card-link {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 6px;
      margin-top: 1rem;
      font-size: 14px;
      font-weight: 700;
      color: var(--navy-900);
      text-decoration: none;
      border-top: 1px solid var(--border);
      padding-top: 0.75rem;
      transition: color 0.2s;
    }
    .mm-card-link:hover { color: var(--teal-dark); }


        /* ============================================================
       WRAPPER – 2 cột desktop, 1 cột mobile
    ============================================================ */
    .mm-wrapper {
      display: grid;
      grid-template-columns: 1fr 1.55fr; /* card trái hẹp hơn */
      gap: 20px;
      max-width: 1400px;
      margin: 0 auto;
      align-items: stretch;
      margin-top: var(--space-4);
    }
    @media (max-width: 860px) {
      .mm-wrapper { grid-template-columns: 1fr; }
    }
 
    /* ============================================================
       CARD – dùng chung cho cả 2
    ============================================================ */
    .mm-card {
      background: var(--surface-card);
      border-radius: var(--radius-lg);
      border: 1px solid var(--border);
      box-shadow: var(--shadow-sm);
      padding: 1.75rem 1.75rem 1.25rem;
      display: flex;
      flex-direction: column;
    }
 
    .mm-card__title {
      font-size: 20px;
      font-weight: 700;
      color: var(--teal-dark);
      margin-bottom: 1.5rem;
    }
 
    .mm-card-link {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      margin-top: 1.25rem;
      font-size: 14px;
      font-weight: 700;
      color: var(--navy-900);
      text-decoration: none;
      border-top: 1px solid var(--border);
      padding-top: 1rem;
      transition: color 0.2s;
    }
    .mm-card-link:hover { color: var(--teal-dark); }
 
    /* ============================================================
       CARD TRÁI – TOP 5 DANH SÁCH
    ============================================================ */
    .top5-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }
 
    .top5-item {
      display: flex;
      align-items: center;
      gap: 14px;
    }
 
    .top5-item__num {
      font-size: 15px;
      font-weight: 700;
      color: var(--navy-300);
      width: 20px;
      flex-shrink: 0;
      text-align: right;
    }
 
    .top5-item__label {
      flex: 1;
      font-size: 15px;
      color: var(--navy-900);
      line-height: 1.4;
    }
 
    /* Pill badge mức độ */
    .top5-item__badge {
      flex-shrink: 0;
      min-width: 96px;
      text-align: center;
      border-radius: var(--radius-pill);
      padding: 7px 16px;
      font-size: 13px;
      font-weight: 700;
      line-height: 1;
      border-radius: 16px;
    }
    .badge--thap   { background: var(--lvl-thap-bg);   color: var(--lvl-thap-text); }
    .badge--tb     { background: var(--lvl-tb-bg);     color: var(--lvl-tb-text); }
    .badge--cao    { background: var(--lvl-cao-bg);    color: var(--lvl-cao-text); }
    .badge--ratcao { background: var(--lvl-ratcao-bg); color: var(--lvl-ratcao-text); }
 
    /* Mobile: cho label xuống dòng khi quá dài */
    @media (max-width: 480px) {
      .top5-item { flex-wrap: wrap; gap: 8px; }
      .top5-item__badge { min-width: 84px; font-size: 12px; }
    }
 
    /* ============================================================
       CARD PHẢI – MA TRẬN TĂNG TRƯỞNG THẬT
       Layout: header (tiêu đề + link) → chart area (trục Y + lưới 2×2 + trục X)
    ============================================================ */
    .matrix-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 1.25rem;
      flex-wrap: wrap;
    }
 
    .matrix-link {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 14px;
      font-weight: 700;
      color: var(--navy-900);
      text-decoration: none;
      white-space: nowrap;
      transition: color 0.2s;
    }
    .matrix-link:hover { color: var(--teal-dark); }
 
    /* Khu vực chart: trục Y bên trái + lưới 2×2 + trục X bên dưới */
    .matrix-chart {
      display: grid;
      grid-template-areas:
        "yaxis grid"
        ".     xaxis";
      grid-template-columns: 40px 1fr;
      grid-template-rows: 1fr auto;
      gap: 0 8px;
      flex: 1;
    }
 
    /* Trục Y – text xoay dọc */
    .matrix-yaxis {
      grid-area: yaxis;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-between;
      padding: 4px 0;
    }
    .matrix-yaxis__label {
      font-size: 12px;
      color: var(--navy-300);
      font-weight: 600;
      writing-mode: vertical-rl;
      transform: rotate(180deg);
      letter-spacing: 0.02em;
    }
    .matrix-yaxis__hi,
    .matrix-yaxis__lo {
      font-size: 12px;
      color: var(--navy-300);
      writing-mode: vertical-rl;
      transform: rotate(180deg);
    }
 
    /* Lưới 2×2 */
    .matrix-grid {
      grid-area: grid;
      display: grid;
      grid-template-columns: 1fr 1fr;
      grid-template-rows: 1fr 1fr;
      gap: 8px;
      min-height: 320px;
    }
    @media (max-width: 520px) {
      .matrix-grid { min-height: 260px; gap: 6px; }
    }
 
    /* Ô vuông trong ma trận */
    .matrix-cell {
      border-radius: 10px;
      padding: 16px;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .matrix-cell__title {
      font-size: 14px;
      font-weight: 700;
      line-height: 1.3;
    }
    .matrix-cell__desc {
      font-size: 13px;
      line-height: 1.6;
      opacity: 0.85;
    }
 
    /* Màu từng ô – gắn theo vị trí */
    .matrix-cell--tl { background: var(--quad-tl-bg); }
    .matrix-cell--tl .matrix-cell__title { color: var(--quad-tl-title); }
    .matrix-cell--tl .matrix-cell__desc  { color: var(--quad-tl-title); }
 
    .matrix-cell--tr { background: var(--quad-tr-bg); }
    .matrix-cell--tr .matrix-cell__title { color: var(--quad-tr-title); }
    .matrix-cell--tr .matrix-cell__desc  { color: var(--quad-tr-title); }
 
    .matrix-cell--bl { background: var(--quad-bl-bg); }
    .matrix-cell--bl .matrix-cell__title { color: var(--quad-bl-title); }
    .matrix-cell--bl .matrix-cell__desc  { color: var(--quad-bl-title); }
 
    .matrix-cell--br { background: var(--quad-br-bg); }
    .matrix-cell--br .matrix-cell__title { color: var(--quad-br-title); }
    .matrix-cell--br .matrix-cell__desc  { color: var(--quad-br-title); }
 
    /* Trục X */
    .matrix-xaxis {
      grid-area: xaxis;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 8px 0 0;
      gap: 4px;
    }
    .matrix-xaxis__lo,
    .matrix-xaxis__hi { font-size: 12px; color: var(--navy-300); font-weight: 600; }
    .matrix-xaxis__label {
      font-size: 12px;
      color: var(--navy-300);
      font-weight: 600;
      text-align: center;
      letter-spacing: 0.02em;
    }
 
    /* Mobile: thu nhỏ font trong ô */
    @media (max-width: 480px) {
      .matrix-cell { padding: 12px; gap: 6px; }
      .matrix-cell__title { font-size: 13px; }
      .matrix-cell__desc  { font-size: 12px; }
    }
    /* ============================================================
   RESPONSIVE – mm-wrapper, mm-card, radar, heatmap, matrix
   Breakpoints: 1024px (tablet) · 768px (tablet nhỏ) · 
                480px (mobile) · 360px (mobile nhỏ)
============================================================ */

/* ── Tablet ≤1024px ── */
@media (max-width: 1024px) {
    .container {
    padding: 0 var(--space-4);
  }

  .ci-grid {
    padding: 0 var(--space-4);
  }

  .aspects-section {
    padding: var(--space-4) !important;
  }

  .goi-section {
    padding: var(--space-4) !important;
}
  .mm-wrapper {
    grid-template-columns: 1fr 1fr;
    padding: 0 var(--space-5);
  }
  .mm-card {
    padding: 1.5rem 1.25rem 1rem;
  }
  .matrix-grid {
    min-height: 280px;
  }
}

/* ── Tablet nhỏ ≤860px ── */
@media (max-width: 860px) {
  .mm-wrapper {
    grid-template-columns: 1fr;
    padding: 0 var(--space-5);
  }
  .mm-chart-wrap {
    min-height: 300px;
  }
  .mm-scores {
    grid-template-columns: 1fr 1fr;
  }
  .matrix-grid {
    min-height: 300px;
  }
}

/* ── Tablet dọc ≤768px ── */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-4);
  }

  .ci-grid {
    padding: 0 var(--space-4);
  }

  .aspects-section {
    padding: var(--space-4) !important;
  }

  .goi-section {
    padding: var(--space-4) !important;
}
  .mm-wrapper {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 var(--space-4);
  }
  .mm-card {
    padding: 1.25rem 1.25rem 1rem;
  }
  .mm-card__title {
    font-size: 18px;
    margin-bottom: 1rem;
  }
  .mm-chart-wrap {
    min-height: 260px;
  }
  .mm-scores {
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
  }
  .mm-score-row__val {
    font-size: 15px;
  }
  /* Heatmap */
  .hm-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .hm-table {
    min-width: 400px;
  }
  /* Top5 */
  .top5-item__label {
    font-size: 14px;
  }
  /* Matrix */
  .matrix-grid {
    min-height: 260px;
    gap: 6px;
  }
  .matrix-cell {
    padding: 14px 12px;
    gap: 6px;
  }
  .matrix-cell__title { font-size: 13px; }
  .matrix-cell__desc  { font-size: 12px; }

      .aspect-item {
    padding: 0.875rem 0.875rem;
    gap: 10px;
  }
  .aspect-item__icon-wrap {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
  .aspect-item__name  { font-size: 0.85rem; }
  .aspect-item__desc  { font-size: 0.72rem; }
  .aspect-item__right { min-width: 64px; }
  .aspect-score__num  { font-size: 1.1rem; }
  .aspect-score__denom { font-size: 0.7rem; }
  .aspect-bar         { height: 4px; border-radius: 2px; }
}

/* ── Mobile ≤480px ── */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-4);
  }

  .ci-grid {
    padding: 0 var(--space-4);
  }

  .aspects-section {
    padding: var(--space-4);
  }

  .mm-wrapper {
    gap: 12px;
    padding: 0 var(--space-3, 12px);
  }
  .mm-card {
    padding: 1rem 1rem 0.875rem;
    border-radius: var(--radius-md, 16px);
  }
  .mm-card__title {
    font-size: 16px;
    margin-bottom: 0.875rem;
  }
  .mm-legend {
    gap: 10px;
    margin-bottom: 0.75rem;
  }
  .mm-legend__item {
    font-size: 12px;
  }
  .mm-chart-wrap {
    min-height: 220px;
  }
  .mm-scores {
    grid-template-columns: 1fr;   /* 1 cột trên mobile nhỏ */
    gap: 0;
  }
  .mm-score-row {
    font-size: 13px;
    padding: 5px 0;
  }
  .mm-score-row__val {
    font-size: 14px;
  }
  .mm-card-link {
    font-size: 13px;
    margin-top: 0.875rem;
    padding-top: 0.75rem;
  }

  /* Heatmap */
  .hm-table {
    min-width: 360px;
  }
  .hm-table th {
    font-size: 11px;
    padding: 0 3px 8px;
  }
  .hm-table td.hm-row-label {
    font-size: 12px;
  }
  .hm-pill {
    font-size: 11px;
    min-height: 48px;
    padding: 6px 3px;
    border-radius: 8px;
  }
  .hm-legend {
    gap: 8px;
    margin-top: 0.75rem;
  }
  .hm-legend__item {
    font-size: 11px;
  }

  /* Top5 */
  .top5-list { gap: 10px; }
  .top5-item {
    flex-wrap: wrap;
    gap: 6px;
  }
  .top5-item__num   { font-size: 13px; }
  .top5-item__label { font-size: 13px; }
  .top5-item__badge {
    min-width: 80px;
    font-size: 11px;
    padding: 5px 10px;
  }

  /* Matrix */
  .matrix-header { flex-direction: column; align-items: flex-start; gap: 6px; }
  .matrix-grid {
    min-height: 220px;
    gap: 5px;
  }
  .matrix-cell {
    padding: 10px 8px;
    border-radius: 8px;
  }
  .matrix-cell__title { font-size: 12px; }
  .matrix-cell__desc  { font-size: 11px; }
  .matrix-yaxis__label,
  .matrix-yaxis__hi,
  .matrix-yaxis__lo   { font-size: 10px; }
  .matrix-xaxis__lo,
  .matrix-xaxis__hi,
  .matrix-xaxis__label { font-size: 10px; }

  .aspect-item {
    padding: 0.875rem 0.875rem;
    gap: 10px;
  }
  .aspect-item__icon-wrap {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
  .aspect-item__name  { font-size: 0.85rem; }
  .aspect-item__desc  { font-size: 0.72rem; }
  .aspect-item__right { min-width: 64px; }
  .aspect-score__num  { font-size: 1.1rem; }
  .aspect-score__denom { font-size: 0.7rem; }
  .aspect-bar         { height: 4px; border-radius: 2px; }
}

/* ── Mobile rất nhỏ ≤360px ── */
@media (max-width: 360px) {
  .mm-wrapper {
    padding: 0 var(--space-2, 8px);
  }
  .mm-card {
    padding: 0.875rem 0.875rem 0.75rem;
  }
  .mm-card__title { font-size: 15px; }
  .mm-chart-wrap  { min-height: 200px; }
  .hm-table       { min-width: 320px; }
  .hm-pill        { min-height: 42px; font-size: 10px; }
  .matrix-grid    { min-height: 190px; }
  .matrix-cell    { padding: 8px 6px; }
  .matrix-cell__title { font-size: 11px; }
  .matrix-cell__desc  { font-size: 10px; }
  .top5-item__badge   { min-width: 72px; font-size: 10px; }
}
/* ── iPhone SE / 375px ── */
@media (max-width: 390px) {
  .container {
    padding: var(--space-4);
  }

  .ci-grid {
    padding: 0 var(--space-4);
  }

  .donut-layout {
    justify-content: center;
  }

  .aspects-section {
    padding: var(--space-4);
  }

  .mm-wrapper {
    padding: 0 8px;
    gap: 10px;
  }

  /* Card thu hẹp lại */
  .mm-card {
    padding: 0.875rem 0.875rem 0.75rem;
    border-radius: 14px;
  }
  .mm-card__title {
    font-size: 15px;
    margin-bottom: 0.75rem;
  }

  /* Radar nhỏ lại */
  .mm-chart-wrap {
    min-height: 190px;
  }
  .mm-scores {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .mm-score-row {
    font-size: 12px;
    padding: 4px 0;
  }
  .mm-score-row__val { font-size: 13px; }

  /* Heatmap – cho scroll ngang, thu pill */
  .hm-table-wrap {
    margin: 0 -0.875rem;        /* chạm sát edge card */
    padding: 0 0.875rem;
    width: calc(100% + 1.75rem);
  }
  .hm-table   { min-width: 300px; }
  .hm-table th { font-size: 10px; padding: 0 2px 7px; }
  .hm-table th.hm-row-header { width: 72px; }
  .hm-table td.hm-row-label  { font-size: 11px; }
  .hm-pill {
    font-size: 10px;
    min-height: 40px;
    padding: 5px 2px;
    border-radius: 7px;
  }

  /* Matrix thu nhỏ */
  .matrix-grid {
    min-height: 180px;
    gap: 4px;
  }
  .matrix-cell {
    padding: 8px 6px;
    border-radius: 7px;
    gap: 4px;
  }
  .matrix-cell__title { font-size: 11px; }
  .matrix-cell__desc  { font-size: 10px; line-height: 1.4; }
  .matrix-yaxis       { padding: 2px 0; }
  .matrix-yaxis__label,
  .matrix-yaxis__hi,
  .matrix-yaxis__lo   { font-size: 9px; }
  .matrix-xaxis__lo,
  .matrix-xaxis__hi,
  .matrix-xaxis__label { font-size: 9px; }
  .matrix-chart {
    grid-template-columns: 32px 1fr;  /* trục Y hẹp hơn */
  }

  /* Top5 */
  .top5-list { gap: 8px; }
  .top5-item__label { font-size: 12px; }
  .top5-item__badge {
    min-width: 70px;
    font-size: 10px;
    padding: 4px 8px;
  }

  /* Legend */
  .mm-legend     { gap: 8px; }
  .mm-legend__item { font-size: 11px; }
  .hm-legend     { gap: 6px; margin-top: 0.625rem; }
  .hm-legend__item { font-size: 10px; }

  /* Card footer link */
  .mm-card-link  { font-size: 12px; }
  .matrix-link   { font-size: 12px; }

    .aspect-item {
    padding: 0.875rem 0.875rem;
    gap: 10px;
  }
  .aspect-item__icon-wrap {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
  .aspect-item__name  { font-size: 0.85rem; }
  .aspect-item__desc  { font-size: 0.72rem; }
  .aspect-item__right { min-width: 64px; }
  .aspect-score__num  { font-size: 1.1rem; }
  .aspect-score__denom { font-size: 0.7rem; }
  .aspect-bar         { height: 4px; border-radius: 2px; }
}








  /* ── SECTION WRAPPER ── */
  .goi-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-7) var(--space-7)
  }
 
  .goi-section__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 10px;
  }
  .goi-section__label::before {
    content: '';
    display: block;
    width: 24px; height: 2px;
    background: var(--coral);
    border-radius: 2px;
  }
 
  .goi-section__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--teal-dark);
    margin-bottom: 8px;
  }
 
  .goi-section__sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 480px;
  }
 
  /* ── PACKAGE CARDS GRID ── */
  .goi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
  }
 
  .goi-card {
    background: var(--surface-card);
    border-radius: var(--radius-xl);
    padding: 28px 22px 24px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1.5px solid transparent;
    transition: box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
    cursor: pointer;
    position: relative;
  }
  .goi-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--coral-light);
    transform: translateY(-4px);
  }
  .goi-card.is-featured {
    border-color: var(--coral);
    box-shadow: var(--shadow-hover);
  }
  .goi-card.is-featured::after {
    content: 'Phổ biến';
    position: absolute;
    top: -1px; right: 18px;
    background: var(--coral);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  }
 
  /* icon circle */
  .goi-card__icon {
    width: 52px; height: 52px;
    background: var(--teal-dark);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
    flex-shrink: 0;
  }
  .goi-card__icon i {
    font-size: 1.2rem;
    color: #fff;
  }
 
  .goi-card__name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--teal-dark);
    margin-bottom: 10px;
    line-height: 1.3;
  }
 
  .goi-card__desc {
    font-size: 0.95rem;
    color: var(--text-body);
    flex: 1;
    line-height: 1.55;
    margin-bottom: 14px;
  }
 
  .goi-card__duration {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--coral);
    margin-bottom: 20px;
  }
  .goi-card__duration i {
    font-size: 0.75rem;
  }
 
  .goi-card__divider {
    height: 1px;
    background: #EEE;
    margin-bottom: 18px;
  }
 
  .goi-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    border: 1.5px solid var(--teal-dark);
    border-radius: var(--radius-sm);
    padding: 9px 18px;
    cursor: pointer;
    width: 100%;
    justify-content: center;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    text-decoration: none;
  }
  .goi-card:hover .goi-card__btn,
  .goi-card.is-featured .goi-card__btn {
    background: var(--coral);
    color: #fff;
    border-color: var(--coral);
  }
  .goi-card__btn i { font-size: 0.8rem; }
 
  /* ── CTA ROW ── */
  .cta-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 12px;
  }
 
  .cta-card {
    background: var(--surface-card);
    border-radius: var(--radius-md);
    padding: 22px 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border: 1.5px solid transparent;
    box-shadow: var(--shadow-card);
    cursor: pointer;
    transition: box-shadow 0.25s var(--ease-out), border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  }
  .cta-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--coral-light);
    transform: translateY(-3px);
  }
  .cta-card.is-primary {
    background: var(--teal-dark);
    border-color: var(--teal-dark);
  }
  .cta-card.is-primary .cta-card__title,
  .cta-card.is-primary .cta-card__desc {
    color: #fff;
  }
 
  .cta-card__icon-wrap {
    width: 44px; height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(224,122,95,0.12);
    display: flex; align-items: center; justify-content: center;
  }
  .cta-card.is-primary .cta-card__icon-wrap {
    background: rgba(255,255,255,0.15);
  }
  .cta-card__icon-wrap i {
    font-size: 1.1rem;
    color: var(--coral);
  }
  .cta-card.is-primary .cta-card__icon-wrap i {
    color: #fff;
  }
 
  .cta-card__content {}
  .cta-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--teal-dark);
    margin-bottom: 4px;
    line-height: 1.3;
  }
  .cta-card__desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.45;
  }
 
  /* ── RESPONSIVE ── */
  @media (max-width: 1024px) {
    .goi-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    .cta-row {
      grid-template-columns: repeat(3, 1fr);
    }
  }
 
  @media (max-width: 640px) {
    .goi-section {
      padding: 48px 16px 56px;
    }
    .goi-grid {
      grid-template-columns: 1fr;
      gap: 14px;
    }
    .cta-row {
      grid-template-columns: 1fr;
      gap: 12px;
    }
    .goi-card {
      padding: 22px 18px 20px;
    }
    .goi-card.is-featured::after {
      font-size: 0.62rem;
      padding: 3px 8px;
    }
    .cta-card {
      padding: 18px 16px;
    }
  }
 
  @media (min-width: 641px) and (max-width: 1024px) {
    /* On tablet keep cta row 3 cols but allow wrapping */
    .cta-row {
      grid-template-columns: repeat(3, 1fr);
    }
  }