.mh-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 7px;
  background: var(--st-soft-2);
  color: var(--st-muted);
  font:
    700 10px/1.6 Inter,
    system-ui,
    sans-serif;
  letter-spacing: 0.08em;
  vertical-align: middle;
  margin-left: 6px;
}
.mh-badge.is-pro {
  background: var(--st-green-soft);
  color: var(--st-gold);
  border: 1px solid var(--st-gold);
}
.mh-muted {
  color: var(--st-muted);
  font-size: 14px;
}
.mh-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: var(--st-green);
  color: var(--st-paper);
  border: 1px solid var(--st-green);
  padding: 11px 17px;
  border-radius: 12px;
  font: 600 14px/1.4 inherit;
  text-decoration: none;
  cursor: pointer;
}
.mh-button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.mh-button.secondary {
  background: var(--st-paper);
  color: var(--st-green);
  border-color: var(--st-line);
}
.mh-dialog {
  width: min(860px, calc(100% - 24px));
  max-height: 90dvh;
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: var(--st-paper);
  color: var(--st-ink);
  border: 1px solid var(--st-line);
  border-radius: 26px;
  padding: clamp(22px, 4vw, 40px);
  box-shadow: var(--st-shadow);
  /* position:relative là bắt buộc: nút đóng dùng position:absolute nên nếu hộp
     thoại không tạo containing block thì nút sẽ neo vào viewport và trôi khỏi
     hộp khi cuộn nội dung dài trên điện thoại. */
  position: relative;
}
.mh-dialog::-webkit-scrollbar {
  display: none;
}
.mh-dialog::backdrop {
  background: color-mix(in srgb, var(--st-ink) 50%, transparent);
  backdrop-filter: blur(5px);
}
.mh-close {
  position: absolute;
  right: 18px;
  top: 14px;
  font-size: 28px;
  line-height: 1;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--st-muted);
  border: 0;
  border-radius: 50%;
  background: var(--st-paper);
  cursor: pointer;
  z-index: 2;
}
.mh-close:hover { background: var(--st-soft); color: var(--st-ink); }
.mh-eyebrow {
  color: var(--st-gold);
  font-size: 11px;
  letter-spacing: 0.15em;
  font-weight: 700;
}
.mh-dialog h2 {
  font-size: clamp(27px, 4vw, 38px);
  line-height: 1.25;
  margin: 12px 0;
}
.mh-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
}
.mh-compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.mh-compare th,
.mh-compare td {
  padding: 13px 12px;
  text-align: left;
  border-bottom: 1px solid var(--st-line);
  vertical-align: top;
}
.mh-compare th {
  font-weight: 600;
}
.mh-compare td:last-child,
.mh-compare thead th:last-child {
  background: var(--st-green-soft);
}
.mh-prices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.mh-prices > div {
  padding: 14px;
  border: 1px solid var(--st-line);
  border-radius: 14px;
  min-width: 0;
}
.mh-prices small,
.mh-prices del,
.mh-prices strong {
  display: block;
}
.mh-prices del {
  font-size: 12px;
  color: var(--st-muted);
}
.mh-off {
  display: inline-block;
  margin: 6px 0 2px;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--st-gold) 16%, transparent);
  color: var(--st-gold);
  font:
    700 11px/1.6 Inter,
    system-ui,
    sans-serif;
  letter-spacing: 0.04em;
}
.mh-prices strong {
  color: var(--st-green);
  font-size: clamp(16px, 1vw + 11px, 19px);
  white-space: nowrap;
}
.mh-cta-pro {
  margin-top: 14px;
  text-decoration: none;
}
.mh-prices strong {
  color: var(--st-green);
  font-size: 19px;
}
.mh-activation {
  padding: 20px;
  background: var(--st-soft);
  border-radius: 16px;
  margin: 22px 0;
}
.mh-activation label {
  font-weight: 600;
}
.mh-activation > div {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.mh-activation input,
.mh-field {
  min-width: 0;
  border: 1px solid var(--st-line);
  border-radius: 10px;
  padding: 12px;
  background: var(--st-paper);
  color: var(--st-ink);
  font: inherit;
}
.mh-activation input {
  flex: 1;
  text-transform: uppercase;
}
.mh-error {
  color: var(--st-danger);
}
.mh-hint {
  color: var(--st-muted);
  font-size: 12.5px;
}
.mh-success {
  color: var(--st-good);
  font-weight: 600;
}
.mh-qr {
  display: block;
  max-width: 180px;
  border-radius: 10px;
  margin: 16px 0;
}
.mh-link {
  color: var(--st-green);
  border: 0;
  background: none;
  cursor: pointer;
  text-decoration: underline;
}
.mh-celebrate {
  animation: mhGlow 1s ease 3;
}
@keyframes mhGlow {
  50% {
    box-shadow: 0 0 0 8px color-mix(in srgb, var(--st-gold) 25%, transparent);
  }
}
@media (max-width: 600px) {
  .mh-prices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  /* Thẻ giá hẹp: hạ cỡ số và cho phép xuống dòng để "1.999.000 Điểm" không
     bị tràn ra ngoài khung. */
  .mh-prices > div { padding: 11px 10px; }
  .mh-prices strong { font-size: 15px; white-space: normal; }
  .mh-prices del { font-size: 11px; }
  .mh-off { margin: 4px 0 1px; }
  .mh-activation > div {
    flex-direction: column;
  }
  .mh-compare th,
  .mh-compare td {
    padding: 10px 7px;
    font-size: 12px;
  }
  .mh-compare .mh-badge {
    display: none;
  }
  /* Nút đóng nổi ở góc phải: chừa chỗ để nhãn nhỏ không chui xuống dưới nút. */
  .mh-dialog > .mh-eyebrow:first-child {
    padding-right: 46px;
  }
  .mh-dialog {
    padding: 24px 18px 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mh-celebrate {
    animation: none;
  }
}
.mh-locked .pp-practice {
  background: var(--st-soft);
  color: var(--st-gold);
  border: 1px solid var(--st-line);
}
@media (max-width: 480px) {
  .st-header {
    gap: 8px;
  }
  .st-brand {
    min-width: 0;
    gap: 8px;
  }
  .st-brand-text strong {
    font-size: 12px;
    max-width: 110px;
  }
  .st-brand-logo {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
  }
  .st-header-right {
    gap: 6px;
    flex-shrink: 0;
  }
  .st-account-btn {
    gap: 5px;
    padding: 5px 7px;
  }
  .st-account-btn #accountName {
    max-width: 48px;
  }
  .st-account-btn .mh-badge {
    margin-left: 0;
    padding: 2px 5px;
  }
  .st-header-right .st-icon-btn {
    width: 34px;
    height: 34px;
  }
}
