:root {
  color-scheme: dark;
  --bg: #050713;
  --panel: rgba(8, 10, 24, 0.76);
  --panel-strong: rgba(10, 13, 30, 0.92);
  --ink: #fff4df;
  --muted: #c7b89d;
  --soft: rgba(255, 244, 223, 0.76);
  --gold: #dfb66b;
  --gold-2: #f5d99a;
  --line: rgba(223, 182, 107, 0.24);
  --line-strong: rgba(245, 217, 154, 0.5);
  --teal: #6bb8b0;
  --rose: #bd7e74;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  cursor: none;
  position: relative;
  background: #050713;
  color: var(--ink);
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: -2;
  height: clamp(3000px, 220vw, 4300px);
  background-image: url("/assets/full-page-mystic-bg-regenerated-clean-4k-q98.webp");
  background-position: center top;
  background-size: 100% auto;
  background-repeat: no-repeat;
  mask-image: linear-gradient(180deg, #000 0%, #000 68%, rgba(0, 0, 0, 0.58) 84%, transparent 100%);
  pointer-events: none;
}

body::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(5, 7, 19, 0) 0%, rgba(5, 7, 19, 0.12) 34%, rgba(5, 7, 19, 0.56) 58%, rgba(5, 7, 19, 0.2) 100%),
    url("/assets/site-bg-continuation-balanced-v1.webp") center top / 100% auto repeat-y,
    radial-gradient(ellipse at 18% 42%, rgba(41, 77, 111, 0.34), transparent 42%),
    radial-gradient(ellipse at 86% 18%, rgba(128, 80, 34, 0.22), transparent 38%),
    radial-gradient(ellipse at 72% 78%, rgba(223, 182, 107, 0.1), transparent 36%),
    linear-gradient(180deg, #050713 0%, #071324 42%, #050713 100%);
  pointer-events: none;
}

body.nav-open,
body.modal-open {
  overflow: hidden;
}

button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
button, a, input, select { cursor: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.cursor-orb {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  width: 22px;
  height: 22px;
  pointer-events: none;
  border: 1px solid rgba(245, 217, 154, 0.78);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(245, 217, 154, 0.76) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(105, 184, 176, 0.24), transparent 60%);
  box-shadow: 0 0 18px rgba(245, 217, 154, 0.45), 0 0 38px rgba(105, 184, 176, 0.22);
  translate: -50% -50%;
  opacity: 0;
  transition: opacity 180ms ease, width 180ms ease, height 180ms ease, border-color 180ms ease;
}

.cursor-orb.is-active {
  width: 42px;
  height: 42px;
  border-color: rgba(245, 217, 154, 0.34);
}

.particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 16;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.9;
}

.cosmic-scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.cosmic-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(41, 77, 111, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(128, 80, 34, 0.2) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 80%, rgba(105, 184, 176, 0.1) 0%, transparent 35%);
  opacity: 0.8;
  filter: blur(12px);
  transform: scale(1.03);
  animation: auroraFloat 18s ease-in-out infinite alternate;
  pointer-events: none;
}

.cosmic-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 60%, rgba(223, 182, 107, 0.12) 0%, transparent 45%),
    radial-gradient(ellipse at 30% 30%, rgba(189, 126, 116, 0.1) 0%, transparent 40%);
  opacity: 0.6;
  filter: blur(20px);
  animation: cloudDrift 22s ease-in-out infinite alternate;
  pointer-events: none;
}

.starfield {
  position: absolute;
  inset: -12%;
  background-image:
    radial-gradient(circle at 8% 18%, rgba(255, 244, 223, 0.75) 0 1px, transparent 1.8px),
    radial-gradient(circle at 18% 72%, rgba(223, 182, 107, 0.78) 0 1px, transparent 1.8px),
    radial-gradient(circle at 42% 24%, rgba(255, 244, 223, 0.58) 0 1px, transparent 1.8px),
    radial-gradient(circle at 58% 76%, rgba(105, 184, 176, 0.64) 0 1px, transparent 1.8px),
    radial-gradient(circle at 78% 20%, rgba(223, 182, 107, 0.7) 0 1px, transparent 1.8px),
    radial-gradient(circle at 92% 62%, rgba(255, 244, 223, 0.54) 0 1px, transparent 1.8px);
  opacity: 0.8;
  animation: starDrift 16s ease-in-out infinite alternate;
}

.aurora {
  position: absolute;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  filter: blur(58px);
  opacity: 0.24;
  animation: auroraFloat 11s ease-in-out infinite alternate;
}
.aurora-one { left: -14vw; top: 16vh; background: #294d6f; }
.aurora-two { right: -12vw; top: 18vh; background: #805022; animation-delay: -4s; }
.orbit-ring {
  position: absolute;
  border: 1px solid rgba(223, 182, 107, 0.12);
  border-radius: 50%;
  transform: rotate(-16deg);
}
.ring-one { right: -8vw; top: 16vh; width: 46vw; height: 46vw; }
.ring-two { left: 8vw; bottom: -15vw; width: 36vw; height: 36vw; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px clamp(20px, 4vw, 56px);
  background: linear-gradient(180deg, rgba(4, 5, 15, 0.92), rgba(4, 5, 15, 0.68));
  border-bottom: 0;
  backdrop-filter: blur(18px);
}

.brand-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 184px;
}

.brand-link strong,
.footer-brand strong {
  display: block;
  color: var(--gold-2);
  font-size: 22px;
  letter-spacing: 0.08em;
}

.brand-link small,
.footer-brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245, 217, 154, 0.55);
  border-radius: 999px;
  color: var(--gold-2);
  background: rgba(5, 7, 19, 0.76);
  box-shadow: 0 0 24px rgba(223, 182, 107, 0.22);
  font-weight: 900;
}

nav {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 12px;
}

nav a,
.ghost-button,
.header-cta {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--soft);
  font-size: 14px;
  background: transparent;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

nav a:hover,
.ghost-button:hover {
  color: var(--gold-2);
  border-color: var(--line);
  background: rgba(255, 244, 223, 0.06);
  transform: translateY(-1px);
}

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

.language-select {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 5px 10px 5px 12px;
  border: 1px solid rgba(245, 217, 154, 0.24);
  border-radius: 999px;
  background: rgba(7, 9, 22, 0.48);
  color: var(--soft);
  box-shadow: inset 0 0 18px rgba(255, 244, 223, 0.03);
}

.language-select span {
  color: rgba(255, 244, 223, 0.66);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.language-select select {
  width: 92px;
  border: 0;
  outline: 0;
  padding: 2px 2px;
  background: transparent;
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 900;
}

.language-select select option {
  color: #11111a;
  background: #fff4df;
}

.header-cta {
  color: #11111a;
  background: linear-gradient(135deg, #f5d99a, #b9803b);
  font-weight: 900;
}

main {
  width: min(1440px, calc(100% - 56px));
  margin: 0 auto;
}

.portal-hero {
  position: relative;
  min-height: 590px;
  display: grid;
  place-items: center;
  margin: 0 calc(50% - 50vw);
  padding: 72px max(24px, calc((100vw - 1440px) / 2 + 24px)) 96px;
  overflow: hidden;
  border-bottom: 0;
}

.portal-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  filter: saturate(1.08) contrast(1.08) brightness(0.88);
  transform: scale(1.03);
  animation: none;
  pointer-events: none;
}

.portal-hero::before {
  content: none;
  position: absolute;
  inset: 0 0 -180px;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 36%, rgba(4, 5, 15, 0.1), rgba(4, 5, 15, 0.38) 42%, rgba(4, 5, 15, 0.62) 76%, transparent 100%),
    linear-gradient(180deg, rgba(4, 5, 15, 0.08), rgba(4, 5, 15, 0.18) 46%, rgba(4, 5, 15, 0.5) 72%, transparent 100%);
  pointer-events: none;
}

.portal-hero::after {
  content: none;
  position: absolute;
  inset: 0 0 -160px;
  z-index: 2;
  background-image:
    radial-gradient(circle at 28% 20%, rgba(245, 217, 154, 0.9) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 30%, rgba(245, 217, 154, 0.76) 0 1px, transparent 2px),
    radial-gradient(circle at 58% 72%, rgba(255, 244, 223, 0.58) 0 1px, transparent 2px);
  opacity: 0.45;
  animation: starDrift 13s ease-in-out infinite alternate;
  mask-image: linear-gradient(180deg, #000 0%, #000 68%, transparent 100%);
  pointer-events: none;
}

.hero-clouds {
  position: absolute;
  inset: auto -8% -8% -8%;
  z-index: 3;
  height: 46%;
  background:
    radial-gradient(ellipse at 18% 70%, rgba(121, 90, 150, 0.2), transparent 45%),
    radial-gradient(ellipse at 70% 56%, rgba(245, 217, 154, 0.13), transparent 44%),
    linear-gradient(90deg, transparent, rgba(255, 244, 223, 0.07), transparent);
  filter: blur(18px);
  opacity: 0.9;
  animation: cloudDrift 14s ease-in-out infinite alternate;
  display: none;
}

.hero-robe-wind {
  position: absolute;
  right: clamp(56px, 10vw, 180px);
  bottom: 150px;
  z-index: 3;
  width: min(360px, 32vw);
  height: 130px;
  background:
    linear-gradient(100deg, transparent 0 10%, rgba(245, 217, 154, 0.12) 38%, transparent 72%),
    radial-gradient(ellipse at 25% 50%, rgba(22, 25, 48, 0.38), transparent 68%);
  filter: blur(10px);
  opacity: 0.7;
  transform-origin: left center;
  animation: clothHighlightWind 4.6s ease-in-out infinite alternate;
  display: none;
}

.hero-center {
  position: relative;
  z-index: 5;
  width: min(980px, 100%);
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 14px;
  color: var(--gold-2);
  font-size: clamp(54px, 7vw, 96px);
  line-height: 1.02;
  letter-spacing: 0.04em;
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.35), 0 0 32px rgba(223, 182, 107, 0.22);
}

h2 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: clamp(28px, 3.7vw, 46px);
  line-height: 1.14;
  letter-spacing: 0;
}

h3 { margin-bottom: 10px; color: var(--ink); font-size: 20px; }

.hero-subtitle {
  margin: 0 auto 26px;
  max-width: 720px;
  color: var(--soft);
  font-size: 19px;
  line-height: 1.85;
}

.hero-search {
  display: grid;
  grid-template-columns: 150px minmax(92px, 0.9fr) 162px 132px minmax(112px, 1fr) 132px;
  width: min(100%, 980px);
  min-height: 70px;
  margin: 0 auto;
  border: 1px solid rgba(245, 217, 154, 0.48);
  border-radius: 8px;
  background: rgba(4, 5, 15, 0.72);
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.36);
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.hero-field {
  position: relative;
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 9px 14px 8px;
  border-right: 1px solid var(--line);
  background: rgba(5, 7, 19, 0.52);
}

.hero-field span {
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

.hero-search select,
.hero-search input,
.hero-search button {
  min-width: 0;
  border: 0;
  color: var(--ink);
}

.hero-search select,
.hero-search input {
  width: 100%;
  height: 26px;
  padding: 0;
  background: transparent;
  outline: 0;
  font-size: 15px;
}

.hero-search select { appearance: auto; }

.hero-search input::placeholder { color: rgba(255, 244, 223, 0.48); }

.hero-search button {
  background: linear-gradient(135deg, #f5d99a, #ba813d);
  color: #12121a;
  font-weight: 900;
  min-height: 70px;
}

.hero-count {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.daily-return-strip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  margin: 14px auto 0;
  padding: 9px 12px;
  border: 1px solid rgba(245, 217, 154, 0.24);
  border-radius: 999px;
  background: rgba(5, 7, 19, 0.48);
  color: var(--soft);
  font-size: 13px;
  line-height: 1.3;
  box-shadow: inset 0 1px 0 rgba(255, 244, 223, 0.06), 0 12px 28px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

.daily-return-strip span {
  color: var(--gold-2);
  font-weight: 900;
}

.daily-return-strip strong {
  color: var(--ink);
  font-size: 13px;
}

.daily-return-strip a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(245, 217, 154, 0.3);
  border-radius: 999px;
  color: var(--gold);
  font-weight: 900;
  white-space: nowrap;
}

.live-count-number {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 0 3px;
  vertical-align: -0.12em;
  perspective: 360px;
}

.live-count-digit,
.live-count-separator {
  display: inline-grid;
  place-items: center;
  min-width: 1ch;
  height: 22px;
  color: var(--gold-2);
  font-weight: 900;
  line-height: 1;
}

.live-count-digit {
  min-width: 17px;
  border: 1px solid rgba(245, 217, 154, 0.22);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 244, 223, 0.1), rgba(255, 244, 223, 0.02) 48%, rgba(0, 0, 0, 0.16) 49%, rgba(0, 0, 0, 0.12)),
    rgba(7, 9, 22, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 244, 223, 0.12), 0 6px 14px rgba(0, 0, 0, 0.18);
  transform-origin: center top;
}

.live-count-separator {
  min-width: 5px;
  color: rgba(245, 217, 154, 0.68);
}

.live-count-digit.is-flipping {
  animation: calendarFlip 560ms cubic-bezier(0.18, 0.72, 0.22, 1);
}

@keyframes calendarFlip {
  0% {
    transform: rotateX(0deg);
    filter: brightness(1);
  }
  42% {
    transform: rotateX(-78deg);
    filter: brightness(0.72);
  }
  72% {
    transform: rotateX(18deg);
    filter: brightness(1.18);
  }
  100% {
    transform: rotateX(0deg);
    filter: brightness(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-count-digit.is-flipping {
    animation: none;
  }
}

.mobile-focus-actions {
  display: none;
}

.mobile-sticky-cta {
  display: none;
}

.hero-astrolabe {
  position: absolute;
  left: clamp(16px, 4vw, 84px);
  top: 34px;
  width: min(380px, 31vw);
  aspect-ratio: 1;
  opacity: 0.9;
  z-index: 4;
  filter: drop-shadow(0 0 22px rgba(223, 182, 107, 0.18));
  overflow: visible;
  animation: slowSpin 34s linear infinite;
  transform-origin: 50% 50%;
  display: none;
}

.astrolabe-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(245, 217, 154, 0.42);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(245, 217, 154, 0.85) 0 4px, transparent 5px),
    repeating-radial-gradient(circle, transparent 0 26px, rgba(245, 217, 154, 0.14) 27px 28px),
    repeating-conic-gradient(from 0deg, rgba(245, 217, 154, 0.18) 0 1deg, transparent 1.5deg 14deg);
  animation: none;
}

.astrolabe-ring::before,
.astrolabe-ring::after {
  content: "";
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(245, 217, 154, 0.24);
  border-radius: 50%;
  background: repeating-conic-gradient(from 16deg, transparent 0 29deg, rgba(245, 217, 154, 0.18) 30deg 31deg);
}

.astrolabe-ring::after {
  inset: 25%;
  animation: slowSpinReverse 26s linear infinite;
}

.gua {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(245, 217, 154, 0.36);
  border-radius: 50%;
  color: rgba(245, 217, 154, 0.96);
  background: rgba(5, 7, 19, 0.58);
  box-shadow: 0 0 20px rgba(245, 217, 154, 0.2), inset 0 0 12px rgba(245, 217, 154, 0.06);
  font-size: 18px;
  font-weight: 900;
  opacity: 0;
  animation: guaCounterSpin 34s linear infinite;
  transform-origin: 50% 50%;
  transition: opacity 520ms ease;
}

.gua.is-lit {
  opacity: 1;
}

.gua span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  transform: scale(0.28);
  opacity: 0;
}

.gua.is-lit span {
  animation: guaBloom 2600ms cubic-bezier(0.16, 0.9, 0.22, 1) both;
}

.gua-qian { --x: 50%; --y: 14%; }
.gua-dui { --x: 75%; --y: 25%; }
.gua-li { --x: 86%; --y: 50%; }
.gua-zhen { --x: 75%; --y: 75%; }
.gua-kun { --x: 50%; --y: 86%; }
.gua-gen { --x: 25%; --y: 75%; }
.gua-kan { --x: 14%; --y: 50%; }
.gua-xun { --x: 25%; --y: 25%; }

.service-strip,
.dashboard-row,
.studio-section,
.tool-lab,
.tarot-grid,
.guide-grid {
  display: grid;
  gap: 16px;
}

.service-strip {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-top: -8px;
  width: 100%;
}

@media (min-width: 1181px) {
  .service-strip {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

.service-card,
.advantage-panel,
.course-panel,
.case-panel,
.input-panel,
.report-card,
.empty-state,
.tool-card,
.tool-preview,
.reading-card,
.tarot-result,
.guide-grid article,
.bottom-cta {
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(245, 217, 154, 0.06), transparent 36%),
    var(--panel);
  box-shadow: inset 0 0 0 1px rgba(255, 244, 223, 0.02), 0 24px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.service-card {
  position: relative;
  min-height: 148px;
  padding: 18px 18px 16px;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.service-card::before {
  content: "";
  position: absolute;
  right: -36px;
  top: -36px;
  width: 108px;
  aspect-ratio: 1;
  border: 1px solid rgba(245, 217, 154, 0.18);
  border-radius: 50%;
  background: repeating-conic-gradient(transparent 0 28deg, rgba(245, 217, 154, 0.12) 29deg 30deg);
}

.service-card::after,
.tool-card::after,
.reading-card::after,
.guide-grid article::after,
.input-panel::after,
.tool-preview::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background-image:
    radial-gradient(circle at 18% 24%, rgba(245, 217, 154, 0.42) 0 1px, transparent 2px),
    radial-gradient(circle at 74% 18%, rgba(105, 184, 176, 0.34) 0 1px, transparent 2px),
    radial-gradient(circle at 62% 82%, rgba(245, 217, 154, 0.32) 0 1px, transparent 2px);
  opacity: 0.32;
  transform: translateY(0);
  animation: cardStardust 6s ease-in-out infinite alternate;
}

.service-card > *,
.tool-card > *,
.reading-card > *,
.guide-grid article > *,
.input-panel > *,
.tool-preview > * {
  position: relative;
  z-index: 1;
}

.service-card:hover,
.service-card.active {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: linear-gradient(145deg, rgba(245, 217, 154, 0.1), rgba(7, 9, 23, 0.9));
}

.service-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border: 1px solid rgba(245, 217, 154, 0.42);
  border-radius: 50%;
  color: var(--gold-2);
  font-size: 22px;
  font-weight: 900;
}

.service-card strong,
.service-card small,
.service-card em {
  position: relative;
  z-index: 1;
  display: block;
}

.service-card strong { margin-bottom: 8px; color: var(--ink); font-size: 20px; }
.service-card small { color: var(--muted); line-height: 1.6; }
.service-card em { margin-top: 12px; color: var(--gold); font-style: normal; font-size: 13px; }

.dashboard-row {
  grid-template-columns: 1.35fr 0.9fr 1.1fr;
  margin-top: 16px;
}

.advantage-panel,
.course-panel,
.case-panel {
  padding: 22px 24px;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.panel-title span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.panel-title h2 {
  margin: 0;
  color: var(--gold-2);
  font-size: 24px;
  white-space: nowrap;
}
.panel-title.small { justify-content: space-between; }
.panel-title.small h2 { font-size: 22px; }
.panel-title.small a,
.panel-title.small button {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}
.panel-title.small button {
  padding: 0;
  border: 0;
  background: transparent;
}
.panel-title.small button:hover {
  color: var(--gold-2);
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.advantage-grid div {
  min-height: 116px;
  display: grid;
  align-content: center;
  gap: 8px;
  text-align: center;
}
.advantage-grid strong { color: var(--gold-2); font-size: 18px; }
.advantage-grid small,
.course-panel small,
.case-panel p,
.section-heading p,
.reading-card p,
.guide-grid p,
.fine-print,
.empty-state p,
.field-help {
  color: var(--muted);
  line-height: 1.75;
}

.course-panel a {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 62px;
  border-top: 1px solid rgba(223, 182, 107, 0.12);
  color: var(--soft);
}
.course-panel a span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--gold-2);
  background: rgba(245, 217, 154, 0.1);
}
.course-panel small {
  grid-column: 2;
  margin-top: -14px;
  font-size: 12px;
}

.case-card {
  border: 1px solid rgba(223, 182, 107, 0.18);
  border-radius: 8px;
  padding: 18px;
  background: rgba(5, 7, 19, 0.38);
}
.case-card span {
  float: right;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--gold);
  font-size: 12px;
}
.stars { color: var(--gold-2); letter-spacing: 0.14em; }
.case-entry-status {
  display: inline-flex;
  margin-top: 8px;
  color: var(--gold);
  font-size: 12px;
}

.module-section {
  position: relative;
  padding: 82px 0;
  scroll-margin-top: 86px;
  border-top: 1px solid rgba(223, 182, 107, 0.1);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 28px;
}
.studio-section {
  grid-template-columns: 400px minmax(0, 1fr);
  align-items: start;
}
.input-panel,
.report-card,
.empty-state,
.tool-preview,
.tarot-result { padding: 24px; }
.input-panel {
  position: sticky;
  top: 92px;
  overflow: hidden;
}
.tool-preview {
  position: relative;
  overflow: hidden;
}
.brand-row {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
}
.brand-row h2 { margin-bottom: 4px; font-size: 27px; }
.brand-row p { margin-bottom: 0; color: var(--muted); }
.report-form { display: grid; gap: 16px; }
label, fieldset { display: grid; gap: 8px; margin: 0; border: 0; padding: 0; }
label span, legend { color: var(--muted); font-size: 14px; }
input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(223, 182, 107, 0.28);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 244, 223, 0.06);
  color: var(--ink);
}
input:focus, select:focus {
  outline: 2px solid rgba(223, 182, 107, 0.22);
  border-color: var(--gold);
}
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.segment-control { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.segment-control label {
  position: relative;
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 244, 223, 0.05);
  color: var(--muted);
}
.segment-control input { position: absolute; opacity: 0; pointer-events: none; }
.segment-control label:has(input:checked) {
  color: #10101a;
  border-color: var(--gold);
  background: linear-gradient(135deg, #f5d99a, #b9803b);
  font-weight: 900;
}

.primary-link,
.secondary-link,
.primary-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 20px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}
.primary-link,
.primary-button {
  border: 0;
  color: #10101a;
  background: linear-gradient(135deg, #f5d99a, #b9803b);
  box-shadow: 0 18px 38px rgba(185, 128, 59, 0.25);
}
.secondary-link {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 244, 223, 0.06);
}
.primary-link:hover,
.secondary-link:hover,
.primary-button:hover { transform: translateY(-2px); }
.primary-button { width: 100%; }
.primary-button:disabled { opacity: 0.66; }

.empty-state {
  min-height: 430px;
  display: grid;
  align-content: center;
}
.report-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.report-header h2 { font-size: 30px; }
.report-snapshot {
  margin: 18px 0 16px;
  border: 1px solid rgba(245, 217, 154, 0.34);
  border-radius: 10px;
  padding: 18px;
  background:
    radial-gradient(circle at 14% 18%, rgba(245, 217, 154, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(245, 217, 154, 0.1), rgba(5, 7, 19, 0.42));
  box-shadow: inset 0 1px 0 rgba(255, 244, 223, 0.06), 0 16px 42px rgba(0, 0, 0, 0.24);
}
.snapshot-kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.report-snapshot h3 {
  margin: 0 0 16px;
  color: var(--gold-2);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.36;
}
.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.snapshot-grid div {
  min-height: 126px;
  border: 1px solid rgba(223, 182, 107, 0.22);
  border-radius: 8px;
  padding: 13px;
  background: rgba(5, 7, 19, 0.36);
}
.snapshot-grid span,
.snapshot-grid strong,
.snapshot-grid small {
  display: block;
}
.snapshot-grid span {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}
.snapshot-grid strong {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
}
.snapshot-grid small {
  color: var(--soft);
  line-height: 1.58;
}
.snapshot-return-note {
  margin: 14px 0 0;
  border-top: 1px solid rgba(223, 182, 107, 0.18);
  padding-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.report-focus-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 18px;
}
.report-focus-strip div {
  min-width: 0;
  border: 1px solid rgba(223, 182, 107, 0.24);
  border-radius: 8px;
  padding: 12px 14px;
  background:
    radial-gradient(circle at 84% 20%, rgba(245, 217, 154, 0.12), transparent 38%),
    rgba(5, 7, 19, 0.38);
}
.report-focus-strip span,
.report-focus-strip strong {
  display: block;
}
.report-focus-strip span {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}
.report-focus-strip strong {
  overflow: hidden;
  color: var(--gold-2);
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.status-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(189, 126, 116, 0.16);
  color: #ffc8b7;
  font-size: 13px;
  font-weight: 900;
}
.status-badge.unlocked { background: rgba(105, 184, 176, 0.16); color: #a8f0e9; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 22px; }
.tag-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 244, 223, 0.05);
  color: var(--muted);
  font-size: 13px;
}
.section-block {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.section-block p,
.locked-panel p,
#tarot-result-text {
  color: var(--soft);
  line-height: 1.85;
}
.report-history {
  margin-top: 16px;
  border: 1px solid rgba(223, 182, 107, 0.24);
  border-radius: 10px;
  padding: 15px;
  background:
    radial-gradient(circle at 88% 14%, rgba(245, 217, 154, 0.12), transparent 34%),
    rgba(5, 7, 19, 0.38);
}
.history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.history-head h3 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
}
.history-head button {
  flex: 0 0 auto;
  border: 1px solid rgba(223, 182, 107, 0.3);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(245, 217, 154, 0.08);
  color: var(--gold-2);
  font-weight: 900;
}
.history-list {
  display: grid;
  gap: 8px;
}
.history-list article {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(223, 182, 107, 0.18);
  border-radius: 8px;
  padding: 10px;
  background: rgba(4, 5, 15, 0.4);
}
.history-list article > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245, 217, 154, 0.34);
  border-radius: 50%;
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 900;
}
.history-list strong,
.history-list small {
  display: block;
}
.history-list strong {
  color: var(--gold-2);
  font-size: 14px;
  line-height: 1.35;
}
.history-list small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.locked-panel {
  border: 1px solid rgba(223, 182, 107, 0.28);
  border-radius: 10px;
  padding: 20px;
  background:
    radial-gradient(circle at 12% 14%, rgba(245, 217, 154, 0.14), transparent 30%),
    linear-gradient(145deg, rgba(223, 182, 107, 0.1), rgba(5, 7, 19, 0.42));
}
.unlock-hero {
  margin-bottom: 8px;
}
.unlock-hero h3 {
  margin: 4px 0 0;
  color: var(--gold-2);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.3;
}
.unlock-value-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.unlock-value-row div {
  min-width: 0;
  border: 1px solid rgba(223, 182, 107, 0.2);
  border-radius: 8px;
  padding: 12px;
  background: rgba(5, 7, 19, 0.32);
}
.unlock-value-row strong,
.unlock-value-row span {
  display: block;
}
.unlock-value-row strong {
  margin-bottom: 6px;
  color: var(--gold-2);
  font-size: 16px;
}
.unlock-value-row span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.return-tracker {
  border: 1px solid rgba(223, 182, 107, 0.22);
  border-radius: 10px;
  margin: 16px 0 18px;
  padding: 14px;
  background: rgba(4, 5, 15, 0.36);
}
.return-tracker-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.return-tracker-head h4 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}
.return-tracker-head > span {
  flex: 0 0 auto;
  border: 1px solid rgba(245, 217, 154, 0.34);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--gold-2);
  background: rgba(245, 217, 154, 0.08);
  font-size: 12px;
  font-weight: 900;
}
.return-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
}
.return-day {
  min-width: 0;
  border: 1px solid rgba(223, 182, 107, 0.16);
  border-radius: 8px;
  padding: 10px 8px;
  background: rgba(5, 7, 19, 0.38);
  text-align: center;
}
.return-day.is-active {
  border-color: rgba(245, 217, 154, 0.58);
  background: linear-gradient(145deg, rgba(245, 217, 154, 0.2), rgba(5, 7, 19, 0.42));
}
.return-day.is-next {
  border-color: rgba(245, 217, 154, 0.34);
}
.return-day strong,
.return-day span,
.return-day small {
  display: block;
}
.return-day strong {
  color: var(--gold-2);
  font-size: 12px;
}
.return-day span {
  margin: 5px 0 3px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}
.return-day small {
  color: var(--muted);
  font-size: 11px;
}
#return-note,
.unlock-footnote {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}
.unlock-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.unlock-preview-grid div {
  min-width: 0;
  border: 1px solid rgba(223, 182, 107, 0.22);
  border-radius: 8px;
  padding: 13px 14px;
  background:
    linear-gradient(145deg, rgba(255, 244, 223, 0.055), transparent 60%),
    rgba(5, 7, 19, 0.34);
}
.unlock-preview-grid span,
.unlock-preview-grid strong,
.unlock-preview-grid small {
  display: block;
}
.unlock-preview-grid span {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.unlock-preview-grid strong {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 16px;
}
.unlock-preview-grid small {
  color: var(--muted);
  line-height: 1.55;
}
.paid-panel {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 10px;
}

.tool-lab { grid-template-columns: 360px minmax(0, 1fr); align-items: start; }
.tool-menu { display: grid; gap: 14px; }
.tool-preview,
.tool-card {
  scroll-margin-top: 92px;
}
.tool-card {
  position: relative;
  overflow: hidden;
  min-height: 112px;
  padding: 18px;
  color: inherit;
  text-align: left;
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}
.tool-card span,
.tool-card small { display: block; color: var(--muted); }
.tool-card span { margin-bottom: 8px; color: var(--gold); font-weight: 900; }
.tool-card strong { display: block; margin-bottom: 8px; color: var(--ink); font-size: 20px; }
.tool-card:hover,
.tool-card.active,
.reading-card.active {
  border-color: var(--line-strong);
  background: radial-gradient(circle at 80% 20%, rgba(223, 182, 107, 0.14), transparent 32%), var(--panel-strong);
  transform: translateY(-3px);
}
.tool-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 12px;
  padding: 16px;
  border: 1px solid rgba(223, 182, 107, 0.22);
  border-radius: 10px;
  background: rgba(5, 7, 19, 0.42);
}
.tool-form label {
  display: grid;
  gap: 8px;
}
.tool-form span {
  color: var(--muted);
  font-size: 13px;
}
.tool-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(223, 182, 107, 0.25);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(4, 5, 15, 0.72);
  outline: 0;
}
.tool-form input:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(223, 182, 107, 0.12);
}
.tool-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.chart-table {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}
.chart-table div {
  min-height: 120px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255, 244, 223, 0.05), rgba(255, 244, 223, 0.015));
}
.chart-table span,
.chart-table small { display: block; color: var(--muted); }
.chart-table strong { display: block; margin: 10px 0 8px; color: var(--gold-2); font-size: 24px; }
.chart-wheel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas:
    "n0 n1 n2 n3"
    "n4 center center n5"
    "n6 center center n7";
  gap: 10px;
  margin: 20px 0;
}
.chart-center,
.chart-node {
  border: 1px solid rgba(223, 182, 107, 0.25);
  border-radius: 10px;
  padding: 15px;
  background: linear-gradient(180deg, rgba(255, 244, 223, 0.055), rgba(5, 7, 19, 0.24));
}
.chart-center {
  grid-area: center;
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 190px;
  background:
    radial-gradient(circle at center, rgba(223, 182, 107, 0.16), transparent 58%),
    rgba(5, 7, 19, 0.44);
}
.chart-center h4 {
  margin: 0;
  color: var(--gold);
  font-size: 15px;
  letter-spacing: 0.08em;
}
.chart-center strong {
  display: block;
  max-width: 360px;
  color: var(--gold-2);
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.38;
}
.chart-center p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.chart-node {
  min-height: 142px;
  position: relative;
  overflow: hidden;
}
.chart-node::after,
.ziwei-palace::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(245, 217, 154, 0.2), transparent 48%);
  opacity: 0;
  transition: opacity 220ms ease;
}
.chart-node.is-hit,
.ziwei-palace.is-hit {
  border-color: rgba(245, 217, 154, 0.9);
  background:
    radial-gradient(circle at 70% 20%, rgba(245, 217, 154, 0.24), transparent 42%),
    linear-gradient(180deg, rgba(223, 182, 107, 0.16), rgba(5, 7, 19, 0.28));
  box-shadow: 0 0 0 1px rgba(245, 217, 154, 0.18), 0 0 28px rgba(223, 182, 107, 0.22);
}
.chart-node.is-hit::after,
.ziwei-palace.is-hit::after {
  opacity: 1;
}
.chart-node span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.chart-node strong {
  display: block;
  margin: 10px 0 8px;
  color: var(--gold-2);
  font-size: 22px;
  line-height: 1.25;
}
.chart-node small {
  display: block;
  color: var(--soft);
  line-height: 1.6;
}
.technical-table {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.technical-table div {
  min-height: 132px;
}
.ziwei-chart {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas:
    "p0 p1 p2 p3"
    "p4 center center p5"
    "p6 center center p7"
    "p8 p9 p10 p11";
  gap: 0;
  margin: 20px 0;
  overflow: hidden;
  border: 1px solid rgba(245, 217, 154, 0.34);
  border-radius: 10px;
  background: rgba(5, 7, 19, 0.34);
}
.ziwei-palace,
.ziwei-center {
  position: relative;
  min-height: 148px;
  border: 1px solid rgba(223, 182, 107, 0.26);
  padding: 12px;
  background: linear-gradient(180deg, rgba(255, 244, 223, 0.055), rgba(5, 7, 19, 0.2));
}
.ziwei-palace {
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}
.ziwei-palace.is-hit {
  z-index: 3;
  border-color: rgba(255, 224, 146, 1);
  background:
    radial-gradient(circle at 30% 10%, rgba(255, 233, 168, 0.34), transparent 40%),
    linear-gradient(180deg, rgba(223, 182, 107, 0.24), rgba(32, 20, 8, 0.42));
  box-shadow:
    inset 0 0 0 1px rgba(255, 244, 223, 0.22),
    inset 0 0 28px rgba(245, 217, 154, 0.12),
    0 0 0 2px rgba(245, 217, 154, 0.32),
    0 0 42px rgba(223, 182, 107, 0.42);
  transform: translateY(-3px);
}
.ziwei-palace.is-hit::before {
  content: "命中";
  position: absolute;
  right: 10px;
  top: 8px;
  z-index: 2;
  border: 1px solid rgba(255, 244, 223, 0.28);
  border-radius: 999px;
  padding: 2px 7px;
  color: #19110a;
  background: linear-gradient(135deg, #fff0b9, #d79b3c);
  box-shadow: 0 0 18px rgba(245, 217, 154, 0.35);
  font-size: 11px;
  font-weight: 900;
}
.ziwei-palace.is-hit h4 {
  color: #ffe6a6;
  text-shadow: 0 0 18px rgba(245, 217, 154, 0.45);
}
.ziwei-palace.is-hit div strong {
  color: #fff2c6;
}
.ziwei-palace:nth-child(odd) {
  background: linear-gradient(180deg, rgba(223, 182, 107, 0.075), rgba(5, 7, 19, 0.24));
}
.ziwei-palace div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--gold-2);
  font-weight: 900;
}
.ziwei-palace div span {
  color: var(--muted);
  font-weight: 500;
}
.ziwei-palace h4 {
  margin: 10px 0 7px;
  color: #d9a7ff;
  font-size: 19px;
}
.ziwei-palace p {
  margin: 0 0 8px;
  color: var(--soft);
  line-height: 1.55;
  font-size: 13px;
}
.ziwei-palace small {
  display: block;
  color: rgba(199, 184, 157, 0.76);
  line-height: 1.45;
}
.ziwei-center {
  grid-area: center;
  display: grid;
  align-content: center;
  gap: 12px;
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(223, 182, 107, 0.14), transparent 58%),
    rgba(5, 7, 19, 0.44);
}
.ziwei-center h4 {
  margin: 0;
  color: var(--gold-2);
  font-size: 18px;
}
.ziwei-center dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 12px;
  margin: 0;
}
.ziwei-center div {
  min-width: 0;
}
.ziwei-center dt {
  color: var(--muted);
  font-size: 12px;
}
.ziwei-center dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-weight: 800;
}
.orbit-choice {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.orbit-choice button {
  border: 1px solid rgba(223, 182, 107, 0.28);
  border-radius: 8px;
  padding: 9px 6px;
  color: var(--soft);
  background: rgba(8, 10, 24, 0.72);
}
.orbit-choice .selected {
  color: #190f2b;
  background: linear-gradient(135deg, #efd4ff, #c68cff);
  box-shadow: 0 0 22px rgba(198, 140, 255, 0.25);
}
.ziwei-center p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.ai-lock {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(223, 182, 107, 0.3);
  border-radius: 10px;
  padding: 18px;
  background: rgba(223, 182, 107, 0.08);
}
.ai-lock h4 { margin: 0 0 6px; color: var(--ink); font-size: 18px; }
.ai-lock p { margin: 0; color: var(--muted); line-height: 1.7; }
.tool-unlock-panel {
  align-items: stretch;
}
.tool-unlock-panel > div,
.tarot-unlock-panel > div {
  flex: 1;
  min-width: 0;
}
.tool-unlock-panel .secondary-link,
.tarot-unlock-panel .secondary-link {
  align-self: center;
  flex: 0 0 auto;
}
.tarot-unlock-panel {
  align-items: stretch;
}
.unlock-preview-grid.compact {
  margin: 14px 0 0;
}
.unlock-preview-grid.compact div {
  padding: 11px 12px;
}
.unlock-preview-grid.compact strong {
  font-size: 15px;
}
.unlock-preview-grid.compact small {
  font-size: 12px;
}
.tool-paid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.tool-paid section {
  border: 1px solid rgba(223, 182, 107, 0.24);
  border-radius: 10px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(223, 182, 107, 0.1), rgba(5, 7, 19, 0.38));
}
.tool-paid h4 {
  margin: 0 0 8px;
  color: var(--gold-2);
  font-size: 17px;
}
.tool-paid p {
  margin: 0;
  color: var(--soft);
  line-height: 1.75;
  white-space: pre-line;
}
.naming-recommend-section {
  grid-column: 1 / -1;
}
.naming-candidate-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}
.naming-candidate {
  border: 1px solid rgba(245, 217, 154, 0.22);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 244, 223, 0.045);
}
.naming-candidate-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.naming-candidate-name {
  color: var(--gold-2);
  font-size: 23px;
  line-height: 1.2;
  font-weight: 900;
}
.naming-candidate-meta {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 13px;
  white-space: nowrap;
}
.naming-candidate p {
  margin-bottom: 8px;
}
.naming-candidate small {
  display: block;
  color: var(--muted);
  line-height: 1.65;
}

.tarot-question,
.tarot-grid,
.guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.tarot-question {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
}

.tarot-question label {
  min-width: 0;
}

.tarot-question input {
  min-height: 54px;
  background: rgba(5, 7, 19, 0.58);
}

.tarot-question button {
  min-height: 54px;
}

.tarot-grid {
  position: relative;
  isolation: isolate;
}

.tarot-grid.is-ready::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 88px;
  z-index: 0;
  width: 148px;
  height: 214px;
  border: 1px solid rgba(245, 217, 154, 0.34);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(5, 7, 19, 0.1), rgba(5, 7, 19, 0.36)),
    url("/assets/tarot-back-moon.webp");
  background-size: cover;
  background-position: center;
  box-shadow:
    -9px 7px 0 rgba(7, 9, 23, 0.9),
    -18px 14px 0 rgba(7, 9, 23, 0.72),
    9px 7px 0 rgba(7, 9, 23, 0.88),
    18px 14px 0 rgba(7, 9, 23, 0.66),
    0 24px 44px rgba(0, 0, 0, 0.46),
    0 0 28px rgba(223, 182, 107, 0.16);
  opacity: 0.7;
  pointer-events: none;
  transform: translateX(-50%) rotate(-2deg);
  animation: tarotDeckBreathe 2400ms ease-in-out infinite;
}

.reading-card,
.guide-grid article {
  position: relative;
  min-height: 296px;
  padding: 24px;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.reading-card {
  z-index: 1;
  display: grid;
  align-content: end;
  gap: 12px;
  color: inherit;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(circle at var(--mx, 50%) 24%, rgba(223, 182, 107, 0.2), transparent 28%),
    linear-gradient(180deg, rgba(14, 18, 38, 0.84), rgba(7, 8, 20, 0.92));
}
.motion-surface {
  --mx: 50%;
  --my: 42%;
  --tilt-x: 0;
  --tilt-y: 0;
}
.reading-card img {
  width: 160px;
  aspect-ratio: 0.68;
  display: block;
  margin-bottom: 22px;
  border: 1px solid rgba(245, 217, 154, 0.38);
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.38);
  transform: rotate(-5deg);
  transition: transform 220ms ease, filter 220ms ease;
  filter: saturate(1.08) contrast(1.05);
}
.reading-card.featured img { transform: translateY(-10px) rotate(2deg); }
.reading-card:hover,
.guide-grid article:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 32px 82px rgba(0, 0, 0, 0.34);
}
.reading-card:hover img { transform: translateY(-10px) rotate(3deg); filter: saturate(1.18) contrast(1.08); }
.reading-card.featured .tarot-card-front img,
.reading-card:hover .tarot-card-front img {
  transform: none;
  filter: none;
}
.reading-card span,
.guide-grid span { color: var(--gold); font-weight: 900; }
.tarot-slot-label {
  justify-self: center;
  letter-spacing: 0.08em;
}
.reading-card h3,
.reading-card p {
  text-align: left;
}
.reading-card.is-pending {
  cursor: pointer;
}
.reading-card.is-pending .tarot-card-wrap {
  filter: drop-shadow(0 0 18px rgba(223, 182, 107, 0.12));
}
.reading-card.is-drawing {
  z-index: 5;
}
.tarot-result { margin-top: 18px; }
.tarot-result h3 { font-size: 28px; }
.ai-lock.compact { margin-top: 18px; }
.tarot-answer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.tarot-answer section {
  border: 1px solid rgba(223, 182, 107, 0.18);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 244, 223, 0.045);
}
.tarot-answer h4 {
  margin: 0 0 8px;
  color: var(--gold-2);
  font-size: 16px;
}
.tarot-answer p {
  margin: 0;
  color: var(--soft);
  line-height: 1.75;
}
.guide-grid article { overflow: hidden; }
.guide-grid img {
  width: calc(100% + 48px);
  height: 155px;
  display: block;
  margin: -24px -24px 20px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  opacity: 0.92;
  transition: transform 260ms ease, opacity 260ms ease;
}
.guide-grid article:hover img { transform: scale(1.04); opacity: 1; }

.bottom-cta {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
  margin: 14px 0 26px;
  padding: 18px 24px;
  background:
    linear-gradient(90deg, rgba(245, 217, 154, 0.06), rgba(140, 83, 170, 0.08), rgba(245, 217, 154, 0.06)),
    rgba(8, 10, 24, 0.82);
}
.bottom-cta strong,
.bottom-cta small { display: block; text-align: center; }
.bottom-cta strong { color: var(--gold-2); font-size: 25px; letter-spacing: 0.08em; }
.bottom-cta small { margin-top: 6px; color: var(--muted); }

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 44px;
  padding: 30px clamp(20px, 4vw, 56px) 38px;
  border-top: 1px solid rgba(223, 182, 107, 0.12);
  background: rgba(3, 4, 12, 0.74);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-footer h3 {
  margin-bottom: 10px;
  color: var(--gold-2);
  font-size: 17px;
}
.site-footer a,
.site-footer p {
  display: inline-block;
  margin: 0 16px 8px 0;
  color: var(--muted);
  line-height: 1.8;
}
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 8px;
}
.footer-legal-links a {
  margin: 0;
  color: var(--gold-2);
  font-weight: 700;
  letter-spacing: 0.03em;
}
.footer-legal-links a:hover {
  color: var(--cream);
}

.hidden { display: none; }

.reveal-item {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    border-color 260ms ease,
    box-shadow 260ms ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: revealGrow 1320ms cubic-bezier(0.16, 0.86, 0.24, 1) both;
}

/* ============================================================
   AUTH MODAL
   ============================================================ */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: rgba(4, 5, 15, 0.72);
  backdrop-filter: blur(10px);
  animation: fadeIn 260ms ease both;
}

.auth-overlay.hidden {
  display: none;
}

.auth-modal {
  position: relative;
  width: min(420px, calc(100vw - 32px));
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 32px 28px 28px;
  background:
    linear-gradient(145deg, rgba(245, 217, 154, 0.08), transparent 36%),
    var(--panel-strong);
  box-shadow: var(--shadow), 0 0 60px rgba(223, 182, 107, 0.12);
  animation: modalSlideUp 340ms cubic-bezier(0.16, 0.86, 0.24, 1) both;
}

.auth-close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: rgba(5, 7, 19, 0.52);
  font-size: 18px;
  transition: color 180ms ease, border-color 180ms ease;
}

.auth-close:hover {
  color: var(--gold-2);
  border-color: var(--line-strong);
}

.auth-modal h2 {
  margin: 0 0 6px;
  color: var(--gold-2);
  font-size: 24px;
  text-align: center;
}

.auth-subtitle {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* Tabs */
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 24px;
  border-radius: 8px;
  padding: 4px;
  background: rgba(5, 7, 19, 0.52);
}

.auth-tab {
  min-height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 900;
  transition: color 180ms ease, background 180ms ease;
}

.auth-tab.active {
  color: #10101a;
  background: linear-gradient(135deg, #f5d99a, #b9803b);
}

/* Forms */
.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  display: grid;
  gap: 6px;
}

.auth-form label span {
  color: var(--muted);
  font-size: 13px;
}

.auth-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(223, 182, 107, 0.28);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: rgba(255, 244, 223, 0.06);
  outline: 0;
}

.auth-form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(223, 182, 107, 0.12);
}

.auth-form .primary-button {
  width: 100%;
  margin-top: 4px;
}

.auth-status {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.auth-status[data-status="success"] {
  color: var(--gold-2);
}

.auth-status[data-status="error"] {
  color: #ffb4a8;
}

/* Social login */
.auth-social {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.auth-social-label {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.social-btn {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 244, 223, 0.05);
  font-size: 14px;
  font-weight: 700;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.social-btn:hover {
  border-color: var(--line-strong);
  background: rgba(255, 244, 223, 0.1);
  transform: translateY(-1px);
}

.social-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
}

.social-btn.wechat .social-icon {
  color: #fff;
  background: #07c160;
}

.social-btn.alipay .social-icon {
  color: #fff;
  background: #1677ff;
}

.social-btn.google .social-icon {
  color: #fff;
  background: #4285f4;
}

.social-btn.phone .social-icon {
  color: #fff;
  background: var(--teal);
}

/* Profile */
.auth-profile {
  text-align: center;
}

.auth-avatar {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-2);
  background: rgba(223, 182, 107, 0.12);
  font-size: 28px;
  font-weight: 900;
}

.auth-profile h3 {
  color: var(--gold-2);
  font-size: 20px;
  margin-bottom: 4px;
}

.auth-profile p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.auth-profile .social-btn {
  width: 100%;
}

/* ============================================================
   HAMBURGER MENU
   ============================================================ */
.hamburger {
  position: fixed;
  right: 18px;
  top: 18px;
  z-index: 60;
  width: 40px;
  height: 40px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 7, 19, 0.82);
  backdrop-filter: blur(8px);
  transition: border-color 180ms ease;
}

.hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-2);
  transition: transform 280ms ease, opacity 280ms ease;
  transform-origin: center;
}

.hamburger.open .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: rgba(4, 5, 15, 0.92);
  backdrop-filter: blur(18px);
  animation: fadeIn 200ms ease both;
}

.mobile-nav a,
.mobile-nav button {
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: color 180ms ease, border-color 180ms ease;
}

.mobile-nav a:hover,
.mobile-nav button:hover {
  color: var(--gold-2);
  border-color: var(--line);
}

.mobile-nav-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.mobile-language-select {
  width: min(280px, calc(100vw - 56px));
  justify-content: center;
  padding: 9px 16px;
}

.mobile-language-select select {
  width: auto;
  min-width: 112px;
  font-size: 16px;
}

.mobile-nav .header-cta {
  color: #11111a;
}

/* ============================================================
   TAROT 3D CARD FLIP
   ============================================================ */
.tarot-card-wrap {
  position: relative;
  perspective: 1200px;
  width: 180px;
  height: 260px;
  margin: 0 auto;
  transform-origin: center;
}

.tarot-card-wrap::before,
.tarot-card-wrap::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(245, 217, 154, 0.24);
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 50%, rgba(245, 217, 154, 0.1), transparent 58%),
    linear-gradient(135deg, #151033, #07091b);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.32);
  transform: translate3d(-10px, 10px, -12px) rotate(-5deg);
  opacity: 0.72;
}

.tarot-card-wrap::after {
  transform: translate3d(10px, 6px, -8px) rotate(5deg);
  opacity: 0.52;
}

.tarot-flip-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 640ms cubic-bezier(0.16, 0.86, 0.24, 1);
}

.tarot-card-wrap.is-drawing {
  animation: tarotDrawTravel 1220ms cubic-bezier(0.16, 0.86, 0.24, 1) forwards;
  will-change: transform, filter;
}

.tarot-card-wrap.is-drawing::before,
.tarot-card-wrap.is-drawing::after {
  opacity: 0;
}

.tarot-card-wrap.is-drawing .tarot-flip-inner {
  animation: tarotDrawFlip 1220ms cubic-bezier(0.16, 0.86, 0.24, 1) forwards;
}

.reading-card[data-tarot="past"] .tarot-card-wrap.is-drawing .tarot-flip-inner {
  animation-name: tarotDrawFlipLeft;
}

.reading-card[data-tarot="next"] .tarot-card-wrap.is-drawing .tarot-flip-inner {
  animation-name: tarotDrawFlipRight;
}

.reading-card.is-drawn .tarot-flip-inner {
  transform: rotateY(180deg);
}

.tarot-card-backface,
.tarot-card-front {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  backface-visibility: hidden;
  overflow: hidden;
}

.tarot-card-backface {
  z-index: 2;
  display: grid;
  place-items: center;
  border: 2px solid rgba(245, 217, 154, 0.5);
  background:
    linear-gradient(180deg, rgba(5, 7, 19, 0.08), rgba(5, 7, 19, 0.28)),
    var(--tarot-back-image),
    radial-gradient(circle at 50% 50%, rgba(223, 182, 107, 0.15), transparent 60%),
    linear-gradient(135deg, #1a1040, #0d0a2a);
  background-position: center;
  background-size: cover;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.42), inset 0 0 40px rgba(223, 182, 107, 0.06);
  transform: rotateY(0deg);
}

.tarot-card-backface::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 46%, rgba(245, 217, 154, 0.16), transparent 34%),
    linear-gradient(180deg, transparent 70%, rgba(5, 7, 19, 0.28));
  pointer-events: none;
}

.tarot-card-backface::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(245, 217, 154, 0.15);
  border-radius: 8px;
  background:
    repeating-conic-gradient(from 0deg, transparent 0 45deg, rgba(245, 217, 154, 0.04) 46deg 47deg);
  pointer-events: none;
}

.reading-card[data-tarot="past"] {
  --tarot-back-image: url("/assets/tarot-back-star.webp");
}

.reading-card[data-tarot="now"] {
  --tarot-back-image: url("/assets/tarot-back-moon.webp");
}

.reading-card[data-tarot="next"] {
  --tarot-back-image: url("/assets/tarot-back-sun.webp");
}

.tarot-card-front {
  z-index: 1;
  display: grid;
  align-content: end;
  padding: 18px;
  border: 1px solid rgba(245, 217, 154, 0.3);
  background:
    radial-gradient(circle at 50% 30%, rgba(223, 182, 107, 0.2), transparent 50%),
    linear-gradient(180deg, rgba(14, 18, 38, 0.92), rgba(7, 8, 20, 0.96));
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.42);
  transform: rotateY(180deg);
}

.tarot-card-front img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  object-fit: cover;
  opacity: 0.7;
  border-radius: inherit;
  box-shadow: none;
  filter: none;
  transform: none;
}

.tarot-card-front .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(4, 5, 15, 0.72) 100%);
  pointer-events: none;
  border-radius: inherit;
}

.tarot-card-front h4 {
  position: relative;
  z-index: 1;
  margin: 0 0 4px;
  color: var(--gold-2);
  font-size: 16px;
}

.tarot-card-front p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.5;
}

/* ============================================================
   BOOK CARDS
   ============================================================ */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.guide-grid article {
  display: flex;
  flex-direction: column;
  min-height: 296px;
  padding: 0 0 24px;
  overflow: hidden;
}

.guide-grid article p {
  flex: 1;
  min-height: 5em;
  padding: 0 24px;
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.75;
}

.guide-grid article span,
.guide-grid article h3 {
  padding: 0 24px;
}

.book-card {
  display: flex;
  flex-direction: column;
  min-height: 320px;
  cursor: pointer;
}

.book-card.is-focused {
  border-color: rgba(255, 212, 143, 0.78);
  box-shadow: 0 0 0 1px rgba(255, 212, 143, 0.24), 0 18px 42px rgba(255, 212, 143, 0.12);
}

.book-card .book-cover {
  width: 100%;
  height: 155px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  opacity: 0.92;
}

.book-card .book-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 24px;
}

.book-card .book-body p {
  flex: 1;
  min-height: 5em;
  color: var(--muted);
  line-height: 1.75;
}

.book-action {
  margin-top: auto;
  padding: 12px 24px 0;
  border-top: 1px solid var(--line);
}

.book-action a,
.book-action button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
  transition: color 180ms ease;
}

.book-action a:hover,
.book-action button:hover {
  color: var(--gold-2);
}

/* ============================================================
   READER MODAL
   ============================================================ */
.reader-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background: rgba(4, 5, 15, 0.78);
  backdrop-filter: blur(12px);
  animation: fadeIn 260ms ease both;
  padding: 20px;
}

.reader-overlay.hidden {
  display: none;
}

.reader-modal {
  position: relative;
  width: min(800px, calc(100vw - 40px));
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(245, 217, 154, 0.06), transparent 36%),
    rgba(8, 10, 24, 0.96);
  box-shadow: var(--shadow), 0 0 60px rgba(0, 0, 0, 0.4);
  animation: modalSlideUp 340ms cubic-bezier(0.16, 0.86, 0.24, 1) both;
  overflow: hidden;
}

.reader-topbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 19, 0.52);
}

.reader-topbar h3 {
  margin: 0;
  color: var(--gold-2);
  font-size: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reader-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: rgba(5, 7, 19, 0.52);
  font-size: 18px;
  transition: color 180ms ease, border-color 180ms ease;
}

.reader-close:hover {
  color: var(--gold-2);
  border-color: var(--line-strong);
}

.reader-body {
  flex: 1;
  overflow-y: auto;
  padding: 28px 28px 36px;
}

.reader-body h2 {
  margin: 28px 0 14px;
  color: var(--gold-2);
  font-size: 24px;
}

.reader-body h3 {
  margin: 22px 0 12px;
  color: var(--gold);
  font-size: 19px;
}

.reader-body h4 {
  margin: 18px 0 10px;
  color: var(--ink);
  font-size: 16px;
}

.reader-body p {
  margin: 0 0 16px;
  color: var(--soft);
  line-height: 1.85;
  font-size: 15px;
}

.reader-body ul {
  display: grid;
  gap: 8px;
  margin: -4px 0 18px;
  padding: 0;
  list-style: none;
}

.reader-body li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.reader-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(223, 182, 107, 0.28);
}

.reader-body table {
  width: 100%;
  margin: 16px 0;
  border-collapse: collapse;
  font-size: 14px;
}

.reader-body th,
.reader-body td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  color: var(--soft);
}

.reader-body th {
  color: var(--gold-2);
  background: rgba(223, 182, 107, 0.08);
  font-weight: 900;
}

.reader-body blockquote {
  margin: 16px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  color: var(--muted);
  background: rgba(223, 182, 107, 0.06);
  line-height: 1.75;
}

/* Scrollbar styling for reader */
.reader-body::-webkit-scrollbar {
  width: 6px;
}

.reader-body::-webkit-scrollbar-track {
  background: transparent;
}

.reader-body::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: rgba(223, 182, 107, 0.24);
}

.reader-body::-webkit-scrollbar-thumb:hover {
  background: rgba(223, 182, 107, 0.4);
}

/* ============================================================
   CASES MODAL
   ============================================================ */
.cases-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background: rgba(4, 5, 15, 0.78);
  backdrop-filter: blur(12px);
  animation: fadeIn 260ms ease both;
  padding: 20px;
}

.cases-overlay.hidden {
  display: none;
}

.cases-modal {
  position: relative;
  width: min(640px, calc(100vw - 40px));
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(245, 217, 154, 0.06), transparent 36%),
    rgba(8, 10, 24, 0.96);
  box-shadow: var(--shadow), 0 0 60px rgba(0, 0, 0, 0.4);
  animation: modalSlideUp 340ms cubic-bezier(0.16, 0.86, 0.24, 1) both;
  overflow: hidden;
}

.cases-topbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 19, 0.52);
}

.cases-topbar h3 {
  margin: 0;
  color: var(--gold-2);
  font-size: 18px;
}

.cases-topbar p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.cases-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: rgba(5, 7, 19, 0.52);
  font-size: 18px;
  transition: color 180ms ease, border-color 180ms ease;
}

.cases-close:hover {
  color: var(--gold-2);
  border-color: var(--line-strong);
}

.cases-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: grid;
  gap: 14px;
}

.case-entry {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  background: linear-gradient(145deg, rgba(245, 217, 154, 0.04), transparent 30%);
  transition: border-color 180ms ease, background 180ms ease;
}

.case-entry:hover {
  border-color: var(--line-strong);
  background: linear-gradient(145deg, rgba(245, 217, 154, 0.08), rgba(5, 7, 19, 0.4));
}

.case-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.case-entry-header strong {
  color: var(--gold-2);
  font-size: 16px;
}

.case-entry-tag {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--gold);
  font-size: 12px;
  white-space: nowrap;
}

.case-entry p {
  color: var(--soft);
  line-height: 1.7;
  font-size: 14px;
  margin: 0 0 10px;
}

.case-entry .stars {
  color: var(--gold-2);
  letter-spacing: 0.14em;
  font-size: 14px;
}

/* Scrollbar for cases */
.cases-scroll::-webkit-scrollbar {
  width: 6px;
}

.cases-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.cases-scroll::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: rgba(223, 182, 107, 0.24);
}

.cases-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(223, 182, 107, 0.4);
}

/* ============================================================
   NAMING PAID SECTION
   ============================================================ */
.tarot-name {
  display: block;
  color: var(--gold-2);
  font-size: 20px;
  font-weight: 900;
  padding: 8px 0;
  line-height: 1.4;
}

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes heroImageBreathe {
  from { transform: scale(1.04) translate3d(0, 0, 0); filter: saturate(1.02) contrast(1.06) brightness(0.7); }
  to { transform: scale(1.08) translate3d(-18px, -8px, 0); filter: saturate(1.12) contrast(1.1) brightness(0.92); }
}
@keyframes siteBackgroundDrift {
  from { transform: scale(1.03) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-18px, -10px, 0); }
}
@keyframes starDrift {
  from { transform: translate3d(0, 0, 0); opacity: 0.52; }
  to { transform: translate3d(-20px, 12px, 0); opacity: 0.9; }
}
@keyframes auroraFloat {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(28px, -18px, 0) scale(1.08); }
}
@keyframes slowSpin { to { transform: rotate(360deg); } }
@keyframes slowSpinReverse { to { transform: rotate(-360deg); } }
@keyframes guaCounterSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(-360deg); }
}
@keyframes guaBloom {
  0% {
    opacity: 0;
    transform: scale(0.18);
    text-shadow: 0 0 0 rgba(245, 217, 154, 0);
  }
  24% {
    opacity: 1;
    transform: scale(0.72);
    text-shadow: 0 0 16px rgba(245, 217, 154, 0.5);
  }
  70% {
    opacity: 1;
    transform: scale(1);
    text-shadow: 0 0 28px rgba(245, 217, 154, 0.42), 0 0 8px rgba(255, 244, 223, 0.3);
  }
  100% {
    opacity: 0;
    transform: scale(1.08);
    text-shadow: 0 0 34px rgba(245, 217, 154, 0.08);
  }
}
@keyframes guaGlow {
  from { opacity: 0.58; box-shadow: 0 0 10px rgba(245, 217, 154, 0.08); }
  to { opacity: 1; box-shadow: 0 0 22px rgba(245, 217, 154, 0.24); }
}
@keyframes cloudDrift {
  from { transform: translate3d(-24px, 0, 0) scale(1); opacity: 0.62; }
  to { transform: translate3d(28px, -10px, 0) scale(1.08); opacity: 0.96; }
}
@keyframes clothHighlightWind {
  from { transform: translateX(-10px) skewX(-8deg) scaleX(0.92); opacity: 0.42; }
  to { transform: translateX(24px) skewX(7deg) scaleX(1.08); opacity: 0.82; }
}
@keyframes cardStardust {
  from { opacity: 0.18; transform: translate3d(-4px, 4px, 0); }
  to { opacity: 0.5; transform: translate3d(5px, -5px, 0); }
}
@keyframes revealGrow {
  0% {
    opacity: 0;
    transform: translate3d(0, 96px, 0) scale(0.82);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

/* Tarot card draw animation */
@keyframes tarotDeckBreathe {
  0%, 100% {
    filter: drop-shadow(0 0 0 rgba(223, 182, 107, 0));
  }
  50% {
    filter: drop-shadow(0 0 16px rgba(223, 182, 107, 0.18));
  }
}

@keyframes tarotDrawTravel {
  0% {
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.22));
    transform: translate3d(var(--draw-x, 0), var(--draw-y, 0), 0) rotateZ(var(--draw-rotate, -4deg)) scale(0.9);
  }
  22% {
    filter: drop-shadow(0 30px 34px rgba(0, 0, 0, 0.32));
    transform: translate3d(var(--draw-mid-x, 0), var(--draw-mid-y, -82px), 0) rotateZ(calc(var(--draw-rotate, -4deg) * -0.45)) scale(1.05);
  }
  58% {
    filter: drop-shadow(0 38px 42px rgba(0, 0, 0, 0.38));
    transform: translate3d(var(--draw-lift-x, 0), var(--draw-lift-y, -124px), 0) rotateZ(calc(var(--draw-rotate, -4deg) * -0.2)) scale(1.08);
  }
  100% {
    filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
    transform: translate3d(0, 0, 0) rotateZ(0deg) scale(1);
  }
}

@keyframes tarotDrawFlip {
  0%, 42% {
    transform: rotateY(0deg);
  }
  72% {
    transform: rotateY(108deg);
  }
  100% {
    transform: rotateY(180deg);
  }
}

@keyframes tarotDrawFlipLeft {
  0%, 42% {
    transform: rotateY(0deg);
  }
  72% {
    transform: rotateY(104deg);
  }
  100% {
    transform: rotateY(180deg);
  }
}

@keyframes tarotDrawFlipRight {
  0%, 42% {
    transform: rotateY(0deg);
  }
  72% {
    transform: rotateY(112deg);
  }
  100% {
    transform: rotateY(180deg);
  }
}

/* Modal animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ============================================================
   MEDIA QUERIES
   ============================================================ */

@media (max-width: 1320px) {
  main {
    width: min(100% - 32px, 1440px);
  }

  .site-header {
    padding: 12px 24px;
  }

  nav {
    gap: 6px;
  }

  nav a,
  .ghost-button,
  .header-cta {
    padding: 8px 10px;
  }

  .portal-hero {
    min-height: 560px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-center {
    width: min(980px, calc(100vw - 48px));
  }

  h1 {
    font-size: clamp(48px, 6vw, 78px);
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .hero-search {
    grid-template-columns: 140px minmax(88px, 0.9fr) 150px 124px minmax(108px, 1fr) 118px;
  }

  .hero-astrolabe {
    width: min(330px, 28vw);
    left: clamp(12px, 2.2vw, 34px);
    top: 58px;
    opacity: 0.72;
  }

  .service-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .site-header { flex-wrap: wrap; gap: 12px; }
  nav { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; }
  .service-strip { grid-template-columns: repeat(3, 1fr); }
  .dashboard-row { grid-template-columns: 1fr; }
  .advantage-grid { grid-template-columns: repeat(4, 1fr); }
  .studio-section,
  .tool-lab { grid-template-columns: 1fr; }
  .tool-paid { grid-template-columns: 1fr; }
  .technical-table { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chart-wheel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: none;
  }
  .chart-center,
  .chart-node {
    grid-area: auto !important;
  }
  .chart-center {
    grid-column: 1 / -1;
    min-height: 160px;
  }
  .ziwei-chart {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-areas:
      "p0 p1 p2 p3"
      "p4 center center p5"
      "p6 center center p7"
      "p8 p9 p10 p11";
  }
  .ziwei-center {
    grid-area: center;
  }
  .input-panel { position: static; }
}

@media (max-width: 780px) {
  body {
    cursor: auto;
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
  }
  button, a, input, select { cursor: pointer; }
  .cursor-orb { display: none; }
  .particle-canvas { display: none; }
  main { width: min(100% - 20px, 1440px); }
  .site-header {
    flex-wrap: nowrap;
    min-height: 64px;
    gap: 6px;
    padding: 10px 8px;
  }
  .brand-link {
    min-width: 0;
    flex: 1 1 auto;
    gap: 8px;
  }
  .brand-mark {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }
  .brand-link strong {
    max-width: 88px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 17px;
    white-space: nowrap;
  }
  .brand-link small { display: none; }
  .site-header > .header-actions {
    display: flex;
    flex: 0 0 auto;
    margin-left: 0;
    margin-right: 46px;
    gap: 4px;
    align-items: center;
  }
  .header-quick-actions .ghost-button,
  .header-quick-actions .header-cta {
    width: 44px;
    min-height: 32px;
    padding: 6px 5px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
  }
  .header-quick-actions .ghost-button {
    border-color: rgba(245, 217, 154, 0.22);
    background: rgba(5, 7, 19, 0.42);
  }
  .header-quick-actions .header-cta {
    padding-inline: 5px;
  }
  .header-language-select {
    width: 40px;
    min-height: 32px;
    gap: 0;
    justify-content: center;
    padding: 0;
    border-radius: 999px;
  }
  .header-language-select span {
    display: none;
  }
  .header-language-select::after {
    content: attr(data-short-label);
    display: block;
    width: 100%;
    color: var(--gold-2);
    font-size: 11px;
    font-weight: 900;
    line-height: 32px;
    text-align: center;
    pointer-events: none;
  }
  .header-language-select select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
  }
  .mobile-nav-actions { display: none; }

  /* Show hamburger on mobile, hide desktop nav */
  .hamburger {
    top: 12px;
    right: 8px;
    display: flex;
  }
  .mobile-nav.is-open { display: flex; }
  nav { display: none; }

  .portal-hero {
    min-height: auto;
    padding: 58px 18px 42px;
  }
  .portal-hero-bg {
    object-position: center top;
    opacity: 0.78;
  }
  h1 { font-size: 48px; }
  .hero-subtitle { font-size: 16px; }
  .hero-search {
    grid-template-columns: 1fr;
    border-radius: 10px;
  }
  .hero-field {
    min-height: 58px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px 14px;
  }
  .hero-search select,
  .hero-search input {
    min-height: 26px;
  }
  .hero-search button {
    min-height: 54px;
  }
  .daily-return-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px 10px;
    width: 100%;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
  }
  .daily-return-strip a {
    min-height: 30px;
  }
  .hero-astrolabe {
    left: -80px;
    top: 80px;
    width: 220px;
    opacity: 0.38;
  }
  .mobile-focus-actions {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 14px 0 18px;
  }
  .mobile-focus-actions a {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 10px 12px;
    align-items: center;
    border: 1px solid rgba(245, 217, 154, 0.34);
    border-radius: 10px;
    padding: 14px;
    background:
      linear-gradient(135deg, rgba(245, 217, 154, 0.13), rgba(7, 9, 23, 0.88)),
      rgba(7, 9, 23, 0.82);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
  }
  .mobile-focus-actions span {
    grid-row: span 2;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(245, 217, 154, 0.42);
    border-radius: 50%;
    color: var(--gold-2);
    font-weight: 900;
  }
  .mobile-focus-actions strong {
    color: var(--ink);
    font-size: 19px;
  }
  .mobile-focus-actions small {
    color: var(--muted);
    line-height: 1.45;
  }
  .mobile-sticky-cta {
    position: fixed;
    left: 50%;
    bottom: calc(8px + env(safe-area-inset-bottom));
    z-index: 80;
    width: min(calc(100vw - 28px), 480px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    padding: 7px;
    border: 1px solid rgba(245, 217, 154, 0.22);
    border-radius: 12px;
    background: rgba(5, 7, 19, 0.88);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 120%);
    transition: opacity 180ms ease, transform 180ms ease;
  }
  .mobile-sticky-cta.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }
  .mobile-sticky-cta a {
    display: grid;
    place-items: center;
    min-width: 0;
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(223, 182, 107, 0.28);
    border-radius: 8px;
    background: linear-gradient(135deg, #f5d99a, #ba813d);
    color: #11121a;
    text-align: center;
  }
  .mobile-sticky-cta span,
  .mobile-sticky-cta strong {
    display: block;
  }
  .mobile-sticky-cta span {
    color: rgba(17, 18, 26, 0.68);
    font-size: 11px;
    font-weight: 800;
  }
  .mobile-sticky-cta strong {
    color: #11121a;
    font-size: 13px;
  }
  .advantage-grid,
  .tarot-question,
  .tarot-grid,
  .guide-grid,
  .chart-table,
  .tool-form,
  .field-grid,
  .segment-control,
  .site-footer {
    grid-template-columns: 1fr;
  }
  .tarot-answer {
    grid-template-columns: 1fr;
  }
  .naming-candidate-list {
    grid-template-columns: 1fr;
  }
  .naming-candidate-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .service-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 8px;
  }
  .service-card,
  .tool-card {
    min-height: 148px;
  }
  .service-card:not(.active) {
    padding: 16px 14px 14px;
  }
  .service-card:not(.active) strong {
    font-size: 19px;
  }
  .service-card:not(.active) small {
    line-height: 1.65;
  }
  .service-card.active,
  .tool-card.active {
    grid-column: 1 / -1;
    min-height: 166px;
    border-color: rgba(245, 217, 154, 0.58);
    background:
      linear-gradient(135deg, rgba(245, 217, 154, 0.16), rgba(7, 9, 23, 0.92)),
      rgba(7, 9, 23, 0.86);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  }
  .service-card.active strong,
  .tool-card.active strong {
    font-size: 23px;
  }
  .service-card.active {
    grid-column: auto;
    min-height: 148px;
    padding: 16px 14px 14px;
  }
  .service-card.active strong {
    font-size: 19px;
  }
  .service-card.active em {
    display: inline-flex;
    width: fit-content;
    border: 1px solid rgba(245, 217, 154, 0.32);
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(245, 217, 154, 0.1);
  }
  .service-card,
  .tool-card,
  .reveal-item,
  .reveal-item.is-visible,
  .service-card.reveal-item,
  .tool-card.reveal-item,
  .service-card.reveal-item.is-visible,
  .tool-card.reveal-item.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    animation: none !important;
    transition: border-color 180ms ease, background 180ms ease;
    will-change: auto;
    backface-visibility: visible;
    transform-style: flat;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .service-card::after,
  .tool-card::after {
    animation: none;
    opacity: 0.24;
  }
  .service-card > *,
  .tool-card > * {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .module-section { padding: 54px 0; }
  .section-heading {
    margin-bottom: 18px;
  }
  .section-heading h2 {
    font-size: clamp(30px, 9vw, 42px);
    line-height: 1.12;
  }
  .report-header {
    gap: 10px;
  }
  .report-header h2 {
    font-size: 25px;
    line-height: 1.18;
  }
  .report-snapshot {
    margin: 14px 0 12px;
    padding: 15px;
    border-radius: 9px;
  }
  .report-snapshot h3 {
    margin-bottom: 13px;
    font-size: 21px;
  }
  .snapshot-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .snapshot-grid div {
    min-height: auto;
    padding: 12px;
  }
  .snapshot-grid strong {
    font-size: 16px;
  }
  .snapshot-return-note {
    margin-top: 12px;
    font-size: 12px;
  }
  .report-history {
    margin-top: 14px;
    padding: 13px;
  }
  .history-head {
    align-items: flex-start;
  }
  .history-head h3 {
    font-size: 16px;
  }
  .history-head button {
    padding: 6px 10px;
  }
  .locked-panel {
    padding: 15px;
  }
  .unlock-hero h3 {
    font-size: 21px;
  }
  .unlock-value-row {
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 14px 0;
  }
  .return-tracker {
    padding: 12px;
  }
  .return-tracker-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .return-days {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .return-day:first-child {
    grid-column: 1 / -1;
  }
  .status-badge {
    padding: 5px 8px;
    font-size: 12px;
  }
  .report-focus-strip {
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 14px 0 12px;
  }
  .report-focus-strip div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
  }
  .report-focus-strip span {
    margin: 0;
  }
  .report-focus-strip strong {
    max-width: 52%;
    text-align: right;
    font-size: 16px;
  }
  .unlock-preview-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 14px 0;
  }
  .unlock-preview-grid div {
    padding: 12px;
  }
  .studio-section {
    gap: 14px;
  }
  .input-panel,
  .report-card,
  .empty-state,
  .tool-preview,
  .tarot-result,
  .reading-card,
  .guide-grid article,
  .advantage-panel,
  .course-panel,
  .case-panel {
    padding: 18px;
  }
  .bottom-cta {
    flex-direction: column;
    gap: 14px;
  }
  .bottom-cta strong {
    font-size: 20px;
  }
  .ai-lock {
    align-items: stretch;
    flex-direction: column;
  }
  .tool-unlock-panel .secondary-link,
  .tarot-unlock-panel .secondary-link {
    align-self: stretch;
    text-align: center;
  }
  .unlock-preview-grid.compact {
    grid-template-columns: 1fr;
  }

  /* Auth modal mobile */
  .auth-modal {
    width: calc(100vw - 24px);
    padding: 24px 20px;
    border-radius: 10px;
  }

  .auth-modal h2 {
    font-size: 20px;
  }

  /* Tarot responsive mobile - single column */
  .tarot-grid {
    grid-template-columns: 1fr;
  }

  /* Tarot card flip mobile */
  .tarot-card-wrap {
    width: 140px;
    height: 200px;
  }

  .ziwei-chart {
    margin: 16px 0;
    border-radius: 8px;
  }

  .ziwei-palace,
  .ziwei-center {
    min-height: 96px;
    padding: 8px 6px;
  }

  .ziwei-palace div {
    align-items: center;
    gap: 4px;
    font-size: 12px;
  }

  .ziwei-palace div span {
    font-size: 10px;
  }

  .ziwei-palace h4 {
    margin: 6px 0 5px;
    font-size: 13px;
    line-height: 1.25;
  }

  .ziwei-palace p {
    margin-bottom: 0;
    font-size: 11px;
    line-height: 1.35;
  }

  .ziwei-palace small {
    display: none;
  }

  .ziwei-palace.is-hit::before {
    right: 4px;
    top: 4px;
    padding: 1px 5px;
    font-size: 9px;
  }

  .ziwei-center {
    gap: 8px;
  }

  .ziwei-center h4 {
    font-size: 15px;
  }

  .ziwei-center dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 8px;
  }

  .ziwei-center dt {
    font-size: 10px;
  }

  .ziwei-center dd {
    font-size: 12px;
  }

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

  .orbit-choice button {
    padding: 6px 2px;
    font-size: 11px;
  }

  .ziwei-center p {
    font-size: 11px;
    line-height: 1.45;
  }

  /* Book card responsive */
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .guide-grid article {
    min-height: auto;
  }

  .book-card .book-body {
    padding: 12px 18px;
  }

  .book-action {
    padding: 10px 18px 0;
  }

  /* Reader responsive */
  .reader-overlay {
    padding: 0;
  }

  .reader-modal {
    width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }

  .reader-topbar {
    padding: 12px 16px;
  }

  .reader-body {
    padding: 20px 16px 28px;
  }

  .reader-body h2 {
    font-size: 20px;
  }

  .reader-body p {
    font-size: 14px;
  }

  /* Cases modal responsive */
  .cases-overlay {
    padding: 0;
  }

  .cases-modal {
    width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }

  .cases-topbar {
    padding: 12px 16px;
  }

  .cases-scroll {
    padding: 16px;
  }

  .case-entry-header strong {
    font-size: 14px;
  }

  .case-entry p {
    font-size: 13px;
  }
}
