/* Phong Thủy Bảo Địa — plugin la-so-tu-vi. Tạo tự động bởi wordpress/build/css-build.mjs từ CSS module của bản Next.js; sửa ở src/ rồi dựng lại. */
/* lap-la-so.module.css */
/* Phong Thủy Bảo Địa — Trang lập lá số tử vi */

.hm-lap-la-so-hero,
.hm-lap-la-so-formSection,
.hm-lap-la-so-steps,
.hm-lap-la-so-section,
.hm-lap-la-so-about {
  --hm-bg: var(--c-bg);
  --hm-card: var(--c-card);
  --hm-gold: var(--c-gold);
  --hm-gold-soft: var(--c-gold-soft);
  --hm-gold-deep: var(--c-gold-deep);
  --hm-text: var(--c-text);
  --hm-muted: var(--c-muted);
  --hm-line: color-mix(in srgb, var(--c-gold) 30%, transparent);
  --hm-line-soft: color-mix(in srgb, var(--c-gold) 16%, transparent);
  --hm-danger: var(--c-danger);
  position: relative;
  color: var(--hm-text);
  font-family: var(--font-body, "Be Vietnam Pro", system-ui, sans-serif);
  background: var(--hm-bg);
}

.hm-lap-la-so-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
}

.hm-lap-la-so-cover {
  object-fit: cover;
}

.hm-lap-la-so-h2 {
  margin: 0;
  font-family: var(--font-display, "Cormorant Garamond", Georgia, serif);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--hm-gold-soft);
}

.hm-lap-la-so-sub {
  margin: 8px 0 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--hm-muted);
}

/* ---------- Hero ---------- */
.hm-lap-la-so-hero {
  isolation: isolate;
  overflow: hidden;
  min-height: 460px;
  display: flex;
  align-items: center;
}
.hm-lap-la-so-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(45% 70% at 12% 45%, color-mix(in srgb, var(--c-glow) 22%, transparent), transparent 70%),
    radial-gradient(30% 40% at 80% 100%, color-mix(in srgb, var(--c-gold) 8%, transparent), transparent 70%);
}

.hm-lap-la-so-heroArt {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(58%, 900px);
  z-index: -1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.6) 25%, #000 50%), linear-gradient(0deg, transparent 0%, #000 25%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.6) 25%, #000 50%), linear-gradient(0deg, transparent 0%, #000 25%);
  mask-composite: intersect;
}

.hm-lap-la-so-heroInner {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 64px 28px 56px;
}

.hm-lap-la-so-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--hm-muted);
}
.hm-lap-la-so-breadcrumb li + li::before {
  content: "›";
  margin-right: 8px;
  color: var(--hm-gold);
}
.hm-lap-la-so-breadcrumb a {
  color: var(--hm-text);
  text-decoration: none;
}
.hm-lap-la-so-breadcrumb a:hover {
  color: var(--hm-gold-soft);
}
.hm-lap-la-so-breadcrumb [aria-current] {
  color: var(--hm-gold-soft);
}

.hm-lap-la-so-eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hm-gold);
}

.hm-lap-la-so-h1 {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: var(--font-display, "Cormorant Garamond", Georgia, serif);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 600;
  line-height: 1.05;
  background: linear-gradient(180deg, var(--c-title-1) 0%, var(--c-title-2) 55%, var(--c-title-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hm-lap-la-so-heroLead {
  max-width: 540px;
  margin: 20px 0 0;
  font-size: 16px;
  line-height: 1.7;
  opacity: 0.9;
}

.hm-lap-la-so-features {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.hm-lap-la-so-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 1.4;
}
.hm-lap-la-so-featureIcon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--hm-gold);
  border-radius: 50%;
  color: var(--hm-gold-soft);
  background: color-mix(in srgb, var(--c-bg) 60%, transparent);
}
.hm-lap-la-so-featureSub {
  color: var(--hm-muted);
}

/* ---------- Khung chung ---------- */
.hm-lap-la-so-formSection {
  padding: 8px 0 48px;
}
.hm-lap-la-so-section {
  padding: 48px 0;
}

.hm-lap-la-so-frame {
  position: relative;
  padding: 32px;
  border: 1px solid var(--hm-line);
  border-radius: 18px;
  background:
    radial-gradient(60% 50% at 50% 0%, color-mix(in srgb, var(--c-gold) 6%, transparent), transparent 70%),
    linear-gradient(180deg, var(--c-surface), var(--c-card));
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(0, 0, 0, 0.4);
}
.hm-lap-la-so-frame::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--hm-line-soft);
  border-radius: 14px;
  pointer-events: none;
}

.hm-lap-la-so-frameHead {
  position: relative;
  margin-bottom: 26px;
  text-align: center;
}
.hm-lap-la-so-frameHead .hm-lap-la-so-h2 {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.hm-lap-la-so-headIcon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
  color: var(--hm-gold);
}

/* ---------- Form ---------- */
.hm-lap-la-so-form {
  position: relative;
  padding: 26px;
  border: 1px solid var(--hm-line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--c-bg) 55%, transparent);
}

.hm-lap-la-so-cols {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 0;
}

.hm-lap-la-so-col {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
  padding: 0 24px;
  border-left: 1px solid var(--hm-line-soft);
}
.hm-lap-la-so-col:first-child {
  padding-left: 0;
  border-left: 0;
}
.hm-lap-la-so-col:last-child {
  padding-right: 0;
}

.hm-lap-la-so-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.hm-lap-la-so-label {
  display: block;
  margin-bottom: 10px;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
}
.hm-lap-la-so-optional {
  font-weight: 400;
  color: var(--hm-muted);
}

.hm-lap-la-so-input,
.hm-lap-la-so-select,
.hm-lap-la-so-iconInput {
  width: 100%;
  height: 46px;
  border: 1px solid var(--hm-line);
  border-radius: 9px;
  background: var(--c-input);
  color: var(--hm-text);
  font: inherit;
  font-size: 14.5px;
  color-scheme: dark;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.hm-lap-la-so-input {
  padding: 0 14px;
}
.hm-lap-la-so-input::placeholder,
.hm-lap-la-so-iconInput input::placeholder {
  color: var(--hm-muted);
}
.hm-lap-la-so-input:focus,
.hm-lap-la-so-select:focus,
.hm-lap-la-so-iconInput:focus-within {
  outline: none;
  border-color: var(--hm-gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-gold) 16%, transparent);
}
.hm-lap-la-so-select {
  min-width: 0;
  padding: 0 8px;
  cursor: pointer;
}
.hm-lap-la-so-select option {
  background: var(--c-input);
}

.hm-lap-la-so-iconInput {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 0 0 14px;
}
.hm-lap-la-so-iconInput svg {
  flex-shrink: 0;
  color: var(--hm-gold);
}
.hm-lap-la-so-iconInput input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 12px 0 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  color-scheme: dark;
}
.hm-lap-la-so-iconInput input:focus {
  outline: none;
}

.hm-lap-la-so-invalid {
  border-color: var(--c-danger) !important;
}
.hm-lap-la-so-disabled {
  opacity: 0.45;
}

.hm-lap-la-so-dateRow {
  display: grid;
  grid-template-columns: 0.8fr 1.1fr 1fr;
  gap: 8px;
}

.hm-lap-la-so-radioRow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hm-lap-la-so-radio {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--hm-line);
  border-radius: 9px;
  background: var(--c-input);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.hm-lap-la-so-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.hm-lap-la-so-radioWide {
  flex: 1 1 100%;
  font-size: 13.5px;
}
.hm-lap-la-so-radio:hover {
  border-color: var(--hm-gold);
}
.hm-lap-la-so-radio:has(input:focus-visible) {
  outline: 2px solid var(--hm-gold-soft);
  outline-offset: 2px;
}
.hm-lap-la-so-radioOn {
  border-color: var(--hm-gold);
  background: color-mix(in srgb, var(--c-gold) 10%, transparent);
  color: var(--hm-gold-soft);
}

.hm-lap-la-so-dot {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border: 1.5px solid var(--hm-muted);
  border-radius: 50%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.hm-lap-la-so-radioOn .hm-lap-la-so-dot {
  border-color: var(--hm-gold);
  box-shadow: inset 0 0 0 3px var(--c-input), inset 0 0 0 8px var(--hm-gold);
}

.hm-lap-la-so-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 13.5px;
  color: var(--hm-text);
  cursor: pointer;
}
.hm-lap-la-so-dateRow + .hm-lap-la-so-check {
  margin: 10px 0 0;
}
.hm-lap-la-so-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--hm-gold);
}

.hm-lap-la-so-hint {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--hm-gold-soft);
  opacity: 0.85;
}

.hm-lap-la-so-error {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--hm-danger);
}

.hm-lap-la-so-submitRow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.hm-lap-la-so-schoolPick {
  margin: 0;
  font-size: 13.5px;
  color: var(--hm-muted);
}
.hm-lap-la-so-schoolPick strong {
  color: var(--hm-text);
  font-weight: 600;
}
.hm-lap-la-so-schoolPick a {
  margin-left: 4px;
  color: var(--hm-gold-soft);
}

.hm-lap-la-so-btnSubmit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 400px;
  height: 54px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--c-gold-light), var(--hm-gold) 55%, var(--c-gold-deep));
  color: var(--c-on-gold);
  font: inherit;
  font-size: 16.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 28px -10px color-mix(in srgb, var(--c-gold) 85%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.2s ease, filter 0.2s ease;
}
.hm-lap-la-so-btnSubmit:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}
.hm-lap-la-so-btnSubmit:focus-visible,
.hm-lap-la-so-btnGhost:focus-visible,
.hm-lap-la-so-btnOutline:focus-visible,
.hm-lap-la-so-schoolCard:has(input:focus-visible) {
  outline: 2px solid var(--hm-gold-soft);
  outline-offset: 3px;
}

.hm-lap-la-so-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 0;
  font-size: 12.5px;
  color: var(--hm-muted);
  text-align: center;
}
.hm-lap-la-so-privacy svg {
  flex-shrink: 0;
  color: var(--hm-gold);
}

/* ---------- Kết quả ---------- */
.hm-lap-la-so-result {
  margin-top: 24px;
  padding: 28px;
  border: 1px solid var(--hm-gold);
  border-radius: 18px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c-gold) 8%, transparent), color-mix(in srgb, var(--c-card) 90%, transparent));
  scroll-margin-top: 110px;
  animation: hm-lap-la-so-rise 0.3s ease-out;
}
@keyframes hm-lap-la-so-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.hm-lap-la-so-resultHead {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.hm-lap-la-so-resultHead .hm-lap-la-so-headIcon {
  flex-shrink: 0;
  margin: 0;
  border: 1px solid var(--hm-gold);
  border-radius: 50%;
}
.hm-lap-la-so-resultTitle {
  margin: 0;
  font-family: var(--font-display, "Cormorant Garamond", Georgia, serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--hm-gold-soft);
}
.hm-lap-la-so-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}
.hm-lap-la-so-summary div {
  padding: 12px 14px;
  border: 1px solid var(--hm-line-soft);
  border-radius: 10px;
  background: color-mix(in srgb, var(--c-bg) 50%, transparent);
}
.hm-lap-la-so-summary dt {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hm-muted);
}
.hm-lap-la-so-summary dd {
  margin: 4px 0 0;
  font-size: 15px;
}

.hm-lap-la-so-btnGhost,
.hm-lap-la-so-btnOutline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 22px;
  border: 1px solid var(--hm-gold);
  border-radius: 999px;
  background: color-mix(in srgb, var(--c-bg) 50%, transparent);
  color: var(--hm-gold-soft);
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
}
.hm-lap-la-so-btnGhost:hover,
.hm-lap-la-so-btnOutline:hover {
  background: color-mix(in srgb, var(--c-gold) 12%, transparent);
}

.hm-lap-la-so-demoLink {
  margin-left: 16px;
  font-size: 13.5px;
  color: var(--hm-gold-soft);
}

/* ---------- 4 bước ---------- */
.hm-lap-la-so-steps {
  padding: 26px 0;
  border-top: 1px solid var(--hm-line);
  border-bottom: 1px solid var(--hm-line);
  background: linear-gradient(180deg, var(--c-card), var(--c-bg));
}

.hm-lap-la-so-stepList {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0 auto;
  list-style: none;
}
.hm-lap-la-so-stepList li {
  display: flex;
  align-items: center;
  gap: 16px;
}
.hm-lap-la-so-stepIcon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border: 1px solid var(--hm-gold);
  border-radius: 50%;
  color: var(--hm-gold-soft);
  background: radial-gradient(circle at 35% 30%, var(--c-badge), var(--c-card));
  box-shadow: 0 0 20px -6px color-mix(in srgb, var(--c-gold) 60%, transparent);
}
.hm-lap-la-so-stepNum {
  display: block;
  font-family: var(--font-display, "Cormorant Garamond", Georgia, serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--hm-gold);
}
.hm-lap-la-so-stepTitle {
  display: block;
  font-size: 14px;
  line-height: 1.4;
}
.hm-lap-la-so-stepArrow {
  margin-left: auto;
  color: var(--hm-gold);
  opacity: 0.8;
}

/* ---------- Trường phái ---------- */
.hm-lap-la-so-schoolGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.hm-lap-la-so-schoolCard {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--hm-line);
  border-radius: 14px;
  background: var(--hm-card);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.hm-lap-la-so-schoolCard input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.hm-lap-la-so-schoolCard:hover:not(.hm-lap-la-so-schoolOff) {
  border-color: var(--hm-gold);
  transform: translateY(-3px);
}
.hm-lap-la-so-schoolOn {
  border: 2px solid var(--hm-gold);
  box-shadow: 0 0 30px -10px color-mix(in srgb, var(--c-gold) 70%, transparent);
}
.hm-lap-la-so-schoolOff {
  cursor: not-allowed;
}
.hm-lap-la-so-schoolOff .hm-lap-la-so-schoolMedia,
.hm-lap-la-so-schoolOff .hm-lap-la-so-schoolBody {
  opacity: 0.6;
}

.hm-lap-la-so-schoolMedia {
  position: relative;
  aspect-ratio: 4 / 1;
}
.hm-lap-la-so-schoolMedia::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--hm-card), transparent 70%);
}

.hm-lap-la-so-soon {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  padding: 3px 10px;
  border: 1px solid var(--hm-line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--c-bg) 80%, transparent);
  font-size: 11px;
  font-weight: 600;
  color: var(--hm-gold-soft);
}

.hm-lap-la-so-schoolBody {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px 20px;
}

.hm-lap-la-so-badge,
.hm-lap-la-so-badgeLg {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border: 1px solid var(--hm-gold);
  border-radius: 50%;
  color: var(--hm-gold-soft);
  background: radial-gradient(circle at 35% 30%, var(--c-badge), var(--c-card));
}
.hm-lap-la-so-badgeLg {
  width: 52px;
  height: 52px;
}

.hm-lap-la-so-schoolText {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.hm-lap-la-so-schoolTitle {
  font-family: var(--font-display, "Cormorant Garamond", Georgia, serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--c-heading);
}
.hm-lap-la-so-schoolDesc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--hm-muted);
}
.hm-lap-la-so-schoolNote {
  align-self: flex-start;
  padding: 2px 8px;
  border: 1px dashed var(--hm-line);
  border-radius: 6px;
  font-size: 11.5px;
  color: var(--hm-muted);
}

.hm-lap-la-so-tick {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--hm-muted);
  border-radius: 50%;
  color: var(--c-on-gold);
}
.hm-lap-la-so-schoolOn .hm-lap-la-so-tick {
  border-color: var(--hm-gold);
  background: var(--hm-gold);
}

.hm-lap-la-so-schoolFoot {
  margin: 22px 0 0;
  font-size: 13px;
  color: var(--hm-muted);
  text-align: center;
}
.hm-lap-la-so-schoolFoot a {
  color: var(--hm-gold-soft);
}

/* ---------- Chuẩn bị ---------- */
.hm-lap-la-so-prepareGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hm-lap-la-so-prepareCard {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 0 18px 18px;
  overflow: hidden;
  border: 1px solid var(--hm-line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--c-bg) 50%, transparent);
}
.hm-lap-la-so-prepareTitle {
  display: block;
  font-size: 15px;
  font-weight: 600;
}
.hm-lap-la-so-prepareSub {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--hm-muted);
}

/* ---------- Lá số gồm gì ---------- */
.hm-lap-la-so-about {
  isolation: isolate;
  overflow: hidden;
  padding: 72px 0 80px;
  border-top: 1px solid var(--hm-line-soft);
}
.hm-lap-la-so-aboutArt {
  position: absolute;
  inset: 0 0 0 auto;
  width: 52%;
  z-index: -1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 40%);
}
.hm-lap-la-so-aboutInner {
  display: flex;
}
.hm-lap-la-so-aboutText {
  max-width: 560px;
}
.hm-lap-la-so-aboutLead {
  margin: 14px 0 20px;
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.9;
}
.hm-lap-la-so-aboutList {
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}
.hm-lap-la-so-aboutList li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  font-size: 14.5px;
}
.hm-lap-la-so-aboutDot {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--hm-gold);
  border-radius: 50%;
  color: var(--hm-gold);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hm-lap-la-so-cols {
    grid-template-columns: 1fr 1fr;
    gap: 22px 0;
  }
  .hm-lap-la-so-col:nth-child(3) {
    grid-column: 1 / -1;
    flex-direction: row;
    padding: 22px 0 0;
    border-left: 0;
    border-top: 1px solid var(--hm-line-soft);
  }
  .hm-lap-la-so-col:nth-child(3) .hm-lap-la-so-field {
    flex: 1;
  }
  .hm-lap-la-so-col:nth-child(2) {
    padding-right: 0;
  }
  .hm-lap-la-so-stepList {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .hm-lap-la-so-stepArrow {
    display: none;
  }
  .hm-lap-la-so-prepareGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hm-lap-la-so-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hm-lap-la-so-submitRow {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .hm-lap-la-so-schoolPick {
    order: 2;
  }
}

@media (max-width: 900px) {
  .hm-lap-la-so-hero {
    flex-direction: column;
    align-items: stretch;
  }
  .hm-lap-la-so-heroArt {
    position: relative;
    width: 100%;
    height: 280px;
    order: -1;
    -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 55%);
    mask-image: linear-gradient(0deg, transparent 0%, #000 55%);
  }
  .hm-lap-la-so-heroInner {
    padding: 0 20px 40px;
    margin-top: -40px;
  }
  .hm-lap-la-so-container {
    padding: 0 16px;
  }
  .hm-lap-la-so-frame {
    padding: 24px 16px;
  }
  .hm-lap-la-so-schoolGrid {
    grid-template-columns: 1fr;
  }
  .hm-lap-la-so-schoolMedia {
    aspect-ratio: 5 / 1;
  }
  .hm-lap-la-so-aboutArt {
    position: relative;
    width: 100%;
    height: 240px;
    -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 50%);
    mask-image: linear-gradient(0deg, transparent 0%, #000 50%);
  }
  .hm-lap-la-so-about {
    padding: 0 0 56px;
  }
  .hm-lap-la-so-aboutInner {
    margin-top: -40px;
  }
}

@media (max-width: 640px) {
  .hm-lap-la-so-form {
    padding: 18px 14px;
  }
  .hm-lap-la-so-cols {
    grid-template-columns: 1fr;
  }
  .hm-lap-la-so-col,
  .hm-lap-la-so-col:nth-child(2),
  .hm-lap-la-so-col:nth-child(3) {
    flex-direction: column;
    padding: 22px 0 0;
    border-left: 0;
    border-top: 1px solid var(--hm-line-soft);
  }
  .hm-lap-la-so-col:first-child {
    padding-top: 0;
    border-top: 0;
  }
  .hm-lap-la-so-btnSubmit {
    width: 100%;
    min-width: 0;
  }
  .hm-lap-la-so-stepList,
  .hm-lap-la-so-prepareGrid,
  .hm-lap-la-so-summary {
    grid-template-columns: 1fr;
  }
  .hm-lap-la-so-features {
    flex-direction: column;
  }
  .hm-lap-la-so-result {
    padding: 20px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hm-lap-la-so-hero *,
  .hm-lap-la-so-formSection *,
  .hm-lap-la-so-section *,
  .hm-lap-la-so-about * {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- Ảnh nền, ảnh minh họa (thay được trong Ảnh trên website) ---------- */
.hm-lap-la-so-prepareArt {
  position: relative;
  flex: 0 0 calc(100% + 36px);
  margin: 0 -18px 2px;
  aspect-ratio: 300 / 140;
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent);
  mask-image: linear-gradient(180deg, #000 60%, transparent);
}
.hm-lap-la-so-prepareCard > span:last-child {
  flex: 1 1 0;
  min-width: 0;
}
.hm-lap-la-so-formSection .hm-lap-la-so-frame {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--c-surface) 72%, transparent), color-mix(in srgb, var(--c-card) 82%, transparent)),
    var(--hm-anh-form-la-so, url("../images/la-so/nen-form.jpg")) center / cover no-repeat,
    var(--c-card);
}
.hm-lap-la-so-section .hm-lap-la-so-frame {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--c-surface) 70%, transparent), color-mix(in srgb, var(--c-card) 80%, transparent)),
    var(--hm-anh-khung-la-so, url("../images/la-so/nen-khung.jpg")) center / cover no-repeat,
    var(--c-card);
}
.hm-lap-la-so-steps {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--c-card) 55%, transparent), color-mix(in srgb, var(--c-bg) 65%, transparent)),
    var(--hm-anh-buoc-la-so, url("../images/la-so/nen-buoc.jpg")) center / cover no-repeat,
    var(--c-bg);
}

/* live.module.css */
/* Trang kết quả thật: tổng quan, giả định, thao tác */
.hm-live-h2 { font-family: var(--font-display); color: var(--c-title-2); font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin: 0 0 14px; }
.hm-live-h3 { color: var(--c-gold-soft); font-size: 1.02rem; margin: 18px 0 8px; }
.hm-live-hint { color: var(--c-muted); font-size: .86rem; margin: 6px 0 0; }
.hm-live-error { color: var(--c-danger); margin: 0; }
.hm-live-label { display: block; color: var(--c-heading); font-size: .92rem; margin-bottom: 6px; }
.hm-live-note {
  margin: 18px 0; padding: 12px 16px; border-radius: 12px; font-size: .9rem; color: var(--c-text);
  border-left: 3px solid var(--c-gold); background: color-mix(in srgb, var(--c-card) 85%, transparent);
}
.hm-live-assume {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin: 18px 0; padding: 18px;
  border-radius: var(--radius, 14px); border: 1px solid color-mix(in srgb, var(--c-warn) 45%, transparent);
  background: color-mix(in srgb, var(--c-warn) 8%, var(--c-card));
}
.hm-live-select {
  width: 100%; max-width: 360px; background: var(--c-input); color: var(--c-text); font: inherit; padding: 9px 12px; border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--c-gold) 30%, transparent);
}
.hm-live-seg { display: inline-flex; border-radius: 10px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--c-gold) 30%, transparent); }
.hm-live-seg button { padding: 8px 16px; background: transparent; color: var(--c-text); border: 0; font: inherit; cursor: pointer; }
.hm-live-seg button[aria-pressed="true"] { background: color-mix(in srgb, var(--c-gold) 24%, transparent); color: var(--c-heading); }

.hm-live-overview {
  margin: 22px 0; padding: clamp(18px, 3vw, 28px); border-radius: var(--radius, 14px); background: var(--c-card);
  border: 1px solid color-mix(in srgb, var(--c-gold) 22%, transparent); line-height: 1.7;
}
.hm-live-overviewGrid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; }
.hm-live-overviewGrid p { margin: 0 0 10px; }
.hm-live-patterns { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hm-live-patterns li { display: grid; gap: 4px; padding: 10px 12px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--c-gold) 22%, transparent); }
.hm-live-patterns strong { color: var(--c-heading); }
.hm-live-patterns span { color: var(--c-muted); font-size: .9rem; }
.hm-live-van { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.hm-live-van li { padding: 8px 10px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--c-gold) 18%, transparent); display: grid; font-size: .86rem; }
.hm-live-van strong { color: var(--c-heading); }
.hm-live-van span { color: var(--c-muted); }
.hm-live-vanOn { background: color-mix(in srgb, var(--c-gold) 20%, transparent); border-color: var(--c-gold) !important; }

.hm-live-actions { margin: 22px 0; }
.hm-live-actionRow { display: flex; flex-wrap: wrap; gap: 10px; }
.hm-live-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 12px; border: 0; cursor: pointer; font: inherit; font-weight: 600;
  color: var(--c-on-gold); background: linear-gradient(180deg, var(--c-gold-light), var(--c-gold));
}
.hm-live-btnGhost {  color: var(--c-gold-soft); background: transparent; border: 1px solid color-mix(in srgb, var(--c-gold) 40%, transparent); font-weight: 500; }
.hm-live-btn:focus-visible, .hm-live-btnGhost:focus-visible, .hm-live-select:focus-visible, .hm-live-seg button:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 2px; }
.hm-live-status { min-height: 1.4em; color: var(--c-gold-soft); font-size: .9rem; margin: 10px 0 0; }

.hm-live-ai { margin-top: 14px; display: grid; gap: 8px; }
.hm-live-aiText { padding: 14px; border-radius: 12px; background: color-mix(in srgb, var(--c-accent) 50%, transparent); border: 1px solid color-mix(in srgb, var(--c-glow) 40%, transparent); }
.hm-live-aiText p { margin: 0 0 10px; }

.hm-live-full { margin: 22px 0; padding: 16px 20px; border-radius: var(--radius, 14px); background: var(--c-card); border: 1px solid color-mix(in srgb, var(--c-gold) 18%, transparent); line-height: 1.7; }
.hm-live-full summary { cursor: pointer; color: var(--c-gold-soft); font-weight: 600; }
.hm-live-full p { margin: 0 0 8px; }

@media (max-width: 800px) { .hm-live-overviewGrid { grid-template-columns: 1fr; } }
@media print {
  .hm-live-actions, .hm-live-assume, .hm-live-ai { display: none !important; }
  .hm-live-full { display: block; }
}

/* result.module.css */
/* Phong Thủy Bảo Địa — Trang kết quả lá số */

.hm-result-page {
  --r-bg: var(--c-bg);
  --r-purple: var(--c-accent);
  --r-card: var(--c-card);
  --r-gold: var(--c-gold);
  --r-gold-soft: var(--c-gold-soft);
  --r-text: var(--c-text);
  --r-muted: var(--c-muted);
  --r-line: color-mix(in srgb, var(--c-gold) 30%, transparent);
  --r-line-soft: color-mix(in srgb, var(--c-gold) 15%, transparent);
  --r-paper: #efe3c8;
  --r-paper-2: #e2d1ad;
  --r-ink: #3a2a1a;
  --r-red: #a3341f;
  --r-blue: #2e4f86;
  --r-green: #3d6b3a;
  --r-violet: #6a3f8c;

  position: relative;
  padding-bottom: 72px;
  color: var(--r-text);
  font-family: var(--font-body, "Be Vietnam Pro", system-ui, sans-serif);
  background:
    radial-gradient(60% 40% at 50% 30%, color-mix(in srgb, var(--c-accent) 70%, transparent), transparent 70%),
    var(--r-bg);
}

.hm-result-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 28px;
}

.hm-result-cover {
  object-fit: cover;
}

.hm-result-srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.hm-result-h2 {
  margin: 0;
  font-family: var(--font-display, "Cormorant Garamond", Georgia, serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--r-gold-soft);
}

/* ---------- Hero ---------- */
.hm-result-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  margin-bottom: 28px;
}
.hm-result-heroArt {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(56%, 820px);
  z-index: -1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.6) 25%, #000 50%), linear-gradient(0deg, transparent 0%, #000 30%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.6) 25%, #000 50%), linear-gradient(0deg, transparent 0%, #000 30%);
  mask-composite: intersect;
}
.hm-result-heroInner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 28px 24px;
}

.hm-result-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--r-muted);
}
.hm-result-breadcrumb li + li::before {
  content: "›";
  margin-right: 8px;
  color: var(--r-gold);
}
.hm-result-breadcrumb a {
  color: var(--r-text);
  text-decoration: none;
}
.hm-result-breadcrumb a:hover {
  color: var(--r-gold-soft);
}
.hm-result-breadcrumb [aria-current] {
  color: var(--r-gold-soft);
}

.hm-result-eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--r-gold);
}
.hm-result-h1 {
  margin: 0;
  font-family: var(--font-display, "Cormorant Garamond", Georgia, serif);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.05;
  background: linear-gradient(180deg, var(--c-title-1) 0%, var(--c-title-2) 55%, #a87f38 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hm-result-heroLead {
  max-width: 560px;
  margin: 14px 0 0;
  font-size: 15.5px;
  line-height: 1.7;
  opacity: 0.9;
}

/* ---------- Banner dữ liệu minh họa ---------- */
.hm-result-demoBanner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 14px 18px;
  border: 1px dashed var(--c-warn);
  border-radius: 12px;
  background: color-mix(in srgb, var(--c-warn) 8%, transparent);
  color: var(--c-warn);
  font-size: 14px;
  line-height: 1.6;
}
.hm-result-demoBanner svg {
  flex-shrink: 0;
  margin-top: 1px;
}
.hm-result-demoBanner p {
  margin: 0;
}
.hm-result-demoBanner strong {
  color: var(--c-warn);
}

/* ---------- Hồ sơ ---------- */
.hm-result-profile {
  margin-bottom: 24px;
  padding: 24px;
  border: 1px solid var(--r-line);
  border-radius: 16px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c-accent) 55%, transparent), var(--r-card));
}
.hm-result-profileHead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.hm-result-avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--r-gold);
  border-radius: 50%;
  color: var(--r-gold-soft);
  background: radial-gradient(circle at 35% 30%, var(--c-badge), var(--c-card));
}
.hm-result-demoPill {
  padding: 4px 12px;
  border: 1px solid var(--r-gold);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--r-gold-soft);
}
.hm-result-created {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--r-muted);
}

.hm-result-profileGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.hm-result-profileItem {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--r-line-soft);
  border-radius: 10px;
  background: color-mix(in srgb, var(--c-bg) 45%, transparent);
}
.hm-result-profileIcon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border: 1px solid var(--r-line);
  border-radius: 50%;
  color: var(--r-gold);
}
.hm-result-profileItem dt {
  font-size: 12px;
  color: var(--r-muted);
}
.hm-result-profileItem dd {
  margin: 2px 0 0;
  font-size: 14.5px;
}

/* ---------- Khu vực sơ đồ ---------- */
.hm-result-boardSection {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}

/* Cho phép cột co lại: danh sách cung cuộn ngang không được đẩy rộng lưới */
.hm-result-boardSection > * {
  min-width: 0;
}

/* Danh sách cung */
.hm-result-palaceNav {
  padding: 16px 12px;
  border: 1px solid var(--r-line);
  border-radius: 14px;
  background: var(--r-card);
}
.hm-result-navTitle {
  margin: 0 6px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--r-gold-soft);
}
.hm-result-palaceNav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.hm-result-navBtn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: none;
  color: var(--r-text);
  font: inherit;
  font-size: 14.5px;
  text-align: left;
  cursor: pointer;
}
.hm-result-navBtn svg {
  margin-left: auto;
  color: var(--r-muted);
}
.hm-result-navBtn:hover {
  background: color-mix(in srgb, var(--c-gold) 8%, transparent);
}
.hm-result-navOn {
  border-color: var(--r-gold);
  background: color-mix(in srgb, var(--c-gold) 12%, transparent);
  color: var(--r-gold-soft);
  font-weight: 600;
}
.hm-result-navBranch {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border: 1px solid var(--r-line);
  border-radius: 50%;
  font-size: 11.5px;
  color: var(--r-gold);
}

/* Lưới 4×4 */
.hm-result-boardWrap {
  min-width: 0;
}
.hm-result-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(150px, auto));
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--r-gold);
  border-radius: 14px;
  background: linear-gradient(180deg, #2a1d14, #17110c);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9), inset 0 0 0 4px color-mix(in srgb, var(--c-bg) 60%, transparent);
}

.hm-result-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 10px 10px 30px;
  border: 1px solid #b89a63;
  border-radius: 6px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, 0.35), transparent 60%),
    linear-gradient(180deg, var(--r-paper), var(--r-paper-2));
  color: var(--r-ink);
  font: inherit;
  text-align: center;
  cursor: pointer;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.25), inset 0 0 18px rgba(120, 80, 30, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hm-result-cell:hover {
  transform: translateY(-2px);
}
.hm-result-cell:focus-visible {
  outline: 3px solid var(--r-gold-soft);
  outline-offset: 2px;
}
.hm-result-cellOn {
  border-color: #f2c96a;
  box-shadow: 0 0 0 2px #f2c96a, 0 0 24px rgba(242, 201, 106, 0.55), inset 0 0 18px rgba(120, 80, 30, 0.25);
  z-index: 1;
}

.hm-result-cellTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hm-result-branch {
  font-family: var(--font-display, "Cormorant Garamond", Georgia, serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--r-ink);
}
.hm-result-bodyMark {
  padding: 1px 6px;
  border: 1px solid var(--r-violet);
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--r-violet);
}
.hm-result-palaceName {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b5233;
}
.hm-result-cellMenh .hm-result-palaceName {
  color: var(--r-red);
}
.hm-result-majors {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.hm-result-major {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--r-red);
}
.hm-result-empty {
  font-size: 12.5px;
  font-style: italic;
  color: #7c6646;
}
.hm-result-minors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 6px;
  font-size: 12px;
  line-height: 1.35;
}
.hm-result-g_lucky {
  color: var(--r-green);
}
.hm-result-g_unlucky {
  color: #8c3a2b;
}
.hm-result-g_transform {
  color: var(--r-blue);
  font-weight: 600;
}
.hm-result-g_other,
.hm-result-g_major {
  color: #5c4a33;
}
.hm-result-more {
  color: #7c6646;
}

.hm-result-bright,
.hm-result-brightSm {
  padding: 1px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(58, 42, 26, 0.12);
  color: var(--r-ink);
}
.hm-result-bright {
  position: absolute;
  left: 50%;
  bottom: 7px;
  transform: translateX(-50%);
}
.hm-result-b_mieu,
.hm-result-b_vuong {
  background: rgba(61, 107, 58, 0.18);
  color: var(--r-green);
}
.hm-result-b_dac {
  background: rgba(46, 79, 134, 0.14);
  color: var(--r-blue);
}
.hm-result-b_ham {
  background: rgba(163, 52, 31, 0.15);
  color: var(--r-red);
}

/* Trung tâm 2×2 */
.hm-result-center {
  position: relative;
  grid-row: 2 / span 2;
  grid-column: 2 / span 2;
  overflow: hidden;
  border: 1px solid var(--r-gold);
  border-radius: 8px;
}
.hm-result-center::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--c-bg) 25%, transparent), color-mix(in srgb, var(--c-bg) 85%, transparent) 75%);
}
.hm-result-centerInfo {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 16px;
  font-size: 13px;
  color: var(--r-text);
  text-align: center;
  background: linear-gradient(0deg, color-mix(in srgb, var(--c-bg) 92%, transparent), transparent);
}
.hm-result-centerBrand {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--r-gold);
}
.hm-result-centerName {
  font-family: var(--font-display, "Cormorant Garamond", Georgia, serif);
  font-size: 22px;
  color: var(--r-gold-soft);
}
.hm-result-stamp {
  margin-top: 6px;
  padding: 2px 10px;
  border: 1.5px solid var(--c-warn);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-warn);
  transform: rotate(-4deg);
}

.hm-result-boardNote {
  margin: 12px 4px 0;
  font-size: 12.5px;
  color: var(--r-muted);
  text-align: center;
}

/* ---------- Chi tiết cung ---------- */
.hm-result-detailWrap {
  scroll-margin-top: 100px;
}
.hm-result-detail {
  padding: 22px;
  border: 1px solid var(--r-line);
  border-radius: 14px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c-accent) 60%, transparent), var(--r-card));
  animation: hm-result-fade 0.2s ease-out;
}
@keyframes hm-result-fade {
  from {
    opacity: 0.4;
  }
}
.hm-result-detailEyebrow {
  margin: 0;
  font-size: 13px;
  color: var(--r-gold);
}
.hm-result-detailTitle {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 4px 0 8px;
  font-family: var(--font-display, "Cormorant Garamond", Georgia, serif);
  font-size: 34px;
  font-weight: 600;
  font-variant: small-caps;
  color: var(--r-gold-soft);
}
.hm-result-detailBranch {
  font-size: 18px;
  font-variant: normal;
  color: var(--r-muted);
}
.hm-result-tagSoft {
  display: inline-block;
  margin-bottom: 4px;
  padding: 2px 10px;
  border: 1px solid var(--r-line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--r-gold-soft);
}
.hm-result-detailH3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--r-gold-soft);
}
.hm-result-detailH3 svg {
  color: var(--r-gold);
}

.hm-result-starList {
  margin: 0;
  padding: 0;
  list-style: none;
}
.hm-result-starList li + li {
  margin-top: 6px;
}
.hm-result-starBtn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--r-line-soft);
  border-radius: 9px;
  background: color-mix(in srgb, var(--c-bg) 45%, transparent);
  color: var(--r-text);
  font: inherit;
  font-size: 14.5px;
  cursor: pointer;
}
.hm-result-starBtn > svg {
  margin-left: auto;
  color: var(--r-muted);
  transition: transform 0.2s ease;
}
.hm-result-starBtn[aria-expanded="true"] > svg {
  transform: rotate(180deg);
}
.hm-result-starBtn:hover {
  border-color: var(--r-gold);
}
.hm-result-starName {
  font-weight: 600;
}
.hm-result-brightSm {
  background: rgba(232, 224, 209, 0.1);
  color: var(--r-text);
}
.hm-result-detail .hm-result-b_mieu,
.hm-result-detail .hm-result-b_vuong {
  background: rgba(110, 170, 100, 0.18);
  color: #a8d69b;
}
.hm-result-detail .hm-result-b_dac {
  background: rgba(110, 150, 220, 0.18);
  color: #a9c2ee;
}
.hm-result-detail .hm-result-b_ham {
  background: rgba(220, 110, 90, 0.18);
  color: var(--c-danger);
}
.hm-result-starMeaning {
  margin: 6px 4px 4px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--r-muted);
}

.hm-result-minorGroups {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hm-result-groupLabel {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--r-muted);
}
.hm-result-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hm-result-chip {
  padding: 3px 10px;
  border: 1px solid var(--r-line);
  border-radius: 999px;
  font-size: 12.5px;
}
.hm-result-chip_lucky {
  border-color: rgba(110, 170, 100, 0.5);
  color: #a8d69b;
}
.hm-result-chip_unlucky {
  border-color: rgba(220, 110, 90, 0.5);
  color: var(--c-danger);
}
.hm-result-chip_transform {
  border-color: rgba(110, 150, 220, 0.5);
  color: #a9c2ee;
}

.hm-result-meaning {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--r-text);
  opacity: 0.88;
}
.hm-result-muted {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--r-muted);
}

.hm-result-btnDisabled {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 46px;
  margin-top: 22px;
  border: 1px solid var(--r-line);
  border-radius: 999px;
  background: none;
  color: var(--r-muted);
  font: inherit;
  font-size: 14.5px;
  cursor: not-allowed;
}
.hm-result-soonNote {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--r-muted);
  text-align: center;
}

/* ---------- Thao tác ---------- */
.hm-result-actions {
  margin: 28px 0;
}
.hm-result-actionList {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hm-result-actionBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 58px;
  border: 1px solid var(--r-line);
  border-radius: 12px;
  background: var(--r-card);
  color: var(--r-text);
  font: inherit;
  font-size: 15px;
  opacity: 0.75;
  cursor: not-allowed;
}
.hm-result-actionBtn svg {
  color: var(--r-gold);
}
.hm-result-soonPill {
  padding: 2px 8px;
  border: 1px solid var(--r-line);
  border-radius: 999px;
  font-size: 11px;
  color: var(--r-muted);
}
.hm-result-actionNote {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--r-muted);
  text-align: center;
}

/* ---------- Chú giải ---------- */
.hm-result-guides {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.hm-result-guide {
  overflow: hidden;
  border: 1px solid var(--r-line);
  border-radius: 14px;
  background: var(--r-card);
}
.hm-result-guideMedia {
  position: relative;
  aspect-ratio: 3.4 / 1;
}
.hm-result-guideMedia::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--r-card), transparent 70%);
}
.hm-result-guideBody {
  display: flex;
  gap: 14px;
  padding: 4px 20px 22px;
}
.hm-result-badge {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid var(--r-gold);
  border-radius: 50%;
  color: var(--r-gold-soft);
  background: radial-gradient(circle at 35% 30%, var(--c-badge), var(--c-card));
}
.hm-result-guideTitle {
  margin: 0;
  font-family: var(--font-display, "Cormorant Garamond", Georgia, serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--c-heading);
}
.hm-result-guideText {
  margin: 6px 0 14px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--r-muted);
}

.hm-result-btnOutline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 20px;
  border: 1px solid var(--r-gold);
  border-radius: 999px;
  background: none;
  color: var(--r-gold-soft);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
}
.hm-result-btnOutline:hover {
  background: color-mix(in srgb, var(--c-gold) 12%, transparent);
}

/* ---------- FAQ ---------- */
.hm-result-faq {
  margin-bottom: 32px;
}
.hm-result-faqList {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.hm-result-faqItem {
  border: 1px solid var(--r-line-soft);
  border-radius: 12px;
  background: var(--r-card);
}
.hm-result-faqItem summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.hm-result-faqItem summary::-webkit-details-marker {
  display: none;
}
.hm-result-faqItem summary svg {
  flex-shrink: 0;
  color: var(--r-gold);
  transition: transform 0.2s ease;
}
.hm-result-faqItem[open] summary svg {
  transform: rotate(180deg);
}
.hm-result-faqItem p {
  margin: 0;
  padding: 0 18px 16px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--r-muted);
}

/* ---------- Disclaimer ---------- */
.hm-result-disclaimer {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 24px;
  border: 1px solid var(--r-line);
  border-radius: 14px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c-accent) 70%, transparent), var(--r-card));
}
.hm-result-disclaimerIcon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border: 1px solid var(--r-gold);
  border-radius: 50%;
  color: var(--r-gold-soft);
}
.hm-result-disclaimerTitle {
  margin: 0 0 6px;
  font-family: var(--font-display, "Cormorant Garamond", Georgia, serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--r-gold-soft);
}
.hm-result-disclaimer p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--r-muted);
}
.hm-result-disclaimer a {
  color: var(--r-gold-soft);
}

/* ---------- Thông báo trạng thái ---------- */
.hm-result-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 620px;
  margin: 80px auto 0;
  padding: 40px 28px;
  border: 1px solid var(--r-line);
  border-radius: 18px;
  background: var(--r-card);
  text-align: center;
}
.hm-result-messageTitle {
  margin: 0;
  font-family: var(--font-display, "Cormorant Garamond", Georgia, serif);
  font-size: 30px;
  font-weight: 600;
  color: var(--r-gold-soft);
}
.hm-result-message p {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--r-muted);
}

/* ---------- Skeleton khi tải ---------- */
.hm-result-skeletonHead,
.hm-result-skeletonBoard span {
  border-radius: 10px;
  background: linear-gradient(90deg, var(--c-card) 0%, #221a2c 50%, var(--c-card) 100%);
  background-size: 200% 100%;
  animation: hm-result-shimmer 1.4s linear infinite;
}
.hm-result-skeletonHead {
  height: 140px;
  margin: 48px 0 24px;
}
.hm-result-skeletonBoard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 760px;
  margin: 0 auto;
}
.hm-result-skeletonBoard span {
  height: 120px;
}
@keyframes hm-result-shimmer {
  to {
    background-position: -200% 0;
  }
}

/* Focus chung */
.hm-result-navBtn:focus-visible,
.hm-result-starBtn:focus-visible,
.hm-result-btnOutline:focus-visible,
.hm-result-faqItem summary:focus-visible,
.hm-result-breadcrumb a:focus-visible {
  outline: 2px solid var(--r-gold-soft);
  outline-offset: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .hm-result-boardSection {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  .hm-result-palaceNav {
    grid-column: 1 / -1;
    padding: 10px;
  }
  .hm-result-navTitle {
    display: none;
  }
  .hm-result-palaceNav ul {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }
  .hm-result-navBtn {
    width: auto;
    white-space: nowrap;
    border-color: var(--r-line-soft);
  }
  .hm-result-navBtn svg {
    display: none;
  }
  .hm-result-profileGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .hm-result-boardSection {
    grid-template-columns: 1fr;
  }
  .hm-result-guides {
    grid-template-columns: 1fr;
  }
  .hm-result-guide {
    display: grid;
    grid-template-columns: 220px 1fr;
  }
  .hm-result-guideMedia {
    aspect-ratio: auto;
  }
  .hm-result-guideMedia::after {
    background: linear-gradient(90deg, transparent 50%, var(--r-card));
  }
  .hm-result-guideBody {
    padding: 20px;
  }
  .hm-result-faqList {
    grid-template-columns: 1fr;
  }
  .hm-result-actionList {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hm-result-profileGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hm-result-hero {
    flex-direction: column;
    align-items: stretch;
  }
  .hm-result-heroArt {
    position: relative;
    width: 100%;
    height: 220px;
    order: -1;
    -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 55%);
    mask-image: linear-gradient(0deg, transparent 0%, #000 55%);
  }
  .hm-result-heroInner {
    margin-top: -80px;
    padding: 0 16px 8px;
  }
  .hm-result-container {
    padding: 0 12px;
  }
}

@media (max-width: 640px) {
  .hm-result-board {
    grid-template-rows: repeat(4, minmax(104px, auto));
    gap: 3px;
    padding: 4px;
  }
  .hm-result-cell {
    padding: 5px 3px 6px;
    gap: 2px;
  }
  .hm-result-branch {
    font-size: 13px;
  }
  .hm-result-bodyMark {
    font-size: 9px;
    padding: 0 3px;
  }
  .hm-result-palaceName {
    font-size: 8.5px;
    letter-spacing: 0.02em;
  }
  .hm-result-major {
    font-size: 11px;
    line-height: 1.2;
  }
  .hm-result-empty {
    font-size: 9.5px;
  }
  /* Trên điện thoại chỉ giữ chính tinh trong ô; phụ tinh xem ở bảng chi tiết */
  .hm-result-minors,
  .hm-result-bright {
    display: none;
  }
  .hm-result-centerInfo {
    padding: 8px;
    font-size: 10.5px;
  }
  .hm-result-centerName {
    font-size: 16px;
  }
  .hm-result-profile {
    padding: 16px;
  }
  .hm-result-profileGrid {
    grid-template-columns: 1fr;
  }
  .hm-result-created {
    width: 100%;
    margin-left: 0;
  }
  .hm-result-guide {
    grid-template-columns: 1fr;
  }
  .hm-result-guideMedia {
    aspect-ratio: 3.4 / 1;
  }
  .hm-result-actionList {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .hm-result-actionBtn {
    flex-direction: column;
    gap: 4px;
    height: auto;
    padding: 12px 6px;
    font-size: 13.5px;
  }
  .hm-result-disclaimer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hm-result-page * {
    transition: none !important;
    animation: none !important;
  }
}

/* Lời luận trong bảng chi tiết cung */
.hm-result-reading { display: grid; gap: 8px; }
.hm-result-reading .hm-result-meaning, .hm-result-reading .hm-result-muted { margin: 0; }
