/* Bố cục shell, header, hero và navigation của website public. */

body.public-home {
  padding-bottom: env(safe-area-inset-bottom);
  overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

body.public-home :where(button, a, input, textarea, select, summary) {
  touch-action: manipulation;
}

.site-header {
position: sticky;
  top: 0;
  z-index: 15;
  width: min(var(--public-shell-max-width), calc(100% - var(--public-shell-inline-inset)));
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px auto 0;
  padding: 14px var(--public-content-gutter);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(6, 14, 30, 0.7);
  box-shadow: 0 16px 36px rgba(3, 8, 21, 0.28);
  backdrop-filter: blur(16px);
  transition: border-radius 0.18s ease, border-top-color 0.18s ease;
}

.site-header.is-stuck {
border-top-color: transparent;
  border-radius: 0 0 22px 22px;
}

.site-brand {
display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  min-width: 0;
  color: #ffffff;
  text-decoration: none;
}

.site-brand-logo {
width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(3, 8, 21, 0.26);
}

.site-brand-copy {
display: grid;
  gap: 2px;
}

.site-brand-copy strong {
font-size: 18px;
  line-height: 1.1;
}

.site-brand-copy small {
color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.site-nav {
display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.site-nav a,
.hero-primary-link,
.hero-secondary-link,
.site-footer-links a {
text-decoration: none;
}

.site-nav a {
padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav-label-compact {
display: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.site-nav .site-nav-login {
padding-inline: 18px;
  border: 1px solid rgba(244, 211, 138, 0.5);
  color: var(--accent-strong);
  background: linear-gradient(135deg, #f4d38a, #f8edd0);
  box-shadow: 0 9px 22px rgba(212, 163, 63, 0.22);
  font-weight: 800;
}

.site-nav .site-nav-login:hover,
.site-nav .site-nav-login:focus-visible {
color: var(--accent-strong);
  background: linear-gradient(135deg, #f0c567, #f7e7bd);
}

@media (min-width: 641px) and (max-width: 1120px) {
  .site-header {
  grid-template-columns: minmax(210px, auto) minmax(0, 1fr);
      gap: clamp(10px, 1.5vw, 18px);
      padding-inline: clamp(14px, 2vw, 24px);
  }

  .site-brand {
  gap: 8px;
  }

  .site-brand-logo {
  width: 40px;
      height: 40px;
  }

  .site-brand-copy strong {
  font-size: 15px;
  }

  .site-brand-copy small {
  font-size: 10px;
      line-height: 1.4;
  }

  .site-nav {
  min-width: 0;
      width: auto;
      justify-content: flex-end;
      gap: 2px;
      padding-top: 0;
  }

  .site-nav a {
  padding-inline: clamp(5px, 1vw, 10px);
      font-size: clamp(11px, 1.3vw, 13px);
  }

  .site-nav .nav-label-full {
  display: none;
  }

  .site-nav .nav-label-compact {
  display: inline;
  }

  .site-nav .site-nav-login {
  padding-inline: clamp(10px, 1.3vw, 16px);
  }
}

@media (min-width: 641px) and (max-width: 700px) {
  .site-header {
  grid-template-columns: minmax(160px, auto) minmax(0, 1fr);
      gap: 8px;
      padding-inline: 14px;
  }

  .site-brand-logo {
  width: 38px;
      height: 38px;
  }

  .site-brand-copy strong {
  font-size: 14px;
  }

  .site-brand-copy small {
  display: none;
  }

  .site-nav a {
  padding-inline: 4px;
      font-size: 10px;
  }
}

.landing-shell,
.workspace-section,
.site-footer {
width: min(var(--public-shell-max-width), 100%);
  margin: 0 auto;
}

.landing-shell {
padding-top: var(--public-section-gap);
}

.hero-panel,
.content-section,
.workspace-section {
scroll-margin-top: 110px;
}

.hero-panel {
position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  gap: 28px;
  overflow: hidden;
  padding: var(--public-content-gutter);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 34px;
  background:
    radial-gradient(circle at top left, rgba(212, 163, 63, 0.22), transparent 28%),
    radial-gradient(circle at 80% 18%, rgba(112, 145, 255, 0.16), transparent 24%),
    linear-gradient(145deg, rgba(10, 18, 37, 0.96), rgba(8, 14, 28, 0.98));
  box-shadow: 0 30px 80px rgba(3, 8, 21, 0.34);
}

.hero-panel::after {
content: "";
  position: absolute;
  inset: auto -120px -120px auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 163, 63, 0.18), transparent 70%);
  pointer-events: none;
}

.hero-copy {
position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 20px;
}

.hero-kicker {
width: fit-content;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #f6d58e;
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-copy h1 {
max-width: 14ch;
  color: #ffffff;
  font-size: clamp(42px, 5vw, 62px);
  line-height: 1.24;
  text-wrap: balance;
}

.hero-description {
max-width: 640px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 17px;
  line-height: 1.65;
  text-wrap: pretty;
}

.hero-support {
display: contents;
}

.hero-actions {
display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-primary-link,
.hero-secondary-link {
display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
}

.hero-primary-link {
color: var(--accent-strong);
  background: linear-gradient(135deg, #f4d38a, #f8edd0);
  box-shadow: 0 14px 28px rgba(212, 163, 63, 0.26);
}

.hero-primary-link:hover {
color: var(--accent-strong);
  background: linear-gradient(135deg, #f0c567, #f7e7bd);
}

.hero-secondary-link {
color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
}

.hero-secondary-link:hover {
color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.hero-highlights {
display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-highlights li {
display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.76);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.5;
}

.hero-highlights li::before {
content: "\2713";
  flex: 0 0 auto;
  color: #f4cf7a;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 10px rgba(244, 207, 122, 0.24);
}

.hero-card {
position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  align-content: start;
  align-self: start;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 249, 255, 0.92));
  box-shadow: 0 24px 48px rgba(3, 8, 21, 0.18);
}

.hero-card-top {
display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(21, 33, 61, 0.08);
}

.hero-card-top > div {
min-width: 0;
}

.hero-card-logo {
width: 58px;
  height: 58px;
  flex: 0 0 auto;
  padding: 0;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(21, 33, 61, 0.12);
}

.hero-card-top h2 {
margin: 0;
  font-size: clamp(22px, 2.2vw, 25px);
  line-height: 1.24;
  text-wrap: balance;
}

.hero-lookup-form {
display: grid;
  gap: 15px;
}

.hero-lookup-form label {
display: grid;
  gap: 8px;
}

.hero-lookup-form label > span {
color: var(--accent-strong);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.hero-name-field input {
background: #ffffff;
  font-size: 17px;
  font-weight: 600;
}

.hero-birth-grid {
display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-birth-single {
display: none !important;
}

.hero-birth-grid label {
display: grid;
  gap: 8px;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 700;
}

.hero-birth-grid input {
text-align: center;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: #ffffff;
}

.hero-submit-button {
min-height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 16px 30px rgba(21, 33, 61, 0.18);
}

.hero-submit-button:hover {
background: linear-gradient(135deg, #283d81, #121e42);
}

.hero-note {
min-height: 0;
  padding: 14px 16px;
  border: 1px solid rgba(21, 33, 61, 0.08);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(244, 246, 252, 0.92), rgba(255, 249, 235, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.hero-note:empty {
  display: none;
}

.hero-note.error {
border-color: rgba(180, 35, 24, 0.18);
  background: linear-gradient(135deg, rgba(255, 246, 245, 0.96), rgba(255, 239, 236, 0.98));
}

.hero-preview-badge {
display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(21, 33, 61, 0.08);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(242, 245, 252, 0.92), rgba(255, 248, 232, 0.95));
}

.hero-preview-copy {
display: grid;
  gap: 6px;
  min-width: 0;
}

.hero-preview-label {
color: var(--accent-strong);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
  white-space: nowrap;
}

.hero-preview-caption {
margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  text-wrap: pretty;
}

.hero-preview-values {
position: relative;
  display: grid;
  gap: 24px;
  padding: 2px 0;
}

.hero-preview-values::before,
.hero-preview-values::after {
content: "\2726";
  position: absolute;
  top: 50%;
  z-index: 2;
  color: #d8a12b;
  text-shadow:
    0 0 8px rgba(244, 193, 76, 0.54),
    0 2px 8px rgba(151, 100, 4, 0.16);
  font-size: 17px;
  line-height: 1;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.hero-preview-values::before {
left: 25%;
}

.hero-preview-values::after {
left: 75%;
}

.hero-preview-row {
display: grid;
  grid-template-columns: minmax(62px, 72px) auto minmax(62px, 72px);
  gap: 12px;
  align-items: center;
}

.hero-preview-slot {
position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid rgba(21, 33, 61, 0.1);
  border-radius: 18px;
  color: rgba(21, 33, 61, 0.42);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  transform-origin: center;
  backface-visibility: hidden;
}

.hero-preview-slot.is-filled {
color: var(--accent-strong);
  border-color: rgba(212, 163, 63, 0.32);
  box-shadow:
    0 12px 24px rgba(21, 33, 61, 0.08),
    0 0 0 4px rgba(244, 211, 138, 0.12);
}

.hero-preview-slot.is-flipping {
animation: hero-energy-flip 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-preview-separator {
display: inline-grid;
  place-items: center;
  width: 24px;
  color: transparent;
  font-size: 0;
  font-weight: 800;
  line-height: 1;
}

.hero-preview-separator::before {
content: "\2726";
  color: #d8a12b;
  font-size: 17px;
  line-height: 1;
  text-shadow:
    0 0 8px rgba(244, 193, 76, 0.52),
    0 2px 8px rgba(151, 100, 4, 0.16);
}

.content-section {
margin-top: var(--public-section-gap);
  padding: 32px;
  border: 1px solid rgba(17, 30, 66, 0.07);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 48px rgba(21, 33, 61, 0.08);
}

.section-heading {
max-width: 720px;
  margin-bottom: 24px;
}

.numbers-section .section-heading {
max-width: 920px;
}

.section-heading h2 {
margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.24;
  text-wrap: balance;
}

.section-heading p:last-child {
color: var(--muted);
  line-height: 1.7;
  text-wrap: pretty;
}

.number-focus-banner {
display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(170px, 14vw, 210px);
  gap: 24px;
  align-items: center;
  margin-bottom: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(31, 49, 104, 0.08);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(212, 163, 63, 0.14), transparent 24%),
    linear-gradient(135deg, rgba(13, 24, 48, 0.98), rgba(19, 34, 71, 0.94));
  box-shadow: 0 18px 36px rgba(21, 33, 61, 0.12);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.number-focus-banner.is-visible {
opacity: 1;
  transform: translateY(0);
}

.number-focus-banner:focus-visible {
outline: 3px solid rgba(212, 163, 63, 0.72);
  outline-offset: 4px;
}

@media (hover: hover) {
  .number-focus-banner.is-visible:hover {
  background:
        radial-gradient(circle at top right, rgba(212, 163, 63, 0.14), transparent 24%),
        linear-gradient(135deg, rgba(13, 24, 48, 0.98), rgba(19, 34, 71, 0.94));
      transform: translateY(-2px);
      box-shadow: 0 22px 42px rgba(21, 33, 61, 0.18);
  }
}

.number-focus-copy {
display: grid;
  gap: 6px;
}

.number-focus-kicker {
color: #f6d58e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.number-focus-value {
color: #ffffff;
  font-size: 42px;
  line-height: 1;
}

.number-focus-text {
margin: 0;
  color: rgba(255, 255, 255, 0.76);
  max-width: 58ch;
  font-size: 16px;
  line-height: 1.65;
  white-space: pre-line;
}

.number-focus-visual {
width: 100%;
  aspect-ratio: 1 / 1;
  justify-self: end;
  overflow: hidden;
  border: 1px solid rgba(244, 211, 138, 0.34);
  border-radius: 20px;
  background: #0d1830;
  box-shadow:
    0 16px 32px rgba(5, 10, 24, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.number-focus-visual img {
display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.numbers-grid {
display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.number-card {
position: relative;
  display: grid;
  gap: 10px;
  min-height: 210px;
  padding: 22px;
  padding-right: 104px;
  border: 1px solid rgba(31, 49, 104, 0.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(212, 163, 63, 0.12), transparent 36%),
    linear-gradient(180deg, #ffffff, #f8faff);
  box-shadow: 0 16px 28px rgba(21, 33, 61, 0.06);
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.number-card-icon {
position: absolute;
  top: 22px;
  right: 22px;
  display: inline-grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(212, 163, 63, 0.22);
  border-radius: 20px;
  color: var(--gold);
  background:
    radial-gradient(circle at 30% 30%, rgba(244, 211, 138, 0.22), transparent 52%),
    rgba(21, 33, 61, 0.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 14px 24px rgba(21, 33, 61, 0.08);
  font-size: 25px;
  line-height: 1;
}

.number-card strong {
color: var(--accent-strong);
  font-size: 44px;
  line-height: 1;
}

.number-card.is-active {
border-color: rgba(212, 163, 63, 0.55);
  box-shadow:
    0 20px 38px rgba(21, 33, 61, 0.12),
    0 0 0 5px rgba(244, 211, 138, 0.18);
  cursor: pointer;
}

.number-card.is-active .number-card-icon {
border-color: rgba(212, 163, 63, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 16px 28px rgba(212, 163, 63, 0.18);
}

.number-card.is-active::after {
content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  box-shadow: inset 0 0 0 1px rgba(244, 211, 138, 0.46);
  pointer-events: none;
}

.number-card.is-bouncing {
animation: life-path-bounce 0.9s ease;
}

.number-card p {
margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.insight-section {
background:
    radial-gradient(circle at 10% 10%, rgba(212, 163, 63, 0.1), transparent 18%),
    linear-gradient(180deg, rgba(249, 250, 255, 0.96), rgba(255, 255, 255, 0.98));
}

.insight-layout {
display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
}

.insight-copy {
display: grid;
  gap: 16px;
  align-content: start;
}

.insight-copy-card {
padding: 22px;
  border: 1px solid rgba(31, 49, 104, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
}

.insight-copy-card h3 {
margin: 0 0 8px;
  font-size: 22px;
}

.insight-copy-card p,
.insight-item p,
.workspace-intro,
.site-footer-brand p {
margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.insight-accordion {
display: grid;
  gap: 12px;
}

.insight-item {
overflow: hidden;
  border: 1px solid rgba(31, 49, 104, 0.08);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(21, 33, 61, 0.04);
}

.insight-item summary {
display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  cursor: pointer;
  color: var(--accent-strong);
  font-size: 18px;
  font-weight: 800;
  list-style: none;
}

.insight-item summary:focus-visible {
outline: 3px solid rgba(70, 103, 202, 0.34);
  outline-offset: -3px;
}

.insight-title {
flex: 1 1 auto;
  min-width: 0;
  line-height: 1.32;
  text-wrap: balance;
}

.insight-toggle-icon {
display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  margin-left: auto;
  border: 1px solid rgba(31, 49, 104, 0.16);
  border-radius: 11px;
  color: var(--accent);
  background: rgba(31, 49, 104, 0.05);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.insight-toggle-icon::before {
content: "+";
}

.insight-item[open] .insight-toggle-icon::before {
content: "−";
}

.insight-item[open] .insight-toggle-icon {
color: #ffffff;
  background: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .insight-toggle-icon {
  transition: none;
  }
}

.insight-item summary::-webkit-details-marker {
display: none;
}

.insight-symbol {
flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(31, 49, 104, 0.1);
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), #314b97);
  box-shadow: 0 10px 20px rgba(21, 33, 61, 0.14);
  font-size: 18px;
  line-height: 1;
}

.insight-item p {
padding: 0 22px 20px;
}
