:root {
  --primary-start: #F4845F;
  --primary-mid: #F7B267;
  --primary-end: #F7D794;
  --secondary-light: #C3A6D8;
  --secondary-dark: #9B72AA;
  --accent-gold: #D4A574;
  --accent-gold-dark: #C9A96E;
  --bg-cream: #FFF8F0;
  --bg-peach: #FDEBD3;
  --text-brown: #4A3728;
  --text-charcoal: #2D2D2D;
  --text-muted: #8B7355;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --gradient-sunset: linear-gradient(135deg, #F4845F, #F7B267, #F7D794);
  --gradient-dusk: linear-gradient(135deg, #C3A6D8, #9B72AA);
  --gradient-gold: linear-gradient(135deg, #D4A574, #C9A96E);
  --gradient-warm: linear-gradient(180deg, #FFF8F0 0%, #FDEBD3 50%, #F7D794 100%);
  --gold-shimmer: linear-gradient(90deg, #D4A574 0%, #F7D794 25%, #C9A96E 50%, #F7D794 75%, #D4A574 100%);
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-8px) translateX(-50%); }
  60% { transform: translateY(-4px) translateX(-50%); }
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(212, 165, 116, 0.4); }
  70% { box-shadow: 0 0 0 16px rgba(212, 165, 116, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 165, 116, 0); }
}

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

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

body {
  font-family: var(--font-body);
  color: var(--text-charcoal);
  background: var(--bg-cream);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpolygon points='60,5 65,55 115,60 65,65 60,115 55,65 5,60 55,55' fill='none' stroke='%23C9A96E' stroke-width='0.4'/%3E%3Ccircle cx='60' cy='60' r='14' fill='none' stroke='%23D4A574' stroke-width='0.3'/%3E%3Ccircle cx='60' cy='60' r='2' fill='%23C9A96E' opacity='0.4'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 120px 120px;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

.gold-text {
  background: var(--gold-shimmer);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmer 4s linear infinite;
}

.ornament-line {
  display: block;
  width: 80px;
  height: 1.5px;
  background: var(--accent-gold);
  margin: 1.5rem auto;
  position: relative;
}

.ornament-line::before,
.ornament-line::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--accent-gold);
  border-radius: 50%;
  transform: translateY(-50%);
}

.ornament-line::before { left: -3px; }
.ornament-line::after { right: -3px; }

.ornament-line.large {
  width: 120px;
  height: 2px;
}

.ornament-line.large::before,
.ornament-line.large::after {
  width: 8px;
  height: 8px;
}

.btn-gold {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  background: var(--gradient-gold);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(212, 165, 116, 0.25);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(212, 165, 116, 0.35);
}

.btn-gold:active {
  transform: translateY(0);
}

.btn-outline-gold {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 50px;
  background: transparent;
  color: var(--accent-gold-dark);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1px;
  border: 1.5px solid var(--accent-gold);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-outline-gold:hover {
  background: var(--accent-gold);
  color: #fff;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--text-brown);
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-subtitle {
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: var(--text-muted);
  text-align: center;
  font-weight: 300;
  margin-bottom: 2rem;
}

.section-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

#welcome {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.6s ease;
  will-change: transform, opacity;
}

#welcome::before {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(212, 165, 116, 0.2);
  border-radius: 4px;
  pointer-events: none;
}

#welcome.hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.welcome-content {
  text-align: center;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.welcome-content .bismillah {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--accent-gold-dark);
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  opacity: 0.85;
}

.welcome-content .subtitle {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.welcome-content .names {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 8vw, 4rem);
  color: var(--text-brown);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.welcome-content .ampersand {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  color: var(--accent-gold-dark);
  font-style: italic;
  display: inline-block;
  margin: 0 0.5rem;
  vertical-align: middle;
}

.welcome-content .date {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-muted);
  letter-spacing: 3px;
  margin-bottom: 2.5rem;
}

.welcome-content .btn-buka {
  position: relative;
  padding: 16px 48px;
  border-radius: 50px;
  background: var(--gradient-gold);
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 2px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(212, 165, 116, 0.3);
  animation: pulse-ring 2s ease-in-out infinite;
  transition: all 0.3s ease;
}

.welcome-content .btn-buka:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(212, 165, 116, 0.4);
}

.welcome-footer {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  text-align: center;
}

.welcome-footer .ornament {
  font-size: 0.7rem;
  color: var(--accent-gold);
  letter-spacing: 6px;
  opacity: 0.5;
}

#hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 85% 60% at 50% 0%, #F7D794 0%, transparent 65%),
    radial-gradient(ellipse 65% 45% at 25% 20%, #F7B267 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 75% 25%, #F4845F 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 15%, #C3A6D8 0%, transparent 45%),
    radial-gradient(ellipse 100% 80% at 50% 100%, #FDEBD3 0%, #FFF8F0 70%);
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 30% 60%, rgba(244, 132, 95, 0.08) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1.5rem;
  animation: fadeInScale 1.2s ease forwards;
}

.hero-content .bismillah {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--accent-gold-dark);
  letter-spacing: 2px;
  margin-bottom: 1.2rem;
  opacity: 0.8;
}

.hero-content .subtitle {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.hero-content .names {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 10vw, 5rem);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.hero-content .ampersand {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 4.5rem);
  color: var(--accent-gold-dark);
  font-style: italic;
  vertical-align: middle;
  animation: shimmer 4s linear infinite;
  background: var(--gold-shimmer);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content .date {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 3vw, 1.3rem);
  color: var(--text-muted);
  letter-spacing: 4px;
  margin-top: 1rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 1;
  animation: bounce 2s ease infinite;
}

.scroll-indicator span {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.scroll-indicator .arrow {
  width: 1px;
  height: 30px;
  background: var(--accent-gold);
  margin: 0 auto;
  position: relative;
}

.scroll-indicator .arrow::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--accent-gold);
}

#quotes {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 4rem 1.5rem;
  background: var(--gradient-warm);
}

.quotes-content {
  max-width: 640px;
  text-align: center;
}

.quotes-content .arabic {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3.5vw, 1.8rem);
  line-height: 2;
  color: var(--text-brown);
  margin-bottom: 1.5rem;
  direction: rtl;
}

.quotes-content .translation {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.8;
  font-weight: 300;
}

#couple {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 4rem 1.5rem;
  background: var(--bg-cream);
}

.couple-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
  max-width: 800px;
}

.couple-card {
  flex: 1;
  max-width: 320px;
  text-align: center;
}

.photo-frame {
  width: 200px;
  height: 260px;
  margin: 0 auto 1.5rem;
  border-radius: 100px 100px 16px 16px;
  overflow: hidden;
  border: 2.5px solid var(--accent-gold);
  position: relative;
  background: var(--gradient-warm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-frame .initials {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  color: var(--accent-gold-dark);
  opacity: 0.6;
}

.photo-frame .photo-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.couple-card .name {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  color: var(--text-brown);
  margin-bottom: 0.3rem;
}

.couple-card .title {
  font-size: 0.75rem;
  color: var(--accent-gold-dark);
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.couple-card .relation {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
}

.couple-ampersand {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--accent-gold-dark);
  font-style: italic;
  flex-shrink: 0;
  padding: 0 0.5rem;
  position: relative;
}

.couple-ampersand::before,
.couple-ampersand::after {
  content: '✦';
  position: absolute;
  font-size: 0.4rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--accent-gold);
  opacity: 0.5;
}

.couple-ampersand::before { top: -1rem; }
.couple-ampersand::after { bottom: -1rem; }

#gallery {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 4rem 1.5rem;
  background: var(--gradient-warm);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: 720px;
  margin-top: 1.5rem;
}

.gallery-item {
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(212, 165, 116, 0.25);
  box-shadow: 0 4px 16px rgba(74, 55, 40, 0.05);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
  aspect-ratio: 3 / 4;
  cursor: pointer;
}

.gallery-item:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 32px rgba(74, 55, 40, 0.12);
}

.gallery-photo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.gallery-frame {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
}

.gallery-dot-grid {
  width: 40px;
  height: 40px;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.25) 1.5px, transparent 1.5px);
  background-size: 10px 10px;
  opacity: 0.5;
}

.gallery-icon {
  font-size: 1.6rem;
  color: rgba(255,255,255,0.3);
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 480px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    max-width: 340px;
  }
}

@media (max-width: 380px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    max-width: 280px;
  }
}

.event-section {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 4rem 1.5rem;
  text-align: center;
}

#akad { background: var(--gradient-warm); }
#resepsi { background: var(--bg-cream); }

.event-section .crescent {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
  color: var(--accent-gold-dark);
  font-size: 1.2rem;
}

.event-section .crescent::before,
.event-section .crescent::after {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--accent-gold);
  opacity: 0.5;
}

.event-section .crescent-icon {
  display: inline-block;
  width: 20px;
  height: 14px;
  border-radius: 0 50% 50% 0;
  border: 2px solid var(--accent-gold-dark);
  border-left: none;
  transform: rotate(-10deg);
  position: relative;
}

.event-section .crescent-icon::after {
  content: '★';
  position: absolute;
  right: -8px;
  top: -6px;
  font-size: 0.5rem;
  color: var(--accent-gold);
}

.event-section .event-date {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  color: var(--text-brown);
  margin-bottom: 0.3rem;
}

.event-section .event-time {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
  font-weight: 300;
}

.event-section .event-venue {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-brown);
  margin-bottom: 2rem;
  font-weight: 400;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.countdown {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.countdown-item {
  background: var(--bg-cream);
  border: 1px solid rgba(212, 165, 116, 0.3);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  min-width: 70px;
  text-align: center;
}

.countdown-item .number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--text-brown);
  line-height: 1.2;
}

.countdown-item .label {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.2rem;
}

.event-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

#gift {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 4rem 1.5rem;
  background: var(--gradient-warm);
}

.gift-grid {
  display: flex;
  gap: 1.5rem;
  width: 100%;
  max-width: 700px;
  margin-top: 1.5rem;
}

.gift-card {
  flex: 1;
  background: var(--bg-cream);
  border: 1px solid rgba(212, 165, 116, 0.2);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(74, 55, 40, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gift-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(74, 55, 40, 0.08);
}

.gift-card .gift-icon {
  font-size: 2rem;
  color: var(--accent-gold-dark);
  margin-bottom: 1rem;
  opacity: 0.7;
}

.gift-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--text-brown);
  margin-bottom: 1rem;
}

.gift-card .bank-name {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.gift-card .account-number {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text-brown);
  letter-spacing: 3px;
  margin-bottom: 0.3rem;
}

.gift-card .account-name {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.gift-card .address {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-weight: 300;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 10px 24px;
  border-radius: 50px;
  border: 1.5px solid var(--accent-gold);
  background: transparent;
  color: var(--accent-gold-dark);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.copy-btn:hover {
  background: var(--accent-gold);
  color: #fff;
}

.copy-btn.copied {
  background: #4CAF50;
  border-color: #4CAF50;
  color: #fff;
}

.copy-btn .check-icon {
  display: none;
}

.copy-btn.copied .check-icon {
  display: inline-block;
}

.copy-btn.copied .copy-icon {
  display: none;
}

#rsvp {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 4rem 1.5rem;
  background: var(--bg-cream);
}

.rsvp-form {
  width: 100%;
  max-width: 500px;
  margin-bottom: 2.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid rgba(212, 165, 116, 0.25);
  border-radius: 12px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-charcoal);
  transition: border-color 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-gold);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23D4A574' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.rsvp-form .submit-btn {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: var(--gradient-gold);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(212, 165, 116, 0.25);
}

.rsvp-form .submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(212, 165, 116, 0.35);
}

.wishes-wall {
  width: 100%;
  max-width: 500px;
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.25rem;
}

.wishes-wall::-webkit-scrollbar {
  width: 4px;
}

.wishes-wall::-webkit-scrollbar-track {
  background: transparent;
}

.wishes-wall::-webkit-scrollbar-thumb {
  background: var(--accent-gold);
  border-radius: 2px;
}

.wish-card {
  background: #fff;
  border: 1px solid rgba(212, 165, 116, 0.15);
  border-left: 3px solid var(--accent-gold);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  animation: fadeInUp 0.4s ease forwards;
}

.wish-card .wish-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-brown);
  margin-bottom: 0.25rem;
}

.wish-card .wish-attendance {
  font-size: 0.7rem;
  color: var(--accent-gold-dark);
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.wish-card .wish-message {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
}

#closing {
  min-height: 60dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 4rem 1.5rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-cream) 0%, #FDEBD3 40%, #F7D794 100%);
  position: relative;
}

.closing-content {
  max-width: 500px;
}

.closing-content .thanks {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  font-style: italic;
  font-weight: 300;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.closing-content .names {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--text-brown);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.closing-content .closing-ampersand {
  color: var(--accent-gold-dark);
  font-style: italic;
}

.closing-content .closing-date {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text-muted);
  letter-spacing: 2px;
}

.footer-border {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='24' viewBox='0 0 80 24'%3E%3Cpath d='M0 12 Q10 0 20 12 Q30 24 40 12 Q50 0 60 12 Q70 24 80 12' fill='none' stroke='%23C9A96E' stroke-width='0.6' opacity='0.3'/%3E%3Cpolygon points='40,8 43,14 49,14 44,18 46,24 40,20 34,24 36,18 31,14 37,14' fill='%23C9A96E' opacity='0.15'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 80px 24px;
  opacity: 0.6;
}

.audio-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient-gold);
  border: 2px solid rgba(255,255,255,0.6);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(212, 165, 116, 0.3);
  transition: transform 0.3s ease;
  backdrop-filter: blur(4px);
}

.audio-btn:hover {
  transform: scale(1.05);
}

.audio-btn.playing {
  animation: pulse-ring 2s ease-in-out infinite;
}

@media (max-width: 768px) {
  .couple-grid {
    flex-direction: column;
    gap: 2rem;
  }

  .couple-ampersand {
    padding: 0.5rem 0;
  }

  .couple-ampersand::before { top: 0; }
  .couple-ampersand::after { bottom: 0; }

  .photo-frame {
    width: 170px;
    height: 220px;
  }

  .gift-grid {
    flex-direction: column;
  }

  .countdown-item {
    min-width: 60px;
    padding: 0.6rem 0.8rem;
  }

  .countdown-item .number {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  #welcome::before {
    inset: 10px;
  }

  .welcome-content {
    padding: 1.5rem;
  }

  .photo-frame {
    width: 150px;
    height: 200px;
  }

  .photo-frame .initials {
    font-size: 2.5rem;
  }

  .countdown {
    gap: 0.6rem;
  }

  .countdown-item {
    min-width: 55px;
    padding: 0.5rem 0.6rem;
  }

  .gift-card {
    padding: 1.5rem 1rem;
  }

  .audio-btn {
    bottom: 16px;
    right: 16px;
    width: 46px;
    height: 46px;
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .gold-text,
  .hero-content .ampersand {
    -webkit-text-fill-color: var(--accent-gold-dark);
    color: var(--accent-gold-dark);
    background: none;
    animation: none;
  }
}
