/* NumAstro - custom styles layered on top of Tailwind CDN */

:root {
  color-scheme: light dark;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --surface-muted: rgba(255, 252, 250, 0.78);
  --border: rgba(177, 160, 166, 0.24);
  --border-strong: rgba(138, 126, 132, 0.28);
  --ink-shadow: 0 1px 2px rgba(28, 20, 24, 0.05), 0 18px 48px -26px rgba(224, 52, 76, 0.34);
  --ink-shadow-lg: 0 24px 80px -42px rgba(224, 52, 76, 0.55);
  --focus-ring: 0 0 0 4px rgba(224, 52, 76, 0.16);
  --premium-color: #e0344c;
}

html {
  scroll-behavior: smooth;
  /* Keep anchor targets clear of the fixed nav bar that appears on scroll */
  scroll-padding-top: 64px;
}

body {
  min-height: 100vh;
  background: #fffcfa;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  isolation: isolate;
}

.dark body {
  background: #120d10;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(138, 126, 132, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(138, 126, 132, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 70%);
}

::selection {
  background: rgba(242, 160, 78, 0.32);
  color: inherit;
}

a,
button,
input,
select,
textarea {
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Prevent flash of unstyled content before Tailwind CDN loads */
[x-cloak] {
  display: none !important;
}

/* Reserve space for the JS-injected guest header to avoid layout shift.
   The placeholder div is replaced via outerHTML, so this only applies pre-mount. */
#guest-header {
  min-height: 81px;
}

@media (min-width: 640px) {
  #guest-header {
    min-height: 89px;
  }
}

@media (min-width: 1024px) {
  #guest-header {
    min-height: 134px;
  }
}

/* Subtle grid / glow background for hero areas */
.bg-grid {
  background-image:
    linear-gradient(to right, rgba(240, 230, 225, 0.15) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(240, 230, 225, 0.13) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 78%);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 78%);
}

.bg-cosmic {
  background: linear-gradient(135deg, #f2a04e -18%, #e0344c 48%, #a0193e 108%) !important;
}

/* Brighter plan card for Subscription — avoids the near-black cosmic end stop */
.bg-plan-hero {
  background: linear-gradient(125deg, #f6b35f 0%, #ee4d5f 48%, #d62b4f 100%) !important;
}

.bg-plan-hero .plan-stat {
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.plan-status {
  border: 1px solid transparent;
}

.plan-status--active {
  background: rgba(52, 211, 153, 0.55);
  color: #ffffff;
  border-color: rgba(167, 243, 208, 0.65);
}

.plan-status--cancelling {
  background: rgba(251, 191, 36, 0.35);
  color: #fffbeb;
  border-color: rgba(253, 230, 138, 0.45);
}

.plan-status--cancelled {
  background: rgba(255, 255, 255, 0.18);
  color: #ffe4e6;
  border-color: rgba(255, 255, 255, 0.28);
}

/* Thin gradient accent line (header top strip, footer divider) */
.gradient-line {
  background: linear-gradient(90deg, #f2a04e, #e0344c 45%, #be2450 75%, #7e1434);
}

/* Gradient underline for the active nav link */
.nav-underline {
  position: relative;
}

.nav-underline::after {
  content: "";
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: -1px;
  height: 2.5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f2a04e, #e0344c 60%, #be2450);
}

.glass {
  backdrop-filter: saturate(190%) blur(18px);
  -webkit-backdrop-filter: saturate(190%) blur(18px);
}

.shadow-soft {
  box-shadow: var(--ink-shadow) !important;
}

.shadow-glow {
  box-shadow: 0 0 0 1px rgba(224, 52, 76, 0.2), 0 28px 70px -28px rgba(224, 52, 76, 0.58) !important;
}

/* Gradient text helper */
.text-gradient {
  background: linear-gradient(90deg, #f2a04e, #e0344c, #be2450);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(90deg, #fff2cf, #f7d9b0, #f2a04e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(138, 126, 132, 0.34);
  border-radius: 9999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(138, 126, 132, 0.65);
  background-clip: padding-box;
}

/* Lo Shu grid cell hover */
.loshu-cell {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.loshu-cell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.22);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.loshu-cell:hover {
  transform: translateY(-3px) scale(1.03);
}

.loshu-cell:hover::after {
  opacity: 1;
}

/* Card hover lift */
.lift {
  transform: translateZ(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.lift:hover {
  transform: translateY(-5px);
  box-shadow: var(--ink-shadow-lg);
}

/* Animated gradient border for premium cards */
.ring-gradient {
  position: relative;
}

.ring-gradient::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--premium-color);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Shared premium surfaces */
.rounded-2xl.border,
.rounded-3xl.border {
  border-color: var(--border) !important;
  box-shadow: var(--ink-shadow);
}

.dark .rounded-2xl.border,
.dark .rounded-3xl.border {
  border-color: rgba(177, 160, 166, 0.16) !important;
}

.rounded-2xl.border:hover,
.rounded-3xl.border:hover {
  border-color: rgba(224, 52, 76, 0.34) !important;
}

header .rounded-2xl.border {
  box-shadow: 0 12px 40px -28px rgba(28, 20, 24, 0.5);
}

aside {
  background: rgba(255, 255, 255, 0.95) !important;
}

.dark aside {
  background: rgba(18, 13, 16, 0.98) !important;
}

main {
  position: relative;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  border-color: var(--border-strong) !important;
  background-color: rgba(255, 255, 255, 0.86) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.dark input:not([type="checkbox"]):not([type="radio"]),
.dark select,
.dark textarea {
  background-color: rgba(28, 20, 24, 0.78) !important;
  border-color: rgba(177, 160, 166, 0.22) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
  border-color: rgba(224, 52, 76, 0.72) !important;
  box-shadow: var(--focus-ring), inset 0 1px 0 rgba(255, 255, 255, 0.58) !important;
}

a[class*="bg-brand-600"],
button[class*="bg-brand-600"] {
  background: linear-gradient(120deg, #f2a04e -35%, #e0344c 45%, #a0193e 130%) !important;
  box-shadow: 0 14px 34px -20px rgba(224, 52, 76, 0.78);
}

a[class*="bg-brand-600"]:hover,
button[class*="bg-brand-600"]:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

/* Profile notification toggles — avoid global CTA button styles on small switches */
button.toggle-switch {
  box-shadow: none !important;
  transform: none !important;
  filter: none !important;
}

button.toggle-switch:hover,
button.toggle-switch:focus-visible {
  transform: none !important;
  filter: none !important;
}

button.toggle-switch-on {
  background: #e0344c !important;
}

button.toggle-switch-off {
  background: #e0d1ca !important;
}

.dark button.toggle-switch-off {
  background: #564b51 !important;
}

a[class*="bg-gold"],
button[class*="bg-gold"] {
  background: #f7d9b0 !important;
  box-shadow: 0 14px 34px -22px rgba(242, 160, 78, 0.52);
}

table {
  border-collapse: separate;
  border-spacing: 0;
}

thead {
  letter-spacing: 0.055em;
}

tbody tr {
  transition: background-color 0.18s ease;
}

footer {
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}

/* Artistic home page treatments */
.home-aurora {
  position: absolute;
  inset: -18% -10% auto;
  height: 42rem;
  background: rgba(242, 160, 78, 0.22);
  filter: blur(24px);
  opacity: 0.86;
  pointer-events: none;
}

.art-panel {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: var(--ink-shadow-lg);
}

.dark .art-panel {
  background: rgba(28, 20, 24, 0.86);
  border-color: rgba(177, 160, 166, 0.16);
}

.orbital {
  animation: orbital-spin 28s linear infinite;
  transform-origin: center;
}

.orbital-reverse {
  animation: orbital-spin 34s linear infinite reverse;
  transform-origin: center;
}

/* Hero 3D numerology scene */
.hero-visual {
  min-height: 30rem;
  padding-bottom: 2.5rem;
}

.hero-numerology-3d {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 28rem;
  margin: 0 auto;
  perspective: 1100px;
  perspective-origin: 50% 42%;
}

.hero-numerology-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}

.hero-numerology-glow {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 1;
  width: 14rem;
  height: 14rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(242, 160, 78, 0.35);
  filter: blur(18px);
  animation: hero-glow-pulse 5s ease-in-out infinite;
  pointer-events: none;
}

.hero-numerology-stage {
  --parallax-x: 0deg;
  --parallax-y: 0deg;
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateX(calc(10deg + var(--parallax-y))) rotateY(calc(-14deg + var(--parallax-x)));
  animation: hero-3d-breathe 18s ease-in-out infinite;
}

.hero-orbit-ring {
  position: absolute;
  left: 50%;
  top: 46%;
  border-radius: 50%;
  border: 1px solid rgba(224, 52, 76, 0.28);
  transform-style: preserve-3d;
  pointer-events: none;
}

.hero-orbit-ring--outer {
  width: 19rem;
  height: 19rem;
  margin: -9.5rem 0 0 -9.5rem;
  transform: rotateX(72deg);
  animation: hero-ring-spin 36s linear infinite;
  border-color: rgba(247, 217, 176, 0.22);
}

.hero-orbit-ring--mid {
  width: 15rem;
  height: 15rem;
  margin: -7.5rem 0 0 -7.5rem;
  transform: rotateX(58deg) rotateY(24deg);
  animation: hero-ring-spin 28s linear infinite reverse;
}

.hero-orbit-ring--inner {
  width: 11rem;
  height: 11rem;
  margin: -5.5rem 0 0 -5.5rem;
  transform: rotateX(48deg) rotateY(-18deg);
  animation: hero-ring-spin 22s linear infinite;
  border-style: dashed;
  opacity: 0.65;
}

.hero-loshu-cube {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 8.5rem;
  height: 8.5rem;
  margin: -4.25rem 0 0 -4.25rem;
  transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(8deg) translateZ(-2rem);
  animation: hero-loshu-float 12s ease-in-out infinite;
}

.hero-loshu-face {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  width: 100%;
  height: 100%;
  padding: 0.45rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 24px 50px -28px rgba(224, 52, 76, 0.55);
  backdrop-filter: blur(8px);
  transform-style: preserve-3d;
}

.dark .hero-loshu-face {
  background: rgba(28, 20, 24, 0.92);
  border-color: rgba(177, 160, 166, 0.2);
}

.hero-loshu-cell {
  display: grid;
  place-items: center;
  border-radius: 0.55rem;
  font-family: Sora, Inter, sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: #a0193e;
  background: rgba(253, 236, 236, 0.85);
  border: 1px solid rgba(224, 52, 76, 0.15);
  transform: translateZ(0.35rem);
}

.dark .hero-loshu-cell {
  color: #ef8290;
  background: rgba(58, 49, 54, 0.85);
}

.hero-loshu-cell--gold {
  color: #7c4a12;
  background: #f7d9b0;
  border-color: rgba(247, 217, 176, 0.55);
  transform: translateZ(0.85rem) scale(1.06);
  box-shadow: 0 8px 20px -10px rgba(242, 160, 78, 0.45);
}

.hero-loshu-cell--core {
  color: #fff;
  background: #e0344c;
  border-color: transparent;
  transform: translateZ(0.6rem);
}

.hero-loshu-cell--accent {
  color: #c21f47;
  background: rgba(242, 160, 78, 0.18);
  border-color: rgba(242, 160, 78, 0.35);
}

.hero-number-orbit {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  animation: hero-orbit-spin 26s linear infinite;
}

.hero-number-orbit--b {
  animation-name: hero-orbit-spin-tilted;
  animation-duration: 34s;
  animation-direction: reverse;
  transform: rotateX(68deg) rotateZ(12deg);
}

.hero-number-node {
  --angle: calc(var(--i) * 40deg);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.65rem;
  height: 2.65rem;
  margin: -1.325rem 0 0 -1.325rem;
  transform-style: preserve-3d;
  transform: rotateY(var(--angle)) translateZ(9.5rem);
}

.hero-number-orbit--b .hero-number-node {
  transform: rotateY(var(--angle)) translateZ(7rem);
}

.hero-number-face {
  width: 2.65rem;
  height: 2.65rem;
  transform-style: preserve-3d;
  transform: rotateY(calc(var(--angle) * -1));
  animation: hero-orbit-spin 26s linear infinite reverse;
}

.hero-number-orbit--b .hero-number-face {
  width: 2rem;
  height: 2rem;
  animation-duration: 34s;
  animation-direction: normal;
}

.hero-number-node span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  font-family: Sora, Inter, sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  color: #5c0f28;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(224, 52, 76, 0.28);
  box-shadow: 0 10px 28px -14px rgba(224, 52, 76, 0.65);
  backface-visibility: hidden;
}

.dark .hero-number-node span {
  color: #fbd9dc;
  background: rgba(58, 49, 54, 0.95);
}

.hero-number-node--sm span {
  width: 2rem;
  height: 2rem;
  font-size: 0.72rem;
  color: #f2a04e;
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(242, 160, 78, 0.28);
}

.hero-core {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 5;
  width: 6.5rem;
  height: 6.5rem;
  margin: -3.25rem 0 0 -3.25rem;
  transform-style: preserve-3d;
  transform: translateZ(3.5rem);
  animation: hero-core-pulse 6s ease-in-out infinite;
}

.hero-core-ring {
  position: absolute;
  inset: -0.55rem;
  border-radius: 50%;
  border: 2px solid rgba(247, 217, 176, 0.55);
  animation: hero-core-ring-spin 10s linear infinite;
}

.hero-core-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #e0344c;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35),
    0 28px 60px -24px rgba(224, 52, 76, 0.75);
}

.hero-core-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.hero-core-number {
  margin-top: 0.1rem;
  font-family: Sora, Inter, sans-serif;
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  text-shadow: 0 4px 18px rgba(28, 20, 24, 0.35);
}

.hero-float-tag {
  position: absolute;
  z-index: 6;
  padding: 0.45rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #564b51;
  box-shadow: 0 12px 30px -18px rgba(28, 20, 24, 0.35);
  backdrop-filter: blur(10px);
  white-space: nowrap;
}

.dark .hero-float-tag {
  border-color: rgba(177, 160, 166, 0.2);
  background: rgba(28, 20, 24, 0.88);
  color: #f0e6e1;
}

.hero-float-tag--destiny {
  left: 0;
  top: 1.5rem;
}

.hero-float-tag--expression {
  right: -0.25rem;
  top: 38%;
}

.hero-float-tag--soul {
  left: 12%;
  bottom: 3.5rem;
}

.hero-3d-status {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6e6168;
  box-shadow: 0 12px 30px -18px rgba(28, 20, 24, 0.35);
  backdrop-filter: blur(10px);
  transform: translateX(-50%);
}

.dark .hero-3d-status {
  border-color: rgba(177, 160, 166, 0.2);
  background: rgba(28, 20, 24, 0.9);
  color: #e0d1ca;
}

.hero-3d-status-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #0fba83;
  box-shadow: 0 0 0 4px rgba(15, 186, 131, 0.2);
  animation: hero-status-blink 2.4s ease-in-out infinite;
}

@keyframes hero-3d-breathe {

  0%,
  100% {
    transform: rotateX(calc(10deg + var(--parallax-y))) rotateY(calc(-14deg + var(--parallax-x))) translateY(0);
  }

  50% {
    transform: rotateX(calc(6deg + var(--parallax-y))) rotateY(calc(10deg + var(--parallax-x))) translateY(-8px);
  }
}

@keyframes hero-orbit-spin {
  to {
    transform: rotateY(360deg);
  }
}

@keyframes hero-orbit-spin-tilted {
  to {
    transform: rotateX(68deg) rotateZ(12deg) rotateY(360deg);
  }
}

@keyframes hero-ring-spin {
  to {
    transform: rotateX(72deg) rotateZ(360deg);
  }
}

.hero-orbit-ring--mid {
  animation-name: hero-ring-spin-mid;
}

@keyframes hero-ring-spin-mid {
  to {
    transform: rotateX(58deg) rotateY(24deg) rotateZ(360deg);
  }
}

.hero-orbit-ring--inner {
  animation-name: hero-ring-spin-inner;
}

@keyframes hero-ring-spin-inner {
  to {
    transform: rotateX(48deg) rotateY(-18deg) rotateZ(360deg);
  }
}

@keyframes hero-loshu-float {

  0%,
  100% {
    transform: rotateX(58deg) rotateZ(8deg) translateZ(-2rem) translateY(0);
  }

  50% {
    transform: rotateX(54deg) rotateZ(-4deg) translateZ(-1.2rem) translateY(-6px);
  }
}

@keyframes hero-core-pulse {

  0%,
  100% {
    transform: translateZ(3.5rem) scale(1);
  }

  50% {
    transform: translateZ(4rem) scale(1.04);
  }
}

@keyframes hero-core-ring-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes hero-glow-pulse {

  0%,
  100% {
    opacity: 0.75;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

@keyframes hero-status-blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.45;
  }
}

.hero-chip {
  animation: hero-chip-float 6s ease-in-out infinite;
}

.hero-chip-delay {
  animation-delay: 1.2s;
}

.hero-chip-center {
  animation: hero-chip-float-center 6s ease-in-out infinite;
  animation-delay: 2.1s;
}

@keyframes hero-chip-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@keyframes hero-chip-float-center {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {

  .hero-numerology-stage,
  .hero-number-orbit,
  .hero-orbit-ring,
  .hero-loshu-cube,
  .hero-core,
  .hero-core-ring,
  .hero-numerology-glow,
  .hero-chip,
  .hero-chip-center,
  .hero-3d-status-dot {
    animation: none !important;
  }
}

@media (max-width: 640px) {
  .hero-numerology-3d {
    height: 24rem;
    max-width: 100%;
  }

  .hero-orbit-ring--outer {
    width: 15rem;
    height: 15rem;
    margin: -7.5rem 0 0 -7.5rem;
  }

  .hero-number-node {
    transform: rotateY(var(--angle)) translateZ(7.5rem);
  }

  .hero-number-orbit--b .hero-number-node {
    transform: rotateY(var(--angle)) translateZ(5.5rem);
  }

  .hero-float-tag--expression {
    right: 0;
    top: 28%;
    font-size: 0.62rem;
  }

  .hero-float-tag--destiny,
  .hero-float-tag--soul {
    display: none;
  }
}

.marquee-track {
  animation: marquee-slide 28s linear infinite;
}

.bento-card {
  position: relative;
  overflow: hidden;
}

.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(242, 160, 78, 0.18);
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

@keyframes orbital-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes marquee-slide {
  to {
    transform: translateX(-50%);
  }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Dashboard stat cards */
.stat-card {
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
  box-shadow: 0 4px 18px -6px rgba(28, 20, 24, 0.12);
  border-color: rgba(224, 52, 76, 0.22);
}

.dark .stat-card:hover {
  box-shadow: 0 4px 18px -6px rgba(0, 0, 0, 0.35);
  border-color: rgba(224, 52, 76, 0.35);
}

/* Dashboard offer carousel */
.offer-carousel {
  touch-action: pan-y;
}

/* Dashboard compact stat strip */
.stat-compact {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.stat-compact:hover {
  border-color: rgba(224, 52, 76, 0.28);
  box-shadow: 0 2px 12px -4px rgba(224, 52, 76, 0.18);
}

.dark .stat-compact:hover {
  border-color: rgba(224, 52, 76, 0.38);
  box-shadow: 0 2px 12px -4px rgba(0, 0, 0, 0.35);
}

/* AI Chat */
.chat-messages {
  scroll-behavior: smooth;
}

.chat-dot {
  animation: chat-bounce 1.2s ease-in-out infinite;
}

@keyframes chat-bounce {

  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }

  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

/* Google Translate widget */
body {
  top: 0 !important;
  position: static !important;
}

/* Hide only the top banner/tooltip — NOT all .skiptranslate (breaks menu + translation) */
.goog-te-banner-frame,
#goog-gt-tt {
  display: none !important;
}

.numastro-translate-host {
  min-height: 2rem;
  display: block !important;
}

.numastro-translate-host .goog-te-gadget {
  display: block !important;
  font-family: Inter, system-ui, sans-serif !important;
}

.numastro-translate-host .goog-logo-link,
.numastro-translate-host .goog-te-gadget>span {
  display: none !important;
}

.numastro-translate-host .goog-te-gadget-simple {
  display: flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  width: 100% !important;
  background: transparent !important;
  border: 1px solid rgba(177, 160, 166, 0.35) !important;
  border-radius: 0.75rem !important;
  padding: 0.4rem 0.55rem !important;
  box-shadow: none !important;
  transform: none !important;
  filter: none !important;
}

.numastro-translate-host .goog-te-gadget-simple:hover {
  border-color: rgba(224, 52, 76, 0.45) !important;
  background: rgba(255, 252, 250, 0.8) !important;
}

.dark .numastro-translate-host .goog-te-gadget-simple {
  border-color: rgba(110, 97, 104, 0.9) !important;
  background: rgba(28, 20, 24, 0.35) !important;
}

.dark .numastro-translate-host .goog-te-gadget-simple:hover {
  border-color: rgba(224, 52, 76, 0.55) !important;
  background: rgba(58, 49, 54, 0.65) !important;
}

.numastro-translate-host .goog-te-gadget-simple span {
  display: inline !important;
  font-size: 0.75rem !important;
  color: #8a7e84 !important;
  vertical-align: middle !important;
}

.dark .numastro-translate-host .goog-te-gadget-simple span {
  color: #b3a5ab !important;
}

.numastro-translate-host .goog-te-gadget-simple span[style*="border-left"] {
  display: none !important;
}

.numastro-translate-host .goog-te-gadget-icon {
  display: none !important;
}

.numastro-translate-host .goog-te-menu-value span {
  color: #1c1418 !important;
  font-weight: 600 !important;
}

.dark .numastro-translate-host .goog-te-menu-value span {
  color: #f0e6e1 !important;
}

.numastro-translate-host .goog-te-menu-value {
  margin-right: 0 !important;
}

.numastro-translate-host select.goog-te-combo,
.numastro-translate-host .goog-te-combo {
  width: 100% !important;
  max-width: 100% !important;
  border-radius: 0.75rem !important;
  border: 1px solid rgba(177, 160, 166, 0.35) !important;
  background: #fff !important;
  padding: 0.45rem 0.6rem !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  color: #1c1418 !important;
  outline: none !important;
  box-shadow: none !important;
}

.dark .numastro-translate-host select.goog-te-combo,
.dark .numastro-translate-host .goog-te-combo {
  border-color: rgba(110, 97, 104, 0.9) !important;
  background: #1c1418 !important;
  color: #f0e6e1 !important;
}

.numastro-translate-host--topbar {
  min-width: 7.5rem;
  max-width: 9.5rem;
}

.numastro-translate-host--topbar .goog-te-gadget-simple {
  min-height: 2.25rem !important;
  padding: 0.35rem 0.5rem !important;
}

.numastro-translate-host--topbar .goog-te-menu-value {
  max-width: 5.5rem !important;
}

.numastro-translate-host--nav {
  min-width: 8.5rem;
  max-width: 10.5rem;
}

.numastro-translate-host--nav .goog-te-gadget-simple {
  width: 100% !important;
  min-height: 2.25rem !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}

.numastro-translate-host--nav .goog-te-menu-value {
  max-width: 6.5rem !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dashboard shell – collapsible sidebar (desktop icon rail) */
@media (min-width: 1024px) {
  #sidebar {
    transition:
      width 300ms ease,
      min-width 300ms ease,
      padding 300ms ease,
      border-color 300ms ease;
  }

  .shell-sidebar-collapsed #sidebar {
    width: 4.5rem !important;
    min-width: 4.5rem !important;
    max-width: 4.5rem !important;
    overflow: hidden;
  }

  .shell-sidebar-collapsed #sidebar .sidebar-brand {
    justify-content: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .shell-sidebar-collapsed #sidebar .sidebar-brand-text,
  .shell-sidebar-collapsed #sidebar .sidebar-nav-label,
  .shell-sidebar-collapsed #sidebar .sidebar-nav-group__chevron {
    display: none !important;
  }

  .shell-sidebar-collapsed #sidebar .sidebar-nav-group__summary {
    justify-content: center;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }

  .shell-sidebar-collapsed #sidebar .sidebar-nav-group__summary>span:first-child {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .shell-sidebar-collapsed #sidebar .sidebar-nav-group__summary::after {
    content: "";
    display: block;
    width: 1rem;
    height: 1px;
    background: rgba(177, 160, 166, 0.35);
    margin: 0.25rem auto;
  }

  .shell-sidebar-collapsed #sidebar .sidebar-nav {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .shell-sidebar-collapsed #sidebar .sidebar-nav-link {
    justify-content: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    gap: 0;
  }

  .shell-sidebar-collapsed #sidebar .sidebar-nav-group__links {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }
}

/* Topbar declutter on small screens */
@media (max-width: 639px) {

  .shell-topbar .numastro-translate-host--topbar,
  .shell-topbar .topbar-theme-btn {
    display: none !important;
  }
}

#sidebar-toggle .sidebar-toggle-icon {
  display: grid;
  place-items: center;
}

#sidebar-toggle .sidebar-toggle-icon--closed {
  display: none;
}

.shell-sidebar-collapsed:not(.shell-sidebar-mobile-open) #sidebar-toggle .sidebar-toggle-icon--open {
  display: none;
}

.shell-sidebar-collapsed:not(.shell-sidebar-mobile-open) #sidebar-toggle .sidebar-toggle-icon--closed {
  display: grid;
}

/* Dashboard sidebar – grouped navigation */
.sidebar-nav-group {
  border-radius: 1rem;
}

.sidebar-nav-group__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.875rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-500, #8a7e84);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar-nav-group__summary::-webkit-details-marker {
  display: none;
}

.sidebar-nav-group__summary:hover {
  background: rgba(255, 255, 255, 0.8);
  color: var(--brand-600, #c21f47);
}

.dark .sidebar-nav-group__summary:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.sidebar-nav-group__chevron {
  transition: transform 0.2s ease;
}

.sidebar-nav-group[open] .sidebar-nav-group__chevron {
  transform: rotate(180deg);
}

.sidebar-nav-group__links {
  margin-top: 0.25rem;
  padding-left: 0.5rem;
  border-left: 1px solid rgba(177, 160, 166, 0.25);
  margin-left: 0.75rem;
}

.dark .sidebar-nav-group__links {
  border-left-color: rgba(177, 160, 166, 0.15);
}

/* ---------- Professional report output ---------- */
.report-watermark-layer {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.report-watermark-layer span {
  white-space: nowrap;
  font-size: clamp(2rem, 8vw, 4.5rem);
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.06;
  transform: rotate(-28deg);
  user-select: none;
}

.report-section,
.mobile-report-section {
  break-inside: avoid;
  scroll-margin-top: 6rem;
}

/* Stack Positive / Negative interpretation cards top-to-bottom on all reports.
   Exclude TOC shells (lg:grid-cols-4 / data-report-toc) so the nav stays on the left. */
.grid:not([data-report-toc]):not(.lg\:grid-cols-4):has(> * .uppercase.text-emerald-700):has(> * .uppercase.text-red-700),
.grid:not([data-report-toc]):not(.lg\:grid-cols-4):has(> * .uppercase.text-emerald-700):has(> * .uppercase.text-rose-700) {
  grid-template-columns: minmax(0, 1fr) !important;
}

/* Report body + TOC: full width within the app shell (match Lo Shu) */
main.relative {
  min-width: 0;
  max-width: 100%;
}

[data-report-toc="auto"],
[data-report-toc="manual"].grid,
.mt-8.grid.lg\:grid-cols-4 {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 1024px) {

  [data-report-toc="auto"],
  [data-report-toc="manual"].grid,
  main .grid.lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.report-toc-aside,
.report-toc-nav,
[data-report-toc="ready"],
.lg\:col-span-3[data-report-toc] {
  min-width: 0;
  max-width: 100%;
}

.report-toc-nav a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Grid children must be allowed to shrink to avoid body-level horizontal scroll */
main .grid.lg\:grid-cols-4>* {
  min-width: 0;
}

.report-status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.2rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.report-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.report-data-table th,
.report-data-table td {
  border: 1px solid rgba(177, 160, 166, 0.35);
  padding: 0.65rem 0.85rem;
  text-align: left;
  vertical-align: top;
}

.report-data-table th {
  font-weight: 700;
  background: rgba(255, 252, 250, 0.9);
}

.dark .report-data-table th {
  background: rgba(58, 49, 54, 0.6);
}

.print-only {
  display: none !important;
}

@media print {
  .print-only {
    display: block !important;
  }

  #sidebar,
  header.app-topbar,
  header,
  #guest-header,
  #guest-footer,
  .no-print,
  #numastro-toasts,
  #numastro-cmdk,
  #numastro-paywall,
  #numastro-generating,
  #numastro-low-credits,
  #numastro-session-banner,
  #google_translate_element,
  .numastro-translate-host {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #1c1418 !important;
  }

  main {
    padding: 0 !important;
    max-width: none !important;
  }

  a[href]::after {
    content: none !important;
  }

  .report-watermark-layer span {
    opacity: 0.06 !important;
  }

  .report-brand-footer,
  .report-section,
  .mobile-report-section,
  .print-keep {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .print-break-before {
    break-before: page;
    page-break-before: always;
  }

  .shadow-soft,
  .shadow-xl,
  .shadow-glow {
    box-shadow: none !important;
  }
}

/* Global toasts */
.numastro-toasts {
  position: fixed;
  z-index: 80;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: min(22rem, calc(100vw - 2rem));
  pointer-events: none;
}

.numastro-toast {
  pointer-events: auto;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: 0 12px 40px -18px rgba(28, 20, 24, 0.45);
  border: 1px solid rgba(240, 230, 225, 0.9);
  background: #fff;
  color: #1c1418;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.numastro-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.numastro-toast--success {
  border-color: rgba(15, 186, 131, 0.35);
  background: #ecfdf5;
  color: #065f46;
}

.numastro-toast--error {
  border-color: rgba(224, 52, 76, 0.35);
  background: #fef2f2;
  color: #9f1239;
}

.numastro-toast--info {
  border-color: rgba(224, 52, 76, 0.2);
  background: #fff;
  color: #1c1418;
}

.dark .numastro-toast--info {
  background: #1c1418;
  color: #f8f1ed;
  border-color: #3a3136;
}

.dark .numastro-toast--success {
  background: rgba(6, 78, 59, 0.45);
  color: #a7f3d0;
  border-color: rgba(52, 211, 153, 0.35);
}

.dark .numastro-toast--error {
  background: rgba(136, 19, 55, 0.4);
  color: #fecdd3;
  border-color: rgba(251, 113, 133, 0.35);
}

/* ---------- Mobile responsiveness (site-wide) ---------- */
html {
  overflow-x: clip;
}

img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

/* Report TOC — mobile jump menu (injected by report-toc.js) */
.report-toc-mobile__details {
  border-radius: 1rem;
  border: 1px solid rgba(177, 160, 166, 0.35);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--ink-shadow);
}

.dark .report-toc-mobile__details {
  background: rgba(28, 20, 24, 0.92);
  border-color: rgba(110, 97, 104, 0.55);
}

.report-toc-mobile__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #564b51;
  cursor: pointer;
  list-style: none;
}

.report-toc-mobile__summary::-webkit-details-marker {
  display: none;
}

.dark .report-toc-mobile__summary {
  color: #f0e6e1;
}

.report-toc-mobile__details[open] .report-toc-mobile__chevron {
  transform: rotate(180deg);
}

.report-toc-mobile__chevron {
  transition: transform 0.2s ease;
}

.report-toc-mobile-nav {
  max-height: 15rem;
  overflow-y: auto;
  border-top: 1px solid rgba(177, 160, 166, 0.25);
  padding: 0.35rem 0.5rem 0.5rem;
}

.dark .report-toc-mobile-nav {
  border-top-color: rgba(110, 97, 104, 0.45);
}

.report-toc-mobile-nav a {
  display: block;
  border-radius: 0.65rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #8a7e84;
  overflow-wrap: anywhere;
}

.report-toc-mobile-nav a:hover {
  background: rgba(255, 252, 250, 0.9);
  color: #e0344c;
}

.dark .report-toc-mobile-nav a:hover {
  background: rgba(58, 49, 54, 0.65);
  color: #ef8290;
}

@media (max-width: 639px) {
  .min-h-screen.lg\:flex > .flex-1 {
    min-width: 0;
    max-width: 100%;
  }

  header.app-topbar .flex.items-center.gap-3 > a.inline-flex {
    min-width: 0;
    max-width: calc(100vw - 7.5rem);
    font-size: 0.8125rem;
  }

  header.app-topbar .flex.items-center.gap-3 > a.inline-flex svg {
    flex-shrink: 0;
  }

  .report-action-bar {
    justify-content: stretch;
    gap: 0.5rem;
    padding: 0.75rem;
  }

  .report-action-bar > * {
    flex: 1 1 calc(50% - 0.25rem);
    justify-content: center;
    min-width: 0;
    text-align: center;
  }

  main .overflow-x-auto {
    -webkit-overflow-scrolling: touch;
  }

  main section.overflow-hidden > table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .report-data-table {
    font-size: 0.8125rem;
  }

  .report-data-table th,
  .report-data-table td {
    padding: 0.5rem 0.65rem;
  }

  .page-toolbar-actions {
    flex-wrap: wrap;
  }

  .cookie-banner {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .numastro-toasts {
    left: 1rem;
    right: 1rem;
    bottom: 0.75rem;
    max-width: none;
  }
}