/*
 * Wedding invitation design system.
 * Palette: ivory, warm cream, champagne gold, soft beige, deep cocoa text.
 * All colors are oklch tokens — never hardcode colors in components.
 *
 * Converted from the original Tailwind `@theme inline` block into plain
 * CSS custom properties (no build step required). Tailwind's utility
 * classes are still available via the CDN script tag in index.html for
 * any future use, but this page's design lives entirely in these
 * hand-authored classes, matching the original component styling.
 */

:root {
  --radius: 0.25rem;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --radius-2xl: calc(var(--radius) + 8px);
  --radius-3xl: calc(var(--radius) + 12px);
  --radius-4xl: calc(var(--radius) + 16px);

  --ivory: oklch(0.985 0.006 90);
  --cream: oklch(0.964 0.014 88);
  --beige: oklch(0.925 0.019 84);
  --gold: oklch(0.735 0.089 78);
  --gold-soft: oklch(0.86 0.052 84);

  --background: var(--ivory);
  --foreground: oklch(0.32 0.026 55);
  --card: oklch(0.995 0.004 90);
  --card-foreground: var(--foreground);
  --popover: oklch(0.995 0.004 90);
  --popover-foreground: var(--foreground);
  --primary: var(--gold);
  --primary-foreground: oklch(0.995 0.004 90);
  --secondary: var(--cream);
  --secondary-foreground: var(--foreground);
  --muted: var(--cream);
  --muted-foreground: oklch(0.505 0.024 60);
  --accent: var(--beige);
  --accent-foreground: var(--foreground);
  --destructive: oklch(0.55 0.16 28);
  --destructive-foreground: oklch(0.99 0.004 90);
  --border: oklch(0.895 0.021 84);
  --input: oklch(0.895 0.021 84);
  --ring: var(--gold);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", system-ui, sans-serif;
}

* {
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  /* font-family: var(--font-body); */
  font-family: 'Tajawal', sans-serif;
  font-weight: 300;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  margin: 0;
}

body.is-locked {
  overflow: hidden;
}

h1,
h2,
h3,
.display {
  /* font-family: var(--font-display); */
  font-family: 'Amiri', serif;
  font-weight: 300;
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

img {
  max-width: 100%;
}

p {
  margin: 0;
}

/* ---------------------------------------------------------------
   Opening frame-by-frame animation overlay
--------------------------------------------------------------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: oklch(0.975 0.011 88);
  transition: opacity 900ms ease;
}

.intro-canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 1400ms cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 992px) {
  .intro-canvas {
    object-fit: cover;
  }
}

.intro.is-zooming .intro-canvas {
  transform: scale(1.6);
}

.intro-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%,
      oklch(1 0 0) 0%,
      oklch(0.985 0.008 88) 45%,
      oklch(0.97 0.014 86) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1200ms ease;
}

.intro.is-zooming .intro-flash {
  opacity: 1;
}

.intro.is-done {
  opacity: 0;
  pointer-events: none;
}

.intro-hint {
  position: absolute;
  bottom: clamp(1.5rem, 5vh, 3.5rem);
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.9rem;
  border: 1px solid color-mix(in oklab, var(--gold) 45%, transparent);
  border-radius: 999px;
  background: color-mix(in oklab, var(--ivory) 72%, transparent);
  backdrop-filter: blur(6px);
  color: var(--foreground);
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--font-body);
  animation: breathe 3.6s ease-in-out infinite;
}

.intro-hint small {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: none;
  color: var(--muted-foreground);
}

@keyframes breathe {

  0%,
  100% {
    opacity: 0.75;
    transform: translateX(-50%) translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
  }
}

.intro-progress {
  position: absolute;
  bottom: clamp(1.5rem, 5vh, 3.5rem);
  left: 50%;
  transform: translateX(-50%);
  width: min(220px, 50vw);
  height: 1px;
  background: color-mix(in oklab, var(--gold) 25%, transparent);
}

.intro-progress span {
  display: block;
  height: 100%;
  background: var(--gold);
  transition: width 250ms ease;
}

.intro-tap-target {
  position: absolute;
  inset: 0;
  background: transparent;
  cursor: pointer;
  border: 0;
  padding: 0;
}

/* ---------------------------------------------------------------
   Ambient floating elements
--------------------------------------------------------------- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.ambient i {
  position: absolute;
  bottom: -8vh;
  display: block;
  color: var(--gold);
  opacity: 0;
  animation-name: drift;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform, opacity;
}

@keyframes drift {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  12% {
    opacity: var(--peak, 0.35);
  }

  85% {
    opacity: var(--peak, 0.35);
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--drift-x, 20px), -112vh, 0) rotate(var(--spin, 180deg));
  }
}

/* ---------------------------------------------------------------
   Layout & shared decorative pieces
--------------------------------------------------------------- */
.page {
  position: relative;
  z-index: 2;
}

.section {
  padding-block: clamp(4rem, 11vw, 8.5rem);
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.wrap {
  width: 100%;
  max-width: 68rem;
  margin-inline: auto;
}

.wrap-narrow {
  width: 100%;
  max-width: 44rem;
  margin-inline: auto;
}

.eyebrow {
  font-size: 0.66rem;
  letter-spacing: 0.44em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

.section-title {
  font-size: clamp(1.9rem, 5.5vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.lede {
  color: var(--muted-foreground);
  line-height: 1.9;
  font-size: clamp(0.95rem, 2.4vw, 1.05rem);
}

.rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  color: var(--gold);
}

.rule::before,
.rule::after {
  content: "";
  height: 1px;
  width: clamp(2.5rem, 12vw, 6rem);
  background: linear-gradient(to right,
      transparent,
      color-mix(in oklab, var(--gold) 70%, transparent),
      transparent);
}

.gold-frame {
  position: relative;
  border: 1px solid color-mix(in oklab, var(--gold) 35%, transparent);
  background: color-mix(in oklab, var(--card) 85%, transparent);
  backdrop-filter: blur(2px);
}

.gold-frame::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid color-mix(in oklab, var(--gold) 18%, transparent);
  pointer-events: none;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 2.9rem;
  padding: 0.75rem 2rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: transparent;
  color: color-mix(in oklab, var(--foreground) 85%, var(--gold));
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--font-body);
  text-decoration: none;
  transition:
    background-color 400ms ease,
    color 400ms ease,
    transform 400ms ease;
}

.btn-gold:hover {
  background: color-mix(in oklab, var(--gold) 88%, white);
  color: var(--primary-foreground);
  transform: translateY(-2px);
}

.btn-gold--solid {
  background: color-mix(in oklab, var(--gold) 88%, white);
  color: var(--primary-foreground);
}

.btn-gold--solid:hover {
  background: var(--gold);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px) scale(0.99);
  transition:
    opacity 1100ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1100ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------------
   Hero
--------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(4rem, 12vw, 7rem) 1.25rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroPan 26s ease-in-out infinite alternate;
}

@keyframes heroPan {
  from {
    transform: scale(1.04);
  }

  to {
    transform: scale(1.12);
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center,
      color-mix(in oklab, var(--ivory) 72%, transparent) 0%,
      color-mix(in oklab, var(--ivory) 45%, transparent) 60%,
      color-mix(in oklab, var(--cream) 70%, transparent) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-names {
  /* font-size: clamp(3rem, 13vw, 7.5rem); */
  font-size: clamp(2rem, 10vw, 6.5rem);
  line-height: 1;
  letter-spacing: 0.01em;
  margin-block: clamp(1rem, 3vw, 1.75rem);
}

.hero-names em {
  font-style: italic;
  color: var(--gold);
  font-size: 0.55em;
  display: inline-block;
  padding-inline: 0.15em;
  vertical-align: 0.12em;
}

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.scroll-cue span {
  width: 1px;
  height: 3rem;
  background: linear-gradient(to bottom, color-mix(in oklab, var(--gold) 70%, transparent), transparent);
  animation: cue 2.6s ease-in-out infinite;
  transform-origin: top;
}

@keyframes cue {

  0%,
  100% {
    transform: scaleY(0.35);
    opacity: 0.5;
  }

  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* Blessing */
.blessing {
  position: relative;
  text-align: center;
  overflow: hidden;
  background: var(--cream);
}

.blessing-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.blessing>.wrap-narrow {
  position: relative;
  z-index: 2;
}

/* Invitation card */
.parents {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  grid-template-columns: 1fr;
  text-align: center;
}

@media (min-width: 42rem) {
  .parents {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .parents-divider {
    width: 1px;
    height: 5rem;
    background: linear-gradient(to bottom, transparent, var(--gold-soft), transparent);
  }
}

/* Countdown */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.5rem, 2vw, 1.5rem);
}

.count-cell {
  padding: clamp(0.9rem, 3vw, 1.75rem) 0.35rem;
  text-align: center;
}

.count-num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 7vw, 3.4rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.count-label {
  margin-top: 0.6rem;
  font-size: clamp(0.5rem, 1.8vw, 0.62rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

/* Program timeline */
.timeline {
  position: relative;
  display: grid;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tl-item {
  display: grid;
  grid-template-columns: minmax(4.5rem, auto) 1fr;
  gap: clamp(1rem, 4vw, 2.5rem);
  align-items: center;
  padding-block: clamp(1.1rem, 3vw, 1.6rem);
  border-bottom: 1px solid color-mix(in oklab, var(--gold) 22%, transparent);
}

.tl-item:last-child {
  border-bottom: 0;
}

.tl-time {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 3.5vw, 1.5rem);
  color: var(--gold);
  white-space: nowrap;
}

.tl-label {
  min-width: 0;
  font-size: clamp(0.9rem, 2.6vw, 1.05rem);
  letter-spacing: 0.06em;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.6rem, 2vw, 1.25rem);
}

@media (min-width: 48rem) {
  .gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .gallery button:nth-child(odd) {
    transform: translateY(1.75rem);
  }
}

.gallery button {
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in oklab, var(--gold) 30%, transparent);
  border-radius: 999px 999px 8px 8px;
  padding: 0;
  background: var(--cream);
  cursor: pointer;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition:
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 700ms ease;
}

@media (hover: hover) {
  .gallery button:hover img {
    transform: scale(1.06);
    filter: saturate(1.05);
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: color-mix(in oklab, oklch(0.22 0.02 60) 82%, transparent);
  backdrop-filter: blur(8px);
}

.lightbox img {
  max-width: min(92vw, 44rem);
  max-height: 86svh;
  width: auto;
  object-fit: contain;
  border: 1px solid color-mix(in oklab, var(--gold) 45%, transparent);
}

/* Save the date */
.std-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  text-align: center;
}

.std-day {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 16vw, 7rem);
  line-height: 0.95;
  color: var(--gold);
  border-inline: 1px solid color-mix(in oklab, var(--gold) 28%, transparent);
  padding-inline: 0.5rem;
}

.std-side {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 3vw, 1.25rem);
  letter-spacing: 0.14em;
  padding-inline: 0.35rem;
}

/* Forms */
.field {
  display: grid;
  gap: 0.5rem;
}

.field label {
  font-size: 0.63rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.7rem 0.95rem;
  background: color-mix(in oklab, var(--card) 80%, transparent);
  border: 1px solid var(--input);
  border-radius: 2px;
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 300ms ease;
}

.field textarea {
  min-height: 7rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  outline: none;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-foreground);
}

.field-error {
  font-size: 0.75rem;
  color: var(--destructive);
  letter-spacing: 0.04em;
  margin: 0;
}

/* Messages */
.msg-grid {
  display: grid;
  gap: clamp(0.75rem, 2.5vw, 1.25rem);
  grid-template-columns: 1fr;
}

@media (min-width: 40rem) {
  .msg-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.msg-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: clamp(1.1rem, 3vw, 1.6rem);
  margin: 0;
}

.msg-avatar {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--gold) 45%, transparent);
  background: color-mix(in oklab, var(--gold) 12%, transparent);
  font-family: var(--font-display);
  font-size: 1rem;
  color: color-mix(in oklab, var(--gold) 75%, black);
}

.msg-quote {
  margin-top: 0.4rem;
  font-size: 0.95rem;
}

/* Notes */
.notes {
  display: grid;
  gap: clamp(0.75rem, 2.5vw, 1.1rem);
}

.note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  padding: clamp(0.9rem, 3vw, 1.35rem) clamp(1rem, 3vw, 1.75rem);
  font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.note-mark {
  flex-shrink: 0;
  color: var(--gold);
  font-size: 1.05rem;
}

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

  .ambient {
    display: none;
  }

  .hero-bg,
  .intro-hint,
  .scroll-cue span {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------------------------------------------------------------
   Wedding wishes — live comments
   Shared styles for: the inline section, the desktop sticky panel,
   and the mobile bottom sheet. All three render from the same data.
--------------------------------------------------------------- */
.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;
}

.wishes-count {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
}

.wishes-count-num {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1rem;
}

/* Comment list — shared across all three mounts */
.wishes-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.wishes-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.wishes-avatar {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--gold) 45%, transparent);
  background: color-mix(in oklab, var(--gold) 12%, transparent);
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: color-mix(in oklab, var(--gold) 75%, black);
}

.wishes-item-body {
  min-width: 0;
}

.wishes-item-head {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.wishes-item-name {
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--foreground);
}

.wishes-item-time {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--muted-foreground);
}

.wishes-item-message {
  margin-top: 0.2rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--foreground);
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.wishes-item--new {
  animation: wishFadeIn 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes wishFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.wishes-empty,
.wishes-loading {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  font-style: italic;
}

.wishes-loading {
  display: none;
}

.wishes-loading:not([hidden]) {
  display: block;
}

/* Comment form — shared field styling, reusing .field's visual language */
.wishes-form {
  display: grid;
  gap: 0.6rem;
}

.wishes-form input,
.wishes-form textarea {
  width: 100%;
  padding: 0.6rem 0.85rem;
  background: color-mix(in oklab, var(--card) 80%, transparent);
  border: 1px solid var(--input);
  border-radius: 2px;
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 0.88rem;
  resize: vertical;
  transition: border-color 300ms ease;
}

.wishes-form input:focus,
.wishes-form textarea:focus {
  border-color: var(--gold);
  outline: none;
}

.wishes-form input::placeholder,
.wishes-form textarea::placeholder {
  color: var(--muted-foreground);
}

.wishes-form button[data-wishes-submit] {
  justify-self: start;
  /* padding-inline: 1.75rem; */
  min-height: 2.5rem;
}

/* .wishes-form input:disabled,
.wishes-form textarea:disabled,
.wishes-form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
} */
.wishes-error {
  font-size: 0.75rem;
  color: var(--destructive);
  margin: 0;
}

/* --- Inline section (within the normal page flow) --- */
.wishes-block {
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  padding: clamp(1.5rem, 5vw, 2.5rem);
  text-align: left;
}

.wishes-block-head {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.25rem;
}

.wishes-block .wishes-list {
  max-height: 22rem;
  overflow-y: auto;
  padding-right: 0.35rem;
  margin-bottom: 1.5rem;
}

.wishes-block .wishes-form {
  border-top: 1px solid color-mix(in oklab, var(--gold) 22%, transparent);
  padding-top: 1.25rem;
}

.wishes-block .wishes-form--inline {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.2rem;
}

.wishes-block .wishes-form--inline .wishes-form-row {
  display: grid;
  gap: 0.35rem;
}

.wishes-block .wishes-form--inline button[data-wishes-submit] {
  justify-self: start;
  width: auto;
}

/* --- Desktop sticky panel --- */
.wishes-panel {
  position: fixed;
  bottom: 5%;
  right: clamp(1rem, 2.5vw, 2rem);
  /* transform: translateY(-50%); */
  z-index: 60;
  width: min(21rem, 24vw);
  max-height: min(72vh, 40rem);
  display: flex;
  flex-direction: column;
  background: color-mix(in oklab, var(--card) 96%, transparent);
  border: 1px solid color-mix(in oklab, var(--gold) 35%, transparent);
  border-radius: var(--radius-lg);
  box-shadow: 0 1.25rem 3rem -1rem color-mix(in oklab, black 22%, transparent);
  backdrop-filter: blur(6px);
  padding: 1.1rem;
  transition:
    opacity 500ms ease,
    transform 500ms ease;
}

.wishes-panel[hidden] {
  display: none;
}

.wishes-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid color-mix(in oklab, var(--gold) 22%, transparent);
}

.wishes-panel-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.wishes-panel .wishes-list {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  margin-bottom: 0.85rem;
  padding-right: 0.35rem;
}

.wishes-panel .wishes-form textarea {
  min-height: 2.6rem;
}

/* Never let the sticky panel cover the main content on narrower desktops. */
@media (max-width: 76rem) {
  .wishes-panel {
    width: min(17rem, 22vw);
  }
}

/* @media (max-width: 60rem) {
  .wishes-panel {
    display: none !important;
  }
}

@media (min-width:993px) {
  .wishes-panel{
    display: none !important;
  }
  .wishes-fab{
    display: block !important;
  }
} */

/* --- Mobile floating action button --- */
.wishes-fab {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: color-mix(in oklab, var(--gold) 92%, white);
  color: var(--primary-foreground);
  font-size: 1.35rem;
  cursor: pointer;
  box-shadow: 0 0.75rem 1.75rem -0.5rem color-mix(in oklab, black 35%, transparent);
}

.wishes-fab[hidden] {
  display: none !important;
}

.wishes-fab-count {
  position: absolute;
  top: -0.3rem;
  right: -0.3rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding-inline: 0.25rem;
  border-radius: 999px;
  background: var(--foreground);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.62rem;
  display: grid;
  place-items: center;
}

@media (max-width: 60rem) {
  .wishes-fab:not([hidden]) {
    display: flex;
  }
}

/* --- Mobile bottom sheet --- */
.wishes-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: color-mix(in oklab, oklch(0.22 0.02 60) 55%, transparent);
  opacity: 0;
  transition: opacity 320ms ease;
}

.wishes-sheet-backdrop[hidden] {
  display: none;
}

.wishes-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 96;
  max-height: 82svh;
  display: flex;
  flex-direction: column;
  background: var(--ivory);
  border-top: 1px solid color-mix(in oklab, var(--gold) 35%, transparent);
  border-radius: 1.25rem 1.25rem 0 0;
  padding: 0.6rem 1.25rem calc(1rem + env(safe-area-inset-bottom));
  box-shadow: 0 -1rem 2.5rem -1rem color-mix(in oklab, black 30%, transparent);
  transform: translateY(100%);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.wishes-sheet[hidden] {
  display: none;
}

.wishes-sheet.is-open {
  transform: translateY(0);
}

.wishes-sheet-backdrop:not([hidden]) {
  opacity: 1;
}

.wishes-sheet-handle {
  width: 2.75rem;
  height: 0.28rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--gold) 45%, transparent);
  margin: 0.35rem auto 0.85rem;
}

.wishes-sheet-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid color-mix(in oklab, var(--gold) 22%, transparent);
}

.wishes-sheet-head .wishes-count {
  margin-left: auto;
}

.wishes-sheet-close {
  border: none;
  background: none;
  color: var(--muted-foreground);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
}

.wishes-sheet-close:hover {
  color: var(--foreground);
}

.wishes-sheet .wishes-list {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  margin-bottom: 0.85rem;
}

.wishes-sheet .wishes-form textarea {
  min-height: 2.6rem;
}

body.wishes-lock {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .wishes-item--new {
    animation: none;
  }

  .wishes-sheet {
    transition: none;
  }

  .wishes-sheet-backdrop {
    transition: none;
  }
}

/* ---------------------------------------------------------------
   Program timeline — multi-line entries (time / title / date / venue)
--------------------------------------------------------------- */
.tl-content {
  display: grid;
  gap: 0.2rem;
}

.tl-date {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
}

.tl-venue {
  font-size: 0.85rem;
  color: var(--muted-foreground);
}

/* ==================== modified from original ==================== */

/* =========================================
   WEDDING WISHES - CHAT LIST
   ========================================= */

.wishes-chat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 520px;
  overflow-y: auto;
  scrollbar-width: thin;
}

/* Individual chat */
.wishes-chat-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(170, 130, 70, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.65);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.wishes-chat-item:hover {
  transform: translateY(-2px);
  border-color: rgba(170, 130, 70, 0.28);
  box-shadow: 0 8px 24px rgba(80, 55, 25, 0.08);
}

/* Avatar */
.wishes-avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  font-weight: 700;

  background: #f1e6d1;
  color: #765a32;
}

/* Content */
.wishes-chat-content {
  min-width: 0;
  flex: 1;
}

/* Name + time */
.wishes-chat-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 3px;
}

.wishes-chat-header strong {
  font-size: 14px;
  font-weight: 600;
  color: #3f3327;
}

.wishes-chat-header span {
  font-size: 11px;
  color: #a3988c;
}

/* Message */
.wishes-chat-content p {
  margin: 0;
  font-family: "Jost", sans-serif;
  font-size: 13px;
  line-height: 1.55;
  color: #6d6258;
}

/* Mobile */
@media (max-width: 600px) {

  .wishes-chat-list {
    gap: 10px;
    max-height: 460px;
  }

  .wishes-chat-item {
    padding: 10px 11px;
    gap: 10px;
    border-radius: 12px;
  }

  .wishes-avatar {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    font-size: 18px;
  }

  .wishes-chat-header strong {
    font-size: 13px;
  }

  .wishes-chat-header span {
    font-size: 10px;
  }

  .wishes-chat-content p {
    font-size: 12px;
    line-height: 1.5;
  }
}

/*  */

/* =========================================
   WISHES FAB + PANEL
   ========================================= */

/* Chat button */
.wishes-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;

  width: 58px;
  height: 58px;

  border: 0;
  border-radius: 50%;

  display: flex !important;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  background: #b8945f;
  color: #fff;

  box-shadow:
    0 10px 30px rgba(80, 55, 25, 0.22),
    0 3px 10px rgba(80, 55, 25, 0.12);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.wishes-fab:hover {
  transform: translateY(-3px) scale(1.04);

  box-shadow:
    0 15px 35px rgba(80, 55, 25, 0.28),
    0 5px 14px rgba(80, 55, 25, 0.15);
}

.wishes-fab:active {
  transform: scale(0.94);
}


/* =========================================
   WISHES PANEL
   ========================================= */

.wishes-panel {
  position: fixed;

  right: 24px;
  bottom: 94px;

  width: min(390px, calc(100vw - 32px));
  max-height: min(650px, calc(100vh - 120px));

  z-index: 999;

  display: flex !important;
  flex-direction: column;

  background: rgba(255, 252, 247, 0.97);

  border: 1px solid rgba(170, 130, 70, 0.18);
  border-radius: 20px;

  box-shadow:
    0 25px 70px rgba(50, 35, 20, 0.18),
    0 8px 25px rgba(50, 35, 20, 0.08);

  overflow: hidden;

  /* Closed state */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateY(20px) scale(0.96);
  transform-origin: bottom right;

  transition:
    opacity 0.28s ease,
    transform 0.32s cubic-bezier(.22, 1, .36, 1),
    visibility 0.28s ease;
}


/* Open state */
.wishes-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transform: translateY(0) scale(1);
}


/* =========================================
   PANEL HEADER
   ========================================= */

.wishes-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 18px 20px;

  border-bottom: 1px solid rgba(170, 130, 70, 0.14);

  background: rgba(255, 250, 242, 0.9);
}

.wishes-panel-header h3 {
  margin: 0;

  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  font-weight: 600;

  color: #4b3a2a;
}

.wishes-panel-header p {
  margin: 2px 0 0;

  font-family: "Jost", sans-serif;
  font-size: 11px;

  color: #9b8d7d;
}


/* Close button */

.wishes-panel-close {
  width: 34px;
  height: 34px;

  display: grid;
  place-items: center;

  border: 0;
  border-radius: 50%;

  background: rgba(120, 90, 50, 0.08);
  color: #6d5942;

  cursor: pointer;

  font-size: 20px;
  line-height: 1;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.wishes-panel-close:hover {
  background: rgba(120, 90, 50, 0.14);
  transform: rotate(90deg);
}


/* =========================================
   PANEL CONTENT
   ========================================= */

.wishes-panel-content {
  padding: 16px;

  overflow-y: auto;
  overscroll-behavior: contain;

  scrollbar-width: thin;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 600px) {

  .wishes-fab {
    right: 18px;
    bottom: 18px;

    width: 54px;
    height: 54px;
  }

  .wishes-panel {
    right: 12px;
    left: 12px;

    bottom: 84px;

    width: auto;

    max-height: calc(100vh - 110px);

    border-radius: 18px;
  }

  .wishes-panel-header {
    padding: 16px;
  }

  .wishes-panel-header h3 {
    font-size: 22px;
  }
}

/* =========================================
   WISHES PANEL
   ========================================= */

.wishes-panel {
  position: fixed;
  right: 24px;
  bottom: 94px;

  width: 380px;
  max-width: calc(100vw - 32px);
  max-height: 600px;

  z-index: 9999;

  display: flex;
  flex-direction: column;

  background: rgba(255, 252, 247, 0.98);

  border: 1px solid rgba(170, 130, 70, 0.18);
  border-radius: 20px;

  box-shadow:
    0 25px 70px rgba(50, 35, 20, 0.18),
    0 8px 25px rgba(50, 35, 20, 0.08);

  overflow: hidden;

  /* CLOSED */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateY(20px) scale(0.96);

  transform-origin: bottom right;

  transition:
    opacity 0.28s ease,
    transform 0.32s cubic-bezier(.22, 1, .36, 1),
    visibility 0.28s ease;
}


/* OPEN */

.wishes-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transform: translateY(0) scale(1);
}


/* =========================================
   HEADER
   ========================================= */

.wishes-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 18px 18px 16px;

  border-bottom: 1px solid rgba(170, 130, 70, 0.14);
}

.wishes-panel-title {
  display: block;

  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  font-weight: 600;

  color: #4b3a2a;
}

.wishes-panel-subtitle {
  display: block;

  margin-top: 2px;

  font-family: "Jost", sans-serif;
  font-size: 11px;

  color: #9b8d7d;
}


/* CLOSE BUTTON */

.wishes-panel-close {
  width: 34px;
  height: 34px;

  display: grid;
  place-items: center;

  border: 0;
  border-radius: 50%;

  background: rgba(120, 90, 50, 0.08);
  color: #6d5942;

  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.wishes-panel-close:hover {
  background: rgba(120, 90, 50, 0.14);
  transform: rotate(90deg);
}


/* =========================================
   CHAT LIST
   ========================================= */

.wishes-list--panel {
  list-style: none;

  margin: 0;
  padding: 14px;

  overflow-y: auto;

  display: flex;
  flex-direction: column;
  gap: 10px;

  scrollbar-width: thin;
}


/* =========================================
   CHAT ITEM
   ========================================= */

.wishes-chat-item {
  display: flex;
  align-items: flex-start;

  gap: 10px;

  padding: 11px;

  border-radius: 13px;

  background: rgba(255, 255, 255, 0.7);

  border: 1px solid rgba(170, 130, 70, 0.10);

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.wishes-chat-item:hover {
  transform: translateY(-1px);

  border-color: rgba(170, 130, 70, 0.25);

  box-shadow: 0 5px 18px rgba(70, 45, 20, 0.06);
}


/* =========================================
   AVATAR
   ========================================= */

.wishes-avatar {
  width: 38px;
  height: 38px;

  flex: 0 0 38px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: #f1e5d0;

  color: #765a32;

  font-family: "Cormorant Garamond", serif;
  font-size: 19px;
  font-weight: 700;
}


/* =========================================
   MESSAGE
   ========================================= */

.wishes-chat-content {
  min-width: 0;
  flex: 1;
}

.wishes-chat-meta {
  display: flex;
  align-items: center;
  gap: 7px;

  margin-bottom: 2px;
}

.wishes-chat-meta strong {
  font-family: "Jost", sans-serif;
  font-size: 13px;
  font-weight: 600;

  color: #44372c;
}

.wishes-chat-meta span {
  font-family: "Jost", sans-serif;
  font-size: 10px;

  color: #aaa094;
}

.wishes-chat-content p {
  margin: 0;

  font-family: "Jost", sans-serif;
  font-size: 12px;
  line-height: 1.5;

  color: #71665c;
}


/* =========================================
   FAB
   ========================================= */

/* =========================================
   WISHES CHAT FAB
   Hidden until intro/content starts
   ========================================= */

.wishes-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;

  width: 58px;
  height: 58px;

  z-index: 10000;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: 50%;

  background: #b8945f;
  color: #fff;

  cursor: pointer;

  box-shadow:
    0 10px 30px rgba(80, 55, 25, 0.25);

  /* Initial state */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: scale(0.7) translateY(15px);

  transition:
    opacity 0.4s ease,
    visibility 0.4s ease,
    transform 0.45s cubic-bezier(.22, 1, .36, 1);
}


/* =========================================
   SHOW AFTER CONTENT PAGE
   ========================================= */

.wishes-fab.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transform: scale(1) translateY(0);
}


/* =========================================
   HOVER
   ========================================= */

.wishes-fab:hover {
  transform: scale(1.05) translateY(-3px);

  box-shadow:
    0 15px 35px rgba(80, 55, 25, 0.30);
}


.wishes-fab:active {
  transform: scale(0.94);
}


/* Icon */

.wishes-fab span:first-child {
  font-size: 22px;
}


/* Count */

.wishes-fab-count {
  position: absolute;

  top: -3px;
  right: -3px;

  min-width: 20px;
  height: 20px;

  padding: 0 5px;

  display: grid;
  place-items: center;

  border-radius: 999px;

  background: #4b3a2a;
  color: #fff;

  font-family: "Jost", sans-serif;
  font-size: 10px;
  font-weight: 600;
}

/* =========================================
   WISHES PANEL
   ========================================= */

.wishes-panel {
  position: fixed;

  right: 24px;
  bottom: 94px;

  width: 380px;
  max-width: calc(100vw - 32px);
  max-height: 600px;

  z-index: 9999;

  display: flex;
  flex-direction: column;

  background: rgba(255, 252, 247, 0.98);

  border: 1px solid rgba(170, 130, 70, 0.18);
  border-radius: 20px;

  overflow: hidden;

  box-shadow:
    0 25px 70px rgba(50, 35, 20, 0.18),
    0 8px 25px rgba(50, 35, 20, 0.08);

  /* CLOSED */

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateY(20px) scale(0.96);

  transform-origin: bottom right;

  transition:
    opacity 0.28s ease,
    visibility 0.28s ease,
    transform 0.32s cubic-bezier(.22, 1, .36, 1);
}


/* OPEN */

.wishes-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transform: translateY(0) scale(1);
}

/* ================================================================
   LIVE WISHES — CINEMATIC POST-INTRO EXPERIENCE
   This layer intentionally stays hidden until main.js calls
   wishes.enableLiveChat() after the opening animation is complete.
================================================================ */
.wishes-fab {
  position: fixed !important;
  right: 28px !important;
  bottom: 28px !important;
  z-index: 1000 !important;
  width: 58px !important;
  height: 58px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  border: 1px solid rgba(184, 148, 95, .72) !important;
  border-radius: 50% !important;
  background: linear-gradient(145deg, rgba(255, 250, 238, .94), rgba(214, 181, 126, .94)) !important;
  color: #6f5431 !important;
  box-shadow: 0 12px 35px rgba(73, 49, 23, .20), inset 0 1px 0 rgba(255, 255, 255, .75) !important;
  backdrop-filter: blur(14px) saturate(120%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(120%) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(12px) scale(.9) !important;
  transition: opacity .65s ease, transform .65s cubic-bezier(.22, 1, .36, 1), box-shadow .25s ease !important;
}

.wishes-fab[hidden] {
  display: grid !important;
}

.wishes-fab.is-visible {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) scale(1) !important;
  animation: wishesFabPulse 4.5s ease-in-out infinite 1s;
}

.wishes-fab:hover {
  transform: translateY(-3px) scale(1.04) !important;
  box-shadow: 0 16px 40px rgba(73, 49, 23, .25), inset 0 1px 0 rgba(255, 255, 255, .8) !important;
}

.wishes-fab.is-active {
  animation: none;
}

.wishes-fab-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.wishes-fab-count {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #6f5431;
  color: #fffaf0;
  font: 600 10px/1 Jost, sans-serif;
  border: 2px solid #fffaf0;
}

@keyframes wishesFabPulse {

  0%,
  100% {
    box-shadow: 0 12px 35px rgba(73, 49, 23, .20), 0 0 0 0 rgba(184, 148, 95, .20);
  }

  50% {
    box-shadow: 0 15px 38px rgba(73, 49, 23, .23), 0 0 0 9px rgba(184, 148, 95, 0);
  }
}

.wishes-preview {
  position: fixed;
  right: 30px;
  bottom: 96px;
  z-index: 998;
  width: min(310px, calc(100vw - 40px));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}

.wishes-preview[hidden] {
  display: flex !important;
  opacity: 0;
  visibility: hidden;
}

.wishes-preview-bubble {
  max-width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(184, 148, 95, .28);
  border-radius: 16px 16px 4px 16px;
  background: rgba(255, 251, 243, .88);
  color: #665545;
  box-shadow: 0 10px 25px rgba(73, 49, 23, .10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font: 400 12px/1.45 Jost, sans-serif;
  opacity: 0;
  transform: translateY(12px) scale(.96);
  transition: opacity .65s ease, transform .65s cubic-bezier(.22, 1, .36, 1);
}

.wishes-preview-bubble.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.wishes-panel {
  position: fixed !important;
  right: 28px !important;
  bottom: 98px !important;
  z-index: 999 !important;
  width: min(390px, calc(100vw - 40px)) !important;
  max-height: min(610px, calc(100vh - 130px)) !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(184, 148, 95, .34) !important;
  border-radius: 22px !important;
  background: rgba(255, 252, 246, .90) !important;
  box-shadow: 0 28px 75px rgba(53, 38, 22, .20), 0 8px 24px rgba(53, 38, 22, .08) !important;
  backdrop-filter: blur(18px) saturate(120%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(120%) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(18px) scale(.96) !important;
  transform-origin: bottom right !important;
  transition: opacity .35s ease, transform .45s cubic-bezier(.22, 1, .36, 1), visibility .35s ease !important;
}

.wishes-panel[hidden] {
  display: flex !important;
}

.wishes-panel.is-open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) scale(1) !important;
}

.wishes-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 18px 14px;
  border-bottom: 1px solid rgba(184, 148, 95, .18);
  background: rgba(255, 250, 240, .72);
}

.wishes-panel-title {
  display: block;
  font: 500 22px/1 Cormorant Garamond, serif;
  color: #4b3a2a;
}

.wishes-panel-subtitle {
  display: block;
  margin-top: 5px;
  font: 400 10px/1.3 Jost, sans-serif;
  letter-spacing: .07em;
  color: #9a8b78;
}

.wishes-panel-close {
  width: 34px !important;
  height: 34px !important;
  flex: 0 0 34px;
  display: grid !important;
  place-items: center !important;
  border: 1px solid rgba(120, 90, 50, .12) !important;
  border-radius: 50% !important;
  background: rgba(120, 90, 50, .06) !important;
  color: #6d5942 !important;
  font-size: 21px !important;
  cursor: pointer;
  transition: transform .25s ease, background .2s ease !important;
}

.wishes-panel-close:hover {
  transform: rotate(90deg);
  background: rgba(120, 90, 50, .12) !important;
}

.wishes-panel-body {
  min-height: 0;
  overflow: auto;
  padding: 14px 14px 6px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.wishes-chat-list {
  max-height: none !important;
  overflow: visible !important;
  gap: 9px !important;
}

.wishes-chat-item {
  padding: 10px 11px !important;
  gap: 10px !important;
  border: 1px solid rgba(170, 130, 70, .13) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, .58) !important;
  box-shadow: none !important;
}

.wishes-chat-item--new {
  animation: wishesMessageIn .5s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes wishesMessageIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wishes-avatar {
  width: 34px !important;
  height: 34px !important;
  flex-basis: 34px !important;
  font-size: 17px !important;
  background: #f1e6d1 !important;
  color: #765a32 !important;
}

.wishes-chat-header {
  margin-bottom: 2px !important;
}

.wishes-chat-header strong {
  font-size: 12px !important;
  color: #4b3a2a !important;
}

.wishes-chat-header span {
  font-size: 9px !important;
  color: #aa9d8f !important;
}

.wishes-chat-content p {
  font-size: 11px !important;
  line-height: 1.5 !important;
  color: #6d6258 !important;
}

.wishes-form--chat {
  margin: 0 !important;
  padding: 12px 14px 14px !important;
  border-top: 1px solid rgba(184, 148, 95, .18) !important;
  background: rgba(255, 250, 242, .64);
}

.wishes-form--chat>input {
  width: 100%;
  margin-bottom: 8px;
  border: 1px solid rgba(170, 130, 70, .20);
  border-radius: 12px;
  background: rgba(255, 255, 255, .64);
  color: #4b3a2a;
  padding: 9px 11px;
  outline: none;
  font: 400 11px/1.3 Jost, sans-serif;
}

.wishes-compose {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.wishes-compose textarea {
  flex: 1;
  min-height: 40px !important;
  max-height: 90px;
  resize: none;
  border: 1px solid rgba(170, 130, 70, .22) !important;
  border-radius: 13px !important;
  background: rgba(255, 255, 255, .72) !important;
  color: #4b3a2a !important;
  padding: 10px 11px !important;
  outline: none;
  font: 400 11px/1.45 Jost, sans-serif !important;
}

.wishes-form--chat input:focus,
.wishes-form--chat textarea:focus {
  border-color: rgba(184, 148, 95, .65) !important;
  box-shadow: 0 0 0 3px rgba(184, 148, 95, .10);
}

.wishes-send {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid rgba(184, 148, 95, .45);
  border-radius: 50%;
  background: #b8945f;
  color: #fffaf0;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.wishes-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 18px rgba(80, 55, 25, .18);
}

.wishes-error {
  margin: 7px 2px 0 !important;
  font: 400 10px/1.4 Jost, sans-serif;
  color: #8a5c45;
}

@media (max-width:700px) {
  .wishes-fab {
    right: 18px !important;
    bottom: 20px !important;
    width: 56px !important;
    height: 56px !important;
  }

  .wishes-preview {
    right: 18px;
    bottom: 88px;
    width: min(280px, calc(100vw - 36px));
  }

  .wishes-panel {
    left: 3vw !important;
    right: 3vw !important;
    bottom: 88px !important;
    width: auto !important;
    max-height: calc(100svh - 112px) !important;
    border-radius: 20px !important;
  }

  .wishes-panel-head {
    padding: 15px 15px 12px;
  }

  .wishes-panel-title {
    font-size: 20px;
  }

  .wishes-panel-body {
    padding: 11px 11px 4px;
  }

  .wishes-chat-item {
    padding: 9px !important;
  }

  .wishes-preview-bubble {
    max-width: 88%;
    font-size: 11px;
    padding: 8px 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wishes-fab.is-visible {
    animation: none !important;
    transition: opacity .2s ease !important;
  }

  .wishes-preview-bubble,
  .wishes-chat-item--new,
  .wishes-panel {
    transition: none !important;
    animation: none !important;
  }
}


/* ================================================================
   BACKGROUND WEDDING MUSIC CONTROL
   ================================================================ */

.music-toggle {
  position: fixed;
  left: 28px;
  bottom: 92px;
  z-index: 10020;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(190, 155, 91, 0.55);
  border-radius: 999px;
  color: #6e5431;
  background: rgba(255, 251, 241, 0.82);
  box-shadow: 0 10px 28px rgba(68, 48, 25, 0.14), inset 0 0 0 1px rgba(255, 255, 255, .55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px) scale(.94);
  transition: opacity .55s ease, transform .55s ease, background .25s ease, box-shadow .25s ease;
}

.music-toggle.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.music-toggle:hover,
.music-toggle:focus-visible {
  background: rgba(255, 253, 247, 0.96);
  box-shadow: 0 12px 30px rgba(68, 48, 25, 0.19), 0 0 0 4px rgba(190, 155, 91, .10);
}

.music-toggle:focus-visible {
  outline: 2px solid rgba(145, 111, 57, .75);
  outline-offset: 3px;
}

.music-toggle-icon {
  font-family: Georgia, serif;
  font-size: 20px;
  line-height: 1;
}

.music-toggle-waves {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 16px;
}

.music-toggle-waves i {
  display: block;
  width: 2px;
  height: 7px;
  border-radius: 2px;
  background: currentColor;
  opacity: .72;
  transform-origin: center;
}

.music-toggle.is-playing .music-toggle-waves i:nth-child(1) {
  animation: weddingMusicWave .8s ease-in-out infinite;
}

.music-toggle.is-playing .music-toggle-waves i:nth-child(2) {
  height: 12px;
  animation: weddingMusicWave .8s ease-in-out .14s infinite;
}

.music-toggle.is-playing .music-toggle-waves i:nth-child(3) {
  height: 9px;
  animation: weddingMusicWave .8s ease-in-out .28s infinite;
}

.music-toggle.is-muted .music-toggle-icon {
  opacity: .55;
}

.music-toggle.is-muted .music-toggle-waves {
  opacity: .35;
}

@keyframes weddingMusicWave {

  0%,
  100% {
    transform: scaleY(.65);
  }

  50% {
    transform: scaleY(1.35);
  }
}

@media (max-width: 700px) {
  .music-toggle {
    right: 18px;
    bottom: 78px;
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .music-toggle,
  .music-toggle.is-visible {
    transition: opacity .2s ease;
    transform: none;
  }

  .music-toggle.is-playing .music-toggle-waves i {
    animation: none;
  }
}

/* ---------------------------------------------------------------
   Hero ambient motion — glass bubbles + continuous hearts
   --------------------------------------------------------------- */
.hero-ambient-motion {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  contain: layout paint;
  perspective: 900px;
  isolation: isolate;
}

/* 3D glass spheres: all movement is transform/opacity based. */
.hero-glass-bubble {
  position: absolute;
  left: var(--bubble-left);
  top: var(--bubble-top);
  width: var(--bubble-size);
  height: var(--bubble-size);
  border-radius: 50%;
  opacity: var(--bubble-opacity);
  filter: blur(var(--bubble-blur));
  background:
    radial-gradient(circle at 30% 23%, rgba(255, 255, 255, 0.72) 0 3%, rgba(255, 255, 255, 0.18) 11%, transparent 25%),
    radial-gradient(circle at 67% 74%, rgba(255, 224, 169, 0.16), transparent 48%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.48);
  box-shadow:
    inset 7px 7px 16px rgba(255, 255, 255, 0.28),
    inset -10px -12px 20px rgba(104, 70, 28, 0.08),
    0 14px 34px rgba(91, 61, 28, 0.10),
    0 0 22px rgba(255, 231, 191, 0.16);
  transform: translate3d(0, 0, 0) scale(0.94) rotate(var(--bubble-rotate));
  animation: heroBubbleFloat var(--bubble-duration) ease-in-out var(--bubble-delay) infinite alternate;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.hero-glass-bubble::before {
  content: '';
  position: absolute;
  width: 19%;
  height: 19%;
  top: 17%;
  left: 22%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  filter: blur(1px);
  box-shadow: 8px 4px 12px rgba(255, 255, 255, 0.18);
}

.hero-glass-bubble::after {
  content: '';
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.20);
  transform: rotate(-18deg);
}

@keyframes heroBubbleFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(0.94) rotate(var(--bubble-rotate));
  }

  50% {
    transform: translate3d(var(--bubble-drift-x), var(--bubble-drift-y), 28px) scale(1.02) rotate(calc(var(--bubble-rotate) + 4deg));
  }

  100% {
    transform: translate3d(calc(var(--bubble-drift-x) * -0.55), calc(var(--bubble-drift-y) * -0.8), -18px) scale(0.98) rotate(calc(var(--bubble-rotate) - 5deg));
  }
}

/* Hearts continuously rise from below the hero and recycle via infinite CSS animation. */
.hero-heart {
  position: absolute;
  left: var(--heart-left);
  bottom: -9%;
  width: var(--heart-size);
  height: var(--heart-size);
  display: grid;
  place-items: center;
  color: color-mix(in srgb, var(--gold) 76%, var(--ivory));
  font-family: Georgia, serif;
  font-size: var(--heart-size);
  line-height: 1;
  opacity: 0;
  filter: blur(var(--heart-blur));
  text-shadow: 0 0 12px color-mix(in srgb, var(--gold) 28%, transparent);
  transform: translate3d(0, 10vh, 0) scale(var(--heart-scale)) rotate(var(--heart-rotation));
  animation: heroHeartFloat var(--heart-duration) cubic-bezier(.22, .72, .25, 1) var(--heart-delay) infinite;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

@keyframes heroHeartFloat {
  0% {
    opacity: 0;
    transform: translate3d(0, 10vh, 0) scale(.72) rotate(var(--heart-rotation));
  }

  10% {
    opacity: var(--heart-opacity);
  }

  48% {
    opacity: var(--heart-opacity);
    transform: translate3d(calc(var(--heart-drift) * .35), -52vh, 0) scale(.92) rotate(calc(var(--heart-rotation) - 4deg));
  }

  76% {
    opacity: calc(var(--heart-opacity) * .78);
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--heart-drift), -122vh, 0) scale(1.03) rotate(calc(var(--heart-rotation) + 10deg));
  }
}

@media (max-width: 767px) {
  .hero-ambient-motion {
    perspective: 700px;
  }

  .hero-glass-bubble {
    box-shadow:
      inset 5px 5px 12px rgba(255, 255, 255, 0.24),
      inset -7px -8px 14px rgba(104, 70, 28, 0.06),
      0 10px 24px rgba(91, 61, 28, 0.08);
  }

  .hero-heart {
    text-shadow: 0 0 8px color-mix(in srgb, var(--gold) 22%, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-ambient-motion {
    display: none !important;
  }
}

@media (max-width: 430px) {
  .hashtag-p {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media (min-width: 993px) {
  .custom-p br {
    display: none;
  }
}

.custom-p1{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.custom-p1 .span-img{
  display: flex;
  justify-content: center;
}

.custom-p1 span img{
  width: 30%;
  height: 30%;
}

/* ================================================================
   WEDDING WISHES — section guestbook behavior
   Keeps the existing visual design; only adds the scroll + append UX.
   ================================================================ */
.wishes-block .wishes-chat {
  width: 100%;
}

.wishes-block .wishes-chat-list {
  max-height: min(430px, 52vh) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 4px 8px 10px 4px !important;
  overscroll-behavior: contain;
  /* js/wishes-marquee.js drives scrollTop every frame for the looping
     ticker; "smooth" here would fight that with its own easing, so the
     one-off "scroll to a new wish" glide is done in JS instead. */
  scroll-behavior: auto;
  scrollbar-width: thin;
}

/* The looping ticker's hidden duplicate copy of the messages (see
   js/wishes-marquee.js) — visually identical, just not selectable or
   clickable, and already aria-hidden for assistive tech. */
.wishes-block .wishes-chat-item[data-clone] {
  user-select: none;
}

.wishes-block .wishes-chat-list::-webkit-scrollbar {
  width: 6px;
}

.wishes-block .wishes-chat-item--new {
  animation: wishesSectionMessageIn .55s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes wishesSectionMessageIn {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(.985);
  }
  70% {
    opacity: 1;
    transform: translateY(-2px) scale(1.002);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.wishes-block .wishes-form--section {
  margin-top: 14px !important;
  border: 1px solid rgba(184, 148, 95, .18) !important;
  border-radius: 16px !important;
  background: rgba(255, 250, 242, .64) !important;
}

.wishes-block.wishes-is-ready .wishes-form--section {
  animation: wishesFormReveal .45s ease both;
}

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

@media (prefers-reduced-motion: reduce) {
  .wishes-block .wishes-chat-list {
    scroll-behavior: auto;
  }

  .wishes-block .wishes-chat-item--new,
  .wishes-block.wishes-is-ready .wishes-form--section {
    animation: none !important;
  }
}

/* --------------------------------------------------------------
   PERFORMANCE: off-screen / backgrounded-tab animation pausing
   Added by js/perf-optimize.js. Purely additive — pauses the exact
   same infinite animations declared above in place, no new visuals,
   no timing/easing/keyframe changes. When `.is-anim-paused` isn't
   present (the normal, in-view state) everything behaves exactly as
   it already did.
   -------------------------------------------------------------- */
.is-anim-paused,
.is-anim-paused * {
  animation-play-state: paused !important;
}

@media (prefers-reduced-motion: reduce) {
  .is-anim-paused,
  .is-anim-paused * {
    animation-play-state: paused;
  }
}
