:root {
  --bg: #0f0b1f;
  --bg-card: #1a1430;
  --accent: #d4af37;
  --accent-soft: #9b7fd4;
  --text: #f1ecff;
  --text-muted: #b4a9d6;
  --border: #332a52;
  --radius: 14px;
  --max-width: 880px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Georgia', 'Times New Roman', 'Noto Sans Khmer', 'Khmer OS', serif;
  background: radial-gradient(circle at top, #1c1538 0%, #0f0b1f 60%);
  color: var(--text);
  line-height: 1.7;
}

html[lang="km"] body,
html[lang="km"] .checker-form button,
html[lang="km"] .lang-toggle {
  font-family: 'Noto Sans Khmer', 'Khmer OS', 'Georgia', sans-serif;
  line-height: 1.9;
}

a { color: var(--accent); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

header.site-header {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.logo-mark {
  flex: none;
  width: 26px;
  height: 26px;
}

.logo-text {
  font-variant: small-caps;
  letter-spacing: 1px;
}

html[lang="km"] .logo-text {
  font-variant: normal;
  letter-spacing: 0.5px;
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
}
nav a:hover { color: var(--accent); }

.lang-toggle {
  margin-left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 4px;
}
.lang-toggle a {
  margin-left: 0;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--text-muted);
}
.lang-toggle a.lang-active {
  background: var(--accent);
  color: #1a1430;
  font-weight: bold;
}
.lang-toggle a:hover { color: var(--accent); }
.lang-toggle a.lang-active:hover { color: #1a1430; }

.nav-dropdown {
  position: relative;
  display: inline-block;
  margin-left: 20px;
  vertical-align: middle;
}
.nav-dropdown > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.95rem;
  user-select: none;
}
.nav-dropdown > summary::-webkit-details-marker { display: none; }
.nav-dropdown > summary::after {
  content: "▾";
  font-size: 0.75em;
  transition: transform 0.15s ease;
}
.nav-dropdown[open] > summary::after { transform: rotate(180deg); }
.nav-dropdown > summary:hover { color: var(--accent); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: flex;
  flex-direction: column;
  min-width: 150px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  padding: 6px;
  z-index: 50;
}
.nav-dropdown-menu a {
  margin-left: 0;
  padding: 8px 10px;
  border-radius: 6px;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover {
  background: rgba(255,255,255,0.06);
}

.hero {
  text-align: center;
  padding: 60px 0 30px;
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 10px;
  color: var(--text);
}

.hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.hero-cta {
  display: inline-block;
  background: var(--accent);
  color: #1a1430;
  border: none;
  padding: 13px 32px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 22px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.hero-cta:hover { background: #e6c35f; transform: translateY(-1px); }

.quick-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px auto 6px;
  padding: 0 20px;
}

.quick-link-btn {
  display: inline-block;
  border: 1.5px solid var(--accent);
  color: var(--text);
  text-decoration: none;
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.quick-link-btn:hover {
  background: var(--accent);
  color: #1a1430;
  transform: translateY(-1px);
}

.today-strip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 24px;
  margin: 30px auto;
  max-width: 600px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.today-strip div { text-align: center; flex: 1; }
.today-strip .label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.today-strip .value { font-size: 1.1rem; color: var(--accent); font-weight: bold; }

.checker-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 480px;
  margin: 0 auto 40px;
  text-align: center;
}

.checker-form label {
  display: block;
  margin-bottom: 10px;
  color: var(--text-muted);
}

.checker-form input[type="date"] {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0f0b1f;
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 16px;
}

.checker-form button {
  background: var(--accent);
  color: #1a1430;
  border: none;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
}
.checker-form button:hover { background: #e6c35f; }

.result-card {
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 700px;
  margin: 0 auto 40px;
}

.result-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.result-emoji { font-size: 3rem; }
.result-header h2 { margin: 0; color: var(--accent); }
.result-sub { margin: 4px 0 0; color: var(--text-muted); font-size: 0.9rem; }

.share-row {
  position: relative;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--accent-soft);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.share-btn:hover { border-color: var(--accent); color: var(--accent); }
.share-icon { flex-shrink: 0; }
.share-popover {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--accent-soft);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.share-popover[hidden] { display: none; }
.share-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.86rem;
  font-family: inherit;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
}
.share-option:hover { background: rgba(212, 175, 55, 0.12); color: var(--accent); }
.share-net-icon { flex-shrink: 0; }
.share-option-label { flex: 1; }

.lunar-note {
  font-size: 0.78rem;
  color: var(--accent-soft);
  margin: 2px 0 16px;
}

.overview-text {
  color: var(--text);
  margin: 0 0 14px;
}

.ai-reading { margin: 16px 0; }
.ai-reading p { color: var(--text); margin: 0 0 10px; }
.ai-loading { color: var(--text-muted); font-style: italic; }

.followup-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.followup-section h3 {
  margin: 0 0 10px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-soft);
}
.followup-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--accent-soft);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
}
.chip:hover:not(:disabled) { background: var(--accent-soft); color: var(--bg); }
.chip:disabled { opacity: 0.5; cursor: default; }
.followup-answer { margin-top: 14px; }
.followup-answer p { color: var(--text); margin: 0 0 10px; }

.element-blurb {
  color: var(--text-muted);
  font-style: italic;
  border-left: 3px solid var(--accent-soft);
  padding-left: 14px;
  margin: 16px 0;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.result-block h3 {
  margin: 0 0 6px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-soft);
}
.result-block p { margin: 0; color: var(--text); }

.cutoff-note, .disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 16px;
}

.ad-slot {
  max-width: 700px;
  margin: 30px auto;
  padding: 10px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  border: 1px dashed var(--border);
  border-radius: 8px;
}

section.content-section {
  max-width: 700px;
  margin: 0 auto 50px;
}
section.content-section h2 {
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.blog-hero {
  text-align: center;
  padding: 56px 0 10px;
}
.blog-hero h1 {
  font-size: 2.5rem;
  margin: 0 0 10px;
}
.blog-hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

.blog-wrap {
  max-width: 920px;
  margin: 10px auto 60px;
}

.blog-featured {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 30px;
  text-decoration: none;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.blog-featured::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(155, 127, 212, 0.16), transparent 55%);
  pointer-events: none;
}
.blog-featured .post-icon {
  width: 52px;
  height: 52px;
}
.blog-featured .post-eyebrow {
  color: var(--accent-soft);
  font-size: 0.9rem;
  font-style: italic;
  margin: 0 0 6px;
}
.blog-featured h2 {
  color: var(--text);
  font-size: 1.5rem;
  margin: 0 0 10px;
  border: none;
  padding: 0;
}
.blog-featured p {
  color: var(--text-muted);
  margin: 0 0 12px;
  max-width: 60ch;
}
.blog-featured .post-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-decoration: none;
  display: block;
}
.blog-card .post-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
}
.blog-card h3 { margin: 0 0 8px; color: var(--text); font-size: 1.05rem; }
.blog-card p { margin: 0 0 10px; color: var(--text-muted); font-size: 0.95rem; }
.blog-card .post-meta {
  color: var(--accent-soft);
  font-size: 0.8rem;
}

@media (max-width: 640px) {
  .blog-featured { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
}

article.post {
  max-width: 700px;
  margin: 0 auto 50px;
}
article.post h1 { color: var(--accent); }
article.post p { color: var(--text); }

/* --- Daily fortune grid (per-animal good/avoid cards) --- */
article.post.post-wide {
  max-width: 920px;
}
.fortune-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0 10px;
}
.fortune-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.fortune-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.fortune-emoji { font-size: 1.6rem; line-height: 1; }
.fortune-card h3 { margin: 0; font-size: 1.05rem; color: var(--text); flex: 1; }
.fortune-tier {
  display: inline-block;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
  border: 1px solid transparent;
}
.fortune-tier-great { color: var(--bg); background: var(--accent); }
.fortune-tier-good { color: var(--bg); background: var(--accent-soft); }
.fortune-tier-ordinary { color: var(--text-muted); border-color: var(--border); }
.fortune-tier-caution { color: #f3d6dd; background: #c9607a; }
.fortune-card p {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.fortune-card p strong { color: var(--text); font-weight: normal; }

.fortune-learn-more {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.fortune-learn-more:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .fortune-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .fortune-grid { grid-template-columns: 1fr; }
}

/* --- Zodiac animal guide --- */
.animal-grid {
  max-width: 1000px;
  margin: 10px auto 40px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.animal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.animal-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.animal-card-head .result-emoji { font-size: 2.2rem; }
.animal-card-head h2 { margin: 0; color: var(--accent); font-size: 1.2rem; }
.animal-traits { color: var(--text); margin: 0 0 14px; font-size: 0.95rem; }
.animal-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.animal-meta h3 {
  margin: 0 0 2px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-soft);
}
.animal-meta p { margin: 0; color: var(--text); font-size: 0.88rem; }
.color-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0 8px 4px 0;
}
.color-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(241, 236, 255, 0.35);
  flex-shrink: 0;
}
.animal-details { margin-bottom: 14px; }
.animal-details summary {
  cursor: pointer;
  color: var(--accent-soft);
  font-size: 0.88rem;
  font-weight: bold;
}
.animal-details .overview-text { margin-top: 10px; font-size: 0.92rem; }
.animal-details p strong { color: var(--accent-soft); }
.animal-cta {
  margin-top: auto;
  text-align: center;
  background: var(--accent);
  color: #1a1430;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: bold;
  font-size: 0.9rem;
}
.animal-cta:hover { background: #e6c35f; }

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
footer.site-footer a { margin: 0 10px; color: var(--text-muted); }

@media (max-width: 600px) {
  .result-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
}

/* --- Compatibility checker --- */
.compat-section {
  max-width: 700px;
  margin: 0 auto 10px;
}
.compat-intro { color: var(--text-muted); margin-top: -6px; }

.compat-form {
  max-width: 100%;
}
.compat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}
.compat-row label { text-align: left; }
.compat-row input[type="date"] { margin-bottom: 0; }

.context-toggle {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 0 0 18px;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.context-toggle legend {
  padding: 0 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.radio-option {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 0.95rem;
  cursor: pointer;
}

.compat-card { max-width: 700px; margin: 20px auto 0; text-align: left; }
.compat-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}
.compat-person { text-align: center; }
.compat-person p { margin: 4px 0 0; color: var(--accent); font-weight: bold; }
.compat-plus { font-size: 1.5rem; color: var(--text-muted); }

.compat-label { text-align: center; color: var(--accent); margin: 0 0 6px; }
.compat-stars { text-align: center; color: var(--accent); font-size: 1.4rem; letter-spacing: 3px; margin-bottom: 14px; }

@media (max-width: 500px) {
  .compat-row { grid-template-columns: 1fr; }
}

.match-years {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.match-years h3 {
  margin: 0 0 8px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-soft);
}
.match-years-list {
  margin: 0 0 10px;
  padding-left: 18px;
}
.match-years-list li { margin-bottom: 4px; }
.match-years-note { margin: 4px 0; font-size: 0.92rem; }

/* --- Wedding date picker --- */
.wedding-table-wrap { overflow-x: auto; margin: 16px 0; }
.wedding-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.wedding-table th {
  text-align: left;
  padding: 8px 10px;
  color: var(--accent-soft);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}
.wedding-table td {
  padding: 10px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.wedding-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: bold;
  white-space: nowrap;
}
.wedding-badge-excellent { background: #2f6b3a; color: #d7f5de; }
.wedding-badge-good { background: #2e5a86; color: #d7e9f5; }
.wedding-badge-workable { background: #4a4460; color: #e4e0f0; }
.wedding-badge-avoid { background: #7a2f2f; color: #f5d7d7; }
.wedding-season-note { font-size: 0.78rem; color: var(--text-muted); }

.wedding-top-picks {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 16px 0;
}
.wedding-top-picks h3 {
  margin: 0 0 8px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
}
.wedding-top-picks-list { margin: 0 0 10px; padding-left: 18px; }
.wedding-top-picks-list li { margin-bottom: 4px; }
.wedding-top-picks-note, .wedding-top-picks-empty { margin: 0; font-size: 0.85rem; color: var(--text-muted); }

.today-luck-card {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 16px 0;
}
.today-luck-card h3 {
  margin: 0 0 8px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
}
.today-luck-intro { margin: 0 0 10px; font-size: 0.9rem; color: var(--text-muted); }
.today-luck-list { margin: 0 0 10px; padding-left: 18px; }
.today-luck-list li { margin-bottom: 6px; line-height: 1.4; }
.today-luck-verdict { margin: 0; font-weight: bold; }
.today-luck-verdict-great { color: #4ade80; }
.today-luck-verdict-good { color: var(--accent); }
.today-luck-verdict-ordinary { color: var(--text-muted); }
.today-luck-verdict-caution { color: #f87171; }

/* ===== Relationship Compatibility Calculator ===== */
.rc-hero {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(155, 127, 212, 0.18));
  border-radius: var(--radius);
  padding: 32px 24px;
}
.rc-section { max-width: var(--max-width); }
.rc-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.rc-people-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 640px) {
  .rc-people-grid { grid-template-columns: 1fr; }
}
.rc-person-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(255, 255, 255, 0.02);
}
.rc-person-card legend {
  font-weight: bold;
  color: var(--accent);
  padding: 0 6px;
  font-size: 1.05rem;
}
.rc-person-card label {
  display: block;
  margin-top: 12px;
  margin-bottom: 4px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.rc-person-card input,
.rc-person-card select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0f0b1f;
  color: var(--text);
  font-size: 0.95rem;
}
.rc-form-error {
  margin: 16px 0 0;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid #f87171;
  color: #f87171;
  font-size: 0.9rem;
}
.rc-submit {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #e06c9f);
  color: #1a1430;
  font-weight: bold;
  font-size: 1.05rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.rc-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(212, 175, 55, 0.3); }
.rc-privacy-note {
  margin: 12px 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

.rc-result-card {
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 26px;
  animation: rc-fade-in 0.4s ease;
}
@keyframes rc-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.rc-pair-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  text-align: center;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.rc-pair-person { min-width: 120px; }
.rc-pair-symbol { font-size: 2.4rem; display: block; }
.rc-pair-heart { font-size: 1.8rem; }
.rc-pair-lifepath { color: var(--accent); font-size: 0.85rem; margin-top: 4px; }

.rc-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 640px) {
  .rc-two-col { grid-template-columns: 1fr; }
}
.rc-profile-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
}
.rc-profile-card h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: var(--accent);
}
.rc-sign-line { font-size: 1.1rem; margin: 4px 0; }
.rc-born-sub { color: var(--text-muted); font-size: 0.85rem; margin: 0 0 8px; }
.rc-numerology-calc {
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.2);
  padding: 6px 10px;
  border-radius: 6px;
  display: inline-block;
}
.rc-method-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 4px 0 24px;
}
.rc-chinese-compat-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: -4px 0 20px;
  padding: 10px 14px;
  background: rgba(155, 127, 212, 0.08);
  border-left: 3px solid var(--accent-soft);
  border-radius: 6px;
}

.rc-subheading {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.95rem;
  margin: 28px 0 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.rc-meter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 16px;
  margin-bottom: 10px;
}
.rc-meter { text-align: center; }
.rc-meter-circle {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.6s ease;
}
.rc-meter-inner {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.95rem;
  color: var(--text);
}
.rc-meter-label { font-size: 0.75rem; color: var(--text-muted); }
.rc-disclaimer-inline {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin: 6px 0 0;
}

.rc-lang-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 0 0 12px;
}
.rc-analysis-list { display: flex; flex-direction: column; gap: 8px; }
.rc-analysis-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px 14px;
  background: rgba(255, 255, 255, 0.015);
}
.rc-analysis-item summary {
  cursor: pointer;
  padding: 10px 0;
  font-weight: bold;
  color: var(--text);
}
.rc-analysis-body { padding: 0 0 12px; font-size: 0.92rem; }
.rc-analysis-body p { margin: 6px 0; }

.rc-insight-block { margin-bottom: 18px; }
.rc-insight-block h4 { margin: 0 0 8px; color: var(--accent-soft); font-size: 0.95rem; }
.rc-insight-block ul { margin: 0; padding-left: 18px; }
.rc-insight-block li { margin-bottom: 6px; line-height: 1.5; }
.rc-insight-block p { margin: 4px 0; }

.rc-disclaimer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* ===== Business Partnership Compatibility Calculator ===== */
:root {
  --biz-navy: #0a1628;
  --biz-navy-card: #11213a;
  --biz-gold: #c6a15b;
  --biz-border: #22385a;
  --biz-text: #e8ecf3;
  --biz-text-muted: #94a3bb;
}
.biz-hero {
  background: linear-gradient(135deg, rgba(198, 161, 91, 0.10), rgba(10, 22, 40, 0.5));
  border: 1px solid var(--biz-border);
  border-radius: var(--radius);
  padding: 32px 24px;
}
.biz-section { max-width: var(--max-width); }
.biz-form {
  background: var(--biz-navy-card);
  border: 1px solid var(--biz-border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.biz-people-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 640px) {
  .biz-people-grid { grid-template-columns: 1fr; }
}
.biz-person-card {
  border: 1px solid var(--biz-border);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(198, 161, 91, 0.03);
}
.biz-person-card legend {
  font-weight: bold;
  color: var(--biz-gold);
  padding: 0 6px;
  font-size: 1.05rem;
}
.biz-person-card label {
  display: block;
  margin-top: 12px;
  margin-bottom: 4px;
  font-size: 0.85rem;
  color: var(--biz-text-muted);
}
.biz-person-card input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--biz-border);
  background: var(--biz-navy);
  color: var(--biz-text);
  font-size: 0.95rem;
}
.biz-form-error {
  margin: 16px 0 0;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid #f87171;
  color: #f87171;
  font-size: 0.9rem;
}
.biz-submit {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--biz-gold), #8a6d3b);
  color: #0a1628;
  font-weight: bold;
  font-size: 1.05rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.biz-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(198, 161, 91, 0.3); }
.biz-privacy-note {
  margin: 12px 0 0;
  font-size: 0.78rem;
  color: var(--biz-text-muted);
  text-align: center;
}

.biz-result-card {
  background: var(--biz-navy-card);
  border: 1px solid var(--biz-gold);
  border-radius: var(--radius);
  padding: 26px;
  color: var(--biz-text);
  animation: biz-fade-in 0.4s ease;
}
.biz-result-card .ad-slot {
  border-color: var(--biz-border);
  color: var(--biz-text-muted);
}
@keyframes biz-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.biz-pair-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  text-align: center;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--biz-border);
  position: relative;
}
.biz-pair-person { min-width: 140px; }
.biz-pair-symbol { font-size: 2.4rem; display: block; }
.biz-pair-link { font-size: 1.6rem; }
.biz-pair-sub { color: var(--biz-gold); font-size: 0.82rem; margin-top: 4px; }

.biz-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 640px) {
  .biz-two-col { grid-template-columns: 1fr; }
}
.biz-profile-card {
  border: 1px solid var(--biz-border);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(198, 161, 91, 0.025);
}
.biz-profile-card h3, .biz-profile-card h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: var(--biz-gold);
}
.biz-profile-card ul { margin: 0; padding-left: 18px; }
.biz-profile-card li { margin-bottom: 4px; }
.biz-sign-line { font-size: 1.1rem; margin: 4px 0; color: var(--biz-text); }
.biz-bazi-line { color: var(--biz-text-muted); font-size: 0.82rem; margin: 0 0 6px; }
.biz-born-sub { color: var(--biz-text-muted); font-size: 0.85rem; margin: 0 0 8px; }

.biz-subheading {
  color: var(--biz-gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.95rem;
  margin: 28px 0 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--biz-border);
}
.biz-element-note, .biz-role-intro { color: var(--biz-text-muted); font-size: 0.92rem; }
.biz-disclaimer-inline { font-size: 0.78rem; color: var(--biz-text-muted); text-align: center; margin: 8px 0 0; }

.biz-meter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  margin-bottom: 10px;
}
.biz-meter { text-align: center; }
.biz-meter-circle {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.6s ease;
}
.biz-meter-inner {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--biz-navy-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.95rem;
  color: var(--biz-text);
}
.biz-meter-label { font-size: 0.72rem; color: var(--biz-text-muted); }

.biz-lang-note { font-size: 0.8rem; color: var(--biz-text-muted); font-style: italic; margin: 0 0 12px; }
.biz-analysis-list { display: flex; flex-direction: column; gap: 8px; }
.biz-analysis-item {
  border: 1px solid var(--biz-border);
  border-radius: 10px;
  padding: 4px 14px;
  background: rgba(198, 161, 91, 0.015);
}
.biz-analysis-item summary { cursor: pointer; padding: 10px 0; font-weight: bold; color: var(--biz-text); }
.biz-analysis-body { padding: 0 0 12px; font-size: 0.92rem; }
.biz-analysis-body p { margin: 6px 0; }

.biz-insight-block { margin-bottom: 18px; }
.biz-insight-block h4 { margin: 0 0 8px; color: var(--biz-gold); font-size: 0.95rem; }
.biz-insight-block p { margin: 4px 0; }

.biz-plain-list { margin: 0 0 14px; padding-left: 18px; }
.biz-plain-list li { margin-bottom: 6px; line-height: 1.5; }
.biz-challenge-topics { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 14px; }
.biz-challenge-topics li {
  background: rgba(198, 161, 91, 0.1);
  border: 1px solid var(--biz-border);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.82rem;
  margin: 0;
}

.biz-checklist { list-style: none; padding: 0; margin: 0 0 8px; }
.biz-checklist li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--biz-border);
  font-size: 0.92rem;
}
.biz-checkbox { color: var(--biz-gold); margin-right: 6px; }

.biz-summary-box {
  background: rgba(198, 161, 91, 0.06);
  border: 1px solid var(--biz-gold);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 8px;
}
.biz-summary-box p { margin: 6px 0; }

.biz-disclaimer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--biz-border);
  font-size: 0.8rem;
  color: var(--biz-text-muted);
  text-align: center;
}

.biz-reset-btn {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  border: 1px solid var(--biz-gold);
  border-radius: 10px;
  background: transparent;
  color: var(--biz-gold);
  font-weight: bold;
  cursor: pointer;
}
.biz-reset-btn:hover { background: rgba(198, 161, 91, 0.1); }
