:root {
  --color-bg-dark: #FDFBF7;
  --color-bg-overlay: rgba(253, 251, 247, 0.85);
  --color-bg-overlay-heavy: rgba(253, 251, 247, 0.95);
  --color-bg-card: rgba(253, 251, 247, 0.95);
  --color-text-primary: #2D2D2D;
  --color-text-secondary: rgba(45, 45, 45, 0.75);
  --color-text-muted: rgba(45, 45, 45, 0.45);
  --color-text-italic: rgba(45, 45, 45, 0.6);
  --color-accent: #8D775F;
  --color-accent-line: rgba(141, 119, 95, 0.3);
  --color-button-bg: #2D2D2D;
  --color-button-hover: #8D775F;
  --font-serif: "Cormorant Garamond", serif;
  --font-sans: "Montserrat", sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: var(--color-bg-dark);
  color: var(--color-text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body { font-family: var(--font-sans); }

#app {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

[v-cloak] { display: none; }

h1, h2, h3, h4, h5, h6, .font-serif { font-family: var(--font-serif); }
.font-sans { font-family: var(--font-sans); }

/* Fixed Video Background */
#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}

/* Hide global video on desktop/tablet, only show in right-pane */
@media (min-width: 768px) {
  #bg-video { display: none; }
}

/* Video background for right-pane on desktop */
.right-pane-video {
  position: fixed;
  top: 0;
  right: 0;
  width: calc(100vw - var(--left-pane-w-tablet));
  height: 100vh;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .right-pane-video {
    width: calc(100vw - var(--left-pane-w-desktop));
  }
}

.section-video-overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  transition: background 0.6s ease;
  background: rgba(0,0,0,0.40);
}

/* Overlay for right-pane on desktop */
.right-pane-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: calc(100vw - var(--left-pane-w-tablet));
  height: 100vh;
  z-index: 10;
  pointer-events: none;
  transition: background 0.6s ease;
  background: rgba(0,0,0,0.40);
}

@media (min-width: 1024px) {
  .right-pane-overlay {
    width: calc(100vw - var(--left-pane-w-desktop));
  }
}

/* Section Layout */
.section {
  min-height: 100svh;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#section-love-story {
  overflow: visible !important;
}

.section-content {
  width: 100%;
  max-width: 430px;
  padding: 0 24px;
  margin: 0 auto;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .section-content { max-width: 680px; padding: 0 40px; }
}

.section-video-backed {
  position: relative;
  z-index: 20;
  background: transparent;
  min-height: 100svh;
  --color-text-primary: #FFFFFF;
  --color-text-secondary: rgba(255, 255, 255, 0.85);
  --color-text-muted: rgba(255, 255, 255, 0.60);
  --color-text-italic: rgba(255, 255, 255, 0.70);
  --color-accent: #C4A882;
  --color-accent-line: rgba(255, 255, 255, 0.30);
  --color-button-bg: #FFFFFF;
  --color-button-hover: #C4A882;
  --color-bg-dark: #2D2D2D;
  --color-bg-card: rgba(0, 0, 0, 0.50);
  --color-bg-overlay: rgba(0, 0, 0, 0.55);
  --color-bg-overlay-heavy: rgba(0, 0, 0, 0.70);
}

.section-video-backed .rsvp-input {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}
.section-video-backed .rsvp-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.section-video-backed .rsvp-input:focus {
  border-color: rgba(255, 255, 255, 0.6);
}
.section-video-backed form button[type="button"] {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}
.section-video-backed form button[type="button"].bg-gray-200 {
  background: rgba(255, 255, 255, 0.35) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
}

.section-photo-cover {
  position: relative;
  z-index: 100;
  min-height: 100svh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}



/* Animations */
.anim-ready {
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 2.2s cubic-bezier(0.22, 1, 0.36, 1), transform 2.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.anim-ready.is-visible { opacity: 1; transform: scale(1); }

.stagger-1 { transition-delay: 0s; }
.stagger-2 { transition-delay: 0.12s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.36s; }

.anim-fade { opacity: 0; transition: opacity 1s ease; }
.anim-fade.is-visible { opacity: 1; }

.anim-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.anim-left.is-visible { opacity: 1; transform: translateX(0); }

.anim-right { opacity: 0; transform: translateX(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.anim-right.is-visible { opacity: 1; transform: translateX(0); }

.anim-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.anim-scale.is-visible { opacity: 1; transform: scale(1); }

@keyframes heroNameIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-name { opacity: 0; }
.hero-name-animate { animation: heroNameIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.hero-name-delay-1 { animation-delay: 0.2s; }
.hero-date-animate { animation: heroNameIn 1s ease forwards; animation-delay: 0.5s; opacity: 0; }

@keyframes scrollLinePulse {
  0%, 100% { transform: scaleY(1); opacity: 0.7; }
  50% { transform: scaleY(0.5); opacity: 0.3; }
}
.scroll-line-animate {
  animation: scrollLinePulse 2s ease-in-out infinite;
  transform-origin: top;
}

@keyframes scrollArrowPulse {
  0%, 100% { transform: scaleX(1); opacity: 0.7; }
  50% { transform: scaleX(0.45); opacity: 0.3; }
}
.scroll-arrow-animate {
  animation: scrollArrowPulse 2s ease-in-out infinite;
  transform-origin: left;
}

@keyframes musicPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 0; }
}

/* Cover Gate */
.cover-gate {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 48px;
  transition: opacity 0.8s ease, transform 0.8s ease, visibility 0.8s;
}

.cover-gate.closing {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
  visibility: hidden;
}

/* Buttons */
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--color-button-bg);
  border: 1px solid var(--color-button-bg);
  color: var(--color-bg-dark);
  font-family: var(--font-sans);
  text-transform: uppercase;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}
.ghost-btn:hover, .ghost-btn:active {
  background: var(--color-button-hover);
  border-color: var(--color-button-hover);
  color: var(--color-bg-dark);
}

/* Nav Menu */
.nav-hamburger {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9998;
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: white;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-open .nav-hamburger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-open .nav-hamburger span:nth-child(2) { opacity: 0; }
.nav-open .nav-hamburger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 9997;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}
.nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.nav-links a {
  font-family: var(--font-sans);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: white;
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--color-accent); }

/* Hide Scrollbar */
.hide-scrollbar {
  scrollbar-width: none;
}
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  .hide-scrollbar {
    scrollbar-width: auto;
  }
  .hide-scrollbar::-webkit-scrollbar {
    display: block;
    height: 8px;
  }
  .hide-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
  }
  .hide-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
  }
  .hide-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
  }
}

.drag-scroll {
  cursor: grab;
  user-select: none;
}
.drag-scroll.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

/* RSVP Input */
.rsvp-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--color-accent-line);
  border-radius: 4px;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--color-text-primary);
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}
.rsvp-input::placeholder {
  color: var(--color-text-muted);
  font-style: italic;
}
.rsvp-input:focus {
  border-color: var(--color-text-primary);
  outline: none;
}

/* Gift Modal */
.gift-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 80svh;
  background: var(--color-bg-card);
  border-radius: 20px 20px 0 0;
  padding: 24px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 8000;
  overflow-y: auto;
}
.gift-modal.open { transform: translateY(0); }
.gift-modal::before {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background: var(--color-accent-line);
  border-radius: 2px;
  margin: 0 auto 24px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-bg-dark);
  border: 1px solid var(--color-accent-line);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  padding: 10px 20px;
  border-radius: 0;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
  z-index: 99999;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Music Button */
.music-btn {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 9999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(253, 251, 247, 0.5) !important;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(141, 119, 95, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  outline: none;
}
.music-btn:active { transform: scale(0.9); background: rgba(253, 251, 247, 0.5); }
.music-btn:hover { background: rgba(253, 251, 247, 0.5); }

/* Transitions */
.fade-enter-active { transition: opacity 1.8s ease-in-out; }
.fade-leave-active {
  transition: opacity 1.8s ease-in-out;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 15;
}
.fade-enter, .fade-leave-to { opacity: 0; }

/* Decorative Brand Elements */
.brand-circle-top {
  position: fixed;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border: 1px solid var(--color-accent);
  opacity: 0.3;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}
.brand-circle-bottom {
  position: fixed;
  bottom: -50px;
  left: -50px;
  width: 300px;
  height: 300px;
  border: 1px solid var(--color-accent);
  opacity: 0.3;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

/* Vertical Writing */
.writing-vertical-rl {
  writing-mode: vertical-rl;
}

/* Scroll Reveal (backup) */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1000ms ease-out, transform 1000ms ease-out;
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* Section overlay colors */
#section-overlay { background: rgba(0,0,0,0.40); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
/* --- Desktop/Tablet Split Layout (Left static, Right scrollable) --- */
:root {
  --left-pane-w-tablet: 65vw; /* even wider on tablet */
  --left-pane-w-desktop: 70vw; /* wider than Reverie on desktop */
}

/* Right pane defaults; enhanced on md+ via media queries */
.right-pane { }

@media (min-width: 768px) {
  html, body { height: 100%; overflow: hidden; }

  .desktop-left-pane {
    position: fixed;
    top: 0; left: 0; bottom: 0; right: auto;
    width: var(--left-pane-w-tablet);
    height: 100vh;
    z-index: 50;
    overflow: hidden;
  }
  .desktop-left-pane .bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .desktop-left-pane .scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.2));
    pointer-events: none;
  }
  .desktop-left-pane .copy {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 2rem;
    color: #fff;
  }

  /* Make the main content the only scrollable area */
  .right-pane {
    position: relative;
    margin-left: var(--left-pane-w-tablet);
    height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Make cover-gate occupy only the right pane on md+ so split starts from cover */
  .cover-gate {
    left: var(--left-pane-w-tablet);
    right: 0;
    width: calc(100vw - var(--left-pane-w-tablet));
  }
}

@media (min-width: 1024px) {
  .desktop-left-pane { width: var(--left-pane-w-desktop); }
  .right-pane { margin-left: var(--left-pane-w-desktop); }
  .cover-gate {
    left: var(--left-pane-w-desktop);
    width: calc(100vw - var(--left-pane-w-desktop));
  }
}

/* ─── Turut Mengundang Section ─── */
.turut-names-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.turut-name-item {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.turut-name-item:last-child {
  border-bottom: none;
}

.turut-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: white;
  line-height: 1.55;
  word-break: break-word;
  hyphens: auto;
}

.turut-footer-line {
  height: 1px;
  background: white;
  margin-top: 48px;
}

@media (min-width: 768px) {
  .turut-content {
    max-width: 600px;
    padding-left: 40px;
    padding-right: 40px;
  }

  .turut-name {
    font-size: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .turut-content {
    max-width: 680px;
  }

  .turut-name {
    font-size: 0.9rem;
  }
}

/* ─── Live Streaming Section ─── */
.livestream-content {
  padding-top: 80px;
  padding-bottom: 80px;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

.section-label-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  width: 100%;
  margin-bottom: 24px;
}

.section-label-right::before {
  content: '';
  flex: 1;
  height: 1px;
  background: white;
}

.section-label-right span {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

.livestream-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.5rem, 6vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.25;
  margin: 0 0 12px;
}

.livestream-datetime {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 36px;
}

.livestream-platforms {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.livestream-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.livestream-btn:active {
  transform: scale(0.98);
  background: rgba(255, 255, 255, 0.1);
}

@media (hover: hover) {
  .livestream-btn:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.1);
  }
}

.livestream-btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.livestream-icon-ig {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.livestream-icon-tt {
  background: #010101;
}

.livestream-icon-yt {
  background: #ff0000;
}

.livestream-btn-icon svg,
.livestream-btn-icon img {
  width: 22px;
  height: 22px;
  fill: #ffffff;
  color: #ffffff;
}

.livestream-btn-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.livestream-btn-platform {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.02em;
}

.livestream-btn-handle {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.livestream-btn-arrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

@media (hover: hover) {
  .livestream-btn:hover .livestream-btn-arrow {
    transform: translateX(4px);
    color: rgba(255, 255, 255, 0.7);
  }
}

.livestream-note {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.03em;
  text-align: center;
  margin-top: 20px;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .livestream-content {
    max-width: 560px;
  }

  .livestream-heading {
    font-size: 2.2rem;
  }
}

@media (min-width: 1024px) {
  .livestream-content {
    max-width: 620px;
  }
}

/* Instagram Story Section */
#section-ig-story .section-content {
  padding: 60px 24px;
}
#section-ig-story h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}
#section-ig-story .aspect-\[9\/16\] {
  width: 180px;
}
#section-ig-story .max-w-\[300px\] {
  max-width: 300px;
}

@media (min-width: 768px) {
  #section-ig-story .aspect-\[9\/16\] {
    width: 210px;
  }
  #section-ig-story .max-w-\[300px\] {
    max-width: 380px;
  }
}

@media (min-width: 1024px) {
  #section-ig-story .aspect-\[9\/16\] {
    width: 210px;
  }
  #section-ig-story .max-w-\[300px\] {
    max-width: 380px;
  }
}

/* Ghost button hover */
#section-ig-story .ghost-btn {
  transition: all 0.2s ease;
}
@media (hover: hover) {
  #section-ig-story .ghost-btn:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
  }
}
#section-ig-story .ghost-btn:active {
  transform: scale(0.97);
}

/* Gift CTA morph animation */
.gift-cta {
  transition: all 420ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: width, background, border-radius, box-shadow, transform;
}
.gift-cta.animating {
  width: 100% !important;
  background: rgba(255,255,255,0.65) !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

/* Gift Expander (button -> panel) */
.gift-expander {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: auto;
  transition: width 800ms cubic-bezier(0.25, 0.1, 0.25, 1),
              background 800ms cubic-bezier(0.25, 0.1, 0.25, 1),
              border-radius 800ms ease,
              min-height 800ms cubic-bezier(0.25, 0.1, 0.25, 1);
  background: rgba(255,255,255,0.42);
  border-radius: 999px;
  overflow: visible;
}

/* Fase 1: Melebar horizontal, teks menghilang */
.gift-expander.is-expanding {
  width: 100%;
  min-width: unset;
  border-radius: 18px;
  background: rgba(255,255,255,0.42);
}

/* Fase 2: Warna gelap */
.gift-expander.is-color-change {
  background: rgba(255,255,255,0.28);
}

/* Fase 3: Panel terbuka */
.gift-expander.is-open {
  width: 100%;
  min-width: unset;
  border-radius: 18px;
  background: rgba(255,255,255,0.65);
}

.gift-expander .gift-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  color: #fff;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: opacity 700ms ease, transform 700ms ease;
}

.gift-expander .gift-btn i,
.gift-expander .gift-btn .gift-btn-label {
  transition: opacity 700ms ease, transform 700ms ease;
}

/* Teks dan ikon menghilang saat melebar */
.gift-expander.is-expanding .gift-btn {
  opacity: 0;
  transform: scale(0.9);
}

/* Button tetap tersembunyi saat panel terbuka - hanya panel yang muncul */
.gift-expander.is-open .gift-btn {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}

.gift-panel {
  width: 100%;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 800ms cubic-bezier(0.25, 0.1, 0.25, 1), opacity 500ms ease 300ms;
}
.gift-expander.is-open .gift-panel { max-height: 780px; opacity: 1; }
.gift-panel-inner { padding: 14px; }
.gift-panel .panel-header { position: relative; padding: 2px 4px 10px; }
.gift-panel .panel-close { position: absolute; right: 6px; top: -12px; font-size: 0.75rem; color: rgba(0,0,0,0.6); text-decoration: underline; cursor: pointer; }
.gift-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 4px; border-top: 1px solid rgba(0,0,0,0.1); }
.gift-item .left img { width: 40px; height: 24px; object-fit: contain; flex-shrink: 0; }
.gift-item .left .h-6 { width: 40px; }
.gift-item:first-of-type { border-top: 0; }
.gift-item .left { display: flex; align-items: center; gap: 10px; color: #2D2D2D; }
.gift-item .copy-btn { background: rgba(0,0,0,0.06); border-radius: 8px; padding: 8px; }
/* Gallery: make iframe fill container */
#section-gallery .video-embed { width: 100%; height: 100%; }
#section-gallery .video-embed iframe { width: 100% !important; height: 100% !important; display: block; }
/* Guestbook input override */
#section-guestbook .rsvp-input {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 0;
  padding: 10px 14px;
  color: #fff;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
#section-guestbook .rsvp-input::placeholder {
  color: rgba(255, 255, 255, 0.75);
  font-style: normal;
}
#section-guestbook .rsvp-input:focus {
  border-color: rgba(255, 255, 255, 0.9);
  outline: none;
}
#section-guestbook .guestbook-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-width: 170px;
  padding: 12px 32px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.42);
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
#section-guestbook .guestbook-btn:active {
  transform: scale(0.98);
  background: rgba(255, 255, 255, 0.55);
}
@media (hover: hover) {
  #section-guestbook .guestbook-btn:hover {
    background: rgba(255, 255, 255, 0.55);
  }
}

/* Guestbook Wishes List Scrollbar */
.guestbook-wishes-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.4) transparent;
}
.guestbook-wishes-list::-webkit-scrollbar {
  width: 6px;
}
.guestbook-wishes-list::-webkit-scrollbar-track {
  background: transparent;
}
.guestbook-wishes-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 3px;
}
.guestbook-wishes-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.6);
}

@media (min-width: 768px) {
  .guestbook-wishes-list {
    scrollbar-width: auto;
  }
  .guestbook-wishes-list::-webkit-scrollbar {
    width: 8px;
  }
  .guestbook-wishes-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
  }
  .guestbook-wishes-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 4px;
  }
  .guestbook-wishes-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.55);
  }
}
