﻿/* =========================================================
   LoveCalculatorName.com Ã¢â‚¬â€ Design system
   Palette psychology (modern romantic):
   - aubergine ink : intimacy, privacy, premium trust
   - porcelain     : calm, clean, modern (not the warm-cream clichÃƒÂ©)
   - coral rose    : attraction, warmth, action
   - soft iris     : dreamy mysticism, youth, hope
   - amber         : golden hour, optimism, "something precious"
   Visitors: 16Ã¢â‚¬â€œ34, mobile-first, emotional but sceptical,
   privacy-aware, and they love to share a result.
   ========================================================= */

:root {
  --cream: #f7f5fb;
  --cream-2: #f0ebfa;
  --white: #ffffff;
  --blush: #ffe3ee;
  --blush-soft: #fbf2f8;
  --blush-deep: #ffc9dd;
  --rose: #e02359;
  --rose-bright: #ff5c85;
  --rose-deep: #a8003a;
  --iris: #6f5cff;
  --iris-soft: #ece7ff;
  --plum: #1a0f24;
  --plum-soft: #2c1838;
  --plum-deep: #110814;
  --gold: #9a5c18;
  --gold-light: #ffe0b8;
  --muted: #6d5d78;
  --line: rgba(26, 15, 36, 0.1);
  --line-strong: rgba(26, 15, 36, 0.16);
  --shadow-sm: 0 2px 10px rgba(26, 15, 36, 0.05);
  --shadow-md: 0 22px 60px -28px rgba(26, 15, 36, 0.38);
  --shadow-lg: 0 46px 100px -46px rgba(26, 15, 36, 0.52);
  --radius: 28px;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 84px;
  --gradient-rose: linear-gradient(125deg, #ff7d9d 0%, #e02359 52%, #b3123f 100%);
  --gradient-heart: linear-gradient(135deg, #ff7d9d 0%, #e02359 58%, #f3a45c 100%);
}

html[lang="ar"] {
  --font-display: "Tajawal", "Segoe UI", Tahoma, sans-serif;
  --font-body: "Tajawal", "Segoe UI", Tahoma, sans-serif;
}
html[lang="hi"] {
  --font-display: "Noto Serif Devanagari", "Nirmala UI", Georgia, serif;
  --font-body: "Noto Sans Devanagari", "Nirmala UI", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--plum);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }

html[lang="ar"] body { letter-spacing: 0; }

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { display: block; }

[hidden] { display: none !important; }

.wrap {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  inset-inline-start: 16px;
  inset-block-start: -80px;
  z-index: 300;
  background: var(--plum);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: inset-block-start 0.25s ease;
}
.skip:focus { inset-block-start: 16px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid rgba(224, 35, 89, 0.5);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--rose); color: #fff; }

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
  color: var(--plum);
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.22; }
html[lang="hi"] h1,
html[lang="hi"] h2,
html[lang="hi"] h3 { line-height: 1.24; letter-spacing: 0; }

p { margin: 0 0 1em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose-deep);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  backdrop-filter: blur(6px);
}
html[lang="ar"] .eyebrow,
html[lang="hi"] .eyebrow { letter-spacing: 0.04em; }

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 4px rgba(224, 35, 89, 0.16);
}

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: var(--plum);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 14px 24px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 800;
  font-size: 0.94rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--gradient-rose);
  background-size: 150% 150%;
  background-position: 0% 50%;
  color: #fff;
  box-shadow: 0 14px 30px -14px rgba(224, 35, 89, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-position 0.35s ease;
}
.btn--primary:hover {
  background-position: 100% 50%;
  box-shadow: 0 20px 42px -16px rgba(224, 35, 89, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line-strong);
  color: var(--plum);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover { border-color: var(--rose); color: var(--rose-deep); background: #fff; }

.btn--light {
  background: #fff;
  color: var(--plum);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.5);
}

.btn--sm { padding: 10px 18px; font-size: 0.82rem; }
.btn--block { width: 100%; }

.icon-btn {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: var(--plum);
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover {
  transform: translateY(-2px);
  color: #fff;
  border-color: transparent;
  background: var(--gradient-rose);
  box-shadow: 0 14px 26px -14px rgba(224, 35, 89, 0.6);
}
.icon-btn:active { transform: translateY(0); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  background: var(--cream);
  border-block-end: 1px solid rgba(26, 15, 36, 0.06);
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(247, 245, 251, 0.92);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 1px 0 var(--line), 0 10px 28px -24px rgba(26, 15, 36, 0.4);
}
.site-header.is-open {
  background: rgba(247, 245, 251, 0.97);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--line);
}
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 26px;
  transition: height 0.3s ease;
}
.site-header.is-scrolled .header-inner { height: 70px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-inline-end: auto;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  color: var(--plum);
  white-space: nowrap;
}
.brand-mark {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(140deg, #ff7d99, var(--rose) 55%, var(--rose-deep));
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(224, 35, 89, 0.45);
}
.brand-mark svg { width: 20px; height: 20px; }
.brand-text span { color: var(--rose-deep); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  font-size: 0.88rem;
  font-weight: 600;
  color: #5e5068;
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--rose-deep); }

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

.lang { position: relative; }
.lang summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  color: var(--plum);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.lang summary:hover { background: #fff; border-color: var(--rose); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 15px; height: 15px; opacity: 0.75; }
.lang-menu {
  position: absolute;
  inset-block-start: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 178px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  z-index: 120;
}
.lang-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.88rem;
  color: var(--plum);
}
.lang-menu a:hover { background: var(--blush-soft); }
.lang-menu a[aria-current="page"] {
  background: var(--blush);
  color: var(--rose-deep);
  font-weight: 800;
}
.lang-menu a small { font-size: 0.66rem; letter-spacing: 0.08em; opacity: 0.55; font-weight: 800; }

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
  color: var(--plum);
  cursor: pointer;
}
.menu-btn svg { width: 20px; height: 20px; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }

.mobile-menu {
  display: none;
  background: rgba(247, 245, 251, 0.97);
  backdrop-filter: blur(18px);
  border-block-start: 1px solid var(--line);
  padding: 18px 0 26px;
  max-height: calc(100dvh - 70px);
  overflow-y: auto;
}
.mobile-menu nav { display: grid; gap: 2px; }
.mobile-menu nav a {
  padding: 13px 4px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.02rem;
  border-block-end: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-menu nav a::after { content: "Ã¢â‚¬Âº"; color: var(--rose); font-weight: 400; font-size: 1.25rem; line-height: 1; }
html[dir="rtl"] .mobile-menu nav a::after { content: "Ã¢â‚¬Â¹"; }
.mobile-menu .btn { margin-top: 16px; width: 100%; }
.mobile-langs { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.mobile-langs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  background: #fff;
}
.mobile-langs a small { font-size: 0.6rem; letter-spacing: 0.08em; opacity: 0.5; }
.mobile-langs a[aria-current="page"] { background: var(--plum); color: #fff; border-color: var(--plum); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-block: 168px 96px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background:
    radial-gradient(58% 60% at 80% 12%, rgba(255, 173, 140, 0.38), transparent 62%),
    radial-gradient(50% 56% at 6% 92%, rgba(255, 92, 133, 0.3), transparent 66%),
    radial-gradient(70% 80% at 50% 0%, rgba(255, 255, 255, 0.1), transparent 60%),
    linear-gradient(155deg, #7c0a24 0%, #a81236 44%, #c92543 74%, #e04352 100%);
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -2;
  pointer-events: none;
}
.hero-glow--rose {
  width: 560px;
  height: 560px;
  inset-block-start: -160px;
  inset-inline-end: -100px;
  background: rgba(255, 138, 120, 0.5);
}
.hero-glow--gold {
  width: 500px;
  height: 500px;
  inset-block-end: -240px;
  inset-inline-start: -180px;
  background: rgba(255, 205, 140, 0.34);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 2%, #000 38%, transparent 94%);
  mask-image: linear-gradient(to bottom, transparent 2%, #000 38%, transparent 94%);
  pointer-events: none;
}
.hero .eyebrow {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hero .eyebrow .dot { background: var(--rose-bright); box-shadow: 0 0 0 4px rgba(255, 92, 133, 0.2); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.65rem, 4.7vw, 4.5rem);
  line-height: 1.02;
  margin-block: 20px 0;
  max-width: 15ch;
  color: #fff;
}
.hero h1 em {
  font-style: italic;
  color: #ffe7d2;
  white-space: nowrap;
  background: linear-gradient(112deg, #fff8ef 0%, #ffd9b0 48%, #ffb583 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
html[lang="ar"] .hero h1 em,
html[lang="hi"] .hero h1 em { font-style: normal; }

.hero-sub {
  max-width: 52ch;
  margin-block: 20px 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
}

/* ---------- Love form ---------- */

.love-form {
  position: relative;
  max-width: 610px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  padding: 22px;
  box-shadow: var(--shadow-md);
}
.form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-block-end: 15px;
}
.form-kicker {
  display: block;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose);
}
html[lang="ar"] .form-kicker,
html[lang="hi"] .form-kicker { letter-spacing: 0.03em; }
.form-title {
  font-family: var(--font-display);
  font-size: 1.32rem;
  line-height: 1.15;
  margin-block-start: 3px;
  font-weight: 600;
}

.swap {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--blush-soft);
  color: var(--rose-deep);
  cursor: pointer;
  transition: transform 0.35s ease, background 0.2s ease;
}
.swap:hover { background: var(--blush); transform: rotate(180deg); }
.swap svg { width: 16px; height: 16px; }

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html[lang="ar"] .field > span,
html[lang="hi"] .field > span { letter-spacing: 0.02em; }
.field input,
.field select {
  width: 100%;
  height: 54px;
  padding-inline: 14px;
  border: 1px solid rgba(26, 15, 36, 0.12);
  border-radius: 14px;
  background: var(--blush-soft);
  color: var(--plum);
  font-size: 1rem;
  font-weight: 600;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.field input::placeholder { color: #7f6f8a; font-weight: 500; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-inline-end: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b6170' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 13px;
  cursor: pointer;
}
[dir="rtl"] .field select { background-position: left 13px center; }
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--rose);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(224, 35, 89, 0.14);
}
.field input[type="date"] { min-height: 54px; }

.love-form .btn { width: 100%; height: 56px; margin-block-start: 13px; }
.calc-form .btn { width: 100%; margin-block-start: 13px; }

.love-form .btn--primary {
  background: linear-gradient(155deg, #7c0a24 0%, #a81236 48%, #d0304a 100%);
  background-size: 160% 160%;
  background-position: 0% 50%;
  border: 1px solid rgba(110, 6, 30, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 14px 30px -14px rgba(124, 10, 36, 0.6);
}
.love-form .btn--primary:hover {
  background-position: 100% 50%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 20px 40px -16px rgba(124, 10, 36, 0.66);
}
.love-form .btn--primary:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 8px 18px -12px rgba(124, 10, 36, 0.55);
}

.micro {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 15px;
  list-style: none;
  margin: 11px 0 0;
  padding: 0;
  font-size: 0.71rem;
  font-weight: 600;
  color: var(--muted);
}
.micro li { display: inline-flex; align-items: center; gap: 5px; }
.micro svg { width: 13px; height: 13px; color: var(--rose); }

.built-on {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-block-start: 15px;
}
.built-on > span {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.built-on ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.built-on li {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--plum);
}

/* ---------- Hero visual ---------- */

.hero-visual {
  position: relative;
  justify-self: end;
  width: min(100%, 456px);
  margin-block-start: 10px;
}
.photo-frame {
  position: relative;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  box-shadow: 0 24px 60px -34px rgba(60, 0, 20, 0.6);
  border-radius: 240px 240px 40px 40px;
}
.photo-arch {
  position: relative;
  overflow: hidden;
  border-radius: 230px 230px 30px 30px;
  aspect-ratio: 4 / 5;
  background: var(--blush);
  box-shadow: var(--shadow-lg);
}
.photo-arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 58%;
}
.photo-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 8, 20, 0) 38%, rgba(17, 8, 20, 0.66) 100%);
}
.photo-quote {
  position: absolute;
  inset-inline: 24px;
  inset-block-end: 22px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.06rem;
  line-height: 1.4;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
  margin: 0;
}

.live-card {
  position: absolute;
  inset-block-start: 26px;
  inset-inline-end: -24px;
  z-index: 2;
  min-width: 136px;
  padding: 13px 17px 12px;
  background: #fff;
  border-radius: 19px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.8);
}
.live-label {
  display: block;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose);
}
.live-score {
  display: flex;
  align-items: baseline;
  gap: 1px;
  font-family: var(--font-display);
  line-height: 1;
  color: var(--plum);
}
.live-score strong { font-size: 2.05rem; font-weight: 600; }
.live-score span { font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.live-note {
  display: block;
  margin-block-start: 2px;
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--muted);
  max-width: 120px;
}
.live-card.has-score { animation: popIn 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.3); }
.live-card.has-score .live-score strong { color: var(--rose-deep); }

.float-heart {
  position: absolute;
  color: #ffd9e2;
  opacity: 0.72;
  z-index: 1;
  animation: floaty 7s ease-in-out infinite;
  pointer-events: none;
}
.float-heart svg { width: 100%; height: 100%; }
.float-heart--1 { width: 30px; height: 30px; inset-block-start: 6%; inset-inline-start: -6%; }
.float-heart--2 { width: 19px; height: 19px; inset-block-end: 15%; inset-inline-end: -8%; animation-delay: -2.5s; opacity: 0.35; }
.float-heart--3 { width: 14px; height: 14px; inset-block-start: 45%; inset-inline-start: -9%; animation-delay: -4s; opacity: 0.3; }

/* ---------- Result component ---------- */

.result-slot { margin-block-start: 0; transition: margin 0.3s ease; scroll-margin-block-start: 96px; }
.result-slot.is-live {
  --r-text: var(--plum);
  --r-muted: var(--muted);
  --r-line: rgba(26, 15, 36, 0.11);
  --r-chip: #fdfbfe;
  --r-track: #f4e3eb;
  --r-heart: var(--rose);
  --r-heart-soft: rgba(224, 35, 89, 0.16);
  margin-block-start: 18px;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fffafb 100%);
  border: 1px solid #f0e2ea;
  box-shadow:
    0 1px 0 #ffffff,
    0 20px 44px -32px rgba(126, 12, 48, 0.4);
  animation: rise 0.45s ease both;
}
.result-slot.is-live .score-halo { display: none; }

.result-card {
  position: relative;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(20px, 3vw, 30px);
  border-radius: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #fff 0%, var(--blush-soft) 100%);
  scroll-margin-block-start: 96px;
  --r-text: var(--plum);
  --r-muted: var(--muted);
  --r-line: rgba(26, 15, 36, 0.12);
  --r-chip: rgba(255, 255, 255, 0.9);
  --r-track: #f3dbe6;
  --r-heart: var(--rose);
  --r-heart-soft: rgba(224, 35, 89, 0.14);
}
.result-card--dark {
  border-color: rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(224, 35, 89, 0.26), transparent 58%),
    radial-gradient(80% 70% at 0% 100%, rgba(111, 92, 255, 0.24), transparent 62%),
    linear-gradient(155deg, #2c1739 0%, #170d22 58%, var(--plum-deep) 100%);
  color: #fff;
  --r-text: #fff;
  --r-muted: rgba(255, 255, 255, 0.72);
  --r-line: rgba(255, 255, 255, 0.16);
  --r-chip: rgba(255, 255, 255, 0.08);
  --r-track: rgba(255, 255, 255, 0.16);
  --r-heart: #ff7d9d;
  --r-heart-soft: rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-md);
}
.result-card--dark::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  inset-block-end: -90px;
  inset-inline-end: -70px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
}
.result-card.is-live { animation: rise 0.45s ease both; }

.result-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 300px;
  text-align: center;
  color: var(--r-muted);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 20px;
}
.result-empty svg { width: 66px; height: 66px; opacity: 0.55; color: var(--rose); }
.result-card--dark .result-empty svg { color: var(--gold-light); opacity: 0.65; }

.result-inner { position: relative; z-index: 1; }
.result-head { display: flex; align-items: center; gap: 18px; }

/* Decorative hearts that drift behind the reading */
.result-aura {
  position: absolute;
  inset: -24px -18px;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.aura-heart {
  position: absolute;
  width: 26px;
  height: 26px;
  color: var(--r-heart);
  opacity: 0;
  animation: auraDrift 6.5s ease-in-out infinite;
  animation-delay: var(--ad, 0s);
}
.aura-heart svg { width: 100%; height: 100%; }
.aura-heart--1 { inset-inline-start: 8%; inset-block-end: 4%; --ax: 34px; --ad: 0.05s; width: 30px; height: 30px; }
.aura-heart--2 { inset-inline-start: 26%; inset-block-end: 10%; --ax: -22px; --ad: 0.16s; width: 18px; height: 18px; }
.aura-heart--3 { inset-inline-end: 12%; inset-block-end: 6%; --ax: -30px; --ad: 0.24s; width: 22px; height: 22px; }
.aura-heart--4 { inset-inline-end: 34%; inset-block-end: 18%; --ax: 16px; --ad: 0.34s; width: 14px; height: 14px; }
.aura-heart--5 { inset-inline-start: 47%; inset-block-end: 2%; --ax: 8px; --ad: 0.44s; width: 20px; height: 20px; }
.aura-heart--6 { inset-inline-end: 4%; inset-block-start: 34%; --ax: -18px; --ad: 0.3s; width: 15px; height: 15px; }
.result-card--dark .aura-heart { opacity: 0; }

.result-slot.is-live .result-share { border-block-start-style: solid; border-block-start-color: #f2e7ee; }

.score-orb {
  position: relative;
  flex: 0 0 auto;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
}
.score-halo {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 150px;
  height: 150px;
  transform: translate(-50%, -50%) rotate(-8deg);
  color: var(--r-heart);
  opacity: 0.1;
  pointer-events: none;
}
.score-halo svg { width: 100%; height: 100%; }
.result-card--dark .score-halo { opacity: 0.14; }

.score-ring {
  position: relative;
  flex: 0 0 auto;
  width: 105px;
  height: 105px;
}
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track, .ring-fill { fill: none; stroke-width: 8; }
.ring-track { stroke: var(--r-track); }
.ring-fill {
  stroke: url(#loveRing);
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  animation: ringDraw 1.15s cubic-bezier(0.2, 0.8, 0.25, 1) forwards;
}
.score-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  color: var(--r-text);
}
.score-num strong { font-family: var(--font-display); font-size: 2.05rem; line-height: 1; font-weight: 600; }
.score-num span { font-size: 0.72rem; font-weight: 800; opacity: 0.65; align-self: flex-end; margin-block-end: 30px; }

/* Five-heart love meter that fills with the score */
.heart-meter {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-block-start: 15px;
}
.heart-meter .heart {
  width: 22px;
  height: 22px;
  color: var(--r-heart-soft);
  transition: color 0.3s ease;
}
.heart-meter .heart svg { width: 100%; height: 100%; transform-origin: 50% 62%; }
.heart-meter .heart.is-on {
  color: var(--r-heart);
  animation: heartBeat 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.4) both;
  filter: drop-shadow(0 2px 6px rgba(224, 35, 89, 0.28));
}
.heart-meter .heart.is-on:nth-child(2) { animation-delay: 0.06s; }
.heart-meter .heart.is-on:nth-child(3) { animation-delay: 0.12s; }
.heart-meter .heart.is-on:nth-child(4) { animation-delay: 0.18s; }
.heart-meter .heart.is-on:nth-child(5) { animation-delay: 0.24s; }
.heart-meter .heart.is-on svg { animation: heartThump 2.6s 0.9s ease-in-out infinite; }
.heart-meter .heart.is-on:nth-child(2) svg { animation-delay: 1.02s; }
.heart-meter .heart.is-on:nth-child(3) svg { animation-delay: 1.14s; }
.heart-meter .heart.is-on:nth-child(4) svg { animation-delay: 1.26s; }
.heart-meter .heart.is-on:nth-child(5) svg { animation-delay: 1.38s; }
.result-card--dark .heart-meter .heart.is-on { filter: drop-shadow(0 2px 8px rgba(255, 125, 157, 0.45)); }

.result-title .eyebrow {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--rose);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  backdrop-filter: none;
}
.result-card--dark .result-title .eyebrow { color: var(--gold-light); }
html[lang="ar"] .result-title .eyebrow,
html[lang="hi"] .result-title .eyebrow { letter-spacing: 0.02em; }
.result-title h3,
.result-title .result-tier {
  font-size: clamp(1.35rem, 2.2vw, 1.62rem);
  line-height: 1.12;
  margin-block: 4px 6px;
  color: var(--r-text);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.result-title p {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.55;
  color: var(--r-muted);
}
html[lang="ar"] .result-title .result-tier,
html[lang="hi"] .result-title .result-tier { letter-spacing: 0; }

.result-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: 16px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--r-line);
  background: var(--r-chip);
  color: var(--r-text);
  font-size: 0.68rem;
  font-weight: 700;
}
.chip svg { width: 12px; height: 12px; color: var(--rose); }
.result-card--dark .chip svg { color: var(--gold-light); }

.result-bars { display: grid; gap: 8px; margin-block-start: 17px; }
.bar { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; }
.bar > span { font-size: 0.67rem; font-weight: 700; color: var(--r-muted); }
.bar > b { font-size: 0.66rem; font-weight: 800; color: var(--r-text); font-variant-numeric: tabular-nums; }
.bar-track {
  grid-column: 1 / -1;
  height: 5px;
  border-radius: 999px;
  background: var(--r-track);
  overflow: hidden;
}
.bar-track i {
  display: block;
  height: 100%;
  width: var(--v);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rose-bright), var(--gold));
  transform-origin: left center;
  animation: barGrow 0.9s 0.15s cubic-bezier(0.2, 0.8, 0.25, 1) both;
}
[dir="rtl"] .bar-track i { transform-origin: right center; }

.result-share { margin-block-start: 18px; padding-block-start: 14px; border-block-start: 1px dashed var(--r-line); }
.share-title {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--r-muted);
  margin-block-end: 8px;
}
html[lang="ar"] .share-title,
html[lang="hi"] .share-title { letter-spacing: 0.02em; }
.share-row { display: flex; flex-wrap: wrap; gap: 7px; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--r-line);
  border-radius: 999px;
  background: var(--r-chip);
  color: var(--r-text);
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.share-btn svg { width: 15px; height: 15px; flex: 0 0 auto; }
.share-btn:hover {
  transform: translateY(-2px);
  border-color: var(--r-heart);
  box-shadow: 0 10px 22px -14px rgba(17, 8, 20, 0.5);
}
.share-btn--wa svg { color: #25d366; }
.share-btn--tg svg { color: #2aabee; }
.share-btn--fb svg { color: #1877f2; }
.share-btn--x svg { color: currentColor; }
.share-btn--copy svg { color: var(--r-heart); }
.share-btn--native {
  background: var(--gradient-rose);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 24px -14px rgba(224, 35, 89, 0.65);
}
.share-btn--native svg { color: #fff; }
.result-card--dark .share-btn { background: rgba(255, 255, 255, 0.07); }
.result-card--dark .share-btn--native { background: var(--gradient-rose); }

/* ---------- Sections ---------- */

.section { position: relative; padding-block: clamp(64px, 8vw, 104px); }
.section--white { background: var(--white); }
.section--tint { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); }

.section-head { max-width: 730px; margin: 0 auto clamp(30px, 4vw, 46px); text-align: center; }
.section-head h2 {
  font-size: clamp(2rem, 3.7vw, 3.05rem);
  margin-block: 14px 14px;
}
.section-head p { color: var(--muted); margin: 0 auto; max-width: 58ch; font-size: 0.98rem; }

/* ---------- Tabs + calculator hub ---------- */

.tabs {
  display: flex;
  gap: 7px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 26px;
  padding: 7px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tabs::-webkit-scrollbar { display: none; }
.anchor { display: block; height: 0; scroll-margin-block-start: 96px; }
.tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  text-decoration: none;
}
.tab:hover { color: var(--rose-deep); background: var(--blush-soft); }
.tab[aria-expanded="true"] {
  background: var(--gradient-rose);
  color: #fff;
  box-shadow: 0 12px 22px -14px rgba(224, 35, 89, 0.7);
}
.tab[aria-expanded="true"]::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.85;
}
.tab .tab-arrow { font-size: 0.75rem; opacity: 0.65; }

.calc-shell {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: stretch;
  padding: clamp(20px, 3.4vw, 42px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: var(--shadow-md);
}
.calc-copy { display: flex; flex-direction: column; justify-content: center; }
.method-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--blush);
  color: var(--rose-deep);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
html[lang="ar"] .method-badge,
html[lang="hi"] .method-badge { letter-spacing: 0.02em; }
.method-badge svg { width: 12px; height: 12px; }
.calc-copy h3 {
  font-size: clamp(1.65rem, 2.6vw, 2.25rem);
  margin-block: 14px 9px;
  line-height: 1.08;
}
.calc-copy > p { color: var(--muted); font-size: 0.94rem; margin-block-end: 22px; max-width: 46ch; }
.fineprint {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-block: 12px 0;
  font-size: 0.71rem;
  line-height: 1.5;
  color: var(--muted);
}
.fineprint svg { width: 13px; height: 13px; flex: 0 0 auto; margin-block-start: 2px; color: var(--gold); }

/* ---------- How it works ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  position: relative;
  padding: 28px 24px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.step::after {
  content: "";
  position: absolute;
  inset-inline-end: -40px;
  inset-block-start: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--blush-soft);
  z-index: 0;
}
.step-num {
  position: relative;
  z-index: 1;
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--rose);
  opacity: 0.45;
  margin-block-end: 16px;
}
.step h3 { position: relative; z-index: 1; font-size: 1.1rem; margin-block-end: 8px; letter-spacing: -0.01em; }
.step p { position: relative; z-index: 1; margin: 0; color: var(--muted); font-size: 0.88rem; }

/* ---------- Traditions ---------- */

.tradition-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tradition {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 15px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}
.tradition-icon {
  grid-row: span 2;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--blush), #fff);
  border: 1px solid var(--blush-deep);
  color: var(--rose-deep);
}
.tradition-icon svg { width: 22px; height: 22px; }
.tradition h3 { font-family: var(--font-body); font-weight: 800; font-size: 1rem; letter-spacing: 0; margin: 1px 0 0; }
.tradition .era {
  grid-column: 2;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
html[lang="ar"] .tradition .era,
html[lang="hi"] .tradition .era { letter-spacing: 0.02em; }
.tradition p { grid-column: 1 / -1; margin: 12px 0 0; color: var(--muted); font-size: 0.87rem; }

/* ---------- Stats ---------- */

.stats {
  position: relative;
  overflow: hidden;
  padding-block: 52px;
  background:
    radial-gradient(100% 140% at 85% 0%, rgba(224, 35, 89, 0.22), transparent 55%),
    linear-gradient(135deg, #271333, var(--plum-deep));
  color: #fff;
}
.stats::after {
  content: "Ã¢â„¢Â¥";
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  transform: translate(-50%, -50%);
  font-size: 240px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}
.stats-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  text-align: center;
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  font-weight: 600;
  line-height: 1;
  color: var(--gold-light);
}
.stat span {
  display: block;
  margin-block-start: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
html[lang="ar"] .stat span,
html[lang="hi"] .stat span { letter-spacing: 0.02em; }

/* ---------- Love note / beach ---------- */

.love-note {
  position: relative;
  padding-block: clamp(80px, 10vw, 132px);
  text-align: center;
  color: #fff;
  isolation: isolate;
  background-image:
    linear-gradient(180deg, rgba(17, 8, 20, 0.76), rgba(17, 8, 20, 0.62) 55%, rgba(17, 8, 20, 0.86)),
    url("/assets/img/beach-1600.jpg");
  background-image:
    linear-gradient(180deg, rgba(17, 8, 20, 0.76), rgba(17, 8, 20, 0.62) 55%, rgba(17, 8, 20, 0.86)),
    image-set(url("/assets/img/beach-1600.webp") type("image/webp"), url("/assets/img/beach-1600.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center 52%;
}
.love-note-inner { max-width: 760px; margin-inline: auto; }
.love-note blockquote {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.2vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
}
html[lang="ar"] .love-note blockquote,
html[lang="hi"] .love-note blockquote { letter-spacing: 0; }
.love-note p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 48ch;
  margin: 0 auto 26px;
  font-size: 0.98rem;
}
.love-note .eyebrow { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.2); color: #fff; }

/* ---------- FAQ ---------- */

.faq-list { display: grid; gap: 9px; max-width: 840px; margin-inline: auto; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding-inline: 20px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease;
}
.faq-item[open] { border-color: var(--blush-deep); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 17px;
  list-style: none;
  cursor: pointer;
  font-weight: 800;
  font-size: 0.94rem;
  line-height: 1.4;
  color: var(--plum);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blush-soft);
  color: var(--rose);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1;
  transition: transform 0.25s ease, background 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--blush); }
.faq-item > p {
  margin: 0;
  padding-block-end: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 72ch;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--plum-deep);
  color: rgba(255, 255, 255, 0.68);
  padding-block: 54px 26px;
  font-size: 0.88rem;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 34px; }
.footer-brand .brand { color: #fff; margin: 0 0 4px; }
.footer-brand .brand-text span { color: var(--rose-bright); }
.footer-tagline { margin-block: 14px 0; max-width: 38ch; font-size: 0.86rem; color: rgba(255, 255, 255, 0.62); }
.footer-share { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: 16px; max-width: 380px; }
.footer-share-label {
  flex-basis: 100%;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  margin-block-end: 2px;
}
html[lang="ar"] .footer-share-label,
html[lang="hi"] .footer-share-label { letter-spacing: 0.02em; }
.footer-share a,
.footer-share button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.footer-share a:hover,
.footer-share button:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}
.footer-col h2 {
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin: 4px 0 14px;
  line-height: 1.4;
}
html[lang="ar"] .footer-col h2,
html[lang="hi"] .footer-col h2 { letter-spacing: 0.03em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { color: rgba(255, 255, 255, 0.62); text-decoration: none; transition: color 0.2s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 28px;
  margin-block-start: 34px;
  padding-block-start: 20px;
  border-block-start: 1px solid rgba(255, 255, 255, 0.11);
  font-size: 0.7rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.64);
}
.footer-bottom p { margin: 0; max-width: 66ch; }
.footer-bottom a { color: rgba(255, 255, 255, 0.6); }

/* ---------- Errors / 404 ---------- */

.result-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff0f5;
  border: 1px solid #ffd0dd;
  color: var(--rose-deep);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.45;
}
.result-error svg { width: 16px; height: 16px; flex: 0 0 auto; margin-block-start: 1px; }
.result-card--dark .result-error { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); color: #ffd4e2; }

.error-page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  background:
    radial-gradient(60% 60% at 70% 20%, rgba(255, 92, 133, 0.32), transparent 60%),
    var(--cream);
}
.error-page h1 { font-size: clamp(2.4rem, 7vw, 4rem); margin-block: 18px 10px; }
.error-page p { color: var(--muted); max-width: 44ch; margin-inline: auto; }
.error-page .btn { margin-block-start: 12px; }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  inset-block-end: 22px;
  inset-inline: 0;
  z-index: 250;
  width: fit-content;
  max-width: calc(100% - 32px);
  margin-inline: auto;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--plum);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast.is-on { opacity: 1; transform: none; }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
html:not(.js) .reveal { opacity: 1; transform: none; }

/* ---------- Animations ---------- */

@keyframes ringDraw { from { stroke-dashoffset: 326.73; } to { stroke-dashoffset: var(--dash, 40); } }
@keyframes barGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes popIn { 0% { transform: scale(0.9); opacity: 0.5; } 60% { transform: scale(1.04); } 100% { transform: scale(1); opacity: 1; } }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-14px) rotate(6deg); } }
@keyframes auraDrift {
  0%, 100% { opacity: 0.12; transform: translateY(4px) translateX(0) scale(0.92) rotate(-6deg); }
  50% { opacity: 0.32; transform: translateY(-16px) translateX(var(--ax, 0)) scale(1.06) rotate(7deg); }
}
@keyframes heartThump {
  0%, 44%, 100% { transform: scale(1); }
  10% { transform: scale(1.16); }
  20% { transform: scale(0.97); }
  30% { transform: scale(1.07); }
}
@keyframes heartBeat {
  0% { opacity: 0; transform: scale(0.4); }
  55% { opacity: 1; transform: scale(1.18); }
  100% { opacity: 1; transform: scale(1); }
}

/* ---------- RTL ---------- */

[dir="rtl"] .icon-arrow { transform: scaleX(-1); }
[dir="rtl"] .brand,
[dir="rtl"] .header-actions { direction: rtl; }
[dir="rtl"] .live-label,
[dir="rtl"] .share-title { letter-spacing: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 1040px) {
  .hero { padding-block-start: 132px; }
  .hero-grid { gap: 38px; }
  .nav { gap: 18px; }
  .nav a { font-size: 0.82rem; }
  .header-actions .btn--sm { display: none; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .nav { display: none; }
  .menu-btn { display: grid; }
  .mobile-menu { display: block; }
  .hero { padding-block: 116px 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { max-width: 18ch; }
  .hero-sub { max-width: 60ch; }
  .hero-visual { justify-self: center; width: min(100%, 430px); }
  .photo-arch { aspect-ratio: 4 / 4.6; }
  .calc-shell { grid-template-columns: 1fr; gap: 26px; }
  .result-card { min-height: 340px; }
  .steps { gap: 12px; }
  .step { padding: 22px 19px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 22px; }
}

@media (max-width: 720px) {
  .wrap { width: calc(100% - 36px); }
  .section { padding-block: 64px; }
  .section-head { text-align: start; }
  .section-head p { margin-inline: 0; }
  .tabs { width: 100%; border-radius: 20px; }
  .step-num { font-size: 2rem; }
  .tradition-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { display: block; }
  .footer-bottom p + p { margin-block-start: 8px; }
  .love-note { background-position: center 40%; }
}

@media (max-width: 560px) {
  .hero { padding-block-start: 104px; }
  .hero h1 { font-size: clamp(2.15rem, 10.5vw, 2.9rem); }
  .hero-sub { font-size: 0.94rem; margin-block: 15px 22px; }
  .love-form { padding: 17px; border-radius: 23px; }
  .form-title { font-size: 1.16rem; }
  .fields { gap: 8px; }
  .field input, .field select { height: 50px; padding-inline: 11px; font-size: 0.95rem; }
  .field > span { font-size: 0.6rem; letter-spacing: 0.04em; }
  .love-form .btn, .calc-form .btn { height: 52px; }
  .photo-arch { aspect-ratio: 4 / 4.4; }
  .photo-quote { font-size: 0.98rem; inset-inline: 20px; }
  .live-card { inset-inline-end: 0; inset-block-start: 16px; min-width: 118px; padding: 10px 14px; }
  .live-score strong { font-size: 1.7rem; }
  .header-actions > .icon-btn { display: none; }
  .score-orb { width: 94px; height: 94px; }
  .score-halo { width: 128px; height: 128px; }
  .score-ring { width: 88px; height: 88px; }
  .score-num strong { font-size: 1.7rem; }
  .score-num span { margin-block-end: 25px; }
  .heart-meter { gap: 5px; margin-block-start: 12px; }
  .heart-meter .heart { width: 19px; height: 19px; }
  .result-head { gap: 13px; }
  .result-card { padding: 18px; border-radius: 22px; min-height: 320px; }
  .result-slot.is-live { padding: 14px; }
  .share-btn { padding: 7px 10px; font-size: 0.68rem; }
  .calc-shell { padding: 18px; border-radius: 26px; }
  .calc-copy > p { margin-block-end: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .float-heart--1 { inset-inline-start: 0; }
}

@media (max-width: 380px) {
  .wrap { width: calc(100% - 28px); }
  .share-btn span { display: none; }
  .share-btn { padding: 9px; }
  .micro { gap: 4px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Header buttons: tactile 3D ---------- */

.site-header .btn,
.site-header .icon-btn,
.site-header .lang summary,
.site-header .menu-btn {
  transition:
    transform 0.16s cubic-bezier(0.2, 0.8, 0.3, 1),
    box-shadow 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;
  will-change: transform;
}

.site-header .btn--primary {
  height: 42px;
  padding-inline: 20px;
  background: var(--gradient-rose);
  background-size: 100% 100%;
  border: 1px solid rgba(120, 8, 45, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 0 rgba(90, 0, 30, 0.28),
    0 4px 0 #8e0d34,
    0 12px 22px -10px rgba(224, 35, 89, 0.62);
}
.site-header .btn--primary svg { width: 16px; height: 16px; }
.site-header .btn--primary:hover {
  transform: translateY(-2px);
  background-position: 0 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 0 rgba(90, 0, 30, 0.24),
    0 6px 0 #8e0d34,
    0 18px 26px -12px rgba(224, 35, 89, 0.66);
}
.site-header .btn--primary:active {
  transform: translateY(3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(90, 0, 30, 0.3),
    0 1px 0 #8e0d34,
    0 5px 10px -7px rgba(224, 35, 89, 0.55);
}

.site-header .icon-btn,
.site-header .lang summary,
.site-header .menu-btn {
  height: 42px;
  border: 1px solid #e4dbef;
  background: linear-gradient(180deg, #ffffff 0%, #f3edfb 100%);
  color: var(--plum);
  box-shadow:
    inset 0 1px 0 #ffffff,
    inset 0 -2px 0 rgba(26, 15, 36, 0.05),
    0 3px 0 #ddd2ea,
    0 8px 16px -10px rgba(26, 15, 36, 0.38);
}
.site-header .icon-btn { width: 42px; }
.site-header .lang summary { padding-inline: 14px; gap: 8px; }
.site-header .menu-btn { width: 42px; }
.site-header .icon-btn svg { color: var(--rose); }
.site-header .lang summary svg { opacity: 0.7; }
.site-header .icon-btn:hover,
.site-header .lang summary:hover,
.site-header .menu-btn:hover {
  transform: translateY(-2px);
  border-color: #d7c9e8;
  background: linear-gradient(180deg, #ffffff 0%, #faf6ff 100%);
  color: var(--plum);
  box-shadow:
    inset 0 1px 0 #ffffff,
    inset 0 -2px 0 rgba(26, 15, 36, 0.05),
    0 5px 0 #ddd2ea,
    0 14px 22px -12px rgba(26, 15, 36, 0.42);
}
.site-header .icon-btn:active,
.site-header .lang summary:active,
.site-header .menu-btn:active,
.site-header .lang[open] summary {
  transform: translateY(2px);
  box-shadow:
    inset 0 1px 0 #ffffff,
    inset 0 -1px 0 rgba(26, 15, 36, 0.06),
    0 1px 0 #ddd2ea,
    0 4px 8px -6px rgba(26, 15, 36, 0.32);
}

.site-header .mobile-menu .btn {
  height: 48px;
  font-size: 0.95rem;
}
.site-header .mobile-menu .btn--ghost {
  border: 1px solid #e4dbef;
  background: linear-gradient(180deg, #ffffff 0%, #f3edfb 100%);
  box-shadow:
    inset 0 1px 0 #ffffff,
    inset 0 -2px 0 rgba(26, 15, 36, 0.05),
    0 3px 0 #ddd2ea,
    0 8px 16px -10px rgba(26, 15, 36, 0.38);
}
.site-header .mobile-menu .btn--ghost:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 1px 0 #ffffff,
    inset 0 -1px 0 rgba(26, 15, 36, 0.06),
    0 1px 0 #ddd2ea;
}

/* ---------- Header nav links: 3D pills ---------- */

.nav { gap: 6px; }
.nav a {
  padding: 9px 13px;
  border: 1px solid #e7def1;
  border-radius: 11px;
  background: linear-gradient(180deg, #ffffff 0%, #f4effb 100%);
  color: #55465f;
  font-weight: 700;
  line-height: 1.2;
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 2px 0 #ded4ea,
    0 6px 12px -10px rgba(26, 15, 36, 0.35);
  transition:
    transform 0.16s cubic-bezier(0.2, 0.8, 0.3, 1),
    box-shadow 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;
}
.nav a:hover {
  transform: translateY(-2px);
  color: var(--rose-deep);
  border-color: #dfd0ee;
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 4px 0 #ded4ea,
    0 10px 16px -12px rgba(26, 15, 36, 0.42);
}
.nav a:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 1px 0 #ded4ea,
    0 4px 8px -7px rgba(26, 15, 36, 0.3);
}

.mobile-menu nav { gap: 8px; }
.mobile-menu nav a {
  padding: 12px 14px;
  border: 1px solid #e7def1;
  border-radius: 14px;
  border-block-end: 1px solid #e7def1;
  background: linear-gradient(180deg, #ffffff 0%, #f4effb 100%);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 2px 0 #ded4ea,
    0 8px 14px -12px rgba(26, 15, 36, 0.38);
  transition: transform 0.16s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.16s ease;
}
.mobile-menu nav a:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 1px 0 #ded4ea;
}

/* ---------- Header logo: flat mark + 3D wordmark ---------- */

.site-header .brand-mark {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--rose);
  overflow: hidden;
}
.site-header .brand-mark svg { position: relative; z-index: 1; }
.site-header .brand-mark svg.brand-hearts {
  width: 28px;
  height: 26px;
}
.brand-hearts .brand-heart {
  stroke: var(--rose);
  stroke-width: 2.4;
  stroke-linejoin: round;
  fill: #ffffff;
}
.site-header .brand:hover .brand-mark { background: #d81f53; }
.site-header .brand-text {
  display: inline-flex;
  align-items: center;
  direction: ltr;
  unicode-bidi: isolate;
  padding: 7px 14px;
  border: 1px solid #f0d7e4;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #fdf1f7 100%);
  color: var(--plum);
  line-height: 1.1;
  text-shadow: 0 1px 0 #ffffff;
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 2px 0 #eccfdd,
    0 8px 14px -10px rgba(90, 12, 44, 0.35);
  transition:
    transform 0.16s cubic-bezier(0.2, 0.8, 0.3, 1),
    box-shadow 0.16s ease,
    border-color 0.16s ease;
}
.site-header .brand-text span {
  color: var(--rose-deep);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}
.site-header .brand:hover .brand-text {
  transform: translateY(-1px);
  border-color: #e8c4d6;
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 3px 0 #eccfdd,
    0 12px 18px -12px rgba(90, 12, 44, 0.42);
}
.site-header .brand:active .brand-text {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 1px 0 #eccfdd,
    0 4px 8px -7px rgba(90, 12, 44, 0.32);
}
@media (max-width: 600px) {
  .site-header .brand-text {
    padding: 6px 11px;
    font-size: 0.95rem;
  }
}


/* ---------- Love modal result ---------- */

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

.love-modal {
  --r-text: var(--plum);
  --r-muted: var(--muted);
  --r-line: rgba(26, 15, 36, 0.12);
  --r-chip: #fdfbfe;
  --r-track: #f4e3eb;
  --r-heart: var(--rose);
  --r-heart-soft: rgba(224, 35, 89, 0.16);
  position: fixed;
  inset: 0;
  z-index: 320;
  display: grid;
  justify-items: center;
  align-items: center;
  align-items: safe center;
  padding: clamp(14px, 3.5vw, 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(38, 5, 18, 0.62);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
  animation: loveModalFade 0.28s ease both;
}
.love-modal__card {
  position: relative;
  width: min(660px, 100%);
  max-height: calc(100vh - 28px);
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
  padding: clamp(28px, 4vw, 44px) clamp(20px, 3.6vw, 40px) clamp(20px, 3vw, 30px);
  border-radius: 30px;
  border: 1px solid rgba(190, 140, 80, 0.34);
  background:
    radial-gradient(95% 60% at 50% -12%, rgba(255, 226, 195, 0.72), transparent 62%),
    linear-gradient(180deg, #fffdfa 0%, #fff6f7 100%);
  box-shadow:
    0 40px 100px -40px rgba(30, 3, 14, 0.72),
    inset 0 0 0 1px rgba(255, 255, 255, 0.75);
  animation: loveModalPop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.12) both;
  outline: none;
  scrollbar-width: thin;
}
.love-modal__card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(186, 134, 66, 0.35);
  border-radius: 21px;
  pointer-events: none;
}
.love-modal__close {
  position: absolute;
  inset-block-start: 15px;
  inset-inline-end: 15px;
  z-index: 5;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(124, 10, 36, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--plum);
  box-shadow: 0 2px 8px rgba(40, 4, 18, 0.12);
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease;
}
.love-modal__close:hover { transform: rotate(90deg); background: #fff; }
.love-modal__close svg { width: 16px; height: 16px; }

.love-modal__head { text-align: center; margin-block-end: clamp(18px, 3vw, 26px); }
.love-modal__kicker {
  display: block;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #a81236;
}
html[lang="ar"] .love-modal__kicker,
html[lang="hi"] .love-modal__kicker { letter-spacing: 0.04em; }
.love-modal__names {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 12px;
  margin-block: 8px 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.4vw, 2.35rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--plum);
  overflow-wrap: anywhere;
}
html[lang="ar"] .love-modal__names,
html[lang="hi"] .love-modal__names { letter-spacing: 0; }
.love-modal__names span {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--rose);
  filter: drop-shadow(0 3px 6px rgba(224, 35, 89, 0.3));
}
.love-modal__names span svg { width: 100%; height: 100%; display: block; }

.love-modal .result-head { gap: clamp(16px, 3vw, 26px); }
.love-modal .score-orb { width: 150px; height: 150px; }
.love-modal .score-ring { width: 138px; height: 138px; }
.love-modal .score-halo { display: none; }
.love-modal .score-num strong { font-size: 2.9rem; }
.love-modal .score-num span { font-size: 0.78rem; margin-block-end: 36px; }
.love-modal .result-title .eyebrow { display: none; }
.love-modal .result-title .result-tier {
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.1;
  margin-block: 0 8px;
}
.love-modal .result-title p { font-size: 0.94rem; line-height: 1.6; }
.love-modal .heart-meter { justify-content: center; gap: 8px; margin-block-start: 20px; }
.love-modal .heart-meter .heart { width: 25px; height: 25px; }
.love-modal .result-chips { justify-content: center; margin-block-start: 18px; }
.love-modal .result-bars { margin-block-start: 20px; }
.love-modal .bar > span,
.love-modal .bar > b { font-size: 0.7rem; }
.love-modal .bar-track { height: 6px; }

.love-modal__actions {
  position: sticky;
  bottom: -1px;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 10px;
  margin-block-start: 24px;
  padding-block: 16px 4px;
  background: linear-gradient(180deg, rgba(255, 249, 246, 0) 0%, #fff8f5 38%);
}
.love-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  padding-inline: 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.93rem;
  font-weight: 800;
  cursor: pointer;
  overflow: visible;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.love-action svg { width: 17px; height: 17px; flex: 0 0 auto; }
.love-action--share {
  --burst: #ffd9e2;
  background: linear-gradient(155deg, #7c0a24 0%, #a81236 48%, #d0304a 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 16px 30px -16px rgba(124, 10, 36, 0.65);
}
.love-action--share:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 22px 38px -18px rgba(124, 10, 36, 0.72);
}
.love-action--again {
  --burst: var(--rose);
  background: #fff;
  color: #7c0a24;
  border-color: #ecd9cd;
  box-shadow: 0 8px 18px -14px rgba(40, 4, 18, 0.35);
}
.love-action--again:hover {
  transform: translateY(-2px);
  border-color: #e3b9b0;
  box-shadow: 0 14px 24px -16px rgba(40, 4, 18, 0.4);
}
.love-action:active { transform: translateY(1px); }

.love-burst {
  position: absolute;
  inset-block-end: 52%;
  inset-inline-start: var(--x, 50%);
  width: var(--s, 12px);
  height: var(--s, 12px);
  color: var(--burst, var(--rose));
  pointer-events: none;
  z-index: 4;
  animation: loveBurst 0.9s cubic-bezier(0.15, 0.7, 0.3, 1) forwards;
}
.love-burst svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 3px 6px rgba(124, 10, 36, 0.32)); }

@keyframes loveModalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes loveModalPop {
  0% { opacity: 0; transform: translateY(16px) scale(0.94); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes loveBurst {
  0% { opacity: 0; transform: translate(-50%, 4px) scale(0.25) rotate(0deg); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), calc(-1 * var(--dy, 60px))) scale(1) rotate(var(--rot, 0deg)); }
}

/* ---------- Love envelope reveal ---------- */
.love-modal > .love-envelope,
.love-modal > .love-modal__card {
  grid-area: 1 / 1;
  align-self: center;
  justify-self: center;
}

.love-modal > .love-modal__card { z-index: 3; }

.love-modal__card--waiting {
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  animation: none;
  pointer-events: none;
}

.love-envelope {
  position: relative;
  z-index: 2;
  width: min(520px, 82vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 3vw, 24px);
  perspective: 1500px;
  opacity: 0;
  animation: envelopeIn 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.08) 0.05s both;
}

.love-envelope__scene {
  position: relative;
  width: 100%;
  aspect-ratio: 1.42 / 1;
  perspective: 1200px;
  cursor: pointer;
  transform: rotateX(8deg) rotateY(-11deg) rotateZ(-1.2deg);
  transform-style: preserve-3d;
  transition: transform 1.2s cubic-bezier(0.3, 0.72, 0.2, 1);
  filter: drop-shadow(0 32px 46px rgba(25, 2, 12, 0.5));
  will-change: transform;
}

.love-envelope__depth {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 18px;
  transform: translate(9px, 11px);
  border: 1px solid rgba(116, 66, 26, 0.55);
  background: linear-gradient(155deg, #e8ccab 0%, #d3a976 55%, #bd8850 100%);
  box-shadow: 8px 10px 0 rgba(102, 56, 22, 0.18);
  pointer-events: none;
}

.love-envelope__back {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: 18px;
  border: 1px solid rgba(154, 92, 24, 0.4);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, 0.55), transparent 55%),
    linear-gradient(155deg, #fbf0e2 0%, #f3dcc2 48%, #e9c9a8 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.55),
    inset 0 -24px 44px rgba(138, 80, 37, 0.16),
    0 0 0 1px rgba(146, 84, 26, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.45);
}

.love-envelope__back::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 18%, transparent 34%);
  pointer-events: none;
}

.love-envelope__letter {
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: 84%;
  height: 82%;
  z-index: 2;
  display: block;
  transform: translate(-50%, 26%);
  border-radius: 10px;
  border: 1px solid rgba(190, 140, 80, 0.42);
  background:
    repeating-linear-gradient(180deg, transparent 0 30px, rgba(154, 92, 24, 0.08) 30px 31px),
    linear-gradient(180deg, #fffdf8 0%, #fff5e9 100%);
  box-shadow:
    0 -1px 0 #fff,
    0 16px 36px rgba(84, 38, 16, 0.2),
    inset 0 0 0 1px rgba(190, 140, 80, 0.32);
  transition: transform 1s cubic-bezier(0.22, 0.78, 0.24, 1) 0.1s;
}

.love-envelope__letter::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(154, 92, 24, 0.2);
  border-radius: 6px;
  pointer-events: none;
}

.is-open .love-envelope__scene { transform: rotateX(4deg) rotateY(6deg) rotateZ(0.8deg); }

.is-open .love-envelope__letter { animation: letterPeel 1.18s cubic-bezier(0.22, 0.78, 0.24, 1) 0.22s both; }

@keyframes letterPeel {
  0% { transform: translate(-50%, 8%) rotate(0deg); }
  32% { transform: translate(-46%, -6%) rotate(3.4deg); }
  68% { transform: translate(-51.5%, -42%) rotate(-1.8deg); }
  100% { transform: translate(-50%, -56%) rotate(-0.4deg); }
}

.love-envelope__letter-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding-block-start: clamp(18px, 3.4vw, 32px);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease 0.34s, transform 0.5s ease 0.34s;
}

.is-open .love-envelope__letter-inner { opacity: 1; transform: none; }

.love-envelope__eyebrow {
  color: #9a5c18;
  font-size: clamp(0.5rem, 1.1vw, 0.62rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
}

html[lang="ar"] .love-envelope__eyebrow,
html[lang="hi"] .love-envelope__eyebrow { letter-spacing: 0.04em; }

.love-envelope__percent {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin: 0;
  font-family: var(--font-display);
  color: #a81236;
  line-height: 1;
}

.love-envelope__percent strong { font-size: clamp(2.4rem, 6vw, 3.6rem); font-weight: 600; }
.love-envelope__percent span { font-size: 0.9rem; font-weight: 600; opacity: 0.6; }

.love-envelope__hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.love-envelope__hearts span {
  position: absolute;
  bottom: 26%;
  left: var(--x);
  width: var(--s);
  height: var(--s);
  color: var(--c);
  opacity: 0;
}

.love-envelope__hearts svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 2px 3px rgba(124, 10, 36, 0.22)); }

.love-envelope__hearts span:nth-child(1) { --x: 12%; --s: 15px; --c: #c92543; --dx: -16px; --rot: -22deg; --d: 0.05s; }
.love-envelope__hearts span:nth-child(2) { --x: 26%; --s: 11px; --c: #d99a4e; --dx: 8px; --rot: 16deg; --d: 0.2s; }
.love-envelope__hearts span:nth-child(3) { --x: 40%; --s: 18px; --c: #e04352; --dx: -10px; --rot: -10deg; --d: 0.1s; }
.love-envelope__hearts span:nth-child(4) { --x: 54%; --s: 12px; --c: #eb7f93; --dx: 18px; --rot: 24deg; --d: 0.3s; }
.love-envelope__hearts span:nth-child(5) { --x: 68%; --s: 16px; --c: #b21b3d; --dx: -20px; --rot: -18deg; --d: 0.16s; }
.love-envelope__hearts span:nth-child(6) { --x: 80%; --s: 10px; --c: #d99a4e; --dx: 12px; --rot: 12deg; --d: 0.36s; }
.love-envelope__hearts span:nth-child(7) { --x: 88%; --s: 14px; --c: #e04352; --dx: -6px; --rot: 20deg; --d: 0.24s; }

.is-open .love-envelope__hearts span {
  animation: letterHeart 1.55s cubic-bezier(0.2, 0.7, 0.3, 1) var(--d) both;
}

@keyframes letterHeart {
  0% { opacity: 0; transform: translate(0, 10px) scale(0.4) rotate(0deg); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), -92px) scale(1) rotate(var(--rot)); }
}

.love-envelope__front {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: 0 0 18px 18px;
  background: linear-gradient(180deg, #f9ead7 0%, #f2d8ba 55%, #e7c39c 100%);
  clip-path: polygon(0 15%, 50% 41%, 100% 15%, 100% 100%, 0 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  filter:
    drop-shadow(1px 0 0 rgba(146, 84, 26, 0.55))
    drop-shadow(-1px 0 0 rgba(255, 252, 245, 0.75))
    drop-shadow(0 1px 0 rgba(146, 84, 26, 0.55))
    drop-shadow(0 -1px 0 rgba(255, 252, 245, 0.75))
    drop-shadow(0 5px 8px rgba(90, 45, 18, 0.16));
}

.love-envelope__mouth {
  position: absolute;
  top: -3px;
  left: 2%;
  right: 2%;
  height: 11px;
  z-index: 4;
  border-radius: 8px;
  border-top: 1px solid rgba(255, 248, 237, 0.65);
  border-bottom: 1px solid rgba(124, 74, 30, 0.38);
  background: linear-gradient(180deg, #c2965f 0%, #e6c7a2 42%, #f7e8d4 64%, #cba173 100%);
  box-shadow: 0 2px 4px rgba(80, 40, 15, 0.28);
  pointer-events: none;
}

.love-envelope__address {
  position: absolute;
  left: 50%;
  bottom: 11%;
  transform: translateX(-50%) rotate(-1.2deg);
  display: block;
  max-width: 64%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #7a4a2c;
  font-family: var(--font-display);
  font-size: clamp(0.92rem, 1.7vw, 1.12rem);
  letter-spacing: 0.01em;
  text-align: center;
}

.love-envelope__address em { color: #a81236; font-style: italic; }

.love-envelope__amp {
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  margin-inline: 0.18em;
  color: var(--rose);
  vertical-align: -0.05em;
}

.love-envelope__amp svg { width: 100%; height: 100%; display: block; }

.love-envelope__stamp {
  position: absolute;
  inset-inline-end: 7%;
  bottom: 12%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: clamp(40px, 5.6vw, 52px);
  aspect-ratio: 0.84;
  transform: rotate(3.5deg);
  border: 1px dashed rgba(168, 18, 54, 0.55);
  border-radius: 3px;
  background: #fff9ef;
  color: var(--rose);
  box-shadow: 0 3px 8px rgba(84, 38, 16, 0.12);
  font-size: 0.52rem;
  letter-spacing: 0.08em;
}

.love-envelope__stamp svg { width: 42%; height: auto; }
.love-envelope__stamp b { color: #8a5a3c; font-weight: 700; }

.love-envelope__flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  z-index: 5;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(180deg, #fdf4e8 0%, #f5e1c8 62%, #edcfae 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  transform: rotate3d(1, 0, 0, 0deg);
  transition: transform 1.15s cubic-bezier(0.45, 0.06, 0.2, 1);
  box-shadow: inset 0 -2px 0 rgba(190, 140, 80, 0.16);
  filter:
    drop-shadow(1px 0 0 rgba(146, 84, 26, 0.4))
    drop-shadow(-1px 0 0 rgba(146, 84, 26, 0.4))
    drop-shadow(0 2px 0 rgba(146, 84, 26, 0.5))
    drop-shadow(0 5px 10px rgba(90, 45, 18, 0.24));
}

.is-open .love-envelope__flap { animation: flapPeel 1.2s cubic-bezier(0.32, 0.74, 0.2, 1) 0.2s both; }
.is-open-late .love-envelope__flap { z-index: 1; }

@keyframes flapPeel {
  0% { transform: rotate3d(1, 0, 0, 0deg); }
  18% { transform: rotate3d(1, -0.48, 0.05, -32deg) translateZ(9px); }
  58% { transform: rotate3d(1, -0.22, 0.03, -122deg) translateZ(5px); }
  100% { transform: rotate3d(1, -0.04, 0.01, -171deg) translateZ(0); }
}

.love-envelope__seal {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 6;
  display: grid;
  place-items: center;
  width: clamp(58px, 9vw, 74px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #e8686f 0%, #be1a40 42%, #8e0f2c 78%, #6c0820 100%);
  box-shadow:
    0 10px 22px rgba(80, 5, 25, 0.38),
    inset 0 0 0 3px rgba(255, 236, 214, 0.16),
    inset 0 -6px 10px rgba(50, 0, 12, 0.32);
  color: #ffe8c9;
}

.love-envelope__seal::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px dashed rgba(255, 232, 201, 0.55);
  border-radius: 50%;
}

.love-envelope__seal svg { width: 34%; height: 34%; filter: drop-shadow(0 1px 0 rgba(60, 0, 15, 0.35)); }
.is-open .love-envelope__seal { animation: sealBreak 0.62s cubic-bezier(0.5, 0, 0.7, 0.4) both; }

@keyframes sealBreak {
  0% { transform: translate(-50%, -50%) rotate(0deg) scale(1); opacity: 1; }
  28% { transform: translate(-48%, -60%) rotate(-10deg) scale(1.06); opacity: 1; }
  100% { transform: translate(-26%, 104%) rotate(44deg) scale(0.76); opacity: 0; }
}

.love-envelope__skip {
  appearance: none;
  border: 1px solid rgba(255, 244, 234, 0.4);
  border-radius: 999px;
  padding: 10px 24px;
  background: rgba(255, 248, 242, 0.12);
  color: #fff3e7;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.love-envelope__skip:hover { background: rgba(255, 248, 242, 0.22); border-color: rgba(255, 244, 234, 0.7); }

.love-envelope__skip:focus-visible {
  outline: 2px solid #ffd9b0;
  outline-offset: 3px;
  background: rgba(255, 248, 242, 0.22);
}

.love-modal.is-revealed .love-envelope {
  animation: envelopeOut 0.5s ease forwards;
  pointer-events: none;
}

@keyframes envelopeIn {
  from { opacity: 0; transform: translateY(24px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes envelopeOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(14px) scale(0.92); }
}

@media (max-width: 600px) {
  .love-modal { padding: 10px; align-items: center; }
  .love-modal__card {
    max-height: calc(100dvh - 20px);
    border-radius: 26px;
    padding: 28px 18px 16px;
  }
  .love-modal .result-head { gap: 14px; }
  .love-modal .score-orb { width: 118px; height: 118px; }
  .love-modal .score-ring { width: 108px; height: 108px; }
  .love-modal .score-num strong { font-size: 2.3rem; }
  .love-modal .score-num span { margin-block-end: 30px; }
  .love-modal .heart-meter .heart { width: 22px; height: 22px; }
  .love-modal__actions { grid-template-columns: 1fr; }
  .love-action { height: 52px; font-size: 0.9rem; }
  .love-envelope { width: 86vw; gap: 16px; }
  .love-envelope__scene { aspect-ratio: 1.34 / 1; }
  .love-envelope__letter-inner { padding-block-start: 20px; }
  .love-envelope__percent strong { font-size: 2.6rem; }
  .love-envelope__address { font-size: 0.88rem; max-width: 60%; }
  .love-envelope__stamp { width: 38px; }
  .love-envelope__skip { padding: 9px 20px; font-size: 0.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .love-modal,
  .love-modal__card { animation: none; }
  .love-burst { display: none; }
  .love-envelope { animation: none !important; }
  .love-envelope__letter,
  .love-envelope__flap,
  .love-envelope__letter-inner,
  .love-envelope__hearts span { transition: none; animation: none; }
}