/* style.css - main styles; critical CSS is inlined in index.html */

/* Reserve scrollbar space to prevent layout shift when scrollbar appears */
html {
  scrollbar-gutter: stable;
}

/* ========================================================================
   FULL WIDTH: header, content, and tools use full viewport width (with padding).
   ======================================================================== */
.site-container {
  width: 100%;
  max-width: min(var(--site-content-max, 1320px), calc(100% - 2rem));
  margin-left: 1rem;
  margin-right: 1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}
@media (min-width: 576px) {
  .site-container {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    max-width: min(var(--site-content-max, 1320px), calc(100% - 3rem));
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
/* Header inner uses .site-container: fill the header bar, no extra margin */
.site-header .site-container {
  margin-left: 0;
  margin-right: 0;
  max-width: none;
  width: 100%;
}
@media (min-width: 576px) {
  .site-header .site-container {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
  }
}

/* --- Site content: same border and container width as header (do not stretch beyond header) --- */
.site-content {
  width: 100%;
  max-width: min(var(--site-content-max, 1320px), calc(100% - 2rem));
  margin-left: 1rem;
  margin-right: 1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}
@media (min-width: 576px) {
  .site-content {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    max-width: min(var(--site-content-max, 1320px), calc(100% - 3rem));
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Homepage article and sections: stay within header container width (no full-bleed) */
main .love-extra,
main .love-extra-inner {
  max-width: 100%;
  box-sizing: border-box;
}

/* Homepage content uses SAME container as header: no extra margin/padding on inner wrapper */
.site-content > .site-container {
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  max-width: 100%;
}
@media (min-width: 576px) {
  .site-content > .site-container {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

/* --- Site header: 80px, contained (inset + max-width), rounded bottom corners --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: min(var(--site-content-max, 1320px), calc(100% - 2rem));
  margin-left: 1rem;
  margin-right: 1rem;
  padding: 0;
  background: var(--site-header-bg, rgba(255, 255, 255, 0.3));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--site-header-border, rgba(255, 255, 255, 0.4));
  box-shadow: var(--site-header-shadow, 0 2px 16px rgba(0, 0, 0, 0.06));
  border-radius: 0 0 16px 16px;
  overflow: hidden;
  transition: background 0.25s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}
@media (min-width: 576px) {
  .site-header {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    max-width: min(var(--site-content-max, 1320px), calc(100% - 3rem));
  }
}

/* Header inner: full width, flex single row, no wrap */
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}
.site-header-inner.site-container {
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 576px) {
  .site-header-inner.site-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.site-header-inner .site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--site-link);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-header-inner .site-logo:hover {
  color: var(--site-link-hover);
  transform: scale(1.02);
}

.site-header-inner .site-logo svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Desktop nav: menu area spans wider, items distributed across available width */
.site-nav.desktop-nav {
  flex-wrap: nowrap;
  white-space: nowrap;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: space-evenly;
}
.site-nav.desktop-nav a {
  padding: 0.4rem 0.6rem;
  font-size: 0.875rem;
}

.site-nav a {
  padding: 0.5rem 0.75rem;
  color: var(--site-link);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 8px;
  position: relative;
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.25rem;
  height: 2px;
  background: linear-gradient(90deg, #e91e63, #a18cd1);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.site-nav a:hover {
  color: var(--site-link-hover);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.site-nav a.active {
  color: var(--site-link-hover);
  font-weight: 600;
}

.site-nav a.active::after {
  transform: scaleX(1);
  opacity: 1;
}

/* Focus ring for nav (accessibility) */
.site-nav a:focus-visible {
  outline: 2px solid var(--site-focus-ring);
  outline-offset: 2px;
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  background: var(--site-cta);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 14px var(--site-cta-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-cta:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px var(--site-cta-shadow);
}

.site-header-actions .site-cta-desktop {
  display: none;
}

@media (min-width: 992px) {
  .site-header-actions .site-cta-desktop {
    display: inline-flex;
  }
}

#theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--site-card-border);
  border-radius: 10px;
  background: var(--site-card-bg);
  color: var(--site-link);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#theme-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#theme-toggle svg {
  width: 22px;
  height: 22px;
}

#nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--site-card-border);
  border-radius: 10px;
  background: var(--site-card-bg);
  color: var(--site-link);
  cursor: pointer;
  transition: transform 0.2s ease;
}

#nav-hamburger:hover {
  transform: scale(1.05);
}

#nav-hamburger svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 991.98px) {
  .site-nav.desktop-nav {
    display: none;
  }

  #nav-hamburger {
    display: flex;
  }
}

/* Mobile menu overlay - compositor-friendly: opacity + transform only */
.site-nav.mobile-nav {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: auto;
  flex-direction: column;
  align-items: stretch;
  padding: 1rem;
  background: var(--site-header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--site-header-border);
  box-shadow: var(--site-header-shadow);
  z-index: 999;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  will-change: transform;
}

.site-nav.mobile-nav.nav-open {
  max-height: 80vh;
  opacity: 1;
  overflow-y: auto;
  transform: translateY(0);
}

@media (min-width: 992px) {
  .site-nav.mobile-nav {
    display: none !important;
  }
}

@media (max-width: 991.98px) {
  .site-nav.mobile-nav {
    display: flex;
  }

  .site-nav.mobile-nav a {
    padding: 0.75rem 1rem;
    border-radius: 8px;
  }

  .site-nav.mobile-nav a:hover {
    background: var(--site-card-bg);
  }
}

/* Hero: position context for floating hearts; flex center for tool pages */
.love-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 3rem 0;
}

.love-hero .hero-inner {
  width: 100%;
  max-width: 480px;
}

/* Home tool section: background full-width; inner content uses same container width as header; only this section centers the card horizontally */
.home-tool-section {
  width: 100%;
  box-sizing: border-box;
  background: var(--home-tool-bg, var(--site-bg));
  overflow: hidden;
}
.home-tool-section .home-tool-outer {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: inherit;
  padding: 2rem 0;
  box-sizing: border-box;
}
.home-tool-section .site-container.home-tool-outer {
  max-width: min(var(--site-content-max, 1320px), calc(100% - 2rem));
  margin-left: 1rem;
  margin-right: 1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 576px) {
  .home-tool-section .site-container.home-tool-outer {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    max-width: min(var(--site-content-max, 1320px), calc(100% - 3rem));
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
.home-tool-section .home-tool-wrapper {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  min-width: 0;
  position: relative;
  z-index: 1;
}

/* Home tool: tabs (pill style, active state) */
.home-tool-tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.home-tool-tab {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--site-input-border);
  background: var(--site-input-bg);
  color: var(--site-text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.2s ease;
}
.home-tool-tab:hover {
  background: var(--site-card-bg);
  color: var(--site-text);
}
.home-tool-tab.active {
  background: var(--site-cta);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 12px var(--site-cta-shadow);
}
.home-tool-tab:focus-visible {
  outline: 2px solid var(--site-focus-ring);
  outline-offset: 2px;
}

/* Disable non-composited transitions above-the-fold until load (reduces CLS/long tasks) */
.no-anim-until-load .home-tool-tab,
.no-anim-until-load .love-card .btn-cta,
.no-anim-until-load .love-card .form-control {
  transition: none;
}

/* Home tool: panels (spacing; visibility via .d-none / hidden) */
.home-tool-panel {
  margin-bottom: 1.25rem;
}

/* Home tool: date row – stack on mobile, one row on desktop */
.dob-inputs-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 576px) {
  .dob-inputs-row {
    flex-direction: row;
    gap: 0.5rem;
  }
}
.dob-inputs-row .form-control {
  flex: 1;
  min-width: 0;
}
.dob-inputs-row select.form-control {
  min-height: 48px;
}

/* ========== DOB Love Calculator: age preview, age gap, swap, modal ========== */
.dob-tool-card .dob-block {
  margin-bottom: 1.25rem;
}
.dob-tool-card .dob-block .form-label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--site-text-muted, #333);
}
.dob-tool-card .dob-select {
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.dob-age-preview {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--site-text-muted);
  min-height: 1.4em;
}
.dob-swap-btn {
  display: block;
  margin: 0 auto 1.25rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 12px;
  border: 2px solid rgba(233, 30, 99, 0.4);
  background: rgba(255, 255, 255, 0.5);
  color: var(--site-link);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.dob-swap-btn:hover {
  background: rgba(233, 30, 99, 0.12);
  transform: scale(1.02);
  box-shadow: 0 2px 12px rgba(233, 30, 99, 0.25);
}
.dob-swap-btn:active {
  transform: scale(0.98);
}
.dob-age-gap-wrap {
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  min-height: 1.4em;
}
.dob-age-gap-label {
  color: var(--site-text-muted);
}
.dob-age-gap-value {
  transition: color 0.2s ease;
}
.dob-age-gap-green .dob-age-gap-value { color: #2e7d32; }
.dob-age-gap-yellow .dob-age-gap-value { color: #f9a825; }
.dob-age-gap-red .dob-age-gap-value { color: #c62828; }
html[data-theme="dark"] .dob-age-gap-green .dob-age-gap-value { color: #81c784; }
html[data-theme="dark"] .dob-age-gap-yellow .dob-age-gap-value { color: #ffd54f; }
html[data-theme="dark"] .dob-age-gap-red .dob-age-gap-value { color: #e57373; }

.dob-tool-card .home-tool-cta:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* DOB result modal: sync bars, life path, strengths/challenges, future insight */
.dob-result-modal .dob-life-path-match {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--site-text-muted);
  margin: 0.5rem 0 0.75rem;
}
.dob-sync-bars {
  margin-bottom: 1rem;
}
.dob-sync-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.dob-sync-label {
  flex: 0 0 110px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--site-text);
}
.dob-sync-bar-wrap {
  flex: 1;
  height: 10px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 9999px;
  overflow: hidden;
}
.dob-sync-bar {
  height: 100%;
  width: calc(var(--sync, 0) * 1%);
  max-width: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--love-progress-mid), var(--love-progress-high));
  transition: width 0.5s ease-out;
}
.dob-sync-value {
  flex: 0 0 2.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--site-text-muted);
  text-align: right;
}
.dob-strengths-challenges {
  text-align: left;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.dob-result-modal .dob-strengths,
.dob-result-modal .dob-challenges {
  margin-bottom: 0.5rem;
}
.dob-result-modal .dob-strengths h4,
.dob-result-modal .dob-challenges h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--site-text);
}
.dob-result-modal .dob-strengths ul,
.dob-result-modal .dob-challenges ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--site-text-muted);
  line-height: 1.5;
}
.dob-future-insight {
  font-size: 0.9rem;
  font-weight: 600;
  font-style: italic;
  color: var(--site-text-muted);
  text-align: center;
  margin: 0 0 1rem;
  line-height: 1.4;
}

/* Home tool: button section – center, large rounded, icon + text, hover scale + glow */
.home-tool-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}
.home-tool-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 14px;
  border: none;
  background: var(--site-cta);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--site-cta-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.home-tool-cta:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 28px var(--site-cta-shadow);
  opacity: 0.98;
}
.home-tool-cta:active {
  transform: scale(0.98);
}
.home-tool-cta .btn-cta-icon {
  font-size: 1.25rem;
  line-height: 1;
}
.home-tool-cta:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.home-tool-cta:disabled:hover {
  transform: none;
  box-shadow: 0 4px 20px var(--site-cta-shadow);
}

/* Home: Relationship type dropdown – colorful, rounded, animated */
.home-tool-common {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--site-card-border, rgba(255, 255, 255, 0.35));
}
.home-relationship-select {
  min-height: 48px;
  border-radius: 14px;
  font-weight: 600;
  border: 2px solid rgba(233, 30, 99, 0.35);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(248, 232, 240, 0.8) 100%);
  color: var(--site-text, #1a1a2e);
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.home-relationship-select:hover {
  border-color: rgba(233, 30, 99, 0.55);
  box-shadow: 0 4px 16px rgba(233, 30, 99, 0.2);
  transform: translateY(-1px);
}
.home-relationship-select:focus {
  border-color: var(--site-focus-ring, #e91e63);
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.25);
  outline: none;
}

/* Home: Advanced options – collapsed by default */
.home-advanced-wrap {
  margin-top: 1rem;
}
.home-advanced-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--site-link);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}
.home-advanced-toggle:hover {
  color: var(--site-link-hover);
  background: rgba(233, 30, 99, 0.08);
}
.home-advanced-icon {
  font-size: 1rem;
}
.home-advanced-options {
  margin-top: 0.75rem;
  padding: 0.75rem 0;
}
.home-advanced-options.collapse {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  transform: scaleY(0);
  transform-origin: top;
  transition: opacity 0.2s ease, transform 0.3s ease;
  will-change: transform;
}
.home-advanced-options.collapse.show {
  max-height: 180px;
  opacity: 1;
  margin-top: 0.75rem;
  padding: 0.75rem 0;
  transform: scaleY(1);
}
.home-duration-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.home-duration-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.home-duration-btn {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 12px;
  border: 2px solid var(--site-input-border, rgba(0, 0, 0, 0.12));
  background: var(--site-input-bg, rgba(255, 255, 255, 0.6));
  color: var(--site-text-muted);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.home-duration-btn:hover {
  border-color: rgba(233, 30, 99, 0.4);
  background: rgba(255, 248, 252, 0.9);
  color: var(--site-text);
}
.home-duration-radio:checked + .home-duration-btn {
  border-color: var(--site-cta);
  background: rgba(233, 30, 99, 0.12);
  color: var(--site-text);
}
.home-duration-radio:focus-visible + .home-duration-btn {
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.3);
}

/* Home tool card: glassmorphism, premium spacing (inherits .love-card) */
.home-tool-card {
  position: relative;
  z-index: 1;
}

/* Home tool: heading area – center, modern typography */
.home-tool-title {
  text-align: center;
  margin-bottom: 0.5rem;
}
.home-tool-tagline {
  text-align: center;
  font-size: 1rem;
  color: var(--site-text-muted);
  margin-bottom: 1.5rem;
}

/* Tool pages (DOB, Zodiac, Name+DOB, Marriage): same section/wrapper/card as home tool */
.tool-page-section {
  width: 100%;
  box-sizing: border-box;
  background: var(--home-tool-bg, var(--site-bg));
  position: relative;
}
.tool-page-section .tool-page-outer {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: inherit;
  padding: 2rem 0;
}
.tool-page-section .tool-page-wrapper {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.tool-page-card {
  position: relative;
  z-index: 1;
}

/* Tool page card: same rounded border, padding, spacing as home tool card */
.tool-page-card .tool-dob-row,
.tool-page-card .tool-zodiac-right {
  margin-bottom: 1.25rem;
}
.tool-page-card .form-label + .form-control,
.tool-page-card .form-label + .dob-inputs {
  margin-top: 0.25rem;
}
.tool-page-card .mt-3 {
  margin-top: 1rem;
}
.tool-page-card .home-tool-actions {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

/* About/extra section: content constrained to readable width inside .site-container */
.love-extra-inner {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Article: cards, headings, CTA */
.article-h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--site-text, #1a1a2e);
  line-height: 1.2;
}
.article-header p {
  margin: 0 0 1rem;
  color: var(--site-text-muted, #4a4a6a);
  line-height: 1.6;
}
.article-card {
  background: var(--site-card-bg, rgba(255, 255, 255, 0.22));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  border: 1px solid var(--site-card-border, rgba(255, 255, 255, 0.35));
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.article-card:hover {
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.08);
}
.article-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--site-text, #1a1a2e);
}
.article-card h3 {
  margin: 1rem 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--site-text, #1a1a2e);
}
.article-card p {
  margin: 0 0 0.5rem;
  color: var(--site-text-muted, #4a4a6a);
  line-height: 1.6;
}
.article-faq .accordion-item {
  margin-bottom: 0.5rem;
}
.article-cta-wrap {
  margin: 1.25rem 0 0 !important;
  text-align: center;
}
.article-cta {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  color: #fff !important;
  border: none;
  background: linear-gradient(135deg, #e91e63 0%, #ff4081 50%, #c2185b 100%);
  background-size: 200% 200%;
  box-shadow: 0 4px 14px rgba(233, 30, 99, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-position 0.25s ease;
}
.article-cta:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 24px rgba(233, 30, 99, 0.45);
  background-position: 100% 50%;
}
@media (max-width: 767.98px) {
  .article-cta {
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    min-height: 0;
    line-height: 1.35;
  }
}

/* --- Variables (fallbacks; theme.css overrides with --site-*) --- */
:root {
  --site-content-max: 1320px;
  --love-bg: linear-gradient(135deg, #ff9a9e 0%, #fecfef 40%, #fecfef 60%, #a18cd1 100%);
  --love-card-bg: rgba(255, 255, 255, 0.22);
  --love-card-border: rgba(255, 255, 255, 0.35);
  --love-cta: linear-gradient(135deg, #e91e63, #c2185b);
  --love-progress-low: #78909c;
  --love-progress-mid: #ec407a;
  --love-progress-high: #e91e63;
  --love-progress-soul: #c2185b;
}

/* --- Love card base: same on home and all tool pages (rounded border, padding, glassmorphism) --- */
.love-card {
  background: var(--site-card-bg, var(--love-card-bg));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 1px solid var(--site-card-border, var(--love-card-border));
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  padding: 2.25rem;
  min-height: 400px;
  box-sizing: border-box;
}
.love-card h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  text-align: center;
  color: var(--site-text, #1a1a2e);
}
.love-card .subtitle {
  margin: 0 0 1.5rem;
  text-align: center;
  color: var(--site-text-muted, #4a4a6a);
  font-size: 1rem;
}
.love-card .form-label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--site-text-muted, #333);
}
.love-card .form-control {
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--site-input-border, rgba(0, 0, 0, 0.15));
  background: var(--site-input-bg, rgba(255, 255, 255, 0.6));
  font-size: 1rem;
  color: var(--site-text, #1a1a2e);
  padding: 0.5rem 1rem;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.love-card .form-control:focus {
  border-color: var(--site-focus-ring, #e91e63);
  box-shadow: 0 0 0 3px var(--site-focus-ring);
  outline: none;
}
.love-card .form-control::placeholder {
  color: var(--site-text-muted, #6a6a8a);
}

/* --- Result section: fixed height to avoid CLS --- */
.love-result-section {
  min-height: 380px;
}

.love-result-card {
  background: var(--site-card-bg, var(--love-card-bg));
  backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 1px solid var(--site-card-border, var(--love-card-border));
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* Circular progress: conic-gradient driven by --progress (0-100) */
.love-progress-wrap {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 1.25rem;
}

.love-progress-circle {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    var(--progress-color, var(--love-progress-mid)) 0%,
    var(--progress-color, var(--love-progress-mid)) calc(var(--progress) * 1%),
    rgba(255, 255, 255, 0.35) calc(var(--progress) * 1%),
    rgba(255, 255, 255, 0.35) 100%
  );
  transition: --progress 0.4s ease-out;
}

.love-progress-inner {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: var(--love-card-bg);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.love-percent {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--site-text, #1a1a2e);
  line-height: 1;
}

.love-percent-suffix {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--site-text, #1a1a2e);
}

.love-message {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--site-text-muted, #333);
  margin: 0 0 0.25rem;
}

.love-emoji {
  text-align: center;
  font-size: 2rem;
  margin: 0 0 1rem;
}

/* ========== HOME RESULT MODAL (popup, centered, scale+fade) ========== */
.love-result-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.25s ease, opacity 0.25s ease;
}
.love-result-modal[aria-hidden="false"] {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}
.love-result-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.love-result-modal[aria-hidden="false"] .love-result-modal-backdrop {
  opacity: 1;
}
.love-result-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.92);
  opacity: 0;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}
.love-result-modal[aria-hidden="false"] .love-result-modal-dialog {
  transform: scale(1);
  opacity: 1;
}
.love-result-modal-content {
  padding: 2rem 1.5rem;
  position: relative;
}
.love-result-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  color: var(--site-text-muted);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.love-result-modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--site-text);
  transform: scale(1.05);
}
.love-percent-row {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: center;
}
.love-reaction-emoji {
  font-size: 1.75rem;
  line-height: 1;
  animation: loveReactionBounce 0.5s ease-out;
}
@keyframes loveReactionBounce {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}
.love-result-insights {
  font-size: 0.9rem;
  color: var(--site-text-muted);
  text-align: center;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}
.love-result-modal-actions .btn-primary {
  min-height: 48px;
  border-radius: 12px;
  font-weight: 700;
}
.love-share-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.love-share-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--site-text-muted);
  margin-right: 0.25rem;
}
.love-share-inline .btn-sm {
  border-radius: 10px;
}

/* Celebration: lightweight particles (home only, above 70%) */
.love-celebration-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.love-celebration-particle {
  position: absolute;
  font-size: 1.25rem;
  opacity: 0;
  animation: loveCelebrationFloat 3.5s ease-out forwards;
}
@keyframes loveCelebrationFloat {
  0% {
    transform: translateY(0) scale(0.5);
    opacity: 0.8;
  }
  70% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-80vh) scale(1);
    opacity: 0;
  }
}

/* Share section (other pages) */
.love-share-section .btn {
  min-height: 44px;
  border-radius: 12px;
}

/* Footer (legacy class; new site-footer in footer section) */
.love-footer {
  background: var(--site-footer-bg, rgba(0, 0, 0, 0.06));
  border-top: 1px solid var(--site-footer-border, rgba(255, 255, 255, 0.2));
}

.love-footer .footer-link {
  color: var(--site-footer-text, #4a4a6a);
  text-decoration: none;
  font-weight: 500;
}

.love-footer .footer-link:hover {
  color: var(--site-link-hover, #e91e63);
}

.love-footer .text-muted {
  color: var(--site-text-muted, #6a6a8a) !important;
}

/* --- Site footer: full width (edge-to-edge background); inner aligned with header --- */
.site-footer {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
  background: var(--site-footer-bg);
  position: relative;
  overflow: hidden;
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: min(var(--site-content-max, 1320px), calc(100% - 2rem));
  margin-left: 1rem;
  margin-right: 1rem;
  padding: 0 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
  box-sizing: border-box;
}
@media (min-width: 576px) {
  .site-footer-inner {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    max-width: min(var(--site-content-max, 1320px), calc(100% - 3rem));
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff9a9e, #e91e63, #a18cd1, #ff9a9e);
  background-size: 200% 100%;
  animation: footerBorder 4s linear infinite;
}

@keyframes footerBorder {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

.site-footer-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-footer-social:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.site-footer-social.facebook { background: #1877f2; }
.site-footer-social.twitter { background: #000; }
.site-footer-social.instagram { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.site-footer-social.youtube { background: #ff0000; }
.site-footer-social.reddit { background: #ff4500; }
.site-footer-social.quora { background: #a82400; }

.site-footer-center {
  flex: 1;
  text-align: center;
  font-size: 0.875rem;
  color: var(--site-footer-text);
}

.site-footer-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-footer-right a {
  color: var(--site-footer-text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.site-footer-right a:hover {
  color: var(--site-link-hover);
  text-decoration: underline;
}

@media (max-width: 767.98px) {
  .site-footer {
    height: auto;
    min-height: 80px;
    padding: 1.25rem 0;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 0;
  }

  .site-footer-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 1rem 1.25rem;
    text-align: center;
  }

  .site-footer-left {
    order: 1;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .site-footer-center {
    order: 2;
    flex: none;
    font-size: 0.875rem;
    line-height: 1.5;
    padding: 0 0.5rem;
    max-width: 100%;
  }

  .site-footer-right {
    order: 3;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
  }

  .site-footer-right a {
    font-size: 0.875rem;
    padding: 0.25rem 0;
  }
}

@media (max-width: 479.98px) {
  .site-footer-inner {
    padding: 1rem 1rem;
    gap: 1rem;
  }

  .site-footer-left {
    gap: 0.5rem;
  }

  .site-footer-center {
    font-size: 0.8125rem;
  }

  .site-footer-right {
    gap: 0.35rem 0.75rem;
  }

  .site-footer-right a {
    font-size: 0.8125rem;
  }
}

/* Skip link: visible on focus for a11y */
.visually-hidden-focusable {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0.25rem !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.visually-hidden-focusable:focus {
  position: fixed !important;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 9999;
  width: auto !important;
  height: auto !important;
  padding: 0.5rem 1rem !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
  background: var(--site-card-bg, #fff);
  color: var(--site-text, #1a1a2e);
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Accordion overrides for glassmorphism theme */
.love-extra .accordion-item {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid var(--love-card-border);
  border-radius: 12px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.love-extra .accordion-button {
  background: rgba(255, 255, 255, 0.25);
}

.love-extra .accordion-button:not(.collapsed) {
  background: rgba(255, 255, 255, 0.35);
  color: #1a1a2e;
}

.love-extra .accordion-body {
  background: rgba(255, 255, 255, 0.15);
}

/* Mobile: full-width button, sticky CTA optional */
@media (max-width: 575.98px) {
  .love-card {
    padding: 1.75rem;
    min-height: 380px;
  }

  .love-result-card {
    padding: 1.5rem;
  }

  .love-progress-wrap {
    width: 160px;
    height: 160px;
  }

  .love-percent {
    font-size: 2rem;
  }

  .love-percent-suffix {
    font-size: 1.25rem;
  }
}

/* Touch-friendly nav */
@media (max-width: 380px) {
  .site-nav a {
    font-size: 0.9rem;
  }
}

/* --- Global hover consistency (0.2s ease) --- */
.site-global-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: scale(0.98);
}

.love-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.love-card:hover {
  transform: scale(1.01);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.form-control {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:hover {
  border-color: var(--site-focus-ring, rgba(255, 105, 180, 0.5));
}

/* --- Tool card: Zodiac (right-side inputs) --- */
@media (min-width: 576px) {
  .tool-card-zodiac .tool-zodiac-right {
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }
}

.tool-card-zodiac .btn-cta {
  text-align: center;
}

/* --- Zodiac compatibility: screenshot structure (tagline, two dropdowns, compat indicator, CTA) --- */
.zodiac-tool-section {
  background: var(--zodiac-section-bg, var(--home-tool-bg, #f97272));
}
[data-theme="dark"] .zodiac-tool-section {
  background: var(--zodiac-section-bg, var(--home-tool-bg));
}

.tool-card-zodiac .zodiac-tagline {
  margin: 0 0 1.5rem;
  text-align: center;
  font-size: 1rem;
  color: var(--site-text-muted, #4a4a6a);
  font-weight: 500;
  line-height: 1.4;
}

.zodiac-selects-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.5rem;
}
@media (max-width: 575.98px) {
  .zodiac-selects-row {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .zodiac-swap-btn {
    grid-column: 1;
    order: 1;
  }
  .zodiac-select-group:first-of-type { order: 0; }
  .zodiac-select-group:last-of-type { order: 2; }
}
.zodiac-select-group .form-label {
  margin-bottom: 0.5rem;
}
.zodiac-select-group .form-control {
  width: 100%;
}

/* Zodiac dropdowns: colorful, rounded, smooth hover & focus */
.tool-card-zodiac .zodiac-select {
  min-height: 48px;
  border-radius: 14px;
  font-weight: 600;
  border: 2px solid rgba(233, 30, 99, 0.3);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 248, 252, 0.9) 100%);
  color: var(--site-text, #1a1a2e);
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.tool-card-zodiac .zodiac-select:hover {
  border-color: rgba(233, 30, 99, 0.5);
  box-shadow: 0 4px 16px rgba(233, 30, 99, 0.2);
  transform: translateY(-1px);
}
.tool-card-zodiac .zodiac-select:focus {
  border-color: var(--site-focus-ring, #e91e63);
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.25);
  outline: none;
}
.zodiac-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.zodiac-selected-icon {
  font-size: 1.5rem;
  line-height: 1;
  min-width: 1.5rem;
  text-align: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.zodiac-selected-icon.has-value {
  opacity: 1;
  transform: scale(1);
}
.zodiac-select-wrap .zodiac-select {
  flex: 1;
}

/* Swap Signs button – between the two selects (grid placement) */
.zodiac-swap-btn {
  align-self: center;
  padding: 0.5rem 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 12px;
  border: 2px solid rgba(233, 30, 99, 0.4);
  background: rgba(255, 255, 255, 0.5);
  color: var(--site-link);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.zodiac-swap-btn:hover {
  background: rgba(233, 30, 99, 0.12);
  transform: scale(1.02);
  box-shadow: 0 2px 12px rgba(233, 30, 99, 0.25);
}
.zodiac-swap-btn:active {
  transform: scale(0.98);
}

/* Selection feedback: subtle glow on card when both signs selected */
.tool-card-zodiac.zodiac-has-selection {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 0 0 1px var(--site-card-border), 0 0 24px rgba(233, 30, 99, 0.15);
  transition: box-shadow 0.3s ease;
}
html[data-theme="dark"] .tool-card-zodiac.zodiac-has-selection {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 0 1px var(--site-card-border), 0 0 24px rgba(233, 30, 99, 0.2);
}

.zodiac-compat-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.zodiac-compat-pill {
  flex-shrink: 0;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}
.zodiac-compat-pill-your {
  background: linear-gradient(135deg, #e91e63, #c2185b);
  box-shadow: 0 2px 8px rgba(233, 30, 99, 0.35);
}
.zodiac-compat-pill-partner {
  background: linear-gradient(135deg, #f48fb1, #e91e63);
  box-shadow: 0 2px 8px rgba(244, 143, 177, 0.4);
}
.zodiac-compat-line {
  flex: 1;
  min-width: 24px;
  max-width: 80px;
  height: 2px;
  background: linear-gradient(90deg, rgba(233, 30, 99, 0.35), rgba(233, 30, 99, 0.5), rgba(233, 30, 99, 0.35));
  border-radius: 1px;
}
.zodiac-compat-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd54f, #ffb300);
  color: #5d4037;
  box-shadow: 0 2px 12px rgba(255, 179, 0, 0.4);
}
.zodiac-compat-icon svg {
  width: 22px;
  height: 22px;
}

/* Zodiac result modal content */
.zodiac-result-modal .zodiac-connection-type {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--site-text, #1a1a2e);
  margin: 0.5rem 0 0.75rem;
}
.zodiac-result-modal .zodiac-element-pairing {
  font-size: 0.95rem;
  color: var(--site-text-muted);
  text-align: center;
  margin-bottom: 1rem;
  line-height: 1.5;
}
.zodiac-strengths-challenges {
  text-align: left;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.zodiac-strengths,
.zodiac-challenges {
  margin-bottom: 0.5rem;
}
.zodiac-strengths h4,
.zodiac-challenges h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--site-text);
}
.zodiac-strengths ul,
.zodiac-challenges ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--site-text-muted);
  line-height: 1.5;
}
.zodiac-why-match-wrap {
  margin-bottom: 1rem;
}
.zodiac-why-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--site-link);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}
.zodiac-why-toggle:hover {
  color: var(--site-link-hover);
  background: rgba(233, 30, 99, 0.08);
}
.zodiac-why-icon {
  font-size: 0.85rem;
}
.zodiac-why-content {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  padding-top: 0;
  transform: scaleY(0);
  transform-origin: top;
  transition: opacity 0.2s ease, transform 0.3s ease;
  will-change: transform;
}
.zodiac-why-content.show {
  max-height: 200px;
  opacity: 1;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  transform: scaleY(1);
}
.zodiac-why-content p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--site-text-muted);
  line-height: 1.5;
}
.zodiac-share-summary {
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  color: var(--site-text);
  margin: 0 0 1rem;
  padding: 0.5rem 0.75rem;
  background: rgba(233, 30, 99, 0.08);
  border-radius: 12px;
  user-select: text;
  -webkit-user-select: text;
}

/* --- Marriage Calculator: screenshot structure (heading, two-col, divider, optional dropdowns, CTA) --- */
.marriage-tool-section {
  background: var(--marriage-section-bg, var(--home-tool-bg));
}
[data-theme="dark"] .marriage-tool-section {
  background: var(--marriage-section-bg, var(--home-tool-bg));
}

.dob-tool-section {
  background: var(--dob-section-bg, var(--home-tool-bg));
}
[data-theme="dark"] .dob-tool-section {
  background: var(--dob-section-bg, var(--home-tool-bg));
}

.name-dob-tool-section {
  background: var(--name-dob-section-bg, var(--home-tool-bg));
}
[data-theme="dark"] .name-dob-tool-section {
  background: var(--name-dob-section-bg, var(--home-tool-bg));
}

[data-theme="dark"] .marriage-tool-title {
  color: #ec407a;
}

.marriage-tool-card .marriage-tool-header {
  text-align: center;
  margin-bottom: 0.5rem;
}
.marriage-tool-icon-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 0.35rem;
  color: #7c4dff;
}
.marriage-tool-icon-ring svg {
  width: 28px;
  height: 28px;
}
.marriage-tool-title {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  text-align: center;
  color: #c2185b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.marriage-title-heart {
  font-size: 0.85em;
  line-height: 1;
}
.marriage-tool-tagline {
  margin: 0 0 1.5rem;
  text-align: center;
  font-size: 1rem;
  color: var(--site-text-muted, #4a4a6a);
  font-weight: 500;
}

.marriage-inputs-row,
.marriage-extra-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 575.98px) {
  .marriage-inputs-row,
  .marriage-extra-row {
    grid-template-columns: 1fr;
  }
}
.marriage-input-group .form-label {
  margin-bottom: 0.5rem;
}
.marriage-input-group .form-label + .form-control {
  margin-top: 0;
}
.marriage-wedding-date-wrap {
  margin-bottom: 1.25rem;
}
.marriage-wedding-date-wrap .form-label {
  margin-bottom: 0.5rem;
}
.marriage-date-input {
  width: 100%;
}

.marriage-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.marriage-divider-pill {
  flex-shrink: 0;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.7), rgba(194, 24, 91, 0.8));
  box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
}
.marriage-divider-line {
  flex: 1;
  min-width: 24px;
  max-width: 80px;
  height: 2px;
  background: linear-gradient(90deg, rgba(233, 30, 99, 0.3), rgba(233, 30, 99, 0.5), rgba(233, 30, 99, 0.3));
  border-radius: 1px;
}
.marriage-divider-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #7c4dff;
  background: rgba(124, 77, 255, 0.15);
}
.marriage-divider-icon svg {
  width: 20px;
  height: 20px;
}

/* Marriage: Day/Month/Year inputs (rounded, soft hover/focus), aligned row desktop, stacked mobile */
.marriage-dob-label {
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}
.marriage-dob-inputs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.marriage-dob-inputs .form-control {
  flex: 1;
  min-width: 0;
}
.marriage-dob-inputs select.form-control,
.marriage-date-select {
  min-height: 48px;
  border-radius: 12px;
}
.marriage-wedding-date-wrap .marriage-dob-inputs {
  margin-top: 0.35rem;
}

/* Marriage real-time previews (Married Since, Age at Marriage) */
.marriage-previews {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(233, 30, 99, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(233, 30, 99, 0.2);
}
.marriage-married-since,
.marriage-age-at-marriage {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--site-text-muted, #4a4a6a);
}
.marriage-age-at-marriage:last-child {
  margin-bottom: 0;
}

/* Marriage result modal: stability badge, 4 pillars, strengths/challenges, insight, anniversary */
.marriage-result-modal .love-result-modal-dialog {
  max-width: 440px;
}
.marriage-result-modal .marriage-stability-badge {
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--site-text-muted);
  margin: 0.5rem 0 1rem;
}
.marriage-pillars {
  margin-bottom: 1rem;
}
.marriage-pillar-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.marriage-pillar-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--site-text-muted);
}
.marriage-pillar-bar-wrap {
  width: 100%;
  min-width: 80px;
  height: 10px;
  background: rgba(233, 30, 99, 0.15);
  border-radius: 9999px;
  overflow: hidden;
}
.marriage-pillar-bar {
  height: 100%;
  width: calc(var(--pillar, 0) * 1%);
  max-width: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #b39ddb, #7e57c2);
  transition: width 0.6s ease-out;
}
.marriage-pillar-row:nth-child(1) .marriage-pillar-bar { background: linear-gradient(90deg, #ce93d8, #ab47bc); }
.marriage-pillar-row:nth-child(2) .marriage-pillar-bar { background: linear-gradient(90deg, #80cbc4, #26a69a); }
.marriage-pillar-row:nth-child(3) .marriage-pillar-bar { background: linear-gradient(90deg, #90caf9, #42a5f5); }
.marriage-pillar-row:nth-child(4) .marriage-pillar-bar { background: linear-gradient(90deg, #a5d6a7, #66bb6a); }
.marriage-pillar-value {
  font-size: 0.875rem;
  font-weight: 700;
  min-width: 2.5rem;
  text-align: right;
  color: var(--site-text);
}
.marriage-strengths-challenges {
  margin-bottom: 1rem;
}
.marriage-result-modal .marriage-strengths h4,
.marriage-result-modal .marriage-challenges h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}
.marriage-result-modal .marriage-strengths ul,
.marriage-result-modal .marriage-challenges ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--site-text-muted);
  font-size: 0.9rem;
}
.marriage-future-insight {
  text-align: center;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--site-text-muted);
  margin: 0 0 0.5rem;
  line-height: 1.4;
}
.marriage-anniversary-countdown {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--site-text-muted);
  margin: 0 0 1rem;
}

/* --- Tool card: DOB (Your Birthday | Partner Birthday, Day/Month/Year) --- */
.tool-dob-row {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
@media (min-width: 576px) {
  .tool-dob-row {
    grid-template-columns: 1fr 1fr;
  }
}
.tool-dob-side .form-label {
  margin-bottom: 0.5rem;
}
.dob-inputs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.dob-inputs .form-control {
  flex: 1;
  min-width: 0;
}
.dob-inputs select.form-control {
  min-height: 48px;
}

/* --- Tool card: Name + DOB (two columns desktop) --- */
.tool-name-dob-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .tool-name-dob-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.tool-name-dob-col .form-label { margin-bottom: 0.35rem; }
.tool-name-dob-col .dob-inputs { margin-top: 0.5rem; }

/* ========== Name + DOB Love Calculator: vibe, initials, age, swap, modal ========== */
.name-dob-tool-card .name-dob-block {
  margin-bottom: 1.25rem;
}
.name-dob-tool-card .name-dob-block .form-label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--site-text-muted, #333);
}
.name-dob-dob-label { margin-top: 0.75rem; }
.name-dob-dob-row { margin-top: 0.35rem; }
.name-dob-vibe {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--site-text-muted);
  min-height: 1.3em;
}
.name-dob-age-preview {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--site-text-muted);
  min-height: 1.4em;
}
.name-dob-swap-btn {
  display: block;
  margin: 0 auto 1.25rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 12px;
  border: 2px solid rgba(233, 30, 99, 0.4);
  background: rgba(255, 255, 255, 0.5);
  color: var(--site-text);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.name-dob-swap-btn:hover {
  border-color: rgba(233, 30, 99, 0.7);
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.03);
}
.name-dob-initials-wrap {
  margin-bottom: 1rem;
  padding: 0.5rem 0.75rem;
  background: rgba(233, 30, 99, 0.08);
  border-radius: 10px;
  font-size: 0.95rem;
}
.name-dob-initials-label {
  font-weight: 600;
  color: var(--site-text-muted);
}
.name-dob-initials-value {
  font-weight: 700;
  color: var(--site-text);
}

/* Name+DOB result modal: dual scores, reaction, why match, strengths/challenges, couple vibe */
.name-dob-result-modal .love-result-modal-dialog {
  max-width: 440px;
}
.name-dob-reaction-emoji {
  text-align: center;
  font-size: 1.75rem;
  margin: 0.5rem 0 0;
  line-height: 1;
}
.name-dob-reaction-bounce {
  animation: nameDobReactionBounce 0.5s ease-out;
}
@keyframes nameDobReactionBounce {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}
.name-dob-dual-scores {
  margin: 0.75rem 0 1rem;
  padding: 0.75rem 1rem;
  background: rgba(233, 30, 99, 0.08);
  border-radius: 12px;
}
.name-dob-harmony-row {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}
.name-dob-harmony-row:last-child { margin-bottom: 0; }
.name-dob-harmony-label {
  font-weight: 600;
  color: var(--site-text-muted);
}
.name-dob-harmony-value {
  font-weight: 700;
  color: var(--site-text);
}
.name-dob-couple-vibe {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--site-text-muted);
  margin: 0 0 0.75rem;
}
.name-dob-why-match {
  font-size: 0.9rem;
  color: var(--site-text-muted);
  line-height: 1.5;
  margin: 0 0 1rem;
}
.name-dob-strengths-challenges {
  margin-bottom: 1rem;
}
.name-dob-result-modal .name-dob-strengths h4,
.name-dob-result-modal .name-dob-challenges h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}
.name-dob-result-modal .name-dob-strengths ul,
.name-dob-result-modal .name-dob-challenges ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--site-text-muted);
  font-size: 0.9rem;
}

/* --- Dropdowns (select): colorful, rounded, hover/focus --- */
.love-card select.form-control,
select.form-control.tool-select {
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.4), rgba(230, 64, 122, 0.15));
  border: 1px solid rgba(233, 30, 99, 0.35);
  color: var(--site-text, #1a1a2e);
  padding: 0.5rem 2rem 0.5rem 1rem;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.love-card select.form-control:hover,
select.form-control.tool-select:hover {
  border-color: rgba(233, 30, 99, 0.6);
  box-shadow: 0 0 0 2px rgba(233, 30, 99, 0.2);
}

.love-card select.form-control:focus,
select.form-control.tool-select:focus {
  border-color: var(--site-focus-ring, #e91e63);
  box-shadow: 0 0 0 3px var(--site-focus-ring);
  outline: none;
}

/* Dark mode: dropdown text visible on all tools (home, zodiac, by DOB, etc.) */
html[data-theme="dark"] select.form-control,
html[data-theme="dark"] .love-card select,
html[data-theme="dark"] select.form-control.tool-select {
  color: var(--site-select-text, #f0e6ed) !important;
  background-color: var(--site-select-bg, rgba(55, 30, 60, 0.95)) !important;
  background-image: none !important;
}
html[data-theme="dark"] select.form-control option,
html[data-theme="dark"] .love-card select option {
  color: var(--site-select-text, #f0e6ed) !important;
  background-color: var(--site-select-option-bg, rgba(45, 25, 50, 0.98)) !important;
}

/* Legal / content pages: same container width as header for alignment */
/* --- Legal pages: minimal header (logo, Return to home, theme toggle only) --- */
.legal-header .legal-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}
@media (min-width: 576px) {
  .legal-header .legal-header-inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
/* Legal header: logo and name match main header exactly (same size, gap, alignment) */
.legal-header .site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--site-link);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}
.legal-header .site-logo:hover {
  color: var(--site-link-hover);
  transform: scale(1.02);
}
.legal-header .site-logo svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.legal-header-return {
  font-weight: 600;
  font-size: 1rem;
  color: var(--site-link);
  text-decoration: none;
  transition: color 0.2s ease;
}
.legal-header-return:hover {
  color: var(--site-link-hover);
}
.legal-header .site-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.legal-header .site-nav,
.legal-header .site-cta-desktop {
  display: none !important;
}
.legal-header #nav-hamburger {
  display: none !important;
}

.legal-page main {
  width: 100%;
  max-width: min(var(--site-content-max, 1320px), calc(100% - 2rem));
  margin-left: 1rem;
  margin-right: 1rem;
  padding: 2rem 1rem 3rem;
  box-sizing: border-box;
}
@media (min-width: 576px) {
  .legal-page main {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    max-width: min(var(--site-content-max, 1320px), calc(100% - 3rem));
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.legal-page .legal-content {
  max-width: 720px;
  margin: 0 auto;
}

.legal-page .legal-content h1 {
  margin-bottom: 1rem;
  color: var(--site-text);
}

.legal-page .legal-content h2 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
  color: var(--site-text);
}

.legal-page .legal-content p {
  margin-bottom: 1rem;
  color: var(--site-text-muted);
  line-height: 1.6;
}

/* Contact form feedback */
.contact-feedback {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-top: 1rem;
  font-weight: 500;
}

.contact-feedback-success {
  background: rgba(76, 175, 80, 0.2);
  color: #2e7d32;
}

.contact-feedback-error {
  background: rgba(244, 67, 54, 0.2);
  color: #c62828;
}
