:root {
  --bg: #070605;
  --bg-soft: #14110f;
  --surface: rgba(255, 248, 239, 0.06);
  --surface-strong: rgba(255, 248, 239, 0.12);
  --glass-highlight: rgba(249, 233, 210, 0.14);
  --line: rgba(241, 222, 189, 0.14);
  --line-strong: rgba(200, 166, 103, 0.72);
  --gold: #c8a667;
  --gold-soft: #f1dfbf;
  --gold-deep: #9f7d45;
  --emerald: #1f443d;
  --ink: #fbf5ea;
  --ink-muted: #cbc0af;
  --shadow: 0 34px 80px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.26);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max-width: 1180px;
  --transition: 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
  background-color: #e9dfcc;
}

body {
  display: flow-root;
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(200, 166, 103, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(31, 68, 61, 0.22), transparent 34%),
    linear-gradient(180deg, #120f0d 0%, var(--bg) 34%, #090807 100%);
  color: var(--ink);
  font-family: "Cormorant Garamond", serif;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
}

body.intro-active {
  overflow: hidden;
}

body.invitation-open {
  background:
    linear-gradient(180deg, rgba(250, 247, 241, 0.5), rgba(248, 243, 235, 0.62)),
    url("./images/open-invitation-background.png");
  background-position: center, center;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
  color: #3e463d;
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.rtl-copy {
  font-family: "Noto Naskh Arabic", "Amiri", serif;
}

.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;
}

.page-shell {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
}

.floral-frame {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 600ms ease;
}

body.invitation-open .floral-frame {
  opacity: 0;
}

body.invitation-open .petals {
  opacity: 0;
}

.floral-frame__corner {
  position: fixed;
  background-image: url("./images/floral-frame-reference.png");
  background-repeat: no-repeat;
  background-size: 400% 400%;
  opacity: 0.96;
  filter: saturate(0.88) drop-shadow(0 16px 24px rgba(73, 85, 70, 0.08));
}

.floral-frame__corner--top-left {
  top: 0;
  left: 0;
  width: clamp(180px, 23vw, 360px);
  height: clamp(180px, 25vw, 360px);
  background-position: top left;
}

.floral-frame__corner--top-right {
  top: 0;
  right: 0;
  width: clamp(180px, 24vw, 370px);
  height: clamp(200px, 28vw, 420px);
  background-position: top right;
}

.floral-frame__corner--bottom-left {
  left: 0;
  bottom: 0;
  width: clamp(190px, 26vw, 380px);
  height: clamp(200px, 28vw, 390px);
  background-position: bottom left;
}

.floral-frame__corner--bottom-right {
  right: 0;
  bottom: 0;
  width: clamp(180px, 24vw, 360px);
  height: clamp(210px, 30vw, 430px);
  background-position: bottom right;
}

.ambient {
  position: fixed;
  width: 46vw;
  height: 46vw;
  border-radius: 50%;
  filter: blur(36px);
  opacity: 0.45;
  pointer-events: none;
  z-index: -2;
}

.ambient-top {
  top: -8vw;
  left: -14vw;
  background: radial-gradient(circle, rgba(198, 168, 106, 0.2), transparent 62%);
}

.ambient-bottom {
  right: -14vw;
  bottom: 8vw;
  background: radial-gradient(circle, rgba(18, 54, 47, 0.24), transparent 58%);
}

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

.petal {
  position: absolute;
  width: 18px;
  height: 34px;
  border-radius: 90% 10% 90% 10%;
  background: linear-gradient(160deg, rgba(230, 210, 162, 0.92), rgba(96, 123, 119, 0.32));
  box-shadow: 0 0 18px rgba(198, 168, 106, 0.12);
  opacity: 0.14;
  animation: drift linear infinite;
}

.petal-1 {
  left: 8%;
  top: -5%;
  animation-duration: 18s;
}

.petal-2 {
  left: 22%;
  top: -8%;
  animation-duration: 22s;
  animation-delay: -7s;
}

.petal-3 {
  right: 24%;
  top: -6%;
  animation-duration: 17s;
  animation-delay: -3s;
}

.petal-4 {
  right: 10%;
  top: -10%;
  animation-duration: 25s;
  animation-delay: -11s;
}

.petal-5 {
  left: 48%;
  top: -7%;
  animation-duration: 20s;
  animation-delay: -14s;
}

.petal-6 {
  right: 42%;
  top: -12%;
  animation-duration: 24s;
  animation-delay: -5s;
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(0.9);
  }
  50% {
    transform: translate3d(20px, 52vh, 0) rotate(180deg) scale(1);
  }
  100% {
    transform: translate3d(-18px, 112vh, 0) rotate(360deg) scale(0.86);
  }
}

.intro-screen {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 245, 218, 0.74), transparent 32%),
    radial-gradient(circle at 78% 18%, rgba(226, 179, 92, 0.18), transparent 24%),
    linear-gradient(135deg, rgba(255, 252, 245, 0.72), rgba(239, 217, 184, 0.18)),
    url("./images/intro-background.jpg");
  background-position: center, center, center;
  background-size: cover, cover, cover, cover;
  background-repeat: no-repeat;
  z-index: 12;
  transition: opacity 520ms ease, visibility 520ms ease;
}

.intro-screen::before,
.intro-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.intro-screen::before {
  background:
    radial-gradient(circle at 26% 22%, rgba(255, 255, 255, 0.5), transparent 18%),
    radial-gradient(circle at 78% 72%, rgba(214, 169, 84, 0.18), transparent 20%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 248, 236, 0.06));
  mix-blend-mode: screen;
}

.intro-screen::after {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.82) 0 1px, transparent 2px) 12% 18% / 130px 130px,
    radial-gradient(circle, rgba(217, 172, 90, 0.5) 0 1px, transparent 2px) 82% 24% / 170px 170px;
  opacity: 0.28;
  animation: introBokeh 9s ease-in-out infinite alternate;
}

.intro-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.intro-halo {
  position: absolute;
  width: min(72vw, 780px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 168, 106, 0.14), transparent 58%);
  filter: blur(14px);
}

.intro-card {
  position: relative;
  display: inline-grid;
  justify-items: center;
  cursor: pointer;
  transition: transform var(--transition), filter var(--transition);
}

.intro-card:hover,
.intro-card:focus-visible {
  transform: translateY(-6px) scale(1.01);
  filter: drop-shadow(0 30px 54px rgba(166, 124, 48, 0.18));
}

.intro-card--envelope {
  width: min(92vw, calc(100svw - 32px), 980px);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: grid;
  place-items: center;
  overflow: visible;
  z-index: 2;
  animation: envelopeFloat 5.8s ease-in-out infinite;
}

.intro-card--envelope:disabled {
  cursor: default;
}

.intro-card--envelope:hover,
.intro-card--envelope:focus-visible {
  transform: translateY(-6px) scale(1.01);
  box-shadow: none;
  border-color: transparent;
}

.envelope-stage {
  position: relative;
  display: block;
  width: 100%;
  max-height: calc(100svh - 80px);
  aspect-ratio: 3 / 2;
  perspective: 1400px;
  transform-style: preserve-3d;
  isolation: isolate;
}

.envelope-glow {
  position: absolute;
  inset: 10% 8% 3%;
  z-index: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 245, 215, 0.86), rgba(217, 169, 77, 0.24) 42%, transparent 70%);
  filter: blur(22px);
  opacity: 0.88;
  transform: translateZ(-60px);
  animation: glowPulse 4.8s ease-in-out infinite;
}

.envelope-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  transform-style: preserve-3d;
  will-change: transform, opacity, filter;
}

.envelope-layer--back {
  z-index: 1;
  filter: drop-shadow(0 30px 42px rgba(112, 88, 46, 0.16));
}

.envelope-layer--card {
  z-index: 2;
  transform: translate3d(0, 8%, -20px) scale(0.72);
  opacity: 0;
  filter: drop-shadow(0 28px 40px rgba(125, 96, 44, 0.12));
}

.envelope-layer--flap {
  z-index: 3;
  transform-origin: 50% 18%;
  backface-visibility: hidden;
  filter: drop-shadow(0 18px 22px rgba(115, 88, 40, 0.12));
}

.envelope-layer--front {
  z-index: 4;
  filter: drop-shadow(0 22px 26px rgba(120, 94, 48, 0.1));
}

.envelope-layer--flowers {
  z-index: 5;
  animation: flowersBreathe 6.8s ease-in-out infinite;
}

.envelope-layer--seal {
  z-index: 6;
  transform: translate3d(0, 4%, 28px) scale(0.18);
  filter:
    drop-shadow(0 14px 24px rgba(142, 98, 32, 0.22))
    drop-shadow(0 0 12px rgba(232, 194, 116, 0.28));
}

.envelope-shimmer,
.envelope-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.envelope-shimmer {
  z-index: 7;
  overflow: hidden;
  border-radius: 28px;
  opacity: 0.7;
  mix-blend-mode: screen;
}

.envelope-shimmer::before {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -45%;
  width: 30%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  transform: skewX(-16deg);
  animation: envelopeShimmer 5.8s ease-in-out infinite;
}

.envelope-sparkles {
  z-index: 8;
  opacity: 0;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 1px, transparent 2px) 32% 38% / 110px 110px,
    radial-gradient(circle, rgba(224, 176, 86, 0.82) 0 1px, transparent 2px) 72% 40% / 120px 120px,
    radial-gradient(circle, rgba(255, 244, 207, 0.9) 0 1px, transparent 2px) 52% 22% / 150px 150px;
}

body.intro-opening .intro-card--envelope {
  animation: none;
  pointer-events: none;
}

body.intro-opening .intro-card__cta-wrap {
  opacity: 0;
  transform: translateY(12px) scale(0.96);
}

body.intro-opening .envelope-layer--seal {
  animation: sealRelease 500ms cubic-bezier(0.2, 1, 0.22, 1) forwards;
}

body.intro-opening .envelope-layer--flap {
  animation: flapOpen 900ms cubic-bezier(0.18, 0.86, 0.2, 1) 240ms forwards;
}

body.intro-opening .envelope-layer--card {
  animation: cardReveal 980ms cubic-bezier(0.2, 0.9, 0.2, 1) 560ms forwards;
}

body.intro-opening .envelope-glow {
  animation: cardHalo 1150ms ease 430ms forwards;
}

body.intro-opening .envelope-layer--flowers {
  animation: flowersLift 1150ms ease 420ms forwards;
}

body.intro-opening .envelope-sparkles {
  animation: sparkleBurst 950ms ease 430ms forwards;
}

.intro-card--envelope .intro-card__cta-wrap {
  position: absolute;
  inset: auto 0 7% 0;
  margin: 0;
  min-height: 0;
  pointer-events: none;
  z-index: 9;
  transition: opacity 360ms ease, transform 360ms ease;
}

.intro-card__cta--overlay {
  min-width: 240px;
  padding: 16px 28px;
  backdrop-filter: blur(10px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.24),
    0 16px 34px rgba(98, 76, 44, 0.18);
}

.intro-card:focus-visible,
.music-toggle:focus-visible,
.location-button:focus-visible,
.luxury-button:focus-visible,
.rsvp-form input:focus-visible {
  outline: 2px solid rgba(198, 168, 106, 0.72);
  outline-offset: 4px;
}

.intro-card__crest {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 1px solid rgba(198, 168, 106, 0.58);
  display: grid;
  place-items: center;
  font-family: "Cinzel", serif;
  font-size: 1.35rem;
  letter-spacing: 0.24rem;
  color: var(--gold-soft);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 6px rgba(198, 168, 106, 0.06);
}

.intro-card__ornament {
  position: absolute;
  width: 180px;
  height: 48px;
  left: 50%;
  transform: translateX(-50%);
}

.intro-card__ornament::before,
.intro-card__ornament::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 68px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(198, 168, 106, 0.76), transparent);
}

.intro-card__ornament::before {
  left: 0;
}

.intro-card__ornament::after {
  right: 0;
}

.intro-card__ornament--top {
  top: 58px;
}

.intro-card__ornament--bottom {
  bottom: 58px;
}

.intro-card__eyebrow,
.section-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.28rem;
  font-size: 0.72rem;
  color: rgba(184, 176, 163, 0.76);
}

.intro-card__title {
  margin: 0;
  font-size: clamp(2.35rem, 6vw, 3.7rem);
  color: var(--ink);
}

.intro-card__subtitle {
  margin: 0;
  max-width: 18ch;
  text-align: center;
  font-size: 1.24rem;
  color: rgba(245, 241, 232, 0.68);
}

.intro-card__cta-wrap {
  margin-top: 8px;
  min-height: 72px;
  display: grid;
  place-items: center;
}

.intro-card__cta {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 220px;
  min-height: 58px;
  padding: 18px 28px;
  overflow: hidden;
  border-radius: 999px;
  font-family: "Cinzel", serif;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 0.12rem;
  color: #fffef8;
  background:
    linear-gradient(135deg, rgba(198, 168, 106, 0.28), rgba(18, 54, 47, 0.72)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 18px 28px rgba(0, 0, 0, 0.26),
    0 0 0 rgba(230, 210, 162, 0.18);
  animation: invitationGlow 3.6s ease-in-out infinite;
  isolation: isolate;
  transform: translateZ(0);
  will-change: transform, box-shadow;
}

.intro-card__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 18%, rgba(255, 255, 255, 0.26) 50%, transparent 82%);
  opacity: 0.72;
  transform: translateX(-155%);
  animation: ctaSheen 3.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.intro-card__cta-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0 28px;
  z-index: 1;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition: opacity 300ms ease, transform 300ms ease;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.intro-card__cta-text.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.intro-card__cta-text[lang="ar"] {
  font-family: "Noto Naskh Arabic", "Amiri", serif;
  letter-spacing: 0;
}

@keyframes ctaSheen {
  0% {
    transform: translateX(-155%);
  }
  22% {
    transform: translateX(155%);
  }
  100% {
    transform: translateX(155%);
  }
}

@keyframes shimmer {
  0%,
  18% {
    transform: translateX(-120%);
  }
  36% {
    transform: translateX(120%);
  }
  100% {
    transform: translateX(120%);
  }
}

@keyframes invitationGlow {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.18),
      0 18px 28px rgba(0, 0, 0, 0.26),
      0 0 0 rgba(230, 210, 162, 0.12);
    filter: brightness(1);
  }
  50% {
    transform: translateY(-2px) scale(1.015);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.24),
      0 18px 32px rgba(0, 0, 0, 0.3),
      0 0 26px rgba(230, 210, 162, 0.24);
    filter: brightness(1.06);
  }
}

@keyframes introBokeh {
  from {
    opacity: 0.18;
    transform: translate3d(-6px, -4px, 0);
  }
  to {
    opacity: 0.34;
    transform: translate3d(8px, 6px, 0);
  }
}

@keyframes envelopeFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -6px, 0);
  }
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.68;
    transform: translateZ(-60px) scale(0.96);
  }
  50% {
    opacity: 0.94;
    transform: translateZ(-60px) scale(1.04);
  }
}

@keyframes envelopeShimmer {
  0%,
  22% {
    transform: translateX(0) skewX(-16deg);
    opacity: 0;
  }
  34% {
    opacity: 0.72;
  }
  48%,
  100% {
    transform: translateX(520%) skewX(-16deg);
    opacity: 0;
  }
}

@keyframes flowersBreathe {
  0%,
  100% {
    transform: translate3d(0, 0, 22px) scale(1);
  }
  50% {
    transform: translate3d(0, -0.8%, 24px) scale(1.006);
  }
}

@keyframes sealRelease {
  0% {
    opacity: 1;
    transform: translate3d(0, 4%, 28px) scale(0.18);
    filter:
      drop-shadow(0 14px 24px rgba(142, 98, 32, 0.22))
      drop-shadow(0 0 8px rgba(232, 194, 116, 0.18));
  }
  38% {
    opacity: 1;
    transform: translate3d(0, 4%, 34px) scale(0.205);
    filter:
      drop-shadow(0 16px 28px rgba(142, 98, 32, 0.28))
      drop-shadow(0 0 28px rgba(241, 206, 136, 0.74));
  }
  72% {
    opacity: 0.75;
    transform: translate3d(0, 4%, 38px) scale(0.16);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, 4%, 42px) scale(0.08);
  }
}

@keyframes flapOpen {
  0% {
    transform: rotateX(0deg) translate3d(0, 0, 10px);
    opacity: 1;
  }
  45% {
    transform: rotateX(-68deg) translate3d(0, -2%, 20px) scaleY(0.98);
    opacity: 0.98;
  }
  100% {
    transform: rotateX(-118deg) translate3d(0, -7%, -18px) scaleY(0.94);
    opacity: 0.42;
    filter: drop-shadow(0 -8px 22px rgba(176, 136, 66, 0.08));
  }
}

@keyframes cardReveal {
  0% {
    opacity: 0;
    transform: translate3d(0, 8%, -20px) scale(0.72);
    filter: drop-shadow(0 22px 32px rgba(125, 96, 44, 0.1));
  }
  18% {
    opacity: 1;
  }
  72% {
    opacity: 1;
    transform: translate3d(0, -18%, 34px) scale(0.9);
    filter:
      drop-shadow(0 30px 50px rgba(125, 96, 44, 0.16))
      drop-shadow(0 0 28px rgba(236, 200, 126, 0.22));
  }
  100% {
    opacity: 1;
    transform: translate3d(0, -28%, 50px) scale(0.96);
    filter:
      drop-shadow(0 34px 58px rgba(125, 96, 44, 0.18))
      drop-shadow(0 0 34px rgba(236, 200, 126, 0.28));
  }
}

@keyframes cardHalo {
  0% {
    opacity: 0.78;
    transform: translateZ(-60px) scale(0.98);
  }
  70% {
    opacity: 1;
    transform: translateZ(-60px) scale(1.12);
  }
  100% {
    opacity: 0.82;
    transform: translateZ(-60px) scale(1.02);
  }
}

@keyframes flowersLift {
  0% {
    transform: translate3d(0, 0, 22px) scale(1);
  }
  100% {
    transform: translate3d(0, -1.2%, 30px) scale(1.012);
  }
}

@keyframes sparkleBurst {
  0% {
    opacity: 0;
    transform: translate3d(0, 8px, 40px) scale(0.94);
    filter: blur(0);
  }
  24% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(0, -22px, 40px) scale(1.04);
    filter: blur(0.2px);
  }
}

.music-toggle {
  position: fixed;
  right: 32px;
  bottom: 22px;
  z-index: 11;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform var(--transition);
}

.music-toggle:hover {
  transform: translateY(-2px);
}

.music-toggle[data-state="unavailable"] {
  opacity: 0.68;
}

.music-toggle__record-wrap {
  width: 128px;
  height: 128px;
  flex: 0 0 128px;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 50%;
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.music-toggle__record {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  display: block;
  transform-origin: center;
  filter: saturate(0.92) contrast(1.06);
}

.music-toggle[data-state="playing"] .music-toggle__record {
  animation: recordSpin 3.2s linear infinite;
}

.music-toggle[data-state="paused"] .music-toggle__record,
.music-toggle[data-state="unavailable"] .music-toggle__record {
  animation: none;
}

.music-toggle__label {
  position: absolute;
  inset: 50%;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  display: grid;
  place-items: center;
  padding: 4px;
  border-radius: 50%;
  background: rgba(245, 239, 227, 0.9);
  font-family: "Cinzel", serif;
  font-size: 0.42rem;
  line-height: 1.15;
  letter-spacing: 0.04rem;
  text-transform: uppercase;
  color: #23201a;
  text-align: center;
  box-shadow:
    inset 0 0 0 1px rgba(165, 145, 108, 0.42),
    0 2px 8px rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

@keyframes recordSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.site-content {
  position: relative;
  z-index: 1;
  padding: 0 16px 76px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 900ms ease 120ms, transform 900ms ease 120ms;
}

body.invitation-open .site-content {
  opacity: 1;
  transform: translateY(0);
}

.section {
  padding: 24px 0;
}

.hero.section {
  padding-top: 0;
}

.section-frame {
  position: relative;
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: clamp(28px, 6vw, 54px);
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: clamp(26px, 4vw, 34px);
  background:
    linear-gradient(160deg, rgba(255, 248, 239, 0.05), rgba(255, 248, 239, 0.015)),
    linear-gradient(180deg, rgba(18, 14, 11, 0.9), rgba(9, 8, 7, 0.82));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

body.invitation-open .section-frame {
  border-color: rgba(176, 154, 118, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.9), rgba(248, 241, 231, 0.84));
  box-shadow: 0 18px 60px rgba(120, 102, 78, 0.08);
}

.section-frame::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: inherit;
  border: 1px solid rgba(241, 222, 189, 0.08);
  z-index: 1;
  pointer-events: none;
}

.invitation-note > *,
.location-card > *,
.dress-card > *,
.closing-card > * {
  position: relative;
  z-index: 2;
}

.hero-frame {
  width: 100%;
  min-height: min(860px, 90vh);
  margin: 0;
  overflow: hidden;
  padding-top: clamp(34px, 6vw, 72px);
  padding-bottom: clamp(34px, 6vw, 64px);
  padding-left: clamp(24px, 5vw, 48px);
  padding-right: clamp(24px, 5vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  border-radius: 0 0 clamp(30px, 4vw, 40px) clamp(30px, 4vw, 40px);
  border: 0;
  background:
    linear-gradient(180deg, rgba(8, 7, 6, 0.32), rgba(8, 7, 6, 0.78)),
    rgba(6, 6, 6, 0.82);
  box-shadow: none;
  backdrop-filter: none;
}

body.invitation-open .hero-frame {
  background:
    linear-gradient(180deg, rgba(250, 245, 237, 0.2), rgba(244, 236, 224, 0.78)),
    rgba(255, 250, 243, 0.68);
}

.hero-frame::before {
  display: none;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-position: center 22%;
  background-size: cover;
  background-repeat: no-repeat;
  filter: saturate(0.9) sepia(0.03) brightness(0.86);
  transform: scale(1.02);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 5, 4, 0.06) 0%, rgba(6, 5, 4, 0.02) 36%, rgba(6, 5, 4, 0.22) 100%),
    radial-gradient(circle at top, rgba(241, 223, 191, 0.18), transparent 36%);
}

.hero-blossom {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  opacity: 0.94;
  filter: drop-shadow(0 16px 28px rgba(108, 76, 57, 0.18));
}

.hero-blossom--top-right {
  top: -12px;
  right: -18px;
  width: min(33vw, 430px);
  transform: rotate(-1deg);
  transform-origin: top right;
}

.hero-flourish {
  position: absolute;
  top: 50%;
  width: min(22vw, 180px);
  aspect-ratio: 0.9;
  border: 1px solid rgba(198, 168, 106, 0.18);
  border-radius: 100% 0 100% 0;
  opacity: 0.46;
  filter: blur(0.2px);
}

.hero-flourish::before,
.hero-flourish::after {
  content: "";
  position: absolute;
  inset: 14%;
  border: 1px solid rgba(198, 168, 106, 0.14);
  border-radius: inherit;
}

.hero-flourish--left {
  left: -7%;
  transform: translateY(-50%) rotate(10deg);
}

.hero-flourish--right {
  right: -7%;
  transform: translateY(-50%) rotate(-12deg);
}

.hero-names,
.hero-copy,
.hero-content-panel,
.section-kicker,
.section-heading {
  position: relative;
  z-index: 1;
}

.hero-content-panel {
  width: min(100%, 760px);
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(241, 222, 189, 0.14);
  border-radius: clamp(24px, 4vw, 32px);
  background:
    linear-gradient(180deg, rgba(13, 11, 10, 0.26), rgba(13, 11, 10, 0.48)),
    radial-gradient(circle at top, rgba(241, 223, 191, 0.06), transparent 55%);
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 239, 0.12),
    0 24px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
}

body.invitation-open .hero-content-panel {
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.54), rgba(247, 240, 229, 0.68));
  border-color: rgba(173, 151, 112, 0.22);
  box-shadow: 0 28px 60px rgba(126, 111, 91, 0.08);
}

.hero-content-panel .section-kicker {
  color: rgba(241, 223, 191, 0.72);
}

body.invitation-open .hero-content-panel .section-kicker {
  color: rgba(86, 94, 73, 0.96);
}

.countdown-note {
  text-align: center;
}

.hero-countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: min(100%, 700px);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-names__arabic {
  margin: 0;
  font-size: clamp(2.6rem, 6.4vw, 4.75rem);
  line-height: 1.12;
  color: var(--gold-soft);
  max-width: 10ch;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.34);
}

body.invitation-open .hero-names__arabic,
body.invitation-open .closing-card__arabic {
  color: #5f755f;
}

.hero-names__english {
  margin: 14px 0 0;
  font-family: "Cinzel", serif;
  font-size: clamp(1rem, 2.8vw, 1.5rem);
  letter-spacing: 0.26rem;
  text-transform: uppercase;
  color: rgba(251, 245, 234, 0.88);
}

body.invitation-open .hero-names__english {
  color: rgba(55, 62, 49, 0.96);
}

.hero-copy {
  margin: 22px auto 0;
  max-width: 640px;
}

.hero-copy__arabic,
.hero-copy__english {
  margin: 0;
  font-size: clamp(1.1rem, 2.8vw, 1.5rem);
  line-height: 1.6;
}

.hero-copy__arabic {
  color: rgba(251, 245, 234, 0.92);
}

.hero-copy__english {
  margin-top: 12px;
  color: rgba(251, 245, 234, 0.82);
}

body.invitation-open .hero-copy__arabic,
body.invitation-open .hero-copy__english,
body.invitation-open .invitation-note__english,
body.invitation-open .detail-card__english,
body.invitation-open .location-copy + .location-copy,
body.invitation-open .dress-copy p + p,
body.invitation-open .closing-card__english {
  color: rgba(60, 64, 53, 0.92);
}

.luxury-button svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}

.luxury-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 18px;
  border: 1px solid rgba(198, 168, 106, 0.42);
  border-radius: 999px;
  font-family: "Cinzel", serif;
  font-size: 0.78rem;
  letter-spacing: 0.06rem;
  line-height: 1.2;
  text-decoration: none;
  color: var(--gold-soft);
  background: rgba(14, 12, 10, 0.52);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.luxury-button:hover {
  transform: translateY(-2px);
  border-color: rgba(198, 168, 106, 0.75);
}

.luxury-button--primary {
  color: #fffdf8;
  border-color: rgba(198, 168, 106, 0.78);
  background:
    linear-gradient(135deg, rgba(159, 125, 69, 0.96), rgba(31, 68, 61, 0.98)),
    rgba(13, 12, 10, 0.78);
}

.luxury-button--secondary,
.luxury-button--ghost {
  color: rgba(251, 245, 234, 0.92);
}

body.invitation-open .luxury-button--secondary,
body.invitation-open .luxury-button--ghost,
body.invitation-open .detail-card__action {
  color: #4f604a;
  background: rgba(255, 251, 246, 0.88);
}

.sticky-actions {
  position: fixed;
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 10;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 7px;
  padding: 8px;
  border: 1px solid rgba(176, 154, 118, 0.28);
  border-radius: 22px;
  background: rgba(255, 250, 243, 0.9);
  box-shadow: 0 18px 42px rgba(78, 64, 44, 0.2);
  backdrop-filter: blur(18px);
  transition: transform var(--transition), opacity var(--transition);
}

.sticky-actions[hidden] {
  display: none;
}

.sticky-actions.is-soft-hidden {
  opacity: 0;
  transform: translateY(120%);
  pointer-events: none;
}

.sticky-actions.is-scroll-hidden {
  opacity: 0;
  transform: translateY(120%);
  pointer-events: none;
}

.sticky-actions .luxury-button {
  min-width: 0;
  min-height: 48px;
  padding: 10px 8px;
  box-shadow: none;
  font-size: 0.64rem;
  letter-spacing: 0.03rem;
  color: #53624d;
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(166, 145, 107, 0.22);
}

.sticky-actions .luxury-button--primary {
  color: #fffdf8;
  background: linear-gradient(135deg, #9f7d45, #1f443d);
  border-color: rgba(159, 125, 69, 0.44);
}

.sticky-actions .luxury-button svg {
  width: 17px;
  height: 17px;
}

body.invitation-open .section-heading h2,
body.invitation-open .detail-card__title,
body.invitation-open .location-copy,
body.invitation-open .dress-copy p,
body.invitation-open .dress-swatch__name,
body.invitation-open .countdown-card__value {
  color: #4b5648;
}

.section-heading {
  margin-bottom: 32px;
}

.section-heading--center {
  text-align: center;
}

.section-heading h2 {
  margin: 10px 0 0;
  font-family: "Cinzel", serif;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 500;
  color: var(--ink);
}

.invitation-note {
  text-align: center;
  padding-top: clamp(34px, 5vw, 48px);
  padding-bottom: clamp(34px, 5vw, 48px);
}

.invitation-note::before,
.invitation-note::after,
.location-card::before,
.dress-card::before,
.closing-card::before {
  content: "";
  position: absolute;
  left: 50%;
  width: min(180px, 42vw);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(198, 168, 106, 0.8), transparent);
  z-index: 0;
}

.invitation-note::before,
.location-card::before,
.dress-card::before,
.closing-card::before {
  top: 10px;
}

.invitation-note::after {
  bottom: 10px;
}

.invitation-note__arabic,
.invitation-note__english {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
}

.invitation-note__english {
  margin-top: 14px;
  max-width: 620px;
  color: rgba(251, 245, 234, 0.76);
}

.media-placeholder,
.gallery-placeholder {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 10px;
  min-height: 100%;
  padding: 34px;
  color: rgba(251, 245, 234, 0.76);
  background:
    radial-gradient(circle at center, rgba(198, 168, 106, 0.08), transparent 46%),
    linear-gradient(180deg, rgba(17, 17, 17, 0.94), rgba(6, 6, 6, 0.88));
}

.media-placeholder strong,
.gallery-placeholder strong {
  font-family: "Cinzel", serif;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

.countdown-grid,
.details-grid,
.gallery-grid,
.swatches {
  display: grid;
  gap: 16px;
}

.countdown-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
}

.countdown-card,
.detail-card,
.dress-swatch,
.gallery-card {
  position: relative;
  border-radius: var(--radius-lg);
}

.countdown-card {
  padding: 18px 10px 18px 0;
  text-align: center;
  border: 0;
  background: none;
  box-shadow: none;
}

.hero-countdown .countdown-card {
  padding: 16px 10px 14px;
  border-radius: 20px;
  border: 1px solid rgba(241, 222, 189, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 248, 239, 0.08), rgba(255, 248, 239, 0.03)),
    rgba(10, 9, 8, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 248, 239, 0.08);
}

body.invitation-open .hero-countdown .countdown-card {
  border-color: rgba(164, 146, 111, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 251, 246, 0.9), rgba(249, 242, 232, 0.8));
}

.countdown-card__value {
  display: block;
  font-family: "Cinzel", serif;
  font-size: clamp(2rem, 8vw, 3.4rem);
  color: var(--gold-soft);
  text-shadow: 0 0 24px rgba(198, 168, 106, 0.12);
  transform-origin: center;
}

.countdown-card__value.is-ticking {
  animation: countdownTick 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.countdown-card__label {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  font-size: 0.98rem;
  color: rgba(184, 176, 163, 0.8);
}

body.invitation-open .countdown-card__label,
body.invitation-open .dress-swatch__hex {
  color: rgba(99, 101, 87, 0.74);
}

.countdown-card::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(198, 168, 106, 0.54), transparent);
}

.hero-countdown .countdown-card::after {
  left: 18%;
  right: 18%;
  bottom: 8px;
}

.countdown-card__label span:first-child {
  font-family: "Cinzel", serif;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

@keyframes countdownTick {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.82;
  }
  40% {
    transform: translateY(-6px) scale(1.1);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.details-grid {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.details-calendar {
  display: flex;
  justify-content: center;
}

.detail-card {
  padding: 12px 0 22px 22px;
  border-left: 1px solid rgba(198, 168, 106, 0.38);
  background: none;
  box-shadow: none;
}

body.invitation-open .detail-card {
  border-left-color: rgba(162, 143, 99, 0.42);
}

.detail-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--gold-soft);
  background: rgba(198, 168, 106, 0.1);
}

body.invitation-open .detail-card__icon {
  color: #6e815f;
  background: rgba(214, 225, 208, 0.52);
}

.detail-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}

.detail-card__title {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: 1.05rem;
  letter-spacing: 0.06rem;
  text-transform: uppercase;
}

.detail-card__arabic,
.detail-card__english {
  margin: 10px 0 0;
  font-size: 1.16rem;
}

.detail-card__english {
  color: rgba(236, 228, 214, 0.96);
}

.detail-card__arabic {
  color: rgba(214, 205, 191, 0.9);
}

body.invitation-open .detail-card__english {
  color: #42493e;
}

body.invitation-open .detail-card__arabic {
  color: #68705f;
}

.detail-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(198, 168, 106, 0.58);
  background: linear-gradient(135deg, rgba(198, 168, 106, 0.14), rgba(17, 17, 17, 0.96));
  box-shadow: var(--shadow-soft);
  font-family: "Cinzel", serif;
  font-size: 0.9rem;
  letter-spacing: 0.06rem;
  color: var(--gold-soft);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.detail-card__action svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}

.detail-card__action:hover {
  transform: translateY(-2px);
  border-color: rgba(198, 168, 106, 0.9);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
}

body.invitation-open .detail-card__action {
  border-color: rgba(160, 144, 106, 0.4);
  background: linear-gradient(135deg, rgba(245, 238, 226, 0.92), rgba(233, 241, 229, 0.86));
  color: #566450;
  box-shadow: 0 18px 36px rgba(117, 111, 87, 0.12);
}

.rsvp-card {
  overflow: hidden;
}

.rsvp-card::after {
  content: "";
  position: absolute;
  right: clamp(18px, 5vw, 52px);
  top: clamp(22px, 5vw, 48px);
  width: min(180px, 34vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 168, 106, 0.12), transparent 68%);
  pointer-events: none;
}

.rsvp-form,
.rsvp-summary {
  position: relative;
  z-index: 1;
}

.rsvp-phases {
  display: grid;
  gap: 14px;
}

.rsvp-phase {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(198, 168, 106, 0.18);
  border-radius: 22px;
  background: rgba(255, 248, 239, 0.06);
  animation: rsvpPhaseIn 360ms ease both;
}

.rsvp-phase[hidden],
.rsvp-form__submit[hidden] {
  display: none;
}

.rsvp-phase.is-visible {
  animation: rsvpPhaseIn 360ms ease both;
}

body.invitation-open .rsvp-phase {
  border-color: rgba(170, 151, 118, 0.18);
  background: rgba(255, 251, 246, 0.68);
}

.rsvp-phase__number {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: 0.74rem;
  letter-spacing: 0.12rem;
  color: var(--gold-soft);
}

body.invitation-open .rsvp-phase__number {
  color: #6d7c62;
}

.rsvp-phase h3 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  font-weight: 500;
  letter-spacing: 0.04rem;
  color: rgba(251, 245, 234, 0.94);
}

body.invitation-open .rsvp-phase h3 {
  color: #46503f;
}

.rsvp-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.rsvp-answer {
  position: relative;
  min-height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(198, 168, 106, 0.22);
  border-radius: 999px;
  background: rgba(255, 248, 239, 0.07);
  color: rgba(251, 245, 234, 0.9);
  cursor: pointer;
  overflow: hidden;
}

body.invitation-open .rsvp-answer {
  color: #46503f;
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(170, 151, 118, 0.2);
}

.rsvp-answer input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rsvp-answer span {
  position: relative;
  z-index: 1;
  font-family: "Cinzel", serif;
  font-size: 0.9rem;
  letter-spacing: 0.08rem;
}

.rsvp-answer:has(input:checked) {
  border-color: rgba(198, 168, 106, 0.72);
  background: linear-gradient(135deg, rgba(159, 125, 69, 0.96), rgba(31, 68, 61, 0.98));
  color: #fffdf8;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.14);
}

.rsvp-answer:focus-within {
  outline: 2px solid rgba(198, 168, 106, 0.72);
  outline-offset: 4px;
}

.rsvp-input-line {
  display: block;
}

.rsvp-input-line--compact {
  max-width: 220px;
}

.rsvp-form input:not([type="radio"]) {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(198, 168, 106, 0.2);
  border-radius: 16px;
  padding: 13px 14px;
  font: 1.06rem "Cormorant Garamond", serif;
  color: var(--ink);
  background: rgba(255, 248, 239, 0.08);
}

body.invitation-open .rsvp-form input:not([type="radio"]) {
  color: #3f473c;
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(170, 151, 118, 0.22);
}

.rsvp-form__submit {
  margin-top: 18px;
}

.rsvp-next {
  justify-self: start;
  margin-top: 4px;
}

@keyframes rsvpPhaseIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rsvp-form__status {
  min-height: 1.2em;
  margin: 14px 0 0;
  color: rgba(203, 192, 175, 0.86);
}

.rsvp-summary {
  max-width: 680px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(198, 168, 106, 0.18);
  border-radius: 24px;
  background: rgba(255, 248, 239, 0.07);
}

body.invitation-open .rsvp-summary {
  background: rgba(255, 251, 246, 0.72);
  border-color: rgba(170, 151, 118, 0.18);
}

.rsvp-summary--confirmed {
  text-align: center;
  border-color: rgba(78, 93, 85, 0.34);
  background: rgba(230, 241, 232, 0.72);
}

.rsvp-confirmation-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 50%;
  color: #fff;
  background: #4e6f57;
  box-shadow: 0 8px 18px rgba(56, 91, 64, 0.22);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.rsvp-summary__eyebrow {
  margin: 0 0 8px;
  font-family: "Cinzel", serif;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--gold-soft);
}

body.invitation-open .rsvp-summary__eyebrow {
  color: #6d7c62;
}

.rsvp-summary h3 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 500;
}

.rsvp-summary p {
  margin: 10px 0 0;
  font-size: 1.08rem;
}

.rsvp-summary .luxury-button {
  margin-top: 18px;
}

.location-card {
  text-align: center;
  padding-top: clamp(36px, 5vw, 52px);
  padding-bottom: clamp(30px, 5vw, 44px);
}

.location-copy {
  margin: 0 auto;
  max-width: 680px;
  font-size: 1.2rem;
}

.location-copy + .location-copy {
  margin-top: 8px;
  color: rgba(203, 192, 175, 0.88);
}

.location-button {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
  margin-top: 28px;
  padding: 17px 28px;
  border-radius: 999px;
  border: 1px solid rgba(198, 168, 106, 0.58);
  background: linear-gradient(135deg, rgba(198, 168, 106, 0.14), rgba(17, 17, 17, 0.96));
  box-shadow: var(--shadow-soft);
  font-family: "Cinzel", serif;
  letter-spacing: 0.06rem;
  color: var(--gold-soft);
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  text-align: center;
}

body.invitation-open .location-button {
  border-color: rgba(160, 144, 106, 0.4);
  background: linear-gradient(135deg, rgba(245, 238, 226, 0.92), rgba(233, 241, 229, 0.86));
  color: #5d7158;
  box-shadow: 0 18px 36px rgba(117, 111, 87, 0.12);
}

.location-button:hover {
  transform: translateY(-2px);
  border-color: rgba(198, 168, 106, 0.9);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
}

.gallery-grid {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gallery-card {
  aspect-ratio: 4 / 5;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(241, 222, 189, 0.12);
  background: rgba(11, 10, 9, 0.6);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  transition: transform 600ms ease, filter 600ms ease;
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 36%, rgba(6, 6, 6, 0.42));
  pointer-events: none;
}

.gallery-card:hover img {
  transform: scale(1.04);
  filter: saturate(1.05);
}

.gallery-card--placeholder {
  min-height: 240px;
}

.dress-card {
  text-align: center;
  padding-top: clamp(38px, 5vw, 56px);
  overflow: hidden;
}

.dress-stage {
  position: relative;
  display: grid;
  gap: 30px;
  align-items: start;
}

.dress-copy-panel {
  position: relative;
  padding: clamp(20px, 3vw, 28px);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(255, 248, 239, 0.1), rgba(255, 248, 239, 0.03)),
    radial-gradient(circle at top left, rgba(198, 168, 106, 0.12), transparent 42%);
  border: 1px solid rgba(241, 222, 189, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 248, 239, 0.08);
}

body.invitation-open .dress-copy-panel {
  border-color: rgba(171, 151, 119, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 251, 246, 0.88), rgba(248, 241, 231, 0.72)),
    radial-gradient(circle at top left, rgba(198, 168, 106, 0.1), transparent 40%);
}

.dress-copy p {
  margin: 0;
  font-size: 1.26rem;
}

.dress-copy p + p {
  margin-top: 8px;
  color: rgba(203, 192, 175, 0.88);
}

.dress-note {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  color: rgba(214, 204, 186, 0.9);
  font-family: "Cinzel", serif;
  font-size: 0.77rem;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
}

body.invitation-open .dress-note {
  color: rgba(104, 109, 91, 0.8);
}

.dress-note__line {
  width: clamp(42px, 7vw, 72px);
  height: 1px;
  background: linear-gradient(90deg, rgba(198, 168, 106, 0.9), transparent);
}

.dress-palette {
  position: relative;
  min-width: 0;
}

.dress-palette__halo {
  position: absolute;
  inset: 8% 14% auto;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 168, 106, 0.16), transparent 68%);
  filter: blur(12px);
  opacity: 0.8;
  pointer-events: none;
  animation: dressHalo 5.5s ease-in-out infinite;
}

.swatches {
  margin-top: 26px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  position: relative;
  z-index: 1;
  align-items: stretch;
}

.dress-swatch {
  padding: 14px 14px 18px;
  text-align: left;
  border: 1px solid rgba(241, 222, 189, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 248, 239, 0.08), rgba(255, 248, 239, 0.03)),
    rgba(9, 8, 7, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 239, 0.08),
    0 18px 38px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  isolation: isolate;
  min-width: 0;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.dress-swatch::before,
.dress-swatch::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.dress-swatch::before {
  inset: 0;
  background: linear-gradient(125deg, transparent 22%, rgba(255, 255, 255, 0.18) 46%, transparent 64%);
  transform: translateX(-130%);
  animation: dressSheen 6.8s ease-in-out infinite;
  animation-delay: var(--swatch-delay, 0s);
}

.dress-swatch::after {
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
}

.dress-swatch:hover {
  transform: translateY(-6px);
  border-color: rgba(198, 168, 106, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 239, 0.08),
    0 26px 44px rgba(0, 0, 0, 0.18);
}

body.invitation-open .dress-swatch {
  border-color: rgba(170, 151, 118, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 251, 246, 0.96), rgba(247, 241, 232, 0.8)),
    rgba(255, 255, 255, 0.64);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 16px 34px rgba(139, 119, 94, 0.08);
}

.dress-swatch__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.dress-swatch__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(198, 168, 106, 0.3);
  background: rgba(255, 255, 255, 0.05);
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  letter-spacing: 0.08rem;
  color: var(--gold-soft);
}

body.invitation-open .dress-swatch__index {
  color: #66745d;
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(171, 151, 119, 0.2);
}

.dress-swatch__mood {
  font-size: 0.84rem;
  letter-spacing: 0.03rem;
  color: rgba(214, 204, 186, 0.74);
}

body.invitation-open .dress-swatch__mood {
  color: rgba(108, 112, 96, 0.68);
}

.dress-swatch__chip {
  width: 100%;
  height: 82px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -10px 22px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.dress-swatch__chip::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 42%),
    radial-gradient(circle at 20% 22%, rgba(255, 255, 255, 0.2), transparent 20%);
  mix-blend-mode: screen;
}

.dress-swatch__name {
  display: block;
  margin-top: 12px;
  font-family: "Cinzel", serif;
  font-size: 0.94rem;
  letter-spacing: 0.06rem;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.dress-swatch__hex {
  display: none;
  margin-top: 4px;
  font-size: 0.95rem;
  color: rgba(184, 176, 163, 0.76);
  overflow-wrap: anywhere;
}

@keyframes dressSheen {
  0%,
  18% {
    transform: translateX(-130%);
    opacity: 0;
  }
  28% {
    opacity: 1;
  }
  46%,
  100% {
    transform: translateX(130%);
    opacity: 0;
  }
}

@keyframes dressHalo {
  0%,
  100% {
    transform: translateY(0) scale(0.96);
    opacity: 0.62;
  }
  50% {
    transform: translateY(10px) scale(1.04);
    opacity: 0.92;
  }
}

.closing-card {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 14px;
  padding-top: clamp(78px, 10vw, 110px);
  padding-bottom: clamp(48px, 8vw, 72px);
}

.closing-card__arabic,
.closing-card__english {
  margin: 0;
}

.closing-card__arabic {
  display: inline-block;
  font-size: clamp(2rem, 7vw, 3.6rem);
  line-height: 1.3;
  padding-top: 0.16em;
  color: var(--gold-soft);
}

.closing-card__english {
  margin-top: 14px;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: rgba(203, 192, 175, 0.86);
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 699px) {
  .floral-frame__corner {
    opacity: 0.9;
  }

  .floral-frame__corner--top-left {
    width: clamp(132px, 32vw, 190px);
    height: clamp(140px, 36vw, 210px);
  }

  .floral-frame__corner--top-right {
    width: clamp(142px, 34vw, 200px);
    height: clamp(158px, 40vw, 230px);
  }

  .floral-frame__corner--bottom-left {
    width: clamp(144px, 35vw, 210px);
    height: clamp(154px, 40vw, 235px);
  }

  .floral-frame__corner--bottom-right {
    width: clamp(138px, 34vw, 205px);
    height: clamp(170px, 42vw, 250px);
  }
}

@media (max-width: 699px) {
  body.invitation-open {
    background-attachment: scroll, scroll;
  }

  .hero-countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 auto;
  }

  .site-content {
    padding-left: 0;
    padding-right: 0;
    padding-bottom: calc(118px + env(safe-area-inset-bottom));
  }

  .section {
    padding: 18px 0;
  }

  .section-frame {
    padding: 26px 20px;
    border-radius: 24px;
  }

  .section-frame::before {
    inset: 10px;
  }

  .invitation-note::before,
  .invitation-note::after,
  .location-card::before,
  .dress-card::before,
  .closing-card::before {
    display: none;
  }

  .intro-screen {
    padding: 0;
    background:
      linear-gradient(180deg, rgba(255, 249, 239, 0.2), rgba(235, 213, 176, 0.12)),
      url("./images/mobile-intro-background.png");
    background-position: center, center;
    background-size: cover, cover;
    background-repeat: no-repeat, no-repeat;
  }

  .intro-card {
    min-height: min(82vh, 560px);
    padding: 34px 22px;
    gap: 12px;
  }

  .intro-card--envelope {
    width: min(92vw, calc(100svw - 24px), 820px);
    min-height: 0;
    padding: 0;
  }

  .envelope-stage {
    width: 100%;
    max-height: calc(100svh - 72px);
  }

  .intro-card--envelope .intro-card__cta-wrap {
    position: relative;
    inset: auto;
    width: min(72vw, 260px);
    margin-top: -36px;
  }

  .intro-card::after {
    inset: 12px;
  }

  .intro-card__crest {
    width: 64px;
    height: 64px;
    font-size: 1.15rem;
  }

  .intro-card__ornament {
    width: 150px;
  }

  .intro-card__ornament--top {
    top: 42px;
  }

  .intro-card__ornament--bottom {
    bottom: 42px;
  }

  .intro-card__subtitle {
    font-size: 1.05rem;
  }

  .intro-card__cta {
    min-width: 0;
    width: 100%;
    padding: 16px 20px;
    font-size: 0.92rem;
    letter-spacing: 0.08rem;
  }

  .intro-card__cta--overlay {
    width: min(72vw, 250px);
    min-width: 0;
  }

  .hero-frame {
    min-height: 88svh;
    padding-top: max(52px, env(safe-area-inset-top));
    padding-bottom: 28px;
    padding-left: 14px;
    padding-right: 14px;
    border-radius: 0 0 28px 28px;
  }

  .hero-backdrop {
    background-size: cover;
    background-position: center 18%;
    transform: scale(1.03);
  }

  .hero-blossom--top-right {
    top: 10px;
    right: -28px;
    width: min(54vw, 250px);
    opacity: 0.9;
  }

  .hero-flourish {
    display: none;
  }

  .hero-names__arabic {
    font-size: clamp(2.4rem, 11.5vw, 3.5rem);
  }

  .hero-names__english {
    line-height: 1.5;
    letter-spacing: 0.18rem;
  }

  .hero-copy {
    margin-top: 16px;
  }

  .hero-content-panel {
    padding: 20px 14px;
    border-radius: 22px;
    background:
      linear-gradient(180deg, rgba(11, 10, 9, 0.5), rgba(11, 10, 9, 0.72)),
      radial-gradient(circle at top, rgba(241, 223, 191, 0.08), transparent 55%);
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .section-heading h2 {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .invitation-note__arabic,
  .invitation-note__english,
  .location-copy,
  .dress-copy p,
  .detail-card__arabic,
  .detail-card__english {
    font-size: 1.08rem;
  }

  .countdown-grid {
    gap: 8px 10px;
  }

  .countdown-card {
    padding: 14px 4px;
  }

  .countdown-card__value {
    font-size: clamp(1.75rem, 9vw, 2.4rem);
  }

  .countdown-card__label {
    font-size: 0.86rem;
  }

  .details-grid {
    gap: 18px;
  }

  .detail-card {
    padding: 10px 0 16px 16px;
  }

  .gallery-card,
  .gallery-card--placeholder {
    min-height: 0;
  }

  .dress-stage {
    gap: 22px;
  }

  .dress-copy-panel {
    padding: 18px 16px;
    border-radius: 22px;
  }

  .dress-note {
    gap: 10px;
    font-size: 0.66rem;
    letter-spacing: 0.1rem;
  }

  .dress-palette__halo {
    inset: 10% 8% auto;
    height: 140px;
  }

  .swatches {
    gap: 12px 10px;
    margin-top: 0;
  }

  .dress-swatch {
    padding: 12px;
  }

  .dress-swatch__meta {
    margin-bottom: 12px;
  }

  .dress-swatch__chip {
    height: 72px;
  }

  .music-toggle {
    left: auto;
    right: 12px;
    bottom: calc(16px + env(safe-area-inset-bottom));
  }

  .music-toggle__record-wrap {
    width: 88px;
    height: 88px;
    flex-basis: 88px;
  }

  .music-toggle__label {
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
    font-size: 0.34rem;
  }

  .rsvp-choice {
    grid-template-columns: 1fr;
  }

  .sticky-actions {
    display: none;
    border-radius: 20px;
    transition: opacity 280ms ease, transform 280ms ease;
  }

  .sticky-actions .luxury-button span {
    white-space: normal;
  }
}

@media (max-width: 420px) {
  .intro-screen {
    padding: 0;
  }

  .hero-frame {
    min-height: 88svh;
    padding-top: max(44px, env(safe-area-inset-top));
  }

  .intro-card {
    min-height: min(78vh, 520px);
    border-radius: 24px;
  }

  .intro-card--envelope {
    width: min(90vw, calc(100svw - 20px), 520px);
    min-height: 0;
    border-radius: 0;
  }

  .envelope-stage {
    width: 100%;
    max-height: calc(100svh - 96px);
    transform: translateY(-4svh);
  }

  .intro-card--envelope .intro-card__cta-wrap {
    width: min(72vw, 260px);
    margin-top: -28px;
  }

  .intro-card__title {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .intro-card__eyebrow,
  .section-kicker {
    letter-spacing: 0.18rem;
    font-size: 0.66rem;
  }

  .hero-names__english {
    font-size: 0.9rem;
    letter-spacing: 0.12rem;
  }

  .hero-content-panel {
    padding: 18px 12px;
  }

  .location-button {
    width: 100%;
    padding-left: 18px;
    padding-right: 18px;
  }

  .sticky-actions {
    left: max(8px, env(safe-area-inset-left));
    right: max(8px, env(safe-area-inset-right));
    bottom: max(8px, env(safe-area-inset-bottom));
    gap: 5px;
    padding: 6px;
  }

  .sticky-actions .luxury-button {
    min-height: 46px;
    padding: 8px 5px;
    font-size: 0.58rem;
  }

  .sticky-actions .luxury-button svg {
    width: 15px;
    height: 15px;
  }
}

@media (max-width: 350px) {
  .section-frame {
    padding: 24px 14px;
    border-radius: 20px;
  }

  .hero-names__arabic {
    font-size: 2.18rem;
  }

  .hero-copy__arabic,
  .hero-copy__english {
    font-size: 1rem;
    line-height: 1.5;
  }

  .countdown-card__label {
    font-size: 0.78rem;
  }

  .swatches {
    grid-template-columns: 1fr;
  }

  .sticky-actions {
    grid-template-columns: 1.15fr 0.92fr 0.92fr;
  }

  .sticky-actions .luxury-button {
    gap: 4px;
    font-size: 0.52rem;
  }
}

@media (min-width: 700px) {
  .sticky-actions {
    display: none;
  }

  .countdown-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .details-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .details-calendar {
    grid-column: 1 / -1;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-card:nth-child(1),
  .gallery-card:nth-child(2) {
    min-height: 320px;
  }

  .gallery-card:nth-child(3),
  .gallery-card:nth-child(4) {
    min-height: 270px;
  }

  .swatches {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .site-content {
    padding-top: 0;
  }

  .hero-frame {
    min-height: 84vh;
    padding-top: 64px;
    padding-bottom: 44px;
  }

  .gallery-grid {
    grid-template-columns: 1.15fr 0.85fr;
    grid-auto-rows: minmax(220px, auto);
  }

  .gallery-card:first-child {
    grid-row: span 2;
    min-height: 520px;
  }

  .gallery-card:nth-child(2),
  .gallery-card:nth-child(3),
  .gallery-card:nth-child(4) {
    min-height: 250px;
  }

  .location-card {
    text-align: left;
  }

  .location-card::before,
  .dress-card::before,
  .closing-card::before {
    left: 0;
    transform: none;
    width: 220px;
  }

  .location-copy {
    margin-left: 0;
  }

  .dress-stage {
    grid-template-columns: minmax(230px, 0.62fr) minmax(0, 1.38fr);
    gap: 18px;
  }

  .dress-card {
    text-align: left;
  }

  .dress-copy-panel {
    padding: 20px 18px 22px;
  }

  .swatches {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
  }

  .dress-swatch {
    padding: 10px 10px 14px;
  }

  .dress-swatch__meta {
    gap: 8px;
    margin-bottom: 12px;
  }

  .dress-swatch__index {
    min-width: 36px;
    padding: 5px 7px;
    font-size: 0.64rem;
  }

  .dress-swatch__mood {
    font-size: 0.68rem;
  }

  .dress-swatch__chip {
    height: 68px;
    border-radius: 18px;
  }

  .dress-swatch__name {
    font-size: 0.76rem;
    letter-spacing: 0.03rem;
  }

  .dress-swatch__hex {
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .reveal,
  .site-content {
    opacity: 1;
    transform: none;
  }
}

.toast-rail {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  z-index: 40;
  display: grid;
  gap: 10px;
  width: min(92vw, 360px);
}

.toast {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(198, 168, 106, 0.28);
  background: rgba(16, 14, 12, 0.88);
  color: #fffaf1;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.toast--success {
  border-color: rgba(77, 137, 118, 0.38);
}

.toast--error {
  border-color: rgba(171, 90, 90, 0.44);
}

.toast.is-leaving {
  opacity: 0;
  transform: translateY(-8px);
}

.guest-honoree-card,
.seating-card,
.qr-pass-card,
.dashboard-card,
.dashboard-auth-card,
.dashboard-stat-card,
.dashboard-guest-card,
.table-card,
.share-card,
.checkin-card {
  background:
    linear-gradient(180deg, rgba(255, 251, 246, 0.9), rgba(247, 240, 230, 0.78)),
    radial-gradient(circle at top left, rgba(198, 168, 106, 0.08), transparent 36%);
  border: 1px solid rgba(182, 158, 118, 0.18);
  box-shadow: 0 24px 60px rgba(84, 67, 42, 0.12);
}

.guest-honoree-card {
  text-align: center;
}

.guest-honoree-card__arabic,
.guest-honoree-card__english {
  margin: 0;
  font-size: 1.2rem;
}

.guest-honoree-card__english {
  color: #6c705f;
}

.guest-honoree-card__arabic + .guest-honoree-card__english {
  margin-top: 8px;
}

.seat-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.seat-detail-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(190, 166, 128, 0.16);
  display: grid;
  gap: 8px;
}

.seat-detail-card span,
.seat-empty-copy,
.qr-pass__fallback {
  color: #6b6d61;
}

.seat-detail-card strong {
  font-family: "Cinzel", serif;
  color: #4e5d55;
}

.seating-map-shell {
  margin-top: 24px;
  padding: 16px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.84), rgba(237, 230, 220, 0.62)),
    radial-gradient(circle at top right, rgba(70, 101, 89, 0.08), transparent 28%);
  overflow: hidden;
}

.seating-map,
.dashboard-layout-map {
  position: relative;
  min-height: 320px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(249, 245, 238, 0.98), rgba(238, 232, 223, 0.9)),
    radial-gradient(circle at center, rgba(198, 168, 106, 0.08), transparent 52%);
  border: 1px solid rgba(198, 168, 106, 0.14);
  overflow: hidden;
}

.seat-map-table,
.layout-table {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(198, 168, 106, 0.34);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 236, 223, 0.88));
  color: #4f584f;
  padding: 14px 12px;
  min-width: 96px;
  display: grid;
  gap: 4px;
  text-align: center;
  box-shadow: 0 14px 34px rgba(127, 104, 67, 0.12);
}

.seat-map-table--round,
.layout-table--round {
  border-radius: 999px;
}

.seat-map-table--rectangle,
.layout-table--rectangle {
  border-radius: 16px;
}

.seat-map-table.is-assigned,
.layout-table:focus-visible,
.layout-table:hover {
  box-shadow:
    0 0 0 1px rgba(198, 168, 106, 0.4),
    0 0 24px rgba(198, 168, 106, 0.34),
    0 16px 42px rgba(107, 84, 46, 0.16);
}

.seat-map-table small {
  color: #856536;
  font-family: "Cinzel", serif;
}

.guest-seat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.guest-seat-list span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(78, 93, 85, 0.1);
  border: 1px solid rgba(78, 93, 85, 0.16);
  color: #4e5d55;
  font-weight: 700;
  font-size: 0.88rem;
}

.guest-seat-list--party {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin-top: 18px;
}

.guest-seat-party-member {
  display: grid;
  gap: 5px;
  padding: 13px 15px;
  border-radius: 14px;
  background: rgba(255, 252, 247, 0.8);
  border: 1px solid rgba(198, 168, 106, 0.24);
}

.guest-seat-party-member strong { color: #4e5d55; }
.guest-seat-party-member span { color: #6b6d61; font-size: 0.88rem; }
.guest-seat-party-member.is-assigned { border-color: rgba(78, 93, 85, 0.42); background: rgba(226, 239, 233, 0.58); }
.guest-seat-party-member.is-unassigned { border-style: dashed; }

.seat-plan-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 12px;
}

.seat-plan-toolbar button {
  min-width: 42px;
  min-height: 38px;
  border: 1px solid rgba(198, 168, 106, 0.28);
  border-radius: 12px;
  background: rgba(255, 252, 247, 0.94);
  color: #4e5d55;
  font-weight: 800;
  cursor: pointer;
}

.seat-plan-viewport {
  position: relative;
  min-height: 560px;
  border-radius: 24px;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  background:
    radial-gradient(ellipse at 50% 32%, rgba(255, 255, 255, 0.94), rgba(248, 244, 236, 0.72) 48%, rgba(234, 226, 212, 0.8)),
    repeating-linear-gradient(0deg, transparent 0 76px, rgba(139, 116, 78, 0.045) 77px 78px),
    repeating-linear-gradient(90deg, transparent 0 126px, rgba(139, 116, 78, 0.04) 127px 128px),
    linear-gradient(140deg, #f9f5ee, #ece4d7);
}

.seat-plan-viewport:active {
  cursor: grabbing;
}

.seat-plan-canvas {
  position: absolute;
  inset: 0;
  width: 1100px;
  height: 900px;
  transform-origin: 0 0;
  transition: none;
}

.seat-plan-floor {
  position: absolute;
  inset: 18px;
  border-radius: 22px;
  border: 1px solid rgba(174, 145, 91, 0.3);
  background:
    radial-gradient(ellipse at 48% 34%, rgba(255, 255, 255, 0.42), transparent 62%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14), rgba(165, 139, 100, 0.035), rgba(255, 255, 255, 0.12));
  box-shadow: inset 0 0 38px rgba(120, 96, 63, 0.045);
  pointer-events: none;
}

.seat-plan-object {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.96);
  border: 1px solid rgba(198, 168, 106, 0.36);
  color: #6b6d61;
  font-family: "Cinzel", serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.seat-plan-object--stage {
  color: #856536;
  background: rgba(244, 232, 205, 0.96);
}

.seat-plan-object--entrance {
  color: #4e5d55;
  background: rgba(226, 239, 233, 0.96);
}

.seat-plan-table {
  position: absolute;
  z-index: 4;
  transform: translate(-50%, -50%);
}

.seat-plan-table__surface {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  padding: 10px;
  text-align: center;
  border-radius: 999px;
  border: 2px solid var(--table-border, rgba(198, 168, 106, 0.62));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(244, 236, 223, 0.08)),
    var(--table-fill, #f3ebdc);
  color: #4f584f;
  box-shadow: 0 14px 34px rgba(127, 104, 67, 0.12);
}

.seat-plan-table__surface--rectangle,
.seat-plan-table__surface--square {
  border-radius: 24px;
}

.seat-plan-table__surface--u-shape {
  border-radius: 26px 26px 18px 18px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 74% 100%, 74% 34%, 26% 34%, 26% 100%, 0 100%);
  filter: drop-shadow(0 10px 13px rgba(76, 61, 33, 0.13));
}

.seat-plan-table__surface--u-shape .seat-plan-table__label {
  position: absolute;
  top: 6%;
  left: 50%;
  width: 52%;
  transform: translateX(-50%);
  margin: 0;
}

.seat-plan-table__surface strong {
  font-family: "Cinzel", serif;
  font-size: 0.78rem;
}

.seat-plan-table__surface span,
.seat-plan-table__surface small {
  font-size: 0.7rem;
  color: #6b6d61;
}

.seat-plan-table.is-assigned .seat-plan-table__surface {
  box-shadow:
    0 0 0 4px rgba(78, 93, 85, 0.12),
    0 0 0 8px rgba(198, 168, 106, 0.18),
    0 16px 42px rgba(78, 93, 85, 0.16);
}

.seat-plan-chair {
  position: absolute;
  z-index: 7;
  width: 34px;
  height: 34px;
  margin: 0;
  transform: translate(-50%, -50%) rotate(var(--chair-rotation, 0deg));
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 2px solid var(--chair-color, #24554a);
  background: var(--chair-color, #24554a);
  color: var(--chair-ink, #fffdf8);
  font-size: 0.62rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(127, 104, 67, 0.12);
}

.seat-plan-chair::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 17%;
  width: 66%;
  height: 7px;
  border: 1px solid color-mix(in srgb, var(--chair-color) 78%, #26352f);
  border-radius: 5px 5px 3px 3px;
  background: var(--chair-color);
  box-shadow: 0 2px 3px rgba(46, 37, 19, 0.18);
  pointer-events: none;
}

.seat-plan-chair > span {
  position: relative;
  z-index: 1;
  transform: rotate(calc(0deg - var(--chair-rotation, 0deg)));
}

.seat-plan-chair.is-yours {
  border-color: #6c4b17 !important;
  background: #d7b56d !important;
  color: #27352f !important;
  outline: 2px solid #fff8e8;
  outline-offset: 2px;
  box-shadow:
    0 0 0 5px rgba(215, 181, 109, 0.72),
    0 0 0 8px rgba(78, 93, 85, 0.14),
    0 10px 20px rgba(70, 51, 18, 0.26);
}

.seat-plan-chair > .seat-plan-chair__marker {
  position: absolute;
  top: -9px;
  right: -9px;
  z-index: 2;
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 1px solid #fff8e8;
  border-radius: 50%;
  color: #fffdf8;
  background: #24554a;
  font: 800 10px/1 Arial, sans-serif;
  transform: rotate(calc(0deg - var(--chair-rotation, 0deg)));
  pointer-events: none;
}

.guest-seat-party-member {
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.guest-seat-party-member:disabled { cursor: default; }
.guest-seat-party-member:not(:disabled):hover,
.guest-seat-party-member:not(:disabled):focus-visible {
  outline: 2px solid #856536;
  outline-offset: 2px;
}

.seat-plan-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 10px 0 0;
  color: #625543;
  font-size: 0.84rem;
  text-align: center;
}

.seat-plan-caption__swatch {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border: 1px solid #856536;
  border-radius: 50%;
  background: #c6a86a;
  box-shadow: 0 0 0 3px rgba(198, 168, 106, 0.24);
}

.firebase-rsvp-panel,
.qr-pass__content,
.share-grid,
.dashboard-layout-editor,
.dashboard-stats,
.dashboard-list {
  display: grid;
  gap: 18px;
}

.firebase-rsvp-actions,
.dashboard-inline-actions,
.dashboard-filter-row,
.dashboard-header__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.firebase-rsvp-status {
  margin: 0;
  font-size: 1.15rem;
  color: #64695a;
}

.qr-pass__content {
  align-items: center;
}

.qr-pass__code {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
}

.qr-pass__code img,
.qr-pass__code canvas {
  max-width: 100%;
  height: auto;
}

.qr-fallback {
  padding: 18px;
  text-align: center;
}

.dashboard-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(200, 166, 103, 0.12), transparent 24%),
    radial-gradient(circle at top right, rgba(31, 68, 61, 0.16), transparent 28%),
    linear-gradient(180deg, #f9f5ee 0%, #efe8de 100%);
  color: #3f473c;
}

.dashboard-shell {
  width: min(1180px, calc(100vw - 24px));
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 0 max(32px, env(safe-area-inset-bottom));
}

.dashboard-auth-card,
.dashboard-card,
.dashboard-stat-card,
.dashboard-guest-card,
.table-card,
.share-card {
  border-radius: 28px;
  padding: clamp(20px, 3vw, 28px);
}

.dashboard-auth-card {
  width: min(560px, 100%);
  margin: 4vh auto 0;
}

.dashboard-login-form,
.dashboard-form-grid {
  display: grid;
  gap: 16px;
}

.dashboard-login-form label,
.dashboard-form-grid label {
  display: grid;
  gap: 8px;
}

.dashboard-login-form input,
.dashboard-search input,
.dashboard-form-grid input,
.dashboard-form-grid select,
.dashboard-form-grid textarea,
.dashboard-filter-row select {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(175, 154, 121, 0.22);
  background: rgba(255, 255, 255, 0.78);
  padding: 12px 14px;
  font: 1rem "Cormorant Garamond", serif;
  color: #41493e;
}

.dashboard-header,
.dashboard-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.dashboard-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.dashboard-tab {
  border: 1px solid rgba(198, 168, 106, 0.24);
  background: rgba(255, 255, 255, 0.64);
  color: #576157;
  border-radius: 999px;
  padding: 12px 18px;
  font: 0.92rem "Cinzel", serif;
  cursor: pointer;
}

.dashboard-tab.is-active {
  background: linear-gradient(135deg, rgba(198, 168, 106, 0.96), rgba(71, 98, 89, 0.92));
  color: #fffdf7;
}

.dashboard-panel {
  display: none;
}

.dashboard-panel.is-active {
  display: grid;
  gap: 18px;
}

.dashboard-stats {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.dashboard-stat-card span {
  color: #4a4d42;
}

.dashboard-stat-card strong {
  font-family: "Cinzel", serif;
  font-size: 2rem;
  color: #1f4f46;
}

.dashboard-stat-card {
  display: grid;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.dashboard-stat-card__title {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a7657;
}

.dashboard-stat-card__hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(182, 158, 118, 0.14);
}

.dashboard-stat-card__highlight-label {
  margin: 8px 0 0;
  font-size: 0.95rem;
  color: #4f5348;
}

.dashboard-stat-card__highlight-value {
  font-family: "Cinzel", serif;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1;
}

.dashboard-stat-list {
  display: grid;
  gap: 10px;
}

.dashboard-stat-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(182, 158, 118, 0.12);
}

.dashboard-stat-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.dashboard-stat-row strong {
  min-width: 2ch;
  text-align: right;
  font-size: 1.5rem;
}

.dashboard-stat-card--overview .dashboard-stat-card__highlight-value,
.dashboard-stat-card--overview .dashboard-stat-row strong {
  color: #8f5f1c;
}

.dashboard-stat-card--checkin .dashboard-stat-card__highlight-value,
.dashboard-stat-card--checkin .dashboard-stat-row strong {
  color: #275f55;
}

.dashboard-stat-card--sides .dashboard-stat-card__highlight-value,
.dashboard-stat-card--sides .dashboard-stat-row strong {
  color: #6a4157;
}

.seating-planner {
  display: grid;
  gap: 18px;
}

.seating-planner__toolbar,
.planner-canvas-toolbar,
.planner-sidebar__heading,
.planner-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.seating-planner__actions,
.planner-inline-actions,
.seating-mode-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.seating-mode {
  appearance: none;
  -webkit-appearance: none;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(182, 158, 118, 0.18);
  background: rgba(255, 255, 255, 0.55);
  color: #5c614f;
  font: 0.95rem "Cinzel", serif;
}

.seating-mode.is-active {
  background: linear-gradient(135deg, rgba(199, 160, 96, 0.9), rgba(122, 95, 58, 0.92));
  color: #fffaf1;
  box-shadow: 0 18px 40px rgba(122, 95, 58, 0.2);
}

.seating-mode:hover {
  border-color: rgba(199, 160, 96, 0.4);
  background: rgba(255, 255, 255, 0.82);
}

.seating-planner__summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.planner-kpi {
  padding: 16px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(246, 239, 228, 0.72));
  border: 1px solid rgba(182, 158, 118, 0.14);
  box-shadow: 0 18px 40px rgba(84, 67, 42, 0.08);
  display: grid;
  gap: 8px;
}

.planner-kpi span {
  color: #7f7765;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.planner-kpi strong {
  color: #3a4e4a;
  font: 600 1.6rem "Cinzel", serif;
}

.dashboard-layout-editor--planner {
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, 0.75fr);
  gap: 18px;
}

.planner-canvas-shell,
.planner-sidebar__panel,
.planner-assignment-drawer {
  border-radius: 28px;
  border: 1px solid rgba(182, 158, 118, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 251, 246, 0.88), rgba(247, 240, 230, 0.76)),
    radial-gradient(circle at top left, rgba(198, 168, 106, 0.1), transparent 34%);
  box-shadow: 0 24px 60px rgba(84, 67, 42, 0.1);
}

.planner-canvas-shell {
  padding: 18px;
  display: grid;
  gap: 16px;
}

.planner-canvas-toolbar__eyebrow {
  margin: 0 0 6px;
  color: #88755a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.planner-canvas-toolbar h3,
.planner-sidebar__heading h3,
.planner-drawer__header h3 {
  margin: 0;
}

.planner-canvas-toolbar p:last-child {
  margin: 0;
  color: #666b5d;
}

.planner-canvas {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  border-radius: 26px;
  background:
    linear-gradient(rgba(201, 182, 147, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 182, 147, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 20% 20%, rgba(199, 160, 96, 0.14), transparent 22%),
    linear-gradient(180deg, rgba(251, 246, 237, 0.96), rgba(239, 232, 222, 0.95));
  background-size: 26px 26px, 26px 26px, auto, auto;
}

.planner-floor-marker {
  position: absolute;
  z-index: 0;
  display: grid;
  place-items: center;
  color: #6d6a5d;
  font: 0.82rem "Cinzel", serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.planner-floor-marker--stage {
  right: 24px;
  top: 24px;
  width: 180px;
  height: 70px;
  border-radius: 24px;
  background: rgba(199, 160, 96, 0.16);
  border: 1px solid rgba(199, 160, 96, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4);
}

.planner-floor-marker--entrance {
  left: 24px;
  bottom: 24px;
  width: 120px;
  height: 44px;
  border-radius: 999px;
  background: rgba(33, 81, 72, 0.12);
  color: #215148;
}

.planner-sidebar {
  display: grid;
  gap: 18px;
  align-content: start;
}

.planner-sidebar__panel,
.planner-assignment-drawer {
  padding: 20px;
}

.planner-inspector-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.planner-inspector-grid article {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(182, 158, 118, 0.12);
  display: grid;
  gap: 6px;
}

.planner-inspector-grid span {
  color: #807967;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.planner-inspector-grid strong {
  color: #38413c;
  font-size: 1rem;
}

.planner-table-card {
  margin-top: 12px;
}

.planner-table-card__surface {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(182, 158, 118, 0.12);
  background: rgba(255, 255, 255, 0.68);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  cursor: pointer;
}

.planner-table-card__surface h4 {
  margin: 0;
}

.planner-table-card__surface p {
  margin: 6px 0 0;
  color: #6d735f;
}

.planner-table-card__surface span {
  font: 600 1.1rem "Cinzel", serif;
  color: #5d6d69;
}

.planner-table-card.is-selected .planner-table-card__surface {
  border-color: rgba(199, 160, 96, 0.5);
  box-shadow: 0 18px 34px rgba(122, 95, 58, 0.16);
}

.planner-table-card--muted .planner-table-card__surface {
  background: rgba(245, 239, 231, 0.68);
}

.planner-assignment-drawer {
  display: grid;
  gap: 16px;
}

.planner-drawer__current {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(182, 158, 118, 0.12);
}

.planner-drawer__current p {
  margin: 0;
  color: #596051;
}

.planner-drawer__current p + p {
  margin-top: 8px;
}

.planner-drawer__search {
  display: grid;
  gap: 8px;
}

.planner-drawer__search input {
  min-height: 50px;
  border-radius: 16px;
  border: 1px solid rgba(182, 158, 118, 0.18);
  background: rgba(255, 255, 255, 0.72);
  padding: 12px 14px;
  font: 1rem "Cormorant Garamond", serif;
  color: #3f473c;
}

.planner-drawer__list {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
}

.planner-assign-guest {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  border-radius: 18px;
  border: 1px solid rgba(182, 158, 118, 0.12);
  background: rgba(255, 255, 255, 0.72);
  padding: 14px 16px;
  cursor: pointer;
}

.planner-assign-guest strong,
.planner-assign-guest em {
  color: #374944;
}

.planner-assign-guest span {
  display: block;
  margin-top: 6px;
  color: #7c786b;
}

.planner-assign-guest.is-current {
  border-color: rgba(47, 127, 148, 0.35);
  background: rgba(233, 244, 247, 0.88);
}

.planner-assign-guest--clear {
  background: rgba(251, 241, 241, 0.86);
}

.planner-table {
  position: absolute;
  z-index: 1;
  transform-origin: center;
  transition: transform 180ms ease, filter 180ms ease;
}

.planner-table.is-selected {
  z-index: 4;
}

.planner-table__chairs {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.planner-table-shape {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  inset: 18% 18%;
  border-radius: 999px;
  background: var(--table-fill);
  border: 2px solid var(--table-border);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.38),
    0 18px 30px rgba(79, 72, 58, 0.16);
  display: grid;
  place-items: center;
  padding: 18px;
  width: auto;
  cursor: pointer;
}

.planner-table-shape--rectangle,
.planner-table-shape--conference,
.planner-table-shape--long-banquet {
  border-radius: 28px;
  inset: 24% 8%;
}

.planner-table-shape--square {
  border-radius: 28px;
  inset: 14%;
}

.planner-table-shape--horseshoe,
.planner-table-shape--u-shape,
.planner-table-shape--open-u {
  border-radius: 40px 40px 24px 24px;
  clip-path: polygon(0 100%, 0 0, 24% 0, 24% 64%, 76% 64%, 76% 0, 100% 0, 100% 100%);
  inset: 14% 10%;
}

.planner-table-shape__meta {
  text-align: center;
  display: grid;
  gap: 6px;
}

.planner-table-shape__meta strong {
  font: 600 1rem "Cinzel", serif;
  color: #4e4b3f;
}

.planner-table-shape__meta span {
  color: #726e62;
  font-size: 0.84rem;
}

.planner-chair {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  background: var(--chair-color);
  color: #fffdf8;
  box-shadow: 0 14px 20px rgba(49, 58, 55, 0.2);
  display: grid;
  place-items: center;
  font: 600 0.72rem "Cinzel", serif;
  z-index: 2;
  cursor: pointer;
}

.planner-chair--available {
  background: var(--chair-color, #4c8a75);
}

.planner-chair--assigned {
  background: var(--chair-color, #2f7f94);
}

.planner-chair--vip {
  background: var(--chair-color, #c7a060);
}

.planner-chair--disabled {
  background: var(--chair-color, #8e968e);
}

.planner-chair--conflict {
  background: var(--chair-color, #b35a5a);
}

.planner-chair.is-selected,
.planner-chair:hover,
.planner-table-card__surface:hover,
.planner-assign-guest:hover,
.planner-table.is-selected .planner-table-shape {
  box-shadow: 0 20px 36px rgba(79, 72, 58, 0.18);
}

.planner-table.is-selected .planner-table-shape {
  border-color: rgba(47, 127, 148, 0.68);
}

.planner-table.is-layout-mode:hover {
  filter: saturate(1.02);
}

.planner-table.is-layout-mode .planner-table-shape::after {
  content: "Drag";
  position: absolute;
  right: 14px;
  bottom: 10px;
  color: rgba(78, 75, 63, 0.7);
  font: 0.68rem "Cinzel", serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-list {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.dashboard-guest-card__header,
.table-card__header,
.checkin-card__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.dashboard-guest-card__header h3,
.table-card__header h3,
.share-card h3,
.checkin-card__header h2 {
  margin: 0;
}

.dashboard-guest-card__header p,
.table-card__header p {
  margin: 4px 0 0;
}

.dashboard-guest-card__meta {
  display: grid;
  gap: 6px;
  margin: 18px 0;
  color: #696f63;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font: 0.75rem "Cinzel", serif;
  text-transform: uppercase;
  letter-spacing: 0.06rem;
  background: rgba(121, 98, 83, 0.12);
  color: #6f5c41;
}

.status-pill--confirmed {
  background: rgba(78, 125, 102, 0.14);
  color: #3d6b57;
}

.status-pill--declined {
  background: rgba(146, 88, 88, 0.12);
  color: #8a5252;
}

.status-pill--pending {
  background: rgba(198, 168, 106, 0.16);
  color: #906d3f;
}

.dashboard-empty {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.66);
  color: #666b5d;
}

.dashboard-layout-editor {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: start;
}

.dashboard-layout-list {
  display: grid;
  gap: 16px;
}

.layout-table {
  cursor: pointer;
}

.table-card--muted {
  background: rgba(255, 255, 255, 0.56);
}

.share-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.share-card p {
  color: #666c61;
  word-break: break-word;
}

.dashboard-modal {
  width: min(720px, calc(100vw - 18px));
  border: 0;
  padding: 0;
  border-radius: 28px;
  background: transparent;
}

.dashboard-modal::backdrop {
  background: rgba(35, 28, 22, 0.42);
  backdrop-filter: blur(6px);
}

.dashboard-modal__form {
  padding: 24px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 251, 246, 0.96), rgba(245, 238, 227, 0.92)),
    radial-gradient(circle at top left, rgba(198, 168, 106, 0.08), transparent 32%);
}

.dashboard-modal__header,
.dashboard-modal__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.dashboard-modal__close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(198, 168, 106, 0.24);
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.dashboard-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 22px 0;
}

.dashboard-form-grid__wide {
  grid-column: 1 / -1;
}

.search-result-card {
  width: 100%;
  text-align: left;
  padding: 18px;
  border: 1px solid rgba(198, 168, 106, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  display: grid;
  gap: 6px;
  cursor: pointer;
}

.search-result-card strong {
  color: #4b564d;
}

.is-disabled {
  pointer-events: none;
  opacity: 0.5;
}

@media (max-width: 899px) {
  .dashboard-layout-editor {
    grid-template-columns: 1fr;
  }

  .planner-inspector-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .planner-canvas {
    min-height: 620px;
  }
}

@media (max-width: 699px) {
  .toast-rail {
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    width: auto;
  }

  .seat-details-grid,
  .dashboard-form-grid {
    grid-template-columns: 1fr;
  }

  .qr-pass__content {
    justify-items: center;
    text-align: center;
  }

  .dashboard-shell {
    width: min(100vw - 16px, 100%);
  }

  .dashboard-tabs {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .dashboard-list,
  .share-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-inline-actions,
  .dashboard-filter-row,
  .firebase-rsvp-actions,
  .dashboard-header__actions {
    flex-direction: column;
  }

  .dashboard-inline-actions .luxury-button,
  .dashboard-filter-row .luxury-button,
  .dashboard-header__actions .luxury-button {
    width: 100%;
  }

  .seating-planner__toolbar,
  .planner-canvas-toolbar,
  .planner-sidebar__heading,
  .planner-drawer__header {
    align-items: stretch;
  }

  .seating-mode-switch,
  .seating-planner__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .planner-inspector-grid {
    grid-template-columns: 1fr;
  }

  .planner-canvas {
    min-height: 520px;
  }

  .planner-table {
    transform: translate(-50%, -50%) scale(calc(var(--planner-zoom) * 0.9)) !important;
  }

  .seat-map-table,
  .layout-table {
    min-width: 82px;
    padding: 10px 8px;
    font-size: 0.78rem;
  }
}

/* ============================================================
   "Printed invitation card" presentation - ALL screen sizes.
   The opened invitation renders as one continuous portrait card
   centered on the lace backdrop: arched framed photo, names on
   the paper, ornamental dividers between sections. Mobile keeps
   the envelope intro and the sticky RSVP bar.
   ============================================================ */
body.invitation-open .site-content {
  width: min(calc(100vw - 20px), 780px);
  margin: clamp(12px, 3vw, 40px) auto 72px;
  padding: clamp(34px, 6vw, 56px) clamp(14px, 3.2vw, 26px) clamp(30px, 5vw, 46px);
  border: 1px solid rgba(176, 146, 92, 0.4);
  outline: 1px solid rgba(176, 146, 92, 0.28);
  outline-offset: -10px;
  border-radius: clamp(22px, 4vw, 30px);
  background:
    radial-gradient(circle at 50% 0%, rgba(241, 223, 191, 0.35), transparent 46%),
    linear-gradient(180deg, #fdf9f1 0%, #f9f2e6 52%, #fbf5ea 100%);
  box-shadow:
    0 40px 90px rgba(96, 78, 52, 0.28),
    0 6px 24px rgba(96, 78, 52, 0.14);
}

/* Sections melt into the card: one sheet of paper, not stacked panels */
body.invitation-open .site-content .section {
  padding: clamp(20px, 4vw, 26px) 0;
}

body.invitation-open .site-content .section-frame {
  width: min(100%, 620px);
  padding: 0 clamp(6px, 2vw, 12px);
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
}

body.invitation-open .site-content .section-frame::before {
  display: none;
}

/* Ornamental divider between sections */
body.invitation-open .site-content .section:not(.hero)::before {
  content: "✦";
  display: block;
  width: min(300px, 76%);
  margin: 0 auto clamp(18px, 4vw, 26px);
  text-align: center;
  font-size: 0.82rem;
  line-height: 1;
  color: rgba(159, 125, 69, 0.62);
  background:
    linear-gradient(90deg, transparent 0%, rgba(176, 146, 92, 0.38) 14%, rgba(176, 146, 92, 0.38) 42%, transparent 42%),
    linear-gradient(90deg, transparent 58%, rgba(176, 146, 92, 0.38) 58%, rgba(176, 146, 92, 0.38) 86%, transparent 100%);
  background-position: center;
  background-size: 100% 1px;
  background-repeat: no-repeat;
}

/* Hero becomes the top of the card: arched framed photo, then names */
body.invitation-open .hero-frame {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 0;
  padding: 0 clamp(6px, 2vw, 12px);
  background: none;
}

body.invitation-open .hero-backdrop {
  position: relative;
  inset: auto;
  width: min(400px, 88%);
  aspect-ratio: 4 / 4.8;
  border-radius: 300px 300px 22px 22px;
  border: 1px solid rgba(176, 146, 92, 0.55);
  outline: 1px solid rgba(176, 146, 92, 0.3);
  outline-offset: 7px;
  box-shadow: 0 26px 60px rgba(96, 78, 52, 0.24);
  transform: none;
  filter: saturate(0.94) sepia(0.02);
  background-position: center 22%;
  background-size: cover;
}

body.invitation-open .hero-backdrop::after {
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(6, 5, 4, 0) 72%, rgba(6, 5, 4, 0.14) 100%);
}

body.invitation-open .hero-content-panel {
  width: 100%;
  margin-top: clamp(12px, 3vw, 18px);
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  text-align: center;
}

body.invitation-open .hero-flourish {
  display: none;
}

/* The blossom branch reads as clutter on the stationery card - the arch
   frame and dividers carry the ornament instead */
body.invitation-open .hero-blossom--top-right {
  display: none;
}

/* Type settles into stationery scale inside the card */
body.invitation-open .hero-names__arabic {
  font-size: clamp(2.3rem, 8vw, 3.4rem);
}

body.invitation-open .hero-names__english {
  letter-spacing: clamp(0.2em, 2vw, 0.34em);
}

body.invitation-open .site-content .countdown-grid,
body.invitation-open .site-content .hero-countdown {
  width: 100%;
}

/* Phones: slimmer lace margin and clearance for the sticky RSVP bar */
@media (max-width: 699px) {
  .seat-plan-toolbar {
    justify-content: stretch;
  }

  .seat-plan-toolbar button {
    flex: 1;
  }

  .guest-seat-list--party { grid-template-columns: 1fr; }

  .seat-plan-viewport {
    min-height: 480px;
  }

  .seat-plan-caption { font-size: 0.78rem; }

  body.invitation-open .site-content {
    margin: 10px auto calc(124px + env(safe-area-inset-bottom, 0px));
  }
}

/* Viewport edge coverage, motion polish, and event venue map. */
html,
body {
  background-color: #e9dfcc;
}

body.intro-active {
  background-color: #e8dfcf;
}

body.invitation-open {
  background-color: #e8e2d7;
  background-attachment: scroll, scroll;
}

.intro-screen {
  height: 100vh;
  height: 100svh;
  min-height: 100dvh;
  padding-top: env(safe-area-inset-top, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
}

.invitation-error {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
  color: #354237;
  background: radial-gradient(circle at top, rgba(212, 191, 151, 0.2), transparent 50%), #f5f0e6;
}

.invitation-error__card {
  width: min(100%, 520px);
  padding: clamp(24px, 6vw, 42px);
  border: 1px solid rgba(174, 145, 91, 0.48);
  border-radius: 24px;
  text-align: center;
  background: #fffdf8;
  box-shadow: 0 22px 55px rgba(76, 70, 54, 0.12);
}

.invitation-error__card h1 {
  margin: 0;
  font: 500 clamp(2rem, 7vw, 3rem)/1.1 "Cormorant Garamond", Georgia, serif;
}

.invitation-error__card p:last-child { margin-bottom: 0; line-height: 1.7; }

.intro-card--envelope,
.intro-card--envelope:hover,
.intro-card--envelope:focus-visible {
  transform: none;
}

body.intro-opening .intro-card--envelope {
  animation: none;
}

.envelope-layer--card,
.envelope-layer--flap,
.envelope-layer--seal {
  -webkit-backface-visibility: hidden;
}

body.invitation-open .petals {
  opacity: 0.72;
  transition: opacity 700ms ease;
}

body.invitation-open .petal {
  width: 9px;
  height: 16px;
  opacity: 0.11;
}

body.invitation-open .petal-1,
body.invitation-open .petal-2 {
  left: 2%;
}

body.invitation-open .petal-3,
body.invitation-open .petal-4 {
  right: 2%;
}

body.invitation-open .petal-5,
body.invitation-open .petal-6 {
  display: none;
}

body.invitation-open .hero-backdrop {
  animation: heroPhotoReveal 1000ms cubic-bezier(0.2, 0.8, 0.2, 1) 100ms both;
}

body.invitation-open .hero-names {
  animation: heroCopyReveal 780ms cubic-bezier(0.2, 0.8, 0.2, 1) 300ms both;
}

body.invitation-open .hero-copy {
  animation: heroCopyReveal 760ms cubic-bezier(0.2, 0.8, 0.2, 1) 480ms both;
}

.reveal {
  transition-delay: var(--reveal-delay, 0ms);
}

.section-kicker {
  animation: stationeryGlow 7s ease-in-out infinite alternate;
}

.hero-blossom {
  animation: flowersBreathe 8s ease-in-out infinite;
}

.luxury-button,
.detail-card__action,
.layla-language-toggle,
.music-toggle {
  transition: transform 220ms ease, box-shadow 260ms ease, background-color 260ms ease, border-color 260ms ease;
}

.luxury-button:active,
.detail-card__action:active,
.layla-language-toggle:active {
  transform: translateY(1px) scale(0.985);
}

.rsvp-summary {
  animation: rsvpConfirmation 580ms cubic-bezier(0.2, 0.85, 0.25, 1) both;
}

.rsvp-summary--declined .rsvp-confirmation-mark {
  color: #77836f;
  border-color: rgba(119, 131, 111, 0.46);
}

.rsvp-form__submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.detail-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  padding: 9px 14px;
  border: 1px solid rgba(164, 139, 91, 0.42);
  border-radius: 999px;
  color: #60725b;
  background: rgba(255, 252, 246, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
}

.detail-card__action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.venue-map-card {
  width: min(100%, 480px);
  margin: 18px auto 0;
  padding: 10px;
  border: 1px solid rgba(174, 145, 91, 0.52);
  border-radius: 20px;
  background: linear-gradient(145deg, #fbf8f0, #e8eee4);
  box-shadow: 0 12px 26px rgba(85, 77, 57, 0.12);
}

.venue-map-card__venue {
  margin: 2px 5px 9px;
  color: #495b4b;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
}

.venue-map-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8.5;
  min-height: 148px;
  overflow: hidden;
  border: 1px solid rgba(168, 140, 87, 0.65);
  border-radius: 14px;
  background: #dfe5d8;
}

.venue-map-preview iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.venue-map-preview--fallback {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: 16px;
  color: #64715d;
  background:
    linear-gradient(45deg, transparent 48%, rgba(170, 156, 123, 0.14) 49%, rgba(170, 156, 123, 0.14) 51%, transparent 52%) 0 0 / 36px 36px,
    #e8ebdf;
}

.venue-map-preview--fallback > span {
  font-size: 1.7rem;
  color: #a88e5d;
}

.venue-map-preview--fallback p,
.venue-map-card__fallback {
  max-width: 32ch;
  margin: 0;
  font-size: 0.85rem;
}

.venue-map-card .detail-card__action {
  margin-top: 10px;
}

@keyframes stationeryGlow {
  from { text-shadow: 0 0 0 rgba(184, 151, 91, 0); }
  to { text-shadow: 0 0 12px rgba(184, 151, 91, 0.2); }
}

@keyframes rsvpConfirmation {
  from { opacity: 0; transform: translateY(10px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes heroPhotoReveal {
  from { opacity: 0.35; transform: scale(0.985); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes heroCopyReveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 699px) {
  .intro-card--envelope { width: min(92vw, calc(100vw - 28px), 820px); }
  .envelope-stage { width: 100%; max-height: min(66svh, calc(100dvh - 128px)); }
  .intro-card--envelope .intro-card__cta-wrap { margin-top: -24px; }
  .venue-map-preview { aspect-ratio: 4 / 3; min-height: 160px; }
  .section-kicker { animation-duration: 10s; }
  .petal-2,
  .petal-4 { display: none; }
}

@media (orientation: landscape) and (max-height: 520px) {
  .envelope-stage { width: min(68vw, 760px); max-height: 68svh; }
  .intro-card--envelope .intro-card__cta-wrap { margin-top: -12px; }
}

@media (prefers-reduced-motion: reduce) {
  .section-kicker,
  .hero-blossom,
  body.invitation-open .petal { animation: none; }
  .reveal { transition: none; }
}

body.page-hidden * { animation-play-state: paused !important; }
body.content-refresh .rsvp-summary { animation: none; }

body.intro-active .section-kicker,
body.intro-active .hero-blossom { animation-play-state: paused; }

@supports not (transform-style: preserve-3d) {
  body.intro-opening .envelope-layer--flap {
    animation-name: flapOpenFlat;
  }
  body.intro-opening .envelope-layer--card {
    animation-name: cardRevealFlat;
  }
}

@keyframes flapOpenFlat {
  from { transform: translateY(0) rotate(0); opacity: 1; }
  to { transform: translateY(-34%) rotate(-5deg); opacity: 0.35; }
}

@keyframes cardRevealFlat {
  0% { opacity: 0; transform: translateY(12%) scale(0.72); }
  18% { opacity: 1; }
  100% { opacity: 1; transform: translateY(-28%) scale(0.96); }
}

/* In a guest invitation only that guest's party is identified as occupied. */
.seat-plan-chair.is-empty { background:#fff !important; color:#3d443f !important; border-color:#cfc7b8; box-shadow:0 5px 12px rgba(127,104,67,.12); }
.seat-plan-chair.is-empty::before { background:#fff; border-color:#d5cdbf; }
.seat-plan-chair.is-occupied { background:var(--chair-color) !important; color:var(--chair-ink,#fffdf8) !important; border-color:color-mix(in srgb,var(--chair-color) 62%,#26352f); box-shadow:0 0 0 2px color-mix(in srgb,var(--chair-color) 24%,transparent),0 6px 14px rgba(127,104,67,.16); }
.seat-plan-chair.is-occupied::before { background:var(--chair-color); border-color:color-mix(in srgb,var(--chair-color) 78%,#26352f); }
.seat-plan-chair.is-yours { outline:2px solid #fff8e8; outline-offset:2px; box-shadow:0 0 0 5px rgba(215,181,109,.72),0 0 0 8px rgba(78,93,85,.14),0 10px 20px rgba(70,51,18,.26); }
