.matrix-destiny-page-shell {
  min-height: 100vh;
}

.matrix-page-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(250, 246, 238, 0.78);
}

.matrix-page-nav {
  gap: 14px;
}

.matrix-page-nav a {
  white-space: nowrap;
}

.matrix-page-hero {
  padding-top: 28px;
}

.matrix-page-hero__layout {
  align-items: start;
  gap: 28px;
}

.matrix-page-hero__eyebrow {
  margin: 0 0 14px;
  color: rgba(141, 48, 66, 0.86);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.matrix-page-hero__lead {
  max-width: 47rem;
}

.matrix-page-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.matrix-page-hero__chips span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.9);
  border: 1px solid rgba(15, 90, 64, 0.12);
  color: var(--green-deep);
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(68, 46, 18, 0.05);
}

.matrix-page-hero__panel {
  min-width: 0;
}

.matrix-page-highlight {
  position: relative;
  overflow: hidden;
  padding: 24px 22px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(203, 154, 54, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(255, 254, 250, 0.96), rgba(247, 239, 227, 0.92));
  border: 1px solid rgba(203, 154, 54, 0.18);
  box-shadow: 0 18px 42px rgba(68, 46, 18, 0.08);
}

.matrix-page-highlight::after {
  content: "9 15 6";
  position: absolute;
  right: 20px;
  bottom: 14px;
  color: rgba(203, 154, 54, 0.18);
  font-family: "Cormorant Garamond", serif;
  font-size: 2.2rem;
  line-height: 1;
  letter-spacing: 0.12em;
}

.matrix-page-highlight__label {
  margin: 0;
  color: rgba(141, 48, 66, 0.88);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.matrix-page-highlight__list {
  margin: 16px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  color: #4d4840;
  line-height: 1.6;
}

.matrix-page-panel {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(203, 154, 54, 0.18), transparent 34%),
    radial-gradient(circle at left bottom, rgba(15, 90, 64, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 254, 250, 0.98), rgba(248, 243, 233, 0.96));
  border: 1px solid rgba(203, 154, 54, 0.18);
  box-shadow: 0 18px 46px rgba(68, 46, 18, 0.08);
}

.matrix-page-panel__heading {
  margin-bottom: 10px;
}

.matrix-page-panel__sub {
  max-width: 54rem;
}

.matrix-page-form {
  margin-top: 20px;
}

.matrix-page-form .form-row {
  display: grid;
  gap: 8px;
}

.matrix-page-results {
  display: grid;
  gap: 24px;
}

.matrix-page-results__heading {
  margin-bottom: 0;
}

.matrix-page-result-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(15, 90, 64, 0.1), transparent 28%),
    linear-gradient(180deg, #fffdf8 0%, #f7efe3 100%);
  border: 1px solid rgba(15, 90, 64, 0.1);
  box-shadow: 0 18px 40px rgba(68, 46, 18, 0.07);
}

.matrix-page-result-card__topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
}

.matrix-page-result-card__meta {
  margin: 0;
  color: var(--green-deep);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.matrix-page-result-card__share {
  display: flex;
  align-items: center;
  gap: 10px;
}

.matrix-page-result-card__share .btn {
  min-height: 42px;
}

.matrix-page-result-card__title {
  margin: 14px 0 10px;
  color: #1d1c1a;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.94;
  font-weight: 600;
}

.matrix-page-result-card__summary {
  margin: 0;
  max-width: 58rem;
  color: #4d4840;
  font-size: 1.02rem;
  line-height: 1.72;
}

.matrix-page-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.matrix-page-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 90, 64, 0.12);
  box-shadow: 0 8px 18px rgba(68, 46, 18, 0.05);
}

.matrix-page-chip__label {
  color: rgba(77, 72, 64, 0.92);
  font-size: 0.84rem;
  font-weight: 700;
}

.matrix-page-chip__value {
  color: var(--green-deep);
  font-size: 1rem;
  font-weight: 800;
}

.matrix-page-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.matrix-page-summary-card,
.matrix-page-card {
  position: relative;
  overflow: hidden;
  padding: 20px 20px 18px;
  border-radius: 26px;
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid rgba(15, 90, 64, 0.1);
  box-shadow: 0 12px 28px rgba(68, 46, 18, 0.06);
}

.matrix-page-summary-card::after,
.matrix-page-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top right, rgba(203, 154, 54, 0.12), transparent 26%);
}

.matrix-page-summary-card__label,
.matrix-page-card__eyebrow {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(141, 48, 66, 0.88);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.matrix-page-summary-card__value {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-top: 12px;
  color: var(--green-deep);
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 2.1rem;
  line-height: 0.98;
  font-weight: 700;
}

.matrix-page-summary-card__text,
.matrix-page-card__text {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  color: #4d4840;
  line-height: 1.62;
}

.matrix-page-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.matrix-page-card-grid--wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.matrix-page-card__title {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  color: #1d1c1a;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1;
  font-weight: 600;
}

.matrix-page-card__energy {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 90, 64, 0.07);
  color: var(--green-deep);
  font-size: 0.95rem;
  font-weight: 800;
}

.matrix-page-card__note {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  color: rgba(77, 72, 64, 0.96);
  line-height: 1.6;
}

.matrix-page-card__list {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: #4d4840;
  line-height: 1.55;
}

.matrix-page-card__list strong {
  color: var(--green-deep);
}

.matrix-page-card__formula {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  color: rgba(141, 48, 66, 0.92);
  font-weight: 800;
  line-height: 1.52;
}

.matrix-page-section {
  display: grid;
  gap: 18px;
}

.matrix-page-section__heading,
.matrix-page-section__sub {
  margin-bottom: 0;
}

.matrix-page-chart-scope {
  display: block;
}

.matrix-page-empty {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.92);
  border: 1px dashed rgba(15, 90, 64, 0.16);
  color: #4d4840;
  line-height: 1.6;
}

.matrix-page-mini-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 1100px) {
  .matrix-page-nav {
    display: none;
  }

  .matrix-page-summary-grid,
  .matrix-page-card-grid,
  .matrix-page-card-grid--wide {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .matrix-page-panel,
  .matrix-page-result-card {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .matrix-page-hero__chips span,
  .matrix-page-chip {
    min-height: 40px;
  }
}

@media (max-width: 560px) {
  .matrix-page-highlight {
    padding: 20px 18px 24px;
    border-radius: 24px;
  }

  .matrix-page-highlight::after {
    right: 16px;
    bottom: 10px;
    font-size: 1.8rem;
  }

  .matrix-page-result-card__topline {
    align-items: flex-start;
  }
}
