:root {
  --rose: #c87388;
  --rose-deep: #884156;
  --rose-soft: #f3cbd4;
  --cream: #fffaf7;
  --ivory: #fffdfb;
  --gold: #c6a16b;
  --ink: #4c3034;
  --muted: rgba(76, 48, 52, .66);
  --shadow: 0 32px 100px rgba(87, 36, 52, .22);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: #f9e7eb;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Vazirmatn", sans-serif;
  background:
    radial-gradient(circle at 16% 10%, rgba(255,255,255,.98), transparent 28%),
    radial-gradient(circle at 84% 16%, rgba(235,167,183,.38), transparent 24%),
    linear-gradient(155deg, #fffafa 0%, #f8e1e6 48%, #fff9f8 100%);
}

a { color: inherit; }
button { font: inherit; }

.cinematic-noise {
  position: fixed;
  z-index: 50;
  inset: 0;
  opacity: .025;
  pointer-events: none;
  background-image:
    repeating-radial-gradient(circle at 0 0, #000 0, #000 1px, transparent 1px, transparent 3px);
  mix-blend-mode: multiply;
}

.light-orb {
  position: fixed;
  z-index: 0;
  width: 38vw;
  max-width: 480px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .34;
  pointer-events: none;
}

.orb-one { top: 6%; left: -12%; background: #ed9fb3; }
.orb-two { right: -14%; bottom: 10%; background: #f0c8a2; }

.section {
  position: relative;
  z-index: 2;
  width: min(100% - 28px, 1120px);
  margin-inline: auto;
}

.hero-section {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 70px 0 56px;
}

.hero-copy {
  margin-bottom: 30px;
  text-align: center;
}

.kicker,
.section-heading > span,
.map-copy > span {
  color: var(--rose);
  font-family: "Cormorant Garamond", serif;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 10px 0 0;
  color: var(--rose-deep);
  font-size: clamp(3.4rem, 8vw, 7.2rem);
  font-weight: 500;
  line-height: .95;
}

.hero-copy h1 em {
  color: var(--gold);
  font-family: "Great Vibes", cursive;
  font-style: normal;
  font-weight: 400;
}

.hero-copy p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(.95rem, 2vw, 1.1rem);
}

.invitation-stage {
  position: relative;
  width: min(100%, 650px);
  perspective: 1800px;
}

.stage-halo {
  position: absolute;
  inset: 8% 10% -2%;
  border-radius: 42px;
  background: rgba(102, 42, 59, .23);
  filter: blur(42px);
  transform: translateY(38px);
}

.invitation-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 30px;
  background: var(--ivory);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  will-change: transform;
}

.invitation-card img {
  display: block;
  width: 100%;
  height: auto;
}

.invitation-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(198,161,107,.25);
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 60px rgba(255,255,255,.28);
}

.card-shine {
  position: absolute;
  z-index: 2;
  inset: -30% auto -30% -45%;
  width: 28%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent);
  transform: skewX(-14deg);
  animation: shine 7s ease-in-out infinite;
  pointer-events: none;
}

.scroll-cue {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 32px;
  color: var(--muted);
  text-decoration: none;
  font-size: .75rem;
}

.scroll-cue i {
  width: 1px;
  height: 42px;
  background: linear-gradient(var(--rose), transparent);
  animation: scrollCue 1.8s ease-in-out infinite;
}

.countdown-section,
.details-section,
.map-section {
  padding: 110px 0;
}

.section-heading {
  margin-bottom: 38px;
  text-align: center;
}

.section-heading h2 {
  margin: 8px 0 0;
  color: var(--rose-deep);
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 500;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.countdown article {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  display: grid;
  place-content: center;
  text-align: center;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,.82), rgba(255,244,247,.62));
  box-shadow: 0 22px 55px rgba(91,38,55,.09);
  backdrop-filter: blur(20px);
}

.countdown article::before {
  content: "";
  position: absolute;
  inset: auto -30% -50% -30%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,115,136,.18), transparent 68%);
}

.countdown strong {
  position: relative;
  color: var(--rose-deep);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 7vw, 5.4rem);
  line-height: 1;
}

.countdown span {
  position: relative;
  margin-top: 8px;
  color: var(--muted);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.luxury-tile {
  position: relative;
  overflow: hidden;
  grid-column: span 4;
  min-height: 245px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 30px;
  background:
    linear-gradient(150deg, rgba(255,255,255,.88), rgba(255,243,246,.68));
  box-shadow: 0 24px 58px rgba(91,38,55,.09);
  backdrop-filter: blur(22px);
  transition: transform .35s ease, box-shadow .35s ease;
}

.luxury-tile:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 68px rgba(91,38,55,.14);
}

.tile-number {
  position: absolute;
  top: 20px;
  left: 24px;
  color: rgba(136,65,86,.18);
  font-family: "Cormorant Garamond", serif;
  font-size: 2.5rem;
}

.tile-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 40px;
  border-radius: 18px;
  color: var(--rose-deep);
  background: linear-gradient(145deg, #fff, #f5d7df);
  box-shadow: 0 12px 28px rgba(104,45,62,.12);
  font-size: 1.5rem;
}

.luxury-tile > span {
  display: block;
  color: var(--rose);
  font-size: .82rem;
  letter-spacing: .08em;
}

.luxury-tile strong {
  display: block;
  margin: 7px 0;
  color: var(--rose-deep);
  font-size: 1.35rem;
}

.luxury-tile small {
  color: var(--muted);
  line-height: 2;
}

.quote-section {
  padding: 80px 0 120px;
}

.quote-card {
  position: relative;
  width: min(100%, 820px);
  margin-inline: auto;
  padding: clamp(40px, 8vw, 80px);
  border-radius: 38px;
  text-align: center;
  color: var(--rose-deep);
  background:
    linear-gradient(rgba(255,250,249,.86), rgba(255,246,247,.86)),
    url("assets/invitation.png") center / cover;
  box-shadow: 0 34px 90px rgba(91,38,55,.12);
}

.quote-mark {
  position: absolute;
  top: 20px;
  right: 36px;
  color: rgba(198,161,107,.35);
  font-family: "Cormorant Garamond", serif;
  font-size: 6rem;
  line-height: 1;
}

.quote-card p {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 2rem);
  line-height: 2;
}

.quote-card strong {
  display: block;
  margin-top: 24px;
  color: var(--gold);
  font-family: "Great Vibes", cursive;
  font-size: 2.4rem;
  font-weight: 400;
}

.map-shell {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 34px;
  background: rgba(255,255,255,.7);
  box-shadow: 0 28px 70px rgba(91,38,55,.11);
  backdrop-filter: blur(20px);
}

.map-copy {
  align-self: center;
  padding: 28px;
}

.map-copy h2 {
  margin: 9px 0;
  color: var(--rose-deep);
  font-size: 2.2rem;
  font-weight: 500;
}

.map-copy p {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 2;
}

.map-copy a {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  box-shadow: 0 14px 30px rgba(136,65,86,.24);
}

#neshanMap {
  min-height: 440px;
  overflow: hidden;
  border-radius: 24px;
  background: #eee3e5;
}

.final-section {
  min-height: 72vh;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 110px 0;
  text-align: center;
}

.final-heart {
  color: var(--rose);
  font-size: 1.8rem;
  animation: heartbeat 1.5s infinite;
}

.final-section p {
  margin: 14px 0;
  color: var(--muted);
}

.final-section h2 {
  margin: 0;
  color: var(--rose-deep);
  font-family: "Great Vibes", cursive;
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  font-weight: 400;
}

.final-section h2 span { color: var(--gold); }
.final-section small { color: var(--rose); }

.sound-fallback {
  position: fixed;
  z-index: 15;
  left: 18px;
  bottom: 18px;
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  box-shadow: 0 14px 36px rgba(91,38,55,.24);
  cursor: pointer;
}

.sound-fallback.visible { display: inline-flex; }

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

.petal {
  position: absolute;
  top: -12vh;
  width: 13px;
  height: 19px;
  border-radius: 70% 10% 70% 10%;
  background: linear-gradient(145deg, #f8cbd4, #d78095);
  opacity: .62;
  animation: petalFall linear infinite;
}

.intro {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 35%, rgba(255,255,255,.4), transparent 36%),
    rgba(93,39,55,.52);
  backdrop-filter: blur(20px);
  transition: opacity 1s ease, visibility 1s ease;
}

.intro.finished {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-glow {
  position: absolute;
  width: min(80vw, 700px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255,218,226,.3);
  filter: blur(75px);
}

.envelope-scene {
  position: relative;
  width: min(92vw, 560px);
  filter: drop-shadow(0 30px 45px rgba(60,20,34,.34));
}

.envelope {
  position: relative;
  width: 100%;
  aspect-ratio: 1.45;
  perspective: 1300px;
}

.envelope-back {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: #f3c5cf;
}

.letter {
  position: absolute;
  z-index: 2;
  left: 7%;
  right: 7%;
  top: 7%;
  height: 76%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: var(--rose-deep);
  background: #fffaf9;
  box-shadow: 0 12px 28px rgba(92,35,52,.14);
  transition: transform 1.15s cubic-bezier(.2,.8,.2,1);
}

.letter-line {
  font-size: clamp(.85rem, 2.5vw, 1.05rem);
  font-weight: 600;
}

.letter strong {
  margin: 12px 0 2px;
  font-family: "Great Vibes", cursive;
  font-size: clamp(2.5rem, 10vw, 5rem);
  font-weight: 400;
}

.letter strong i { color: var(--gold); font-style: normal; }

.letter small {
  color: var(--rose);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1rem, 3vw, 1.35rem);
  letter-spacing: .04em;
}

.envelope-left,
.envelope-right,
.envelope-bottom,
.envelope-flap {
  position: absolute;
  z-index: 4;
  inset: 0;
}

.envelope-left { clip-path: polygon(0 0, 52% 52%, 0 100%); background: #edacbc; }
.envelope-right { clip-path: polygon(100% 0, 48% 52%, 100% 100%); background: #edacbc; }
.envelope-bottom { clip-path: polygon(0 100%, 50% 45%, 100% 100%); background: #e89bae; }

.envelope-flap {
  z-index: 5;
  clip-path: polygon(0 0, 50% 62%, 100% 0);
  background: linear-gradient(#f5ccd4, #eeafbe);
  transform-origin: top;
  transition: transform .95s cubic-bezier(.2,.8,.2,1), z-index 0s .45s;
}

.wax-seal {
  position: absolute;
  z-index: 7;
  left: 50%;
  top: 48%;
  display: grid;
  place-items: center;
  width: 82px;
  aspect-ratio: 1;
  border: 5px double rgba(255,255,255,.4);
  border-radius: 50%;
  color: #fff8fa;
  font-family: "Great Vibes", cursive;
  font-size: 1.6rem;
  background: radial-gradient(circle at 35% 30%, #d66c89, #87344d 72%);
  box-shadow: 0 9px 20px rgba(93,38,55,.32);
  transform: translate(-50%, -50%);
  transition: opacity .4s ease, transform .4s ease;
}

.wax-seal span { margin-inline: 2px; font-size: .72em; }

.envelope.opening .envelope-flap {
  z-index: 1;
  transform: rotateX(180deg);
}

.envelope.opening .letter {
  transform: translateY(-70%);
}

.envelope.opening .wax-seal {
  opacity: 0;
  transform: translate(-50%, -50%) scale(.62);
}

@keyframes shine {
  0%, 66% { left: -45%; }
  88%, 100% { left: 125%; }
}

@keyframes scrollCue {
  0%,100% { transform: scaleY(.35); transform-origin: top; opacity: .45; }
  50% { transform: scaleY(1); opacity: 1; }
}

@keyframes petalFall {
  to { transform: translate3d(var(--drift), 118vh, 0) rotate(620deg); }
}

@keyframes heartbeat {
  0%,100% { transform: scale(1); }
  15% { transform: scale(1.22); }
  30% { transform: scale(1); }
}

@media (max-width: 820px) {
  .countdown { grid-template-columns: repeat(2, 1fr); }
  .countdown article { min-height: 145px; }
  .detail-grid { grid-template-columns: 1fr; }
  .luxury-tile, .luxury-tile.wide { grid-column: auto; min-height: 210px; }
  .map-shell { grid-template-columns: 1fr; }
  .map-copy { padding: 20px 14px 6px; }
  #neshanMap { min-height: 360px; }
}

@media (max-width: 560px) {
  .section { width: min(100% - 18px, 1120px); }
  .hero-section { padding-top: 30px; }
  .invitation-card { border-radius: 20px; }
  .countdown-section, .details-section, .map-section { padding: 82px 0; }
  .countdown { gap: 10px; }
  .countdown article { border-radius: 22px; }
  .quote-card { border-radius: 26px; }
  .map-shell { padding: 12px; border-radius: 24px; }
  #neshanMap { border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}


/* پاکت نسخه قبلی */
.envelope-screen {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 34%, rgba(255,255,255,.36), transparent 34%),
    rgba(104, 46, 63, .5);
  backdrop-filter: blur(18px);
  transition: opacity .9s ease, visibility .9s ease;
}

.envelope-screen.is-finished {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.envelope-wrap {
  width: min(92vw, 530px);
  filter: drop-shadow(0 30px 38px rgba(68, 25, 39, .34));
  animation: envelopeArrival .85s cubic-bezier(.2,.8,.2,1) both;
}

.envelope {
  position: relative;
  width: 100%;
  aspect-ratio: 1.45;
  perspective: 1200px;
}

.envelope-back {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: #f5c7d1;
}

.letter {
  position: absolute;
  z-index: 2;
  left: 7%;
  right: 7%;
  top: 7%;
  height: 76%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--rose-deep);
  background: #fffaf9;
  box-shadow: 0 10px 24px rgba(92,35,52,.13);
  transition: transform 1s cubic-bezier(.2,.8,.2,1);
}

.letter > span:first-child {
  max-width: 82%;
  text-align: center;
  font-family: "Vazirmatn", sans-serif;
  font-size: clamp(.8rem, 2.5vw, 1rem);
  font-weight: 600;
}

.letter strong {
  margin: 10px 0 5px;
  font-family: "Great Vibes", cursive;
  font-size: clamp(2.2rem, 9vw, 4.3rem);
  font-weight: 400;
}

.letter small {
  color: var(--rose);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1rem, 3vw, 1.35rem);
}

.envelope-left,
.envelope-right,
.envelope-bottom,
.envelope-flap {
  position: absolute;
  z-index: 4;
  inset: 0;
}

.envelope-left { clip-path: polygon(0 0, 52% 52%, 0 100%); background: #efafbe; }
.envelope-right { clip-path: polygon(100% 0, 48% 52%, 100% 100%); background: #efafbe; }
.envelope-bottom { clip-path: polygon(0 100%, 50% 45%, 100% 100%); background: #e99bae; }

.envelope-flap {
  z-index: 5;
  clip-path: polygon(0 0, 50% 62%, 100% 0);
  background: linear-gradient(#f6cbd4, #efafbe);
  transform-origin: top;
  transition: transform .85s cubic-bezier(.2,.8,.2,1), z-index 0s .4s;
}

.wax-seal {
  position: absolute;
  z-index: 7;
  left: 50%;
  top: 48%;
  display: grid;
  place-items: center;
  width: 78px;
  aspect-ratio: 1;
  border: 5px double rgba(255,255,255,.42);
  border-radius: 50%;
  color: #fff7f8;
  font-family: "Great Vibes", cursive;
  font-size: 1.55rem;
  background: radial-gradient(circle at 35% 30%, #d66c89, #8f334e 72%);
  box-shadow: 0 8px 18px rgba(93,38,55,.32);
  transform: translate(-50%, -50%);
  transition: opacity .4s ease, transform .4s ease;
}

.wax-seal span { margin-inline: 2px; font-size: .75em; }

.envelope.is-opening .envelope-flap {
  z-index: 1;
  transform: rotateX(180deg);
}

.envelope.is-opening .letter {
  transform: translateY(-66%);
}

.envelope.is-opening .wax-seal {
  opacity: 0;
  transform: translate(-50%, -50%) scale(.65);
}

.hero-section {
  min-height: auto;
  padding-top: 24px;
}

.invitation-stage { margin-top: 0; }

.section-heading--english { margin-bottom: 34px; }

.section-heading--english > span {
  font-size: clamp(1.15rem, 2.7vw, 1.65rem);
  letter-spacing: .24em;
}

.luxury-tile { padding-top: 30px; }
.tile-number { display: none !important; }

.countdown {
  grid-template-columns: repeat(3, 1fr);
  direction: ltr;
  max-width: 860px;
  margin-inline: auto;
}

.countdown article { direction: rtl; }

.countdown strong {
  font-family: "Vazirmatn", sans-serif;
  font-weight: 500;
}

@keyframes envelopeArrival {
  from { opacity: 0; transform: translateY(32px) scale(.93); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 620px) {
  .countdown {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .countdown article {
    min-height: 125px;
    border-radius: 20px;
  }

  .countdown strong {
    font-size: clamp(2rem, 10vw, 3.2rem);
  }

  .countdown span { font-size: .8rem; }
}


/* تضمین عبور از صفحه پاکت */
.envelope-screen.is-finished {
  display: none;
}

.envelope.is-opening .envelope-flap {
  transform: rotateX(180deg) !important;
}

.envelope.is-opening .letter {
  transform: translateY(-66%) !important;
}


/* نسخه پایدار بدون وابستگی به GSAP */
.invitation-stage,
.section-heading,
.countdown article,
.luxury-tile,
.map-shell,
.final-section > * {
  opacity: 1 !important;
  visibility: visible !important;
}

.invitation-card img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.site-ready .invitation-stage {
  animation: stableCardEntrance 1.1s cubic-bezier(.2,.8,.2,1) both;
}

.invitation-card {
  transition: transform .25s ease;
  animation: stableFloat 5.5s ease-in-out infinite;
}

@keyframes stableCardEntrance {
  from { opacity: 0; transform: translateY(45px) scale(.96); }
  to { opacity: 1; transform: none; }
}

@keyframes stableFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}


/* شمارش معکوس چهارستونه */
.countdown {
  grid-template-columns: repeat(4, 1fr) !important;
  max-width: 980px;
}

/* کنترل ثابت موسیقی */
.music-control {
  position: fixed;
  z-index: 18;
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  box-shadow: 0 14px 36px rgba(91,38,55,.26);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: transform .25s ease, opacity .25s ease;
}

.music-control:hover {
  transform: translateY(-3px);
}

.music-control__icon {
  min-width: 18px;
  font-size: .95rem;
  text-align: center;
}

.music-control small {
  font-size: .78rem;
}

.music-control.is-paused {
  opacity: .88;
}

@media (max-width: 620px) {
  .countdown {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .music-control {
    left: 12px;
    bottom: 12px;
    min-height: 46px;
    padding: 0 13px;
  }
}


/* مهر قابل کلیک برای ورود و شروع موسیقی */
.wax-seal--button {
  width: 112px !important;
  padding: 0 !important;
  border: 5px double rgba(255,255,255,.42) !important;
  cursor: pointer;
  font-family: "Vazirmatn", sans-serif !important;
  line-height: 1.25;
  transition:
    opacity .4s ease,
    transform .4s ease,
    box-shadow .25s ease !important;
}

.wax-seal--button:hover {
  transform: translate(-50%, -50%) scale(1.07);
  box-shadow:
    0 12px 26px rgba(93,38,55,.38),
    0 0 0 10px rgba(255,255,255,.08);
}

.wax-seal--button:focus-visible {
  outline: 3px solid rgba(255,255,255,.9);
  outline-offset: 5px;
}

.wax-seal--button .seal-heart {
  display: block;
  margin-bottom: 1px;
  font-size: .9rem;
}

.wax-seal--button strong {
  display: block;
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  white-space: nowrap;
}

/* دکمه کنترل موسیقی در این نسخه حذف شده است */
.music-control {
  display: none !important;
}


/* قلب بزرگ و تپنده روی مهر */
.wax-seal--button .seal-heart {
  display: block;
  margin-bottom: 3px;
  font-size: 1.65rem !important;
  line-height: 1;
  animation: sealHeartbeat 1.12s ease-in-out infinite;
  transform-origin: center;
}

@keyframes sealHeartbeat {
  0%, 100% { transform: scale(1); }
  12% { transform: scale(1.28); }
  25% { transform: scale(1); }
  38% { transform: scale(1.18); }
  52% { transform: scale(1); }
}

/* با کلیک روی مهر، نامه سفید نمایش داده نمی‌شود */
.envelope.is-opening .letter {
  opacity: 0 !important;
  transform: none !important;
  transition: opacity .12s ease !important;
}

/* ورود مستقیم و سریع‌تر به صفحه اصلی */
.envelope-screen.is-finished {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .38s ease, visibility .38s ease;
}

/* فاصله عمودی یکسان و جمع‌وجور بین همه بخش‌ها */
.hero-section,
.details-section,
.countdown-section,
.map-section,
.final-section {
  padding-top: 58px !important;
  padding-bottom: 58px !important;
}

.hero-section {
  padding-top: 22px !important;
}

.details-section + .countdown-section,
.countdown-section + .map-section {
  margin-top: 0 !important;
}

.section-heading {
  margin-bottom: 26px !important;
}

.section-heading h2 {
  margin-top: 0 !important;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

/* فاصله داخلی تایل‌ها کمی جمع‌وجورتر */
.detail-grid {
  gap: 14px !important;
}

.luxury-tile {
  min-height: 220px !important;
  padding: 24px !important;
}

.countdown {
  gap: 12px !important;
}

.countdown article {
  min-height: 150px !important;
}

.map-shell {
  margin-top: 0 !important;
}

@media (max-width: 620px) {
  .hero-section,
  .details-section,
  .countdown-section,
  .map-section,
  .final-section {
    padding-top: 38px !important;
    padding-bottom: 38px !important;
  }

  .hero-section {
    padding-top: 12px !important;
  }

  .section-heading {
    margin-bottom: 20px !important;
  }

  .luxury-tile {
    min-height: 190px !important;
  }

  .countdown article {
    min-height: 116px !important;
  }
}


/* فونت یکپارچه و ظریف‌تر برای عنوان‌ها */
.section-heading h2,
.map-copy h2,
.final-section h2 {
  font-family: "Vazirmatn", sans-serif;
  font-weight: 500;
  letter-spacing: -.035em;
}

.section-heading h2 {
  color: var(--rose-deep);
  font-size: clamp(1.9rem, 4.5vw, 3.15rem);
  line-height: 1.35;
}

.map-copy h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.55rem);
  line-height: 1.4;
}

.final-section h2 {
  font-family: "Great Vibes", cursive;
  letter-spacing: 0;
}

/* آیکون‌های حرفه‌ای‌تر برای اطلاعات مراسم */
.tile-icon {
  width: 58px !important;
  height: 58px !important;
  border-radius: 18px !important;
  color: var(--rose-deep);
  background:
    linear-gradient(145deg, rgba(255,255,255,.98), rgba(244,215,222,.92)) !important;
  box-shadow:
    0 12px 28px rgba(104,45,62,.12),
    inset 0 1px 0 rgba(255,255,255,.9) !important;
}

.tile-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* اصلاح فاصله عمودی بخش پایانی */
.final-section {
  min-height: auto !important;
  padding-top: 52px !important;
  padding-bottom: 54px !important;
}

.final-section p {
  margin-top: 12px !important;
  margin-bottom: 10px !important;
}

.final-section h2 {
  margin-top: 0 !important;
  margin-bottom: 4px !important;
}

.final-section small {
  margin-top: 0 !important;
}

/* حذف فاصله اضافه ابتدای بخش نقشه بعد از حذف Location */
.map-copy > span:empty {
  display: none;
}

.map-copy h2 {
  margin-top: 0 !important;
}

@media (max-width: 620px) {
  .final-section {
    padding-top: 34px !important;
    padding-bottom: 36px !important;
  }

  .tile-icon {
    width: 52px !important;
    height: 52px !important;
    border-radius: 16px !important;
  }

  .tile-icon svg {
    width: 24px;
    height: 24px;
  }
}


/* باز شدن آرام‌تر پاکت و انتقال نرم‌تر به صفحه اصلی */
.envelope-flap {
  transition:
    transform 1.45s cubic-bezier(.22,.75,.22,1),
    z-index 0s .72s !important;
}

.envelope.is-opening .wax-seal {
  transition:
    opacity .65s ease,
    transform .65s ease !important;
}

.envelope-screen {
  transition:
    opacity 1.15s ease,
    visibility 1.15s ease !important;
}

.envelope-screen.is-finished {
  transition:
    opacity 1.15s ease,
    visibility 1.15s ease !important;
}

body.site-ready .invitation-stage {
  animation: slowMainEntrance 1.65s cubic-bezier(.2,.8,.2,1) both !important;
}

@keyframes slowMainEntrance {
  from {
    opacity: 0;
    transform: translateY(58px) scale(.955);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}


/* Google Maps + glass venue card */
.google-map-frame {
  position: relative;
  overflow: hidden;
  min-height: 470px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 30px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 28px 70px rgba(91,38,55,.11);
}

.google-map-frame iframe {
  display: block;
  width: 100%;
  height: 470px;
  border: 0;
  filter: saturate(.9) contrast(.98);
}

.venue-glass-card {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: min(390px, calc(100% - 48px));
  padding: 20px;
  border: 1px solid rgba(255,255,255,.64);
  border-radius: 24px;
  background: rgba(255, 249, 250, .78);
  box-shadow: 0 20px 48px rgba(84, 35, 51, .18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform .3s ease, box-shadow .3s ease;
}

.google-map-frame:hover .venue-glass-card {
  transform: translateY(-6px);
  box-shadow: 0 28px 58px rgba(84, 35, 51, .22);
}

.venue-pin {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  border-radius: 17px;
  color: var(--rose-deep);
  background: linear-gradient(145deg, #fff, #f3d7de);
  box-shadow: 0 12px 28px rgba(104,45,62,.12);
}

.venue-pin svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.venue-info span {
  display: block;
  margin-bottom: 4px;
  color: var(--rose);
  font-size: .8rem;
}

.venue-info strong {
  display: block;
  color: var(--rose-deep);
  font-size: 1.35rem;
}

.venue-info p {
  margin: 8px 0 6px;
  color: var(--muted);
  line-height: 1.9;
}

.venue-info small {
  color: rgba(76,48,52,.72);
}

.neshan-route-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  margin-top: 18px;
  padding: 0 20px;
  overflow: hidden;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  box-shadow: 0 14px 30px rgba(136,65,86,.24);
  transition: transform .25s ease, box-shadow .25s ease;
}

.neshan-route-btn::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -45%;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-18deg);
  animation: routeShine 4.8s ease-in-out infinite;
}

.neshan-route-btn:hover {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 18px 36px rgba(136,65,86,.3);
}

body.petals-transition .petal {
  animation-duration: 3.4s !important;
  opacity: .92;
}

@keyframes routeShine {
  0%, 66% { left: -45%; }
  88%, 100% { left: 125%; }
}

@media (max-width: 680px) {
  .google-map-frame,
  .google-map-frame iframe {
    min-height: 520px;
    height: 520px;
  }

  .venue-glass-card {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    padding: 18px;
    border-radius: 20px;
  }

  .neshan-route-btn {
    width: 100%;
  }
}
