/* ── Variables ── */
:root {
  --bg:        #07070f;
  --bg-card:   #0f0f1c;
  --border:    rgba(255,255,255,0.08);
  --gold:      #f0c040;
  --gold-dim:  rgba(240,192,64,0.15);
  --text:      #f0f0ff;
  --muted:     rgba(240,240,255,0.45);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --el-wood:   #22c55e;
  --el-fire:   #ef4444;
  --el-earth:  #f59e0b;
  --el-metal:  #94a3b8;
  --el-water:  #3b82f6;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input  { font-family: inherit; }

/* ── Screen System ── */
.screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(30px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.screen.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

/* ── Utility ── */
.hide { display: none !important; }

/* ── Stars (splash bg) ── */
.stars { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation: twinkle var(--dur, 3s) infinite alternate;
}
@keyframes twinkle { from { opacity: 0.1; } to { opacity: 0.9; } }

/* ────────────────────────
   SPLASH
──────────────────────── */
#splash {
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 64px;
  background: radial-gradient(ellipse at 50% 30%, #1a0a3d 0%, #07070f 65%);
}

.splash-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  padding: 0 32px;
}

.logo-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.logo-vert { width: 130px; height: auto; }
.nav-logo { height: 22px; width: auto; display: block; flex-shrink: 0; }
.header-left { display: flex; align-items: center; gap: 12px; }

.logo-chinese {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 48px;
  font-weight: 700;
  background: linear-gradient(135deg, #f0c040, #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(240,192,64,0.4)); }
  50%       { filter: drop-shadow(0 0 20px rgba(240,192,64,0.8)); }
}

.logo-text {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text);
}

.logo-sub {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
}

.splash-tagline {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #f0c040, #e08020);
  color: #1a0a00;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 24px rgba(240,192,64,0.35);
}
.btn-primary:active { transform: scale(0.96); }
.btn-primary.btn-full { width: 100%; justify-content: center; margin-top: 8px; }
.btn-char {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 20px;
  line-height: 1;
}

.btn-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  color: var(--text);
  transition: background 0.2s;
}
.btn-back:active { background: rgba(255,255,255,0.14); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-secondary:active { background: rgba(255,255,255,0.14); }

/* ────────────────────────
   INPUT SCREEN
──────────────────────── */
#input { background: var(--bg); overflow-y: auto; overflow-x: hidden; }

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 56px 20px 16px;
  flex-shrink: 0;
}
.nav-title { font-size: 17px; font-weight: 600; }

.input-body { padding: 8px 24px 48px; display: flex; flex-direction: column; gap: 32px; }

.input-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.intro-icon { font-size: 28px; color: var(--gold); }
.input-intro p { font-size: 15px; color: var(--muted); line-height: 1.7; }
.input-intro strong { color: var(--text); }

/* Form */
#bazi-form { display: flex; flex-direction: column; gap: 20px; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 600; letter-spacing: 0.5px; color: var(--muted); }
.label-opt { font-weight: 400; font-size: 11px; opacity: 0.7; }
.label-req { color: var(--gold); }

.field input {
  background: rgba(255,255,255,0.05);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  padding: 16px 18px;
  font-size: 16px;
  font-family: inherit;
  width: 100%;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  color-scheme: dark;
}
.field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(240,192,64,0.12);
}
.field input::placeholder { color: rgba(255,255,255,0.2); }

.field-row { display: flex; flex-direction: row; align-items: flex-start; gap: 12px; }
.field-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.select-input {
  background: rgba(255,255,255,0.05);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  padding: 16px 18px;
  font-size: 16px;
  font-family: inherit;
  width: 100%;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  color-scheme: dark;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.select-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(240,192,64,0.12);
}
.select-input option { background: #13131f; }

/* ────────────────────────
   LOADING
──────────────────────── */
#loading {
  align-items: center;
  overflow: hidden;
  justify-content: center;
  background: var(--bg);
}

/* Stars canvas */
#loading-stars-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
}

/* Central glow pulse */
.loading-glow {
  position: absolute;
  top: 38%; left: 50%; transform: translate(-50%, -50%);
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,192,64,0.18) 0%, rgba(201,168,76,0.06) 40%, transparent 70%);
  animation: glow-pulse 2.5s ease-in-out infinite;
  z-index: 0;
}
@keyframes glow-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
  50% { transform: translate(-50%, -50%) scale(1.25); opacity: 1; }
}

.loading-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  position: relative; z-index: 1;
}

/* Bagua rings around the taiji */
.loading-bagua {
  position: relative;
  width: 160px; height: 160px;
  display: flex; align-items: center; justify-content: center;
}
.bagua-ring {
  position: absolute; border-radius: 50%;
  border: 1px dashed rgba(240,192,64,0.2);
}
.bagua-outer {
  inset: 0;
  animation: bagua-spin 20s linear infinite;
}
.bagua-inner {
  inset: 18px;
  border-color: rgba(255,107,107,0.15);
  animation: bagua-spin 14s linear infinite reverse;
}
@keyframes bagua-spin { to { transform: rotate(360deg); } }

/* Bagua trigram marks on the outer ring */
.bagua-outer::before {
  content: '☰ ☱ ☲ ☳ ☴ ☵ ☶ ☷';
  position: absolute; inset: -22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; letter-spacing: 6px;
  color: rgba(240,192,64,0.25);
  animation: bagua-spin 20s linear infinite reverse;
}

.taiji-wrap { position: relative; width: 100px; height: 100px; }

.taiji {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 2px;
  animation: taiji-spin 4s linear infinite;
  background: linear-gradient(135deg, #f0c040, #ff6b6b, #f0c040);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 16px rgba(240,192,64,0.5));
}
@keyframes taiji-spin { to { transform: rotate(360deg); } }

.taiji-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid transparent;
  animation: ring-spin 2s linear infinite;
}
.taiji-ring.r1 { border-top-color: rgba(240,192,64,0.5); animation-duration: 1.8s; }
.taiji-ring.r2 { inset: -10px; border-right-color: rgba(255,107,107,0.4); animation-duration: 2.4s; animation-direction: reverse; }
.taiji-ring.r3 { inset: -20px; border-bottom-color: rgba(100,100,255,0.3); animation-duration: 3s; }
@keyframes ring-spin { to { transform: rotate(360deg); } }

/* Floating Chinese characters */
.loading-hanzi-float {
  display: flex; gap: 12px; justify-content: center;
  margin-top: -8px;
}
.loading-hanzi-float span {
  font-size: 13px;
  color: rgba(240,192,64,0.15);
  animation: hanzi-drift 3s ease-in-out infinite;
}
.loading-hanzi-float span:nth-child(1) { animation-delay: 0s; }
.loading-hanzi-float span:nth-child(2) { animation-delay: 0.25s; }
.loading-hanzi-float span:nth-child(3) { animation-delay: 0.5s; }
.loading-hanzi-float span:nth-child(4) { animation-delay: 0.75s; }
.loading-hanzi-float span:nth-child(5) { animation-delay: 1s; }
.loading-hanzi-float span:nth-child(6) { animation-delay: 1.25s; }
.loading-hanzi-float span:nth-child(7) { animation-delay: 1.5s; }
.loading-hanzi-float span:nth-child(8) { animation-delay: 1.75s; }
@keyframes hanzi-drift {
  0%, 100% { transform: translateY(0); opacity: 0.15; }
  50% { transform: translateY(-6px); opacity: 0.45; }
}

.loading-msg {
  font-size: 14px; color: var(--gold); letter-spacing: 0.5px; min-height: 1.5em;
  text-shadow: 0 0 20px rgba(240,192,64,0.3);
  animation: msg-fade 0.38s ease-in-out;
}
@keyframes msg-fade {
  0% { opacity: 0; transform: translateY(4px); }
  100% { opacity: 1; transform: translateY(0); }
}

.loading-track {
  width: 200px; height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 100px;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(240,192,64,0.1);
}
.loading-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f0c040, #ff6b6b, #f0c040);
  background-size: 200% 100%;
  border-radius: 100px;
  transition: width 0.3s ease;
  animation: fill-shimmer 2s linear infinite;
}
@keyframes fill-shimmer {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

/* ────────────────────────
   RESULTS SCREEN
──────────────────────── */
#results { background: var(--bg); overflow: hidden; }

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  padding-top: max(12px, env(safe-area-inset-top));
  flex-shrink: 0;
  background: rgba(7,7,15,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

@keyframes mysticShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.greeting {
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(90deg, #f0c040, #c084fc, #f472b6, #818cf8, #f0c040);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: mysticShift 6s ease infinite;
}
/* Mobile: hide about/lang from header, shrink logo */
@media (max-width: 480px) {
  .results-header .nav-logo { height: 16px; }
  .results-header .btn-about-icon,
  .results-header .btn-lang { display: none; }

  /* ── Input screen mobile fix ── */
  #input .nav-bar { padding: 44px 16px 10px; }
  .input-body { padding: 4px 18px 32px; gap: 20px; }
  .input-intro { gap: 6px; }
  .intro-icon { font-size: 22px; }
  .input-intro p { font-size: 13px; line-height: 1.5; }
  #bazi-form { gap: 14px; }
  .field label { font-size: 12px; }
  .field input, .select-input { padding: 13px 14px; font-size: 16px; }
  .date-part { padding: 12px 2px 12px 6px; font-size: 15px; }
  .field-datetime .field-col-time { flex: 0 0 80px; }
  .field-row { gap: 8px; }
  .gender-opt { padding: 10px 14px; font-size: 14px; }
  .btn-primary.btn-full { padding: 14px; font-size: 15px; }
}
.greeting-zodiac {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.greeting-sub {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.6;
  margin-top: 2px;
  letter-spacing: 0.02em;
}

.btn-lang {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  color: var(--gold);
  padding: 7px 14px;
  border-radius: 100px;
  transition: background 0.2s;
}
.btn-lang:active { background: rgba(255,255,255,0.14); }
.btn-lang.zh-active { background: var(--gold-dim); border-color: var(--gold); }

.btn-about-icon {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: none;
  border: none;
  color: rgba(240,240,255,0.45);
  padding: 0;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(240,240,255,0.2);
  transition: color 0.2s;
  flex-shrink: 0;
}
.btn-about-icon:active { color: var(--gold); text-decoration-color: var(--gold); }

/* ── Results Tab Bar ── */
.results-tab-bar {
  background: rgba(7,7,15,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  flex-shrink: 0;
}
.tab-bar-inner {
  display: flex;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 3px;
  gap: 2px;
}
.tab-btn {
  flex: 1;
  padding: 9px 6px;
  background: transparent;
  border: none;
  border-radius: 100px;
  color: rgba(240,240,255,0.5);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: color 0.18s, background 0.18s;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
@keyframes tabGlow {
  0%, 100% { box-shadow: 0 0 6px rgba(240,192,64,0.5), 0 0 12px rgba(240,192,64,0.2); }
  50%       { box-shadow: 0 0 16px rgba(240,192,64,0.9), 0 0 28px rgba(240,192,64,0.4); }
}
.tab-btn.active {
  background: var(--gold);
  color: #07070f;
  animation: tabGlow 2.4s ease-in-out infinite;
}
.tab-btn:not(.active):active {
  background: rgba(255,255,255,0.08);
  color: var(--text);
}

.scroll-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px 80px;
  -webkit-overflow-scrolling: touch;
}

/* Sections */
.section { margin-bottom: 32px; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}
.section-head h3 { font-size: 18px; font-weight: 700; }
.section-sub { font-size: 12px; color: var(--muted); letter-spacing: 0.5px; }

/* ── Hero Card ── */
.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  animation: hero-shift 8s ease-in-out infinite alternate;
}
@keyframes hero-shift {
  from { filter: hue-rotate(0deg); }
  to   { filter: hue-rotate(30deg) brightness(1.1); }
}
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  padding: 28px 0 18px 24px;
  gap: 0;
}
.hero-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.hero-year-tag {
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.hero-name {
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1px;
}
.hero-chinese {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 18px;
  color: var(--gold);
  opacity: 0.85;
  letter-spacing: 5px;
  margin-top: 2px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}
.badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.4px;
  padding: 3px 9px;
  border-radius: 100px;
  background: rgba(255,255,255,0.13);
  backdrop-filter: blur(8px);
}
/* Medallion — large, right side, bleeds off edge */
.hero-medallion {
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  margin-right: -10px;
  order: 2;
}
.trait-pills {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 7px;
  padding: 2px 24px 24px;
  flex-wrap: wrap;
}
.trait-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(6px);
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ── Compact Today Summary hero ── */
.hero-compact {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}
.hc-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  padding: 16px 18px 16px 22px;
  gap: 10px;
  min-height: 160px;
}
.hc-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.hc-top-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.hc-today-lbl {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(240,240,255,0.4);
}
.hc-profile-chip {
  font-size: 10px;
  font-weight: 600;
  color: rgba(240,240,255,0.65);
  background: rgba(255,255,255,0.09);
  border-radius: 100px;
  padding: 3px 10px;
  white-space: nowrap;
}
.hc-zodiac-big {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin: 4px 0 10px;
  background: linear-gradient(90deg, #f0c040, #c084fc, #f472b6, #f0c040);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: mysticShift 6s ease infinite;
}
.hc-msg {
  font-size: 13px;
  font-weight: 500;
  color: rgba(240,240,255,0.82);
  line-height: 1.5;
}
.hc-bullets {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.hc-bullet {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 12px;
  color: rgba(240,240,255,0.62);
  line-height: 1.4;
}
.hc-bullet-key {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold);
  flex-shrink: 0;
  white-space: nowrap;
  min-width: 36px;
}
.hc-med {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: -6px;
}
/* Shrink the 158px hero medallion down to fit the compact card */
.hc-med .animal-medallion.hero-med {
  width: 78px;
  height: 78px;
  animation: none;
}
.hc-med .animal-medallion.hero-med .med-char { font-size: 16px; }
.hc-med .med-ring { display: none; }
.hc-med .med-halo { display: none; }

/* ── Pillars ── */
.pillars-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.pillar-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.pillar-label {
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.pillar-stem-char {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.pillar-stem-name { font-size: 10px; color: var(--muted); }
.pillar-sep {
  width: 1px; height: 16px;
  background: var(--border);
}
.pillar-branch-char {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}
.pillar-animal-emoji { font-size: 20px; }
.pillar-animal-name { font-size: 9px; color: var(--muted); }
.pillar-el-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  margin-top: 2px;
}
.pillar-card.dimmed { opacity: 0.3; }

/* ── Radar Chart ── */
.element-chart-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.radar-svg { width: 100%; max-width: 220px; overflow: visible; }

.element-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.legend-info { display: flex; flex-direction: column; gap: 2px; }
.legend-name { font-size: 12px; font-weight: 600; }
.legend-bar-track {
  width: 60px; height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 100px;
  overflow: hidden;
}
.legend-bar-fill { height: 100%; border-radius: 100px; transition: width 1s ease; }

/* ── Fortune ── */
.fortune-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.fortune-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.fortune-icon { font-size: 22px; }
.fortune-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.fortune-ring-wrap { position: relative; width: 70px; height: 70px; }
.fortune-ring-svg { width: 70px; height: 70px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 6; }
.ring-fill {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 0 138;
  transition: stroke-dasharray 1.4s ease;
}
.fortune-score {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

/* ── Gyroscope-style bento stat cards ── */
.fortune-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.gyro-stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 18px 16px 14px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  min-height: 150px;
}
.gyro-stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  border-radius: 20px 20px 0 0;
  background: var(--ga, var(--gold));
}
.gyro-stat-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240,240,255,0.38);
  margin-bottom: 4px;
}
.gyro-stat-num {
  font-size: 54px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -2px;
}
.gyro-stat-tier {
  font-size: 11px;
  font-weight: 600;
  color: rgba(240,240,255,0.5);
  margin-top: 4px;
}
.gyro-spark {
  margin-top: auto;
  padding-top: 8px;
}
.gyro-spark svg {
  width: 100%;
  height: 28px;
  overflow: visible;
}

/* ── Forecast sparkline ── */
.forecast-sparkline { padding: 0 20px 20px; }
.forecast-sparkline-svg { width: 100%; height: 52px; overflow: visible; }
.forecast-spark-labels {
  display: flex;
  justify-content: space-between;
  padding: 2px 1px 0;
}
.forecast-spark-labels span {
  font-size: 8px;
  color: rgba(240,240,255,0.28);
  letter-spacing: 0;
}

/* ── Reading Card ── */
.reading-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.reading-card p {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  line-height: 1.8;
}

/* ── Compatibility ── */
.compat-group { margin-bottom: 16px; }
.compat-group-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.compat-row { display: flex; gap: 8px; flex-wrap: wrap; }
.compat-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
}
.compat-chip.good { background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.3); color: #4ade80; }
.compat-chip.bad  { background: rgba(239,68,68,0.10); border: 1px solid rgba(239,68,68,0.25); color: #f87171; }

/* ── Lucky Grid ── */
.lucky-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.lucky-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lucky-icon { font-size: 22px; }
.lucky-title { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.lucky-values { display: flex; flex-direction: column; gap: 4px; }
.lucky-val { font-size: 12px; font-weight: 600; color: var(--text); }

/* ── Footer ── */
.results-footer {
  display: flex; flex-direction: column; align-items: center;
  padding: 32px 20px 40px;
  margin-top: 20px;
  border-top: 1px solid var(--border);
  gap: 16px;
  text-align: center;
}
.footer-actions {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
}
.footer-link {
  font-size: 13px; font-weight: 600; color: var(--gold);
  background: none; border: none; cursor: pointer; font-family: inherit;
  padding: 0; transition: opacity 0.2s;
}
.footer-link:hover { opacity: 0.8; }
.footer-dot { color: var(--muted); font-size: 10px; }
.footer-brand {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  margin-top: 8px;
}
.footer-logo { height: 16px; opacity: 0.5; }
.footer-tagline { font-size: 11px; color: var(--muted); letter-spacing: 0.5px; }
.footer-copy { font-size: 10px; color: rgba(255,255,255,0.3); }
.footer-disclaimer { font-size: 9px; color: rgba(255,255,255,0.2); line-height: 1.5; max-width: 300px; }

/* ── Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: reveal-up 0.5s ease forwards;
}
@keyframes reveal-up {
  to { opacity: 1; transform: translateY(0); }
}

/* ────────────────────────
   HEADER ACTIONS
──────────────────────── */
.header-actions { display: flex; align-items: center; gap: 8px; }

.btn-share-icon {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  color: var(--text);
  transition: background 0.2s;
}
.btn-share-icon:active { background: rgba(255,255,255,0.14); }

/* ────────────────────────
   DATE TRIO INPUT
──────────────────────── */
.date-trio {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.date-trio:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(240,192,64,0.12);
}
.date-part {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  font-weight: 600;
  padding: 14px 2px 14px 8px;
  flex: 1;
  min-width: 0;
  outline: none;
  -moz-appearance: textfield;
}
.date-part.year { flex: 1.6; }
.date-part::-webkit-inner-spin-button,
.date-part::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.date-sep {
  font-size: 18px;
  font-weight: 300;
  color: var(--muted);
  padding: 0 1px;
  user-select: none;
  flex-shrink: 0;
}

/* Date + Time row */
.field-datetime { align-items: flex-start; }
.field-datetime .field-col-date { flex: 1 1 0; min-width: 0; }
.field-datetime .field-col-time { flex: 0 0 90px; min-width: 0; }
.date-trio { width: 100%; }
.time-input {
  background: rgba(255,255,255,0.05);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  padding: 16px 10px;
  font-size: 16px;
  font-family: inherit;
  width: 100%;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  color-scheme: dark;
  box-sizing: border-box;
}
.time-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(240,192,64,0.12);
}

/* ────────────────────────
   ANIMAL MEDALLION
──────────────────────── */
.animal-medallion {
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative; flex-shrink: 0;
  overflow: hidden;
}
/* Outer pulsing halo (hero only, rendered outside overflow via absolute) */
.med-halo {
  position: absolute; inset: -18%;
  border-radius: 50%;
  opacity: 0.08;
  animation: halo-pulse 3.5s ease-in-out infinite alternate;
  pointer-events: none; z-index: 0;
}
@keyframes halo-pulse {
  from { transform: scale(0.92); opacity: 0.05; }
  to   { transform: scale(1.08); opacity: 0.16; }
}
/* Slowly rotating constellation star layer */
.med-stars {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  animation: stars-rotate 70s linear infinite;
  z-index: 1; pointer-events: none;
}
@keyframes stars-rotate { to { transform: rotate(360deg); } }
/* Two concentric rings */
.med-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  pointer-events: none;
}
.med-ring.med-r1 {
  border: 2px solid rgba(255,255,255,0.22);
  animation: med-pulse 4s ease-in-out infinite alternate;
  z-index: 2;
}
.med-ring.med-r2 {
  inset: 10%;
  border: 1px dashed rgba(255,255,255,0.12);
  animation: ring2-spin 28s linear infinite;
  z-index: 2;
}
@keyframes med-pulse {
  from { box-shadow: 0 0 0 0 rgba(255,255,255,0.1); }
  to   { box-shadow: 0 0 18px 5px rgba(255,255,255,0.16); }
}
@keyframes ring2-spin { to { transform: rotate(360deg); } }
/* Animal SVG — above the rings */
.med-anim {
  width: 65%; height: 65%;
  position: relative; z-index: 3;
}
/* Branch-character watermark (hero only) */
.med-char {
  position: absolute; bottom: 11%; right: 9%;
  font-family: 'Noto Sans SC', sans-serif;
  font-weight: 700; line-height: 1;
  color: white; opacity: 0.15;
  z-index: 4; pointer-events: none;
  font-size: 13px;
}
.animal-medallion.hero-med .med-char { font-size: 32px; opacity: 0.13; }
.animal-medallion.hero-med {
  width: 158px; height: 158px;
  animation: float 4s ease-in-out infinite;
  overflow: visible; /* let halo bleed outside */
}
.animal-medallion.pillar-med { width: 36px; height: 36px; }

/* ────────────────────────
   DAILY FORTUNE CARD
──────────────────────── */
.daily-fortune-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}
.daily-top {
  display: flex; align-items: center; gap: 16px;
  padding: 20px;
}
.daily-animal-chip {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 100px;
  padding: 8px 14px;
  font-size: 13px; font-weight: 600;
}
.daily-score-wrap {
  margin-left: auto;
  text-align: center;
}
.daily-score-num {
  font-size: 52px; font-weight: 700; line-height: 1;
}
.daily-score-label {
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted); margin-top: 2px;
}
.daily-bar-track {
  height: 3px;
  background: rgba(255,255,255,0.08);
  margin: 0 20px;
  border-radius: 100px; overflow: hidden;
}
.daily-bar-fill {
  height: 100%; border-radius: 100px;
  width: 0%;
  transition: width 1.2s ease;
}
.daily-msg {
  padding: 14px 20px 20px;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
}
.daily-level-dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block; margin-right: 6px;
}

/* ────────────────────────
   CAREER ARCHETYPE
──────────────────────── */
.career-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 22px;
  background: rgba(255,255,255,0.04);
  display: flex; gap: 18px; align-items: center;
}
.career-icon-wrap {
  font-size: 48px; line-height: 1; flex-shrink: 0;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.4));
}
.career-info { flex: 1; }
.career-archetype-name {
  font-size: 20px; font-weight: 700; margin-bottom: 4px;
}
.career-tagline {
  font-size: 12px; color: var(--muted); letter-spacing: 0.5px; margin-bottom: 10px;
}
.career-roles {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.career-role-chip {
  font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 100px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
}

/* ────────────────────────
   POWER SEASON
──────────────────────── */
.season-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}
.season-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: 8px;
}
.season-segment { height: 100%; }
.season-body {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.season-item {
  padding: 14px 12px;
  display: flex; flex-direction: column; gap: 6px;
  align-items: center; text-align: center;
  border-right: 1px solid var(--border);
  transition: background 0.3s;
}
.season-item:last-child { border-right: none; }
.season-item.active {
  background: rgba(255,255,255,0.06);
}
.season-emoji { font-size: 22px; }
.season-name {
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--muted);
}
.season-item.active .season-name { color: var(--text); }
.season-vibe { font-size: 10px; color: var(--muted); line-height: 1.4; }
.power-badge {
  font-size: 9px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; padding: 3px 8px; border-radius: 100px;
  background: var(--gold); color: #1a0a00;
}

/* ────────────────────────
   YIN YANG BALANCE
──────────────────────── */
.yinyang-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 22px;
  background: rgba(255,255,255,0.04);
}
.yy-row {
  display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
}
.yy-label {
  font-size: 13px; font-weight: 700; width: 32px; text-align: center;
}
.yy-track {
  flex: 1; height: 12px;
  background: rgba(255,255,255,0.06);
  border-radius: 100px; overflow: hidden;
  position: relative;
}
.yy-fill-yin {
  position: absolute; left: 0; top: 0; height: 100%;
  background: linear-gradient(90deg, #a78bfa, #7c3aed);
  border-radius: 100px; width: 0%; transition: width 1.2s ease;
}
.yy-fill-yang {
  position: absolute; right: 0; top: 0; height: 100%;
  background: linear-gradient(90deg, #fcd34d, #f59e0b);
  border-radius: 100px; width: 0%; transition: width 1.2s ease;
}
.yy-count {
  font-size: 20px; font-weight: 700; width: 32px; text-align: center;
}
.yy-summary {
  font-size: 13px; color: var(--muted); text-align: center; margin-top: 4px;
}
.yy-symbols {
  display: flex; justify-content: center; gap: 8px; margin-top: 12px;
}
.yy-dot {
  width: 10px; height: 10px; border-radius: 50%;
  flex-shrink: 0;
}
.yy-dot.yin  { background: #7c3aed; }
.yy-dot.yang { background: #f59e0b; }

/* ────────────────────────
   SHARE OVERLAY
──────────────────────── */
.share-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
}
.share-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
}
.share-panel {
  position: relative; z-index: 1;
  width: 100%; max-width: 420px;
  padding: 20px 20px 40px;
  display: flex; flex-direction: column; gap: 16px;
  background: #0f0f1c;
  border-top: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.share-card-preview {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(145deg, #1a0a3d, #0f0a2a);
  padding: 28px 20px 22px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center;
  border: 1.5px solid rgba(240,192,64,0.3);
  position: relative;
}
/* Sparkle decorations */
.share-card-preview::before {
  content: '✦';
  position: absolute; top: 12px; left: 16px;
  font-size: 10px; color: rgba(240,192,64,0.3);
  animation: sparkle-float 3s ease-in-out infinite;
}
.share-card-preview::after {
  content: '✦';
  position: absolute; top: 18px; right: 20px;
  font-size: 7px; color: rgba(192,132,252,0.3);
  animation: sparkle-float 2.5s ease-in-out infinite 0.5s;
}
@keyframes sparkle-float {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
  50% { transform: translateY(-4px) scale(1.3); opacity: 0.7; }
}
.share-wobazi-logo {
  font-size: 11px; font-weight: 800; letter-spacing: 4px;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--gold), #c084fc, var(--gold));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: mysticShift 4s ease infinite;
}
/* Animal with glow */
.share-animal-wrap {
  position: relative; width: 100px; height: 100px;
  display: flex; align-items: center; justify-content: center;
}
.share-animal-glow {
  position: absolute; inset: -10px;
  border-radius: 50%; opacity: 0.18;
  filter: blur(16px); pointer-events: none;
}
/* Archetype badge */
.share-archetype-badge {
  font-size: 10px; font-weight: 800; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--gold);
  background: rgba(240,192,64,0.1);
  border: 1px solid rgba(240,192,64,0.28);
  border-radius: 100px; padding: 4px 16px;
}
/* Chinese name section */
.share-cn-name-section {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 16px; padding: 13px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.share-cn-label {
  font-size: 9px; font-weight: 700; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--muted);
}
.share-cn-chars {
  display: flex; gap: 8px; width: 100%; justify-content: center;
}
.share-cn-char-block {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 12px; padding: 10px 6px;
}
.share-cn-han {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 30px; font-weight: 700; line-height: 1;
}
.share-cn-pin {
  font-size: 10px; font-weight: 600; color: var(--gold); letter-spacing: 0.3px;
}
.share-cn-mn {
  font-size: 8px; color: var(--muted); text-align: center; line-height: 1.35;
}
/* Verdict quote */
.share-verdict {
  font-size: 12px; font-style: italic; font-weight: 500;
  line-height: 1.6; text-align: center;
  color: rgba(255,255,255,0.82);
  padding: 4px 6px;
  border-left: 2px solid var(--gold);
  margin: 0 6px; text-align: left;
}
.share-fortune-row {
  display: flex; gap: 8px; width: 100%;
}
.share-fortune-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 12px; padding: 10px 6px;
}
.share-fortune-icon { font-size: 14px; }
.share-fortune-score { font-size: 17px; font-weight: 700; }
.share-fortune-lbl { font-size: 8px; letter-spacing: 0.8px; color: var(--muted); text-transform: uppercase; }
.share-cta-line {
  font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  background: linear-gradient(90deg, #f0c040, #c084fc, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.share-url { font-size: 10px; color: var(--muted); letter-spacing: 1.5px; margin-top: 2px; }

.share-buttons { display: flex; flex-direction: column; gap: 10px; }
.btn-share-action {
  padding: 16px; border-radius: 100px;
  font-size: 15px; font-weight: 700; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  cursor: pointer; transition: transform 0.15s, opacity 0.2s;
}
.btn-share-action:active { transform: scale(0.97); }
.btn-share-action.primary-share {
  background: linear-gradient(135deg, #f0c040, #e08020);
  color: #1a0a00; border: none;
}
.btn-share-action.secondary-share {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border); color: var(--text);
}

/* ────────────────────────
   TOOLTIP / TIP OVERLAY
──────────────────────── */
.tip-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s ease;
}
.tip-overlay.active {
  pointer-events: all;
  opacity: 1;
}
.tip-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
}
.tip-sheet {
  position: relative; z-index: 1;
  width: 100%; max-width: 480px;
  background: #12122a;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px 24px 0 0;
  padding: 0 0 44px;
  transform: translateY(100%);
  transition: transform 0.42s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.tip-overlay.active .tip-sheet { transform: translateY(0); }

.tip-handle {
  width: 36px; height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  margin: 14px auto 0;
}
.tip-icon {
  font-size: 34px; text-align: center;
  padding: 16px 24px 0; line-height: 1;
}
.tip-title-en {
  font-size: 20px; font-weight: 700;
  padding: 10px 24px 2px; color: var(--text);
}
.tip-title-zh {
  font-size: 12px; font-weight: 600;
  padding: 0 24px 0; color: var(--muted);
  font-family: 'Noto Sans SC', sans-serif;
}
.tip-body-en {
  font-size: 14px; line-height: 1.8;
  color: rgba(255,255,255,0.75);
  padding: 12px 24px 0;
}
.tip-body-zh {
  font-size: 13px; line-height: 1.8;
  color: rgba(255,255,255,0.5);
  font-family: 'Noto Sans SC', sans-serif;
  padding: 8px 24px 0;
}
.tip-close {
  display: block;
  width: calc(100% - 48px);
  margin: 20px 24px 0;
  padding: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  font-size: 14px; font-weight: 700;
  color: var(--text); text-align: center;
  cursor: pointer; font-family: inherit;
  transition: background 0.2s;
}
.tip-close:active { background: rgba(255,255,255,0.16); }

/* Tappable section heads */
.section-head[data-tip] { cursor: pointer; }
.section-head[data-tip]::after {
  content: 'ⓘ';
  font-size: 15px;
  color: rgba(255,255,255,0.22);
  margin-left: auto;
  flex-shrink: 0;
}

/* ────────────────────────
   2026 ANNUAL FORECAST
──────────────────────── */
.forecast-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.forecast-year-badge {
  position: absolute; top: 14px; right: 14px;
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase;
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.28);
  color: #ef4444;
  padding: 4px 10px; border-radius: 100px;
}
.forecast-top {
  padding: 24px 24px 8px;
  display: flex; flex-direction: column; align-items: center;
}
.forecast-arc-wrap {
  position: relative;
  width: 200px; height: 120px;
  flex-shrink: 0;
}
.forecast-arc-svg { width: 200px; height: 120px; overflow: visible; }
.forecast-score-over {
  position: absolute;
  bottom: 2px; left: 50%;
  transform: translateX(-50%);
  text-align: center;
}
.forecast-score-num {
  font-size: 46px; font-weight: 700; line-height: 1;
  background: linear-gradient(135deg, #f0c040, #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.forecast-score-pct {
  font-size: 11px; font-weight: 600;
  color: var(--muted); letter-spacing: 1px;
  text-transform: uppercase; margin-top: 1px;
}
.forecast-label {
  font-size: 15px; font-weight: 700;
  text-align: center; margin-top: 10px;
}
.forecast-sublabel {
  font-size: 12px; color: var(--muted);
  text-align: center; margin-top: 3px; margin-bottom: 16px;
}
.forecast-aspects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 16px 16px;
}
.aspect-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
}
.aspect-header {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.aspect-name {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--muted);
}
.aspect-score { font-size: 22px; font-weight: 700; }
.aspect-bar-track {
  height: 5px; background: rgba(255,255,255,0.08);
  border-radius: 100px; overflow: hidden;
}
.aspect-bar-fill {
  height: 100%; border-radius: 100px;
  width: 0%; transition: width 1.4s ease;
}
.forecast-monthly { padding: 0 16px 16px; }
.forecast-monthly-title {
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 10px;
}
.forecast-monthly-title[data-tip] { cursor: pointer; }
.forecast-monthly-title[data-tip]::after {
  content: ' ⓘ';
  font-size: 11px;
  opacity: 0.6;
}
.month-bars {
  display: flex; align-items: flex-end;
  gap: 3px; height: 68px;
}
.month-bar-col {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  height: 100%; justify-content: flex-end;
}
.month-bar {
  width: 100%; border-radius: 3px 3px 0 0;
  min-height: 4px;
  transition: height 1.1s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.month-bar-label {
  font-size: 7px; font-weight: 600;
  color: var(--muted); letter-spacing: 0.3px;
  text-transform: uppercase;
}
.forecast-insight {
  padding: 16px 20px 20px;
  font-size: 13px; line-height: 1.8;
  color: rgba(255,255,255,0.7);
  border-top: 1px solid var(--border);
}
.forecast-insight-zh {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 12px; color: rgba(255,255,255,0.45);
  margin-top: 8px;
}

/* ────────────────────────
   WORK & CAREER
──────────────────────── */
.work-card-inner {
  border-color: rgba(139,92,246,0.2) !important;
  background: rgba(139,92,246,0.03) !important;
}
.work-score-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.work-score-num {
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}
.work-score-label {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
}
.work-now { outline-color: #8b5cf6 !important; }
.work-now::before { background: #8b5cf6 !important; }

/* ────────────────────────
   LOVE & RELATIONSHIPS
──────────────────────── */
.love-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(244,63,94,0.2);
  background: rgba(244,63,94,0.04);
  overflow: hidden;
}
.love-top {
  padding: 28px 24px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.love-heart-wrap {
  position: relative;
  width: 130px; height: 114px;
}
.love-heart-svg { width: 130px; height: 114px; overflow: visible; }
.love-score-over {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -46%);
  display: flex; align-items: baseline; gap: 1px;
  pointer-events: none;
}
.love-score-num {
  font-size: 36px; font-weight: 700; line-height: 1; color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}
.love-score-pct { font-size: 15px; font-weight: 700; color: rgba(255,255,255,0.8); }
.love-tier-label { font-size: 15px; font-weight: 700; }
.love-sublabel { font-size: 12px; color: var(--muted); text-align: center; }

/* Archetype row */
.love-archetype {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; margin: 4px 16px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
}
.love-archetype-emoji { font-size: 36px; line-height: 1; flex-shrink: 0; }
.love-archetype-info { flex: 1; min-width: 0; }
.love-archetype-title { font-size: 17px; font-weight: 700; margin-bottom: 2px; }
.love-archetype-tagline { font-size: 11px; color: var(--muted); letter-spacing: 0.4px; margin-bottom: 8px; }
.love-traits { display: flex; flex-wrap: wrap; gap: 5px; }
.love-trait {
  font-size: 10px; font-weight: 600;
  padding: 3px 9px; border-radius: 100px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
}
.love-lang-badge {
  display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0;
}
.love-lang-icon { font-size: 22px; }
.love-lang-text {
  font-size: 8px; font-weight: 700; letter-spacing: 0.5px;
  color: var(--muted); text-align: center; text-transform: uppercase; max-width: 56px; line-height: 1.3;
}

/* Description */
.love-desc {
  padding: 14px 20px 4px;
  font-size: 13px; line-height: 1.8;
  color: rgba(255,255,255,0.7);
}

/* Soul animals / matches */
.love-matches {
  padding: 14px 20px 20px;
  border-top: 1px solid rgba(244,63,94,0.12);
  margin-top: 12px;
}
.love-match-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.love-soul-row, .love-clash-row { display: flex; gap: 7px; flex-wrap: wrap; }
.love-soul-chip {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 100px;
  border: 1px solid; font-size: 12px; font-weight: 600;
  transition: opacity 0.2s;
}
.love-clash-chip {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,0.45);
}

/* Monthly Love Advice Strip */
.love-months-wrap {
  border-top: 1px solid rgba(244,63,94,0.12);
  padding-top: 16px;
}
.love-months-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--muted);
  padding: 0 20px; margin-bottom: 10px;
}
.love-months-strip {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding: 0 20px 12px;
}
.love-months-strip::-webkit-scrollbar { display: none; }
.love-months-row { display: flex; gap: 8px; width: max-content; }
.love-month-tile {
  width: 84px; flex-shrink: 0;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 14px; padding: 12px 8px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
}
.love-month-tile.level-high { border-color: rgba(244,63,94,0.38); background: rgba(244,63,94,0.08); }
.love-month-tile.level-mid  { border-color: rgba(251,146,60,0.3);  background: rgba(251,146,60,0.06); }
.love-month-tile.level-low  { border-color: rgba(148,163,184,0.18); }
.love-month-tile.now-month {
  outline: 2px solid #f43f5e; outline-offset: 2px; position: relative;
}
.love-month-tile.now-month::before {
  content: 'NOW'; position: absolute; top: -11px; left: 50%;
  transform: translateX(-50%);
  font-size: 7px; font-weight: 900; letter-spacing: 1px;
  background: #f43f5e; color: #fff;
  padding: 2px 6px; border-radius: 100px;
}
.love-month-name { font-size: 9px; font-weight: 700; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
.love-month-emoji { font-size: 22px; line-height: 1; }
.love-month-action { font-size: 10px; font-weight: 700; text-align: center; line-height: 1.3; }
.love-month-sub { font-size: 8px; text-align: center; line-height: 1.3; color: var(--muted); }

/* Expanded Soul Animal Cards */
.love-soul-cards { display: flex; flex-direction: column; gap: 9px; }
.love-soul-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 14px;
}
.love-soul-info { flex: 1; min-width: 0; }
.love-soul-name { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.love-soul-note { font-size: 11px; color: rgba(255,255,255,0.5); margin-bottom: 7px; font-style: italic; }
.love-soul-years { display: flex; flex-wrap: wrap; gap: 4px; }
.love-soul-year {
  font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 100px;
  background: rgba(255,255,255,0.07); border: 1px solid var(--border); color: rgba(255,255,255,0.55);
}

/* ────────────────────────
   ORACLE TAB
──────────────────────── */
.orc-section { padding: 0 !important; }

/* Intro card */
.orc-intro-card {
  margin: 16px 16px 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(240,192,64,0.2);
  padding: 24px 20px 22px;
}
.orc-intro-eyebrow {
  font-size: 9px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.orc-intro-text {
  font-size: 17px; font-weight: 600; line-height: 1.6;
  color: var(--text); margin: 0 0 22px;
}
.orc-overall-row { display: flex; align-items: center; gap: 16px; }
.orc-overall-block { flex-shrink: 0; }
.orc-overall-num { font-size: 64px; font-weight: 800; line-height: 1; letter-spacing: -2px; }
.orc-overall-label { font-size: 10px; font-weight: 600; letter-spacing: 0.5px; color: var(--muted); margin-top: 3px; }
.orc-quadrant { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.orc-q-item {
  display: flex; flex-direction: column; gap: 2px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px 10px;
}
.orc-q-label { font-size: 9px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted); }
.orc-q-val   { font-size: 22px; font-weight: 800; line-height: 1; color: var(--text); }

/* Sticky section headers */
.orc-sticky-head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7,7,15,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 9px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted);
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  margin-top: 24px;
}

/* Truth blocks */
.orc-truth-block {
  padding: 18px 16px 6px;
  border-bottom: 1px solid var(--border);
}
.orc-truth-label {
  font-size: 13px; font-weight: 700; margin-bottom: 10px;
}
.orc-bar-wrap  { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.orc-bar-track { flex: 1; height: 5px; border-radius: 100px; background: rgba(255,255,255,0.07); }
.orc-bar-fill  { height: 100%; border-radius: 100px; }
.orc-bar-num   { font-size: 12px; font-weight: 700; color: var(--muted); min-width: 24px; text-align: right; }
.orc-truth-body {
  font-size: 13px; line-height: 1.8; color: rgba(255,255,255,0.68); margin: 0 0 14px;
}
.orc-callout {
  font-size: 12px; line-height: 1.75; font-weight: 500;
  padding: 11px 14px; border-radius: 10px; margin-bottom: 18px; border-left: 3px solid;
}
.orc-callout-warn { background: rgba(251,146,60,0.09); border-color: #fb923c; color: rgba(255,255,255,0.78); }
.orc-callout-note { background: rgba(34,197,94,0.07);  border-color: #22c55e; color: rgba(255,255,255,0.68); }

/* Year arc */
.orc-arc-card {
  margin: 0 16px 4px;
  background: rgba(255,255,255,0.02); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px 14px 12px;
}
.orc-arc-meta { display: flex; gap: 20px; margin-bottom: 14px; flex-wrap: wrap; }
.orc-arc-peak, .orc-arc-trough {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: rgba(255,255,255,0.6);
}
.orc-arc-peak strong, .orc-arc-trough strong { color: var(--text); font-weight: 700; }
.orc-arc-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.orc-arc-svg { margin: 0 -2px; }
.orc-arc-now {
  font-size: 9px; font-weight: 700; letter-spacing: 1px;
  color: var(--muted); text-align: center; margin-top: 6px;
}

/* Month blocks */
.orc-month-block {
  padding: 16px 16px 14px;
  border-bottom: 1px solid var(--border);
}
.orc-month-now {
  border-left: 3px solid var(--gold);
  background: rgba(240,192,64,0.03);
}
.orc-month-top {
  display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 5px;
}
.orc-month-name  { font-size: 15px; font-weight: 700; }
.orc-month-score { font-size: 26px; font-weight: 800; line-height: 1; letter-spacing: -0.5px; }
.orc-month-theme { font-size: 11px; font-weight: 700; letter-spacing: 0.4px; color: var(--muted); margin-bottom: 5px; }
.orc-month-note  { font-size: 12px; line-height: 1.7; color: rgba(255,255,255,0.5); margin: 0 0 10px; }
.orc-actions { list-style: none; padding: 0; margin: 8px 0 2px; display: flex; flex-direction: column; gap: 8px; }
.orc-action-item {
  font-size: 13px; font-weight: 600; line-height: 1.5; color: var(--text);
  padding: 11px 14px;
  background: rgba(240,192,64,0.07); border: 1px solid rgba(240,192,64,0.18);
  border-radius: 10px;
}

/* Verdict */
.orc-verdict {
  margin: 0 16px 36px;
  padding: 24px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  text-align: center;
}
.orc-verdict-icon { font-size: 32px; margin-bottom: 14px; line-height: 1; }
.orc-verdict-text {
  font-size: 14px; line-height: 1.85; color: rgba(255,255,255,0.75); margin: 0; font-style: italic;
}

/* ────────────────────────
   BLOOD TYPE CARD
──────────────────────── */
.bt-badge {
  display: inline-block;
  padding: 5px 18px; border-radius: 100px;
  font-size: 13px; font-weight: 800; letter-spacing: 1.5px;
}
.bt-synergy {
  padding: 12px 20px 14px;
  margin-top: 4px;
}
.bt-synergy-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px; margin-bottom: 5px;
}
.bt-synergy-text {
  font-size: 12px; color: rgba(255,255,255,0.6); line-height: 1.7;
}
.bt-mods {
  padding: 12px 20px 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 4px;
}
.bt-mods-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.bt-mods-row { display: flex; flex-wrap: wrap; gap: 6px; }
.bt-mod-chip {
  font-size: 11px; font-weight: 700;
  padding: 4px 12px; border-radius: 100px;
}
.bt-pos { background: rgba(34,197,94,0.14); border: 1px solid rgba(34,197,94,0.28); color: #4ade80; }
.bt-neg { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.25); color: #f87171; }

/* ────────────────────────
   BIRTHPLACE CARD
──────────────────────── */
.birthplace-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  padding: 20px 20px 18px;
}
.birthplace-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.birthplace-el-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 100px; border: 1px solid;
  font-size: 12px; font-weight: 700;
}
.birthplace-zh {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 17px; margin-right: 1px;
}
.birthplace-name {
  font-size: 13px; color: var(--muted); text-align: right; flex: 1;
}
.birthplace-interact {
  font-size: 13px; line-height: 1.75;
  margin: 0;
}

/* ────────────────────────
   ABOUT PAGE
──────────────────────── */
.btn-about-link {
  font-size: 13px; color: var(--gold); background: none; border: none;
  padding: 4px 8px; cursor: pointer; transition: color 0.2s, opacity 0.2s;
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(240,192,64,0.35);
}
.btn-about-link:hover { color: var(--gold); opacity: 0.8; }

#about { background: var(--bg); }

.about-scroll {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 20px 20px 64px;
}

.about-hero {
  text-align: center; padding: 28px 0 32px;
}
.about-hanzi {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 62px; font-weight: 700; line-height: 1; margin-bottom: 14px;
  background: linear-gradient(135deg, #f0c040, #ff6b6b);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  filter: drop-shadow(0 0 20px rgba(240,192,64,0.4));
}
.about-hero h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.about-hero p  { font-size: 14px; color: var(--muted); line-height: 1.7; max-width: 280px; margin: 0 auto; }

.about-section {
  margin-bottom: 14px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
}
.about-section-icon { font-size: 26px; margin-bottom: 8px; display: block; }
.about-section h3   { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: var(--gold); }
.about-section p    { font-size: 13px; color: var(--muted); line-height: 1.8; }
.about-section p + p { margin-top: 8px; }

.about-pillars-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.about-pillar {
  background: rgba(240,192,64,0.07); border: 1px solid rgba(240,192,64,0.2);
  border-radius: var(--radius-md); padding: 12px; text-align: center;
}
.about-pillar-zh {
  font-family: 'Noto Sans SC', sans-serif; font-size: 24px; font-weight: 700;
  color: var(--gold); display: block; margin-bottom: 4px;
}
.about-pillar-en {
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--muted); display: block;
}

.about-elements-row { display: flex; gap: 7px; margin-top: 14px; }
.about-element-chip {
  flex: 1; padding: 8px 4px; border-radius: var(--radius-sm); text-align: center;
  font-size: 9px; font-weight: 700; letter-spacing: 0.5px; border: 1px solid currentColor;
}
.about-element-chip .zh {
  font-family: 'Noto Sans SC', sans-serif; font-size: 17px; display: block; margin-bottom: 3px;
}

.about-stems-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.about-stem-chip {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Noto Sans SC', sans-serif; font-size: 16px; font-weight: 700; color: var(--gold);
}

.about-cta { text-align: center; padding: 12px 0 8px; }
.about-cta p { font-size: 13px; color: var(--muted); margin-bottom: 16px; line-height: 1.7; }

/* ════════════════════════════════════════
   NEW FEATURES — ALL 10
════════════════════════════════════════ */

/* ── Tip hint badge (section-head ⓘ indicator) ── */
.tip-hint {
  font-size: 10px;
  font-weight: 600;
  color: var(--gold);
  opacity: 0.55;
  margin-left: auto;
  white-space: nowrap;
  cursor: pointer;
}
.section-head:hover .tip-hint,
.section-head:active .tip-hint { opacity: 1; }

/* ── Today's Action Plan (compact Fortune card) ── */
.today-actions-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-left: 3px solid;
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.tap-action-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.tap-action-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.tap-action-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tap-action-label { font-size: 13px; font-weight: 600; line-height: 1.4; }
.tap-action-sub   { font-size: 11px; color: var(--muted); line-height: 1.55; }
.tap-actions-link {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid rgba(240,192,64,0.25);
  border-radius: 100px;
  padding: 10px 16px;
  cursor: pointer;
  font-family: inherit;
  margin-top: 2px;
  transition: background 0.2s;
}
.tap-actions-link:active { background: rgba(240,192,64,0.2); transform: scale(0.98); }

/* ── Gender Radio Field ── */
.gender-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.gender-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: rgba(255,255,255,0.04);
  flex: 1;
  min-width: 120px;
  transition: border-color 0.2s, background 0.2s;
}
.gender-opt input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  flex-shrink: 0;
}
.gender-opt:has(input:checked) {
  border-color: var(--gold);
  background: var(--gold-dim);
}

/* ── OUTFIT GUIDE ── */
.outfit-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.outfit-months-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.outfit-month-card {
  flex-shrink: 0;
  width: 130px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.outfit-month-card.outfit-current {
  opacity: 1;
  border-color: rgba(240,192,64,0.35);
  background: rgba(240,192,64,0.04);
  width: 170px;
}
.outfit-month-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.outfit-swatches-row {
  display: flex;
  gap: 8px;
}
.outfit-swatch {
  flex: 1;
  height: 52px;
  border-radius: 10px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 4px 5px;
}
.outfit-swatch-name {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: rgba(255,255,255,0.8);
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  line-height: 1.2;
}
.outfit-why {
  font-size: 11px;
  line-height: 1.65;
  color: rgba(255,255,255,0.6);
}
.outfit-avoid {
  font-size: 10px;
  color: rgba(255,100,100,0.7);
  font-weight: 600;
}
.outfit-el-tip {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-left: 3px solid;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.65;
  color: rgba(255,255,255,0.6);
}
.outfit-el-icon {
  font-weight: 700;
  color: var(--text);
}

/* ── LUCKY NUMBERS ── */
.lucky-num-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.lucky-num-section { display: flex; flex-direction: column; gap: 12px; }
.lucky-num-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.lottery-label-sub {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  font-size: 9px;
  margin-left: 6px;
  opacity: 0.6;
}
.lucky-num-balls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.num-ball {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
}
.lottery-balls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.lottery-ball {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: var(--gold-dim);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}
.lottery-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(240,192,64,0.1);
  border: 1px solid rgba(240,192,64,0.3);
  color: var(--gold);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 100px;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.2s;
}
.lottery-btn:active { background: rgba(240,192,64,0.2); transform: scale(0.96); }

/* ── POWER DAYS CALENDAR ── */
.power-days-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cal-month-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-header {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: center;
  color: var(--muted);
  padding-bottom: 4px;
}
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.35);
  border-radius: 8px;
  background: transparent;
  transition: background 0.15s;
}
.cal-blank { pointer-events: none; }
.cal-power {
  background: color-mix(in srgb, var(--el-c, #f0c040) 18%, transparent);
  color: var(--el-c, var(--gold));
  font-weight: 800;
  border: 1px solid color-mix(in srgb, var(--el-c, #f0c040) 40%, transparent);
}
.cal-good {
  border: 1px solid rgba(34,197,94,0.3);
  color: rgba(255,255,255,0.6);
}
.cal-today {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.cal-legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.cal-legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
}
.cal-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.cal-legend-good { border: 1.5px solid rgba(34,197,94,0.5); background: transparent; }
.cal-note {
  font-size: 11px;
  line-height: 1.7;
  color: rgba(255,255,255,0.4);
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

/* ── LUCKY FOODS ── */
.foods-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.food-power-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-left: 3px solid;
  border-radius: var(--radius-md);
  padding: 16px 14px;
}
.food-power-icon {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}
.food-power-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.food-power-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}
.food-power-why {
  font-size: 12px;
  line-height: 1.65;
  color: rgba(255,255,255,0.55);
}
.food-section { display: flex; flex-direction: column; gap: 10px; }
.food-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.food-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.food-chip {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
}
.food-eat {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.25);
  color: #4ade80;
}
.food-avoid {
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.2);
  color: rgba(248,113,113,0.8);
}

/* ── CRYSTALS ── */
.crystals-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.crystal-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-left: 3px solid;
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.crystal-emoji {
  font-size: 28px;
  flex-shrink: 0;
}
.crystal-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.crystal-name {
  font-size: 14px;
  font-weight: 700;
}
.crystal-effect {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}
.crystal-carry-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  color: var(--muted);
  margin-top: 2px;
  align-self: flex-start;
}

/* ── MORNING RITUAL ── */
.ritual-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ritual-step {
  display: flex;
  gap: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-left: 3px solid;
  border-radius: var(--radius-md);
  padding: 16px;
}
.ritual-step-num {
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  flex-shrink: 0;
  width: 24px;
  opacity: 0.5;
}
.ritual-step-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.ritual-step-icon { font-size: 18px; margin-bottom: 2px; }
.ritual-step-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}
.ritual-step-text {
  font-size: 12px;
  line-height: 1.75;
  color: rgba(255,255,255,0.55);
}

/* ── KUA COMPASS ── */
.kua-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  flex-wrap: wrap;
}
.kua-compass-wrap {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.kua-compass-svg {
  width: 140px;
  height: 140px;
}
.kua-num-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.kua-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 160px;
}
.kua-dir-name {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}
.kua-dir-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.kua-dir-desc {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}
.kua-tip {
  font-size: 12px;
  line-height: 1.65;
  color: rgba(255,255,255,0.45);
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 4px;
}

/* ── LIFE DECADES ── */
.decades-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.decades-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.decade-block {
  flex-shrink: 0;
  width: 90px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.decade-block.decade-current {
  opacity: 1;
  border: 2px solid;
  width: 120px;
  background: rgba(255,255,255,0.05);
}
.decade-emoji { font-size: 22px; }
.decade-phase {
  font-size: 13px;
  font-weight: 700;
}
.decade-age {
  font-size: 9px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.3px;
}
.decade-note {
  font-size: 10px;
  line-height: 1.5;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}
.decade-current-detail {
  font-size: 13px;
  line-height: 1.75;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.decade-note-text {
  color: rgba(255,255,255,0.4);
  font-style: italic;
  display: block;
  margin-top: 4px;
  font-size: 12px;
}

/* ════════════════════════════════════════
   ABOUT PAGE — Comprehensive Bāzì Guide
════════════════════════════════════════ */

/* ── TOC chip bar ── */
.about-toc-bar {
  flex-shrink: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: rgba(0,0,0,0.2);
}
.about-toc-bar::-webkit-scrollbar { display: none; }
.about-toc-inner {
  display: flex;
  gap: 6px;
  width: max-content;
}
.about-toc-chip {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(240,240,255,0.6);
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.about-toc-chip:active { background: var(--gold-dim); color: var(--gold); }

/* ── Section headings (override icon rule since new sections don't use icons) ── */
.about-section h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; color: var(--gold); }

/* ── Callout box ── */
.about-callout {
  margin-top: 12px;
  padding: 12px 14px;
  background: rgba(240,192,64,0.06);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 13px;
  color: rgba(240,240,255,0.75);
  line-height: 1.7;
}

/* ── Four Pillars visual diagram ── */
.about-pillars-visual {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 14px 0 10px;
}
.about-pillar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.about-pillar-col.about-pillar-self .about-pillar-stem {
  border: 1.5px solid rgba(192,132,252,0.5) !important;
}
.about-pillar-head {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.about-pillar-stem {
  width: 100%;
  padding: 7px 4px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 10px;
  font-weight: 600;
  color: rgba(240,240,255,0.6);
  letter-spacing: 0.02em;
}
.about-pillar-branch {
  width: 100%;
  padding: 7px 4px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  font-size: 10px;
  color: rgba(240,240,255,0.35);
}
.about-pillar-foot {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}
.about-pillar-meanings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.about-pillar-meaning {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}
.about-pm-head {
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 4px;
}
.about-pillar-meaning p {
  font-size: 11px !important;
  line-height: 1.6 !important;
  color: rgba(240,240,255,0.45) !important;
}

/* ── Heavenly Stems table ── */
.about-stems-table {
  margin-top: 14px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.ast-header, .ast-row {
  display: grid;
  grid-template-columns: 32px 48px 68px 50px 90px 1fr;
  gap: 0;
  align-items: center;
  padding: 7px 10px;
  font-size: 11px;
}
.ast-header {
  background: rgba(255,255,255,0.05);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(240,240,255,0.35);
}
.ast-row {
  border-top: 1px solid rgba(255,255,255,0.05);
  color: rgba(240,240,255,0.65);
}
.ast-row:nth-child(even) { background: rgba(255,255,255,0.015); }
.ast-zh {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 16px;
  font-weight: 700;
}
.ast-yang { color: rgba(255,210,60,0.7); }
.ast-yin  { color: rgba(148,163,220,0.7); }

/* ── Earthly Branches table ── */
.about-branches-table {
  margin-top: 14px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.abt-header, .abt-row {
  display: grid;
  grid-template-columns: 32px 100px 60px 60px 60px;
  gap: 0;
  align-items: center;
  padding: 7px 10px;
  font-size: 11px;
}
.abt-header {
  background: rgba(255,255,255,0.05);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(240,240,255,0.35);
}
.abt-row {
  border-top: 1px solid rgba(255,255,255,0.05);
  color: rgba(240,240,255,0.65);
}
.abt-row:nth-child(even) { background: rgba(255,255,255,0.015); }
.abt-zh {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
}

/* ── Five Elements grid ── */
.about-elements-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  margin: 14px 0 12px;
}
.about-el-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid color-mix(in srgb, var(--ec) 30%, transparent);
  border-top: 2px solid var(--ec);
  border-radius: var(--radius-md);
  padding: 10px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.aec-zh {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--ec);
  line-height: 1;
}
.aec-name {
  font-size: 11px;
  font-weight: 700;
}
.aec-traits {
  font-size: 8.5px;
  color: rgba(240,240,255,0.4);
  line-height: 1.4;
}
.aec-organs {
  font-size: 8px;
  color: rgba(240,240,255,0.3);
  margin-top: 2px;
}
.aec-season {
  font-size: 9px;
  color: rgba(240,240,255,0.45);
  margin-top: 2px;
}

/* ── Element cycle diagrams ── */
.about-cycle-wrap {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.about-cycle-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(240,240,255,0.35);
  margin-bottom: 10px;
}
.about-cycle-row {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.about-cycle-node {
  font-size: 12px;
  font-weight: 700;
}
.about-cycle-arrow {
  font-size: 11px;
  color: rgba(240,240,255,0.25);
}
.about-control-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
}
.acg-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
}
.acg-arrow {
  color: rgba(240,240,255,0.25);
  font-size: 11px;
}

/* ── Yin & Yang cards ── */
.about-yy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0 8px;
}
.about-yy-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid;
  border-radius: var(--radius-lg);
  padding: 14px 12px;
  text-align: center;
}
.ayy-symbol { font-size: 28px; margin-bottom: 6px; }
.ayy-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  color: rgba(240,240,255,0.8);
}
.ayy-traits {
  font-size: 11px;
  color: rgba(240,240,255,0.4);
  line-height: 1.7;
}

/* ── 60-Year Cycle table ── */
.about-cycle60-grid {
  margin-top: 14px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.ac60-header, .ac60-row {
  display: grid;
  grid-template-columns: 28px 48px 1fr 110px;
  gap: 0;
  align-items: center;
  padding: 7px 10px;
  font-size: 11px;
}
.ac60-header {
  background: rgba(255,255,255,0.05);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(240,240,255,0.35);
}
.ac60-row {
  border-top: 1px solid rgba(255,255,255,0.05);
  color: rgba(240,240,255,0.6);
}
.ac60-row:nth-child(even) { background: rgba(255,255,255,0.015); }
.ac60-zh {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
}

/* ── 12 Zodiac Animals grid ── */
.about-zodiac-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.about-z-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.azc-emoji { font-size: 22px; line-height: 1; }
.azc-name  { font-size: 12px; font-weight: 700; color: rgba(240,240,255,0.85); }
.azc-years {
  font-size: 8px;
  color: rgba(240,240,255,0.3);
  line-height: 1.5;
  word-break: break-all;
}
.azc-trait { font-size: 9px; font-weight: 600; }

/* ── Day Master table ── */
.about-dm-table {
  margin-top: 14px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.adm-header, .adm-row {
  display: grid;
  grid-template-columns: 120px 90px 1fr 1fr;
  gap: 0;
  align-items: start;
  padding: 8px 10px;
  font-size: 11px;
}
.adm-header {
  background: rgba(255,255,255,0.05);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(240,240,255,0.35);
}
.adm-row {
  border-top: 1px solid rgba(255,255,255,0.05);
  color: rgba(240,240,255,0.6);
}
.adm-row:nth-child(even) { background: rgba(255,255,255,0.015); }
.adm-zh { font-weight: 700; font-size: 11px; }

/* ── Compatibility section ── */
.about-compat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(240,240,255,0.4);
  margin: 12px 0 8px;
}
.about-compat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.about-compat-pair {
  background: rgba(74,222,128,0.06);
  border: 1px solid rgba(74,222,128,0.15);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  font-size: 12px;
  color: rgba(240,240,255,0.7);
  text-align: center;
}
.about-compat-pair.clash {
  background: rgba(239,68,68,0.06);
  border-color: rgba(239,68,68,0.18);
}
.about-trio-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.about-trio {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  gap: 8px;
}
.about-trio span:last-child {
  color: rgba(240,240,255,0.5);
  font-weight: 400;
  font-size: 12px;
}

/* ── How Fortune is Read — numbered steps ── */
.about-reading-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}
.about-rs-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 12px 14px;
}
.ars-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--gold-dim);
  border: 1px solid rgba(240,192,64,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--gold);
}
.ars-body { flex: 1; }
.ars-title {
  font-size: 13px;
  font-weight: 700;
  color: rgba(240,240,255,0.85);
  margin-bottom: 4px;
}
.ars-body p {
  font-size: 12px !important;
  color: rgba(240,240,255,0.45) !important;
  line-height: 1.7 !important;
  margin: 0 !important;
}

/* ── Life Areas (Today tab) ── */
.life-areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.life-area-tile {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}
.la-icon { font-size: 20px; line-height: 1; }
.la-name {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--muted);
}
.la-status { font-size: 12px; font-weight: 700; }

/* ── Insight Cards (Today tab) ── */
.insight-cards { display: flex; flex-direction: column; gap: 10px; }
.insight-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.insight-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.insight-text {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(240,240,255,0.85);
}

/* ── Actions Preview Card (Today tab) ── */
.actions-preview-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}
.actions-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.actions-preview-title { font-size: 14px; font-weight: 700; }
.btn-see-all {
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
  padding: 0;
  white-space: nowrap;
  opacity: 0.9;
}
.btn-see-all:hover { opacity: 1; }

/* ── You Profile Header ── */
.you-profile-card {
  background: rgba(255,255,255,0.04);
  border: 1.5px solid;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.you-profile-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.you-profile-identity {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.you-profile-badge {
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
}

/* ── Results Tab Chip Bars ── */
.results-toc-bar {
  flex-shrink: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.results-toc-bar::-webkit-scrollbar { display: none; }
.results-toc-inner {
  display: flex;
  gap: 6px;
  padding: 6px 14px;
  width: max-content;
}
.results-toc-chip {
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--muted);
  white-space: nowrap;
  letter-spacing: 0.3px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.results-toc-chip:hover {
  background: rgba(255,255,255,0.12);
  color: var(--text);
  border-color: rgba(255,255,255,0.2);
}

/* ────────────────────────
   ORACLE CTA BUTTON
──────────────────────── */
.oracle-cta-btn {
  display: block; width: 100%; margin: 12px 0 0;
  background: linear-gradient(135deg, rgba(240,192,64,0.12), rgba(240,192,64,0.04));
  border: 1px solid rgba(240,192,64,0.25);
  border-radius: var(--radius-md); padding: 0; color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}
.oracle-cta-btn:hover { border-color: rgba(240,192,64,0.5); background: linear-gradient(135deg, rgba(240,192,64,0.18), rgba(240,192,64,0.06)); }
.oracle-cta-inner {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
}
.oracle-cta-icon {
  font-size: 24px; color: var(--gold); flex-shrink: 0;
}
.oracle-cta-text { flex: 1; display: flex; flex-direction: column; text-align: left; }
.oracle-cta-title { font-size: 15px; font-weight: 700; }
.oracle-cta-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ────────────────────────
   ORACLE CHAT SCREEN
──────────────────────── */
#oracle-chat { display: flex; flex-direction: column; background: var(--bg); }
#oracle-chat .nav-bar { flex-shrink: 0; }
.nav-title { font-size: 15px; font-weight: 700; color: var(--text); }

/* Context bar */
.oracle-ctx-bar {
  flex-shrink: 0; display: flex; gap: 6px; padding: 8px 16px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--border);
}
.oracle-ctx-bar::-webkit-scrollbar { display: none; }
.oracle-ctx-pill {
  display: flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.3px;
  padding: 5px 10px; border-radius: 100px; white-space: nowrap;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  color: var(--muted);
}
.oracle-ctx-pill .ctx-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}

/* Scroll area */
.oracle-scroll {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column;
  padding-bottom: 80px;
}

/* Welcome */
.oracle-welcome {
  text-align: center; padding: 40px 32px 24px; color: var(--muted);
  font-size: 14px; line-height: 1.7;
}
.oracle-welcome-icon {
  display: block; font-size: 36px; color: var(--gold); margin-bottom: 16px;
}

/* Messages */
.oracle-messages { padding: 0 16px; display: flex; flex-direction: column; gap: 12px; }

.oracle-msg {
  max-width: 85%; padding: 12px 16px; border-radius: 18px;
  font-size: 14px; line-height: 1.7; word-wrap: break-word;
}
.oracle-msg-user {
  align-self: flex-end; background: rgba(240,192,64,0.08);
  border: 1px solid rgba(240,192,64,0.2); color: var(--text);
  border-bottom-right-radius: 4px;
}
.oracle-msg-oracle {
  align-self: flex-start; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1); color: var(--text);
  border-bottom-left-radius: 4px;
}

/* Typing indicator */
.oracle-typing {
  align-self: flex-start; display: flex; gap: 5px; padding: 14px 20px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px; border-bottom-left-radius: 4px;
}
.oracle-typing-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--muted); animation: oracleBounce 1.4s infinite ease-in-out;
}
.oracle-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.oracle-typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes oracleBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-6px); opacity: 1; }
}

/* Verdict badges */
.oracle-verdict-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  padding: 4px 10px; border-radius: 6px; margin-top: 10px;
}
.oracle-verdict-favorable { background: rgba(240,192,64,0.15); color: #f0c040; border: 1px solid rgba(240,192,64,0.3); }
.oracle-verdict-defer { background: rgba(239,68,68,0.12); color: #ef4444; border: 1px solid rgba(239,68,68,0.25); }
.oracle-verdict-neutral { background: rgba(148,163,184,0.12); color: #94a3b8; border: 1px solid rgba(148,163,184,0.2); }

/* Date pills */
.oracle-date-pill {
  display: inline-block; font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: 6px; margin: 2px 2px;
  background: rgba(240,192,64,0.1); color: var(--gold);
  border: 1px solid rgba(240,192,64,0.2);
}

/* Suggested chips */
.oracle-chips {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px 8px;
}
.oracle-chip {
  font-size: 12px; font-weight: 500; color: var(--text);
  padding: 8px 14px; border-radius: 100px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  transition: background 0.15s, border-color 0.15s;
  text-align: left; line-height: 1.4;
}
.oracle-chip:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }

/* Input bar */
.oracle-input-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  display: flex; align-items: flex-end; gap: 8px;
  padding: 12px 16px; padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 70%, transparent);
  border-top: 1px solid var(--border);
}
.oracle-input {
  flex: 1; resize: none; border: 1px solid var(--border);
  background: rgba(255,255,255,0.05); color: var(--text);
  font-size: 14px; padding: 10px 14px; border-radius: 20px;
  outline: none; max-height: 100px; line-height: 1.5;
  font-family: 'Space Grotesk', system-ui, sans-serif;
}
.oracle-input::placeholder { color: var(--muted); }
.oracle-input:focus { border-color: rgba(240,192,64,0.4); }
.oracle-send-btn {
  flex-shrink: 0; width: 40px; height: 40px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--gold); color: #0a0a0b;
  transition: opacity 0.15s;
}
.oracle-send-btn:disabled { opacity: 0.3; }

/* Rate limit message */
.oracle-limit-msg {
  text-align: center; padding: 16px 24px; margin: 8px 16px;
  background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--radius-md); font-size: 13px; line-height: 1.6;
  color: rgba(255,255,255,0.7);
}

/* Error message */
.oracle-error-msg {
  align-self: flex-start; max-width: 85%; padding: 12px 16px;
  background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2);
  border-radius: 18px; border-bottom-left-radius: 4px;
  font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.6;
}

/* ────────────────────────
   GOOGLE AUTH
──────────────────────── */
.auth-divider {
  display: flex; align-items: center; gap: 16px;
  margin: 14px 0; color: var(--muted); font-size: 12px;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.1);
}
.google-login-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; max-width: 340px; padding: 13px 24px;
  background: #fff; color: #3c4043;
  font-size: 15px; font-weight: 600; font-family: 'Space Grotesk', system-ui, sans-serif;
  border-radius: 100px; border: none;
  transition: background 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.google-login-btn:hover { background: #f7f8f8; box-shadow: 0 2px 6px rgba(0,0,0,0.3); }
.google-logo { flex-shrink: 0; }
.splash-google-hint {
  font-size: 11px; color: var(--muted); margin: 8px 0 0;
  letter-spacing: 0.2px;
}
.btn-guest {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--muted);
  background: none; border: none; padding: 8px 16px;
  transition: color 0.15s;
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(255,255,255,0.15);
}
.btn-guest:hover { color: var(--text); }
.btn-guest svg { opacity: 0.5; }
.splash-welcome {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 20px; font-size: 16px; font-weight: 600; color: var(--text);
}
.splash-welcome-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--gold); object-fit: cover;
}
.splash-new-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; max-width: 340px; padding: 12px 24px;
  font-size: 14px; font-weight: 600; color: var(--text);
  border: 1px solid var(--border); border-radius: 100px;
  background: rgba(255,255,255,0.04);
  transition: background 0.15s, border-color 0.15s;
}
.splash-new-btn:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); }
.btn-logout {
  margin-top: 10px; font-size: 12px; color: var(--muted);
  text-decoration: underline; text-underline-offset: 3px;
  transition: color 0.15s;
}
.btn-logout:hover { color: var(--text); }
.nav-user-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--gold); object-fit: cover; cursor: pointer;
}

/* ────────────────────────
   FLOATING ORACLE BUTTON
──────────────────────── */
.oracle-fab {
  position: fixed;
  bottom: 88px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0c040, #d4a017, #f0c040);
  background-size: 200% 200%;
  animation: fab-shimmer 3s ease infinite, fab-pulse 2s ease-in-out infinite;
  color: #1a0a00;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(240,192,64,0.5), 0 0 40px rgba(240,192,64,0.2), 0 2px 8px rgba(0,0,0,0.3);
  z-index: 900;
  transition: transform 0.2s ease;
  cursor: pointer;
  border: 2px solid rgba(255,255,255,0.25);
}
@keyframes fab-shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(240,192,64,0.5), 0 0 40px rgba(240,192,64,0.2), 0 2px 8px rgba(0,0,0,0.3); }
  50% { box-shadow: 0 4px 30px rgba(240,192,64,0.7), 0 0 60px rgba(240,192,64,0.35), 0 2px 8px rgba(0,0,0,0.3); }
}
.oracle-fab:active { transform: scale(0.92); animation: none; }
.oracle-fab-char {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

/* ────────────────────────
   ORACLE DRAWER
──────────────────────── */
.oracle-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 950;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.oracle-drawer-backdrop.show { opacity: 1; }

.oracle-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 85vh;
  background: var(--bg);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  z-index: 960;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  border-top: 1px solid var(--border);
}
.oracle-drawer.show { transform: translateY(0); }

.oracle-drawer-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px 8px;
  position: relative;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}
.oracle-drawer-handle {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.2);
}
.oracle-drawer-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  padding-top: 8px;
}
.oracle-drawer-close {
  position: absolute;
  right: 16px;
  top: 14px;
  font-size: 24px;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.oracle-drawer-close:active { color: var(--text); }

.oracle-drawer-ctx {
  flex-shrink: 0;
  display: flex;
  gap: 6px;
  padding: 8px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--border);
}
.oracle-drawer-ctx::-webkit-scrollbar { display: none; }

.oracle-drawer-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  padding-bottom: 80px;
}

.oracle-drawer-input {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 70%, transparent);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

/* ────────────────────────
   RELATIONSHIPS TAB
──────────────────────── */
.coming-soon-card {
  text-align: center;
  padding: 32px 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.coming-soon-icon {
  display: block;
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 12px;
}

.compat-check-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}
.compat-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}
.compat-input-row .date-part {
  width: 60px;
  text-align: center;
}
.compat-input-row .date-part.year {
  width: 80px;
}
