:root {
  --primary: #B76E79;
  --secondary: #D4A5A5;
  --accent: #F9E8E8;
  --dark: #4A3B3B;
  --light: #FFF9F9;
  --gray: #8A7A7A;
  --gold: #C98B96;
  --gold-light: #E8C4C8;
  --gold-dim: rgba(183, 110, 121, 0.35);
  --navy: #B76E79;
  --navy-deep: #3D2A2E;
  --ivory: #FFF9F9;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--light);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
}

/* ===== COVER ===== */
#cover {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #4A3B3B 0%, #B76E79 50%, #243B6B 100%);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s ease, visibility 0.8s;
}

#cover.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.cover-content {
  text-align: center;
  color: white;
  padding: 20px;
}

.cover-label {
  font-size: 1rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 15px;
}

.cover-names {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 10px;
}

.cover-date {
  font-size: 1.1rem;
  letter-spacing: 2px;
  opacity: 0.9;
  margin-bottom: 40px;
}

.btn-open {
  padding: 14px 40px;
  background: var(--secondary);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 1px;
}

.btn-open:hover {
  background: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ===== MAIN ===== */
#main.hidden {
  display: none;
}

/* ===== HERO ===== */
.hero {
  height: 100vh;
  min-height: 600px;
  background: linear-gradient(rgba(61, 42, 46, 0.7), rgba(183, 110, 121, 0.75)),
              url('https://images.unsplash.com/photo-1519741497674-611481863552?w=1600') center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
}

.hero-overlay {
  padding: 20px;
}

.hero-label {
  font-size: 0.95rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 12px;
}

.hero-names {
  font-size: clamp(2.8rem, 9vw, 5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
}

.hero-names span {
  font-weight: 400;
  font-size: 0.7em;
  display: block;
  margin: 5px 0;
}

.hero-date {
  font-size: 1.15rem;
  letter-spacing: 2px;
  margin-bottom: 40px;
  opacity: 0.95;
}

/* Countdown */
.countdown {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.count-item {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  padding: 15px 18px;
  border-radius: 12px;
  min-width: 75px;
}

.count-item span {
  display: block;
  font-size: 1.8rem;
  font-weight: 600;
  font-family: 'Playfair Display', serif;
}

.count-item small {
  font-size: 0.75rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== SECTIONS ===== */
.section {
  padding: 80px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.bg-light {
  background: #F9E8E8;
}

.section-title {
  text-align: center;
  font-size: 2.1rem;
  color: var(--primary);
  margin-bottom: 15px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--secondary);
  margin: 12px auto 0;
  border-radius: 2px;
}

.section-desc {
  text-align: center;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 0.95rem;
}

/* ===== COUPLE ===== */
.couple {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.person {
  text-align: center;
  flex: 1;
  min-width: 200px;
  max-width: 280px;
}

.avatar {
  width: 110px;
  height: 110px;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5rem;
  font-weight: 600;
  margin: 0 auto 20px;
  box-shadow: 0 8px 25px rgba(183, 110, 121, 0.3);
}

.person h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.ortu {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.5;
}

.ampersand {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--secondary);
  font-weight: 400;
}

/* ===== EVENTS ===== */
.events {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.event-card {
  background: white;
  padding: 35px 25px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
  transition: transform 0.3s;
}

.event-card:hover {
  transform: translateY(-5px);
}

.event-icon {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.event-card h3 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.event-time {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.event-place {
  font-weight: 500;
  margin-bottom: 5px;
}

.event-address {
  font-size: 0.9rem;
  color: var(--gray);
}

.maps-btn {
  text-align: center;
  margin-top: 35px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 13px 28px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
}

.btn:hover {
  background: #4A3B3B;
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
  padding: 15px;
  border-radius: 12px;
  font-size: 1rem;
}

/* ===== RSVP FORM ===== */
.rsvp-form {
  max-width: 500px;
  margin: 0 auto;
  background: white;
  padding: 35px 30px;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.07);
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #E8D0D4;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: #FFF5F5;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
}

.radio-group {
  display: flex;
  gap: 25px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 400;
}

.message {
  max-width: 500px;
  margin: 25px auto 0;
  padding: 15px 20px;
  border-radius: 10px;
  text-align: center;
  font-weight: 500;
}

.message.success {
  background: #d4edda;
  color: #155724;
}

.message.error {
  background: #f8d7da;
  color: #721c24;
}

.message.hidden {
  display: none;
}

/* ===== REKENING ===== */
.rekening-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.rekening-card {
  background: white;
  padding: 25px 20px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.bank-name {
  font-weight: 600;
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.nomor {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 6px;
  cursor: pointer;
}

.atas-nama {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 15px;
}

.btn-copy {
  padding: 8px 18px;
  background: var(--accent);
  color: var(--dark);
  border: none;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-copy:hover {
  background: var(--secondary);
  color: white;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: white;
  text-align: center;
  padding: 50px 20px;
}

.footer p {
  max-width: 550px;
  margin: 0 auto 15px;
  font-size: 0.95rem;
  opacity: 0.9;
}

.footer .thanks {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin-top: 25px;
  opacity: 1;
}

.footer .couple-names {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 600;
  margin-top: 5px;
  opacity: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .section {
    padding: 60px 16px;
  }

  .couple {
    gap: 15px;
  }

  .ampersand {
    font-size: 1.8rem;
  }

  .rsvp-form {
    padding: 25px 18px;
  }

  .count-item {
    min-width: 65px;
    padding: 12px 10px;
  }

  .count-item span {
    font-size: 1.5rem;
  }
}

/* ===== FOTO MEMPELAI ===== */
.avatar-img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: block;
  border: 4px solid var(--secondary);
  box-shadow: 0 8px 25px rgba(183, 110, 121, 0.25);
}

/* ===== MUSIC BUTTON ===== */
.music-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-btn:hover {
  transform: scale(1.08);
  background: var(--secondary);
  color: var(--dark);
}

.music-btn.playing {
  animation: pulse-music 2s infinite;
}

@keyframes pulse-music {
  0%, 100% { box-shadow: 0 6px 20px rgba(0,0,0,0.25); }
  50% { box-shadow: 0 6px 25px rgba(183, 110, 121, 0.5); }
}

@media (max-width: 600px) {
  .avatar-img {
    width: 110px;
    height: 110px;
  }
  .music-btn {
    bottom: 16px;
    right: 16px;
    width: 46px;
    height: 46px;
    font-size: 1.2rem;
  }
}

/* ========================================
   ANIMATIONS
   ======================================== */

/* Cover entrance */
.cover-anim {
  opacity: 0;
  transform: translateY(24px);
  animation: coverIn 0.9s ease forwards;
}
.cover-anim.delay-1 { animation-delay: 0.2s; }
.cover-anim.delay-2 { animation-delay: 0.4s; }
.cover-anim.delay-3 { animation-delay: 0.55s; }
.cover-anim.delay-4 { animation-delay: 0.75s; }

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

.cover-divider {
  margin: 18px auto;
  color: var(--secondary);
  font-size: 1.1rem;
  letter-spacing: 8px;
  opacity: 0.9;
}

/* Cover ornaments */
.cover-ornament {
  position: absolute;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(183, 110, 121, 0.35);
  pointer-events: none;
}
.cover-ornament-tl {
  top: 30px;
  left: 30px;
  border-right: none;
  border-bottom: none;
  animation: ornamentPulse 3s ease-in-out infinite;
}
.cover-ornament-br {
  bottom: 30px;
  right: 30px;
  border-left: none;
  border-top: none;
  animation: ornamentPulse 3s ease-in-out infinite 1.5s;
}

@keyframes ornamentPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.9; }
}

/* Cover closing */
#cover.closing {
  animation: coverOut 0.7s ease forwards;
}
#cover.closing .cover-content {
  animation: coverContentOut 0.55s ease forwards;
}

@keyframes coverOut {
  to { opacity: 0; visibility: hidden; }
}
@keyframes coverContentOut {
  to { opacity: 0; transform: scale(0.92) translateY(-20px); }
}

/* Button pulse on cover */
.btn-open {
  animation: coverIn 0.9s ease forwards, btnPulse 2.5s ease-in-out 1.2s infinite;
}
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(183, 110, 121, 0.45); }
  50% { box-shadow: 0 0 0 14px rgba(183, 110, 121, 0); }
}

/* Hero text animations */
.anim-fade-up,
.anim-fade-down {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.anim-fade-up { transform: translateY(30px); }
.anim-fade-down { transform: translateY(-20px); }
.anim-fade-up.visible,
.anim-fade-down.visible {
  opacity: 1;
  transform: translateY(0);
}
.anim-fade-up.delay-1 { transition-delay: 0.15s; }
.anim-fade-up.delay-2 { transition-delay: 0.3s; }
.anim-fade-up.delay-3 { transition-delay: 0.45s; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-item {
  opacity: 0.15;
  transform: translateY(20px) scale(0.98);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-item.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
body.invitation-open .person.reveal-item {
  /* pastikan foto tidak "hilang total" sebelum animasi */
  min-height: 1px;
}
.reveal-item.delay-1 { transition-delay: 0.15s; }
.reveal-item.delay-2 { transition-delay: 0.3s; }

/* When parent reveal becomes visible, children still need own visible - IO handles both */

/* Section title underline grow */
.section-title::after {
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.6s ease 0.3s;
}
.reveal.visible .section-title::after {
  transform: scaleX(1);
}

/* Countdown items soft float */
.count-item {
  transition: transform 0.3s ease;
  animation: countFloat 3s ease-in-out infinite;
}
.count-item:nth-child(2) { animation-delay: 0.4s; }
.count-item:nth-child(3) { animation-delay: 0.8s; }
.count-item:nth-child(4) { animation-delay: 1.2s; }

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

/* Avatar / photo gentle zoom on reveal */
.person.reveal-item.visible .avatar,
.person.reveal-item.visible .avatar-img {
  animation: photoIn 0.8s ease forwards;
}
@keyframes photoIn {
  from { transform: scale(0.85); opacity: 0.5; }
  to { transform: scale(1); opacity: 1; }
}

/* Event cards hover lift already exists - enhance */
.event-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.event-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 35px rgba(183, 110, 121, 0.12);
}

/* Rekening cards */
.rekening-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.rekening-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}

/* Ampersand soft glow */
.ampersand {
  animation: ampGlow 2.5s ease-in-out infinite;
}
@keyframes ampGlow {
  0%, 100% { opacity: 0.85; text-shadow: none; }
  50% { opacity: 1; text-shadow: 0 0 12px rgba(183, 110, 121, 0.5); }
}

/* Smooth page */
html {
  scroll-behavior: smooth;
}

/* Main fade in */
#main:not(.hidden) {
  animation: mainIn 0.5s ease;
}
@keyframes mainIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Music btn entrance */
.music-btn {
  animation: musicIn 0.6s ease 1s both;
}
@keyframes musicIn {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

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

/* ===== KARTU TAMU / GUESTBOOK ===== */
.guestbook-list {
  max-width: 600px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.guestbook-card {
  background: white;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border-left: 4px solid var(--secondary);
  animation: gbIn 0.5s ease;
}

.guestbook-card.gb-new {
  animation: gbIn 0.55s ease, gbHighlight 1.5s ease;
}

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

@keyframes gbHighlight {
  0% { background: #FFF8E7; }
  100% { background: white; }
}

.gb-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.gb-header strong {
  color: var(--primary);
  font-size: 1rem;
}

.gb-time {
  font-size: 0.78rem;
  color: #999;
}

.gb-ucapan {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.55;
  margin: 0;
}

/* ========================================
   KARTU UNDANGAN DIGITAL — CARD THEME
   ======================================== */

body {
  background: #3D2A2E;
}

/* Cover as envelope / card face */
#cover {
  background: linear-gradient(145deg, #3D2A2E 0%, #5C3A42 40%, #B76E79 100%);
  padding: 24px;
}

.cover-card {
  position: relative;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  background: linear-gradient(160deg, #B76E79 0%, #4A3B3B 100%);
  border: 1px solid rgba(183, 110, 121, 0.45);
  border-radius: 8px;
  padding: 48px 28px 40px;
  box-shadow:
    0 0 0 6px rgba(61, 42, 46, 0.5),
    0 0 0 7px rgba(183, 110, 121, 0.25),
    0 25px 60px rgba(0, 0, 0, 0.45);
}

.cover-badge {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--secondary);
  border: 1px solid rgba(183, 110, 121, 0.5);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 22px;
}

.cover-and {
  display: block;
  font-weight: 400;
  font-size: 0.55em;
  color: var(--secondary);
  margin: 4px 0;
}

.cover-invite {
  font-size: 0.9rem;
  opacity: 0.85;
  margin: 18px 0 28px;
  line-height: 1.6;
  font-weight: 300;
}

.cover-ornament-tl {
  top: 14px;
  left: 14px;
  width: 40px;
  height: 40px;
}
.cover-ornament-br {
  bottom: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
}

/* Invitation paper shell */
.invitation-shell {
  max-width: 720px;
  margin: 0 auto;
  background: var(--light);
  box-shadow: 0 0 0 1px rgba(183, 110, 121, 0.15), 0 20px 50px rgba(0,0,0,0.35);
  position: relative;
  overflow: hidden;
}

.invitation-shell::before,
.invitation-shell::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(183, 110, 121, 0.5), transparent);
  z-index: 2;
  pointer-events: none;
}
.invitation-shell::before { top: 12px; }
.invitation-shell::after { bottom: 12px; }

/* Hero more card-like, shorter */
.hero {
  height: auto;
  min-height: 70vh;
  padding: 60px 20px 50px;
}

.hero-label {
  letter-spacing: 4px;
  font-size: 0.8rem;
}

/* Sections inside card */
.invitation-shell .section {
  padding: 60px 28px;
}

.invitation-shell .bg-light {
  background: #F9E8E8;
}

/* Footer inside card */
.invitation-shell .footer {
  margin: 0;
}

/* Double-line decorative under titles inside card */
.invitation-shell .section-title::after {
  width: 48px;
}

/* Mobile: full width card */
@media (max-width: 760px) {
  #cover {
    padding: 12px;
  }
  .cover-card {
    padding: 36px 20px 32px;
    border-radius: 6px;
  }
  .invitation-shell {
    max-width: 100%;
    box-shadow: none;
  }
  .invitation-shell .section {
    padding: 50px 18px;
  }
}

/* Desktop: slight side margin for card feel */
@media (min-width: 761px) {
  #main:not(.hidden) {
    padding: 40px 20px 60px;
    background: #3D2A2E;
    min-height: 100vh;
  }
  .invitation-shell {
    border-radius: 4px;
  }
}

/* ========================================
   LUXURY ELEGANT THEME
   ======================================== */

:root {
  --primary: #B76E79;
  --secondary: #D4A5A5;
  --accent: #F9E8E8;
  --dark: #4A3B3B;
  --light: #FFF9F9;
  --gray: #8A7A7A;
  --gold: #C98B96;
  --gold-light: #E8C4C8;
  --gold-dim: rgba(183, 110, 121, 0.35);
  --navy: #B76E79;
  --navy-deep: #3D2A2E;
  --ivory: #FFF9F9;
  --paper: #FFF9F9;
}

/* Body atmosphere */
body {
  background: var(--navy-deep);
  background-image:
    radial-gradient(ellipse at 20% 20%, rgba(183, 110, 121, 0.9) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(183, 110, 121, 0.06) 0%, transparent 45%);
}

/* ----- COVER LUXURY ----- */
#cover {
  background:
    radial-gradient(ellipse at center, #5C3A42 0%, #3D2A2E 70%);
  padding: 28px 16px;
}

.cover-card {
  max-width: 440px;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.cover-frame {
  position: relative;
  background: linear-gradient(165deg, #6B454E 0%, #4A3B3B 45%, #5C3A42 100%);
  border: 1px solid var(--gold-dim);
  border-radius: 4px;
  padding: 52px 32px 44px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.3),
    0 0 0 8px rgba(61, 42, 46, 0.6),
    0 0 0 9px var(--gold-dim),
    0 30px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

/* Corner ornaments — all 4 */
.cover-ornament {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: var(--gold);
  opacity: 0.7;
  animation: none;
}
.cover-ornament-tl {
  top: 12px; left: 12px;
  border-top: 1.5px solid var(--gold);
  border-left: 1.5px solid var(--gold);
  border-right: none; border-bottom: none;
}
.cover-ornament-tr {
  top: 12px; right: 12px;
  border-top: 1.5px solid var(--gold);
  border-right: 1.5px solid var(--gold);
  border-left: none; border-bottom: none;
  width: 28px; height: 28px;
  position: absolute;
}
.cover-ornament-bl {
  bottom: 12px; left: 12px;
  border-bottom: 1.5px solid var(--gold);
  border-left: 1.5px solid var(--gold);
  border-top: none; border-right: none;
  width: 28px; height: 28px;
  position: absolute;
}
.cover-ornament-br {
  bottom: 12px; right: 12px;
  border-bottom: 1.5px solid var(--gold);
  border-right: 1.5px solid var(--gold);
  border-top: none; border-left: none;
}

.cover-badge {
  font-size: 0.65rem;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid var(--gold-dim);
  padding: 7px 16px;
  border-radius: 0;
  background: rgba(183, 110, 121, 0.08);
  margin-bottom: 20px;
}

.cover-line {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 18px;
}

.cover-label {
  font-size: 0.85rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  margin-bottom: 12px;
}

.cover-names {
  font-size: clamp(2.2rem, 7vw, 3.2rem);
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 1.25;
  background: linear-gradient(180deg, #fff 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cover-and {
  display: block;
  font-size: 0.5em;
  color: var(--gold);
  -webkit-text-fill-color: var(--gold);
  margin: 6px 0;
  font-weight: 400;
}

.cover-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 20px auto;
  color: var(--gold);
}

.cover-divider .div-line {
  display: block;
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.cover-divider .div-diamond {
  font-size: 0.55rem;
  color: var(--gold);
  opacity: 0.9;
}

.cover-date {
  font-size: 0.95rem;
  letter-spacing: 2.5px;
  color: rgba(255,255,255,0.9);
  font-weight: 300;
}

.cover-invite {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  margin: 22px 0 30px;
  font-weight: 300;
  letter-spacing: 0.3px;
}

.btn-open {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  border-radius: 0;
  padding: 14px 36px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
  animation: coverIn 0.9s ease forwards, none;
  box-shadow: none;
}

.btn-open:hover {
  background: var(--gold);
  color: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(183, 110, 121, 0.3);
}

/* ----- INVITATION PAPER ----- */
.invitation-shell {
  max-width: 680px;
  background: linear-gradient(180deg, #FFF9F9 0%, #F8F5ED 100%);
  box-shadow:
    0 0 0 1px rgba(183, 110, 121, 0.2),
    0 0 0 10px rgba(61, 42, 46, 0.4),
    0 0 0 11px rgba(183, 110, 121, 0.15),
    0 40px 100px rgba(0, 0, 0, 0.5);
  border-radius: 2px;
}

.invitation-shell::before,
.invitation-shell::after {
  left: 16px;
  right: 16px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-dim) 20%, var(--gold) 50%, var(--gold-dim) 80%, transparent 100%);
  height: 1px;
  opacity: 0.7;
}
.invitation-shell::before { top: 14px; }
.invitation-shell::after { bottom: 14px; }

/* ----- HERO ----- */
.hero {
  min-height: 65vh;
  background:
    linear-gradient(rgba(61, 42, 46, 0.72), rgba(61, 42, 46, 0.82)),
    url('https://images.unsplash.com/photo-1519741497674-611481863552?w=1600') center/cover no-repeat;
  padding: 70px 24px 55px;
}

.hero-ornament {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 14px auto 20px;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-ornament.visible,
.anim-fade-up.visible.hero-ornament {
  opacity: 1;
}

.hero-label {
  letter-spacing: 5px;
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--gold-light);
}

.hero-names {
  font-weight: 600;
  letter-spacing: 1px;
}

.hero-names span {
  color: var(--gold-light);
  font-weight: 400;
}

.hero-date {
  letter-spacing: 3px;
  font-weight: 300;
  font-size: 1rem;
  opacity: 0.9;
}

.count-item {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(183, 110, 121, 0.25);
  border-radius: 4px;
  backdrop-filter: blur(12px);
  min-width: 72px;
}

.count-item span {
  color: var(--gold-light);
  font-weight: 600;
}

/* ----- SECTIONS ----- */
.invitation-shell .section {
  padding: 64px 32px;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--navy);
}

.section-title::after {
  width: 36px;
  height: 1.5px;
  background: var(--gold);
  margin-top: 14px;
}

.section-desc {
  color: #8A7A7A;
  font-weight: 300;
  font-size: 0.92rem;
  max-width: 480px;
}

.invitation-shell .bg-light {
  background: linear-gradient(180deg, #FFF0F0 0%, #F9E8E8 100%);
}

/* Couple */
.avatar, .avatar-img {
  border: 3px solid var(--gold);
  box-shadow:
    0 0 0 6px rgba(183, 110, 121, 0.12),
    0 12px 30px rgba(183, 110, 121, 0.18);
}

.avatar {
  background: linear-gradient(145deg, var(--navy) 0%, #2A3F66 100%);
}

.person h3 {
  font-size: 1.35rem;
  letter-spacing: 0.5px;
  color: var(--navy);
}

.ortu {
  font-size: 0.85rem;
  color: #8A7A7A;
  font-weight: 300;
}

.ampersand {
  color: var(--gold);
  font-size: 2.2rem;
}

/* Event cards */
.event-card {
  background: #FFF9F9;
  border: 1px solid rgba(183, 110, 121, 0.2);
  border-radius: 4px;
  box-shadow: 0 8px 28px rgba(183, 110, 121, 0.06);
  padding: 36px 24px;
}

.event-card h3 {
  letter-spacing: 1px;
  font-size: 1.25rem;
}

.event-time {
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  border-radius: 0;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.78rem;
  padding: 14px 28px;
  background: var(--navy);
  border: 1px solid var(--navy);
}

.btn:hover {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

/* Form */
.rsvp-form {
  border-radius: 4px;
  border: 1px solid rgba(183, 110, 121, 0.2);
  box-shadow: 0 10px 40px rgba(183, 110, 121, 0.06);
  background: #FFF9F9;
}

.form-group input,
.form-group select,
.form-group textarea {
  border-radius: 2px;
  border: 1px solid #E8D0D4;
  background: #FFF5F5;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(183, 110, 121, 0.12);
}

.btn-full {
  border-radius: 2px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.8rem;
}

/* Guestbook */
.guestbook-card {
  border-radius: 4px;
  border-left: 3px solid var(--gold);
  background: #FFF9F9;
  box-shadow: 0 4px 16px rgba(183, 110, 121, 0.05);
}

.gb-header strong {
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.3px;
}

/* Rekening */
.rekening-card {
  border-radius: 4px;
  border: 1px solid rgba(183, 110, 121, 0.2);
  background: #FFF9F9;
}

.bank-name {
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--navy);
}

.nomor {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
}

.btn-copy {
  border-radius: 0;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--navy);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.72rem;
  padding: 8px 16px;
}

.btn-copy:hover {
  background: var(--gold);
  color: var(--navy-deep);
}

/* Footer */
.footer {
  background: linear-gradient(180deg, #4A3B3B 0%, #3D2A2E 100%);
  padding: 56px 28px;
  border-top: 1px solid var(--gold-dim);
}

.footer .thanks {
  color: var(--gold-light);
  letter-spacing: 2px;
  font-weight: 400;
}

.footer .couple-names {
  color: #fff;
  letter-spacing: 1px;
}

/* Music button luxury */
.music-btn {
  background: var(--navy);
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
  color: var(--gold-light);
}

.music-btn:hover {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}

.music-btn.playing {
  animation: pulse-music 2.5s infinite;
  border-color: var(--gold);
}

/* Desktop card margin */
@media (min-width: 761px) {
  #main:not(.hidden) {
    padding: 48px 20px 70px;
    background:
      radial-gradient(ellipse at 50% 0%, rgba(183, 110, 121, 0.5) 0%, transparent 50%),
      var(--navy-deep);
  }
}

@media (max-width: 600px) {
  .cover-frame {
    padding: 40px 22px 36px;
  }
  .invitation-shell .section {
    padding: 48px 18px;
  }
  .btn-open {
    padding: 13px 28px;
    font-size: 0.72rem;
  }
}

/* Pastikan foto selalu terlihat jelas */
.avatar-img {
  opacity: 1 !important;
  background: #eee;
}

/* ========================================
   ROMANTIC BLUSH — final polish
   ======================================== */
body {
  background: #3D2A2E !important;
  background-image:
    radial-gradient(ellipse at 20% 10%, rgba(183, 110, 121, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 90%, rgba(212, 165, 165, 0.12) 0%, transparent 45%) !important;
}

#cover {
  background: radial-gradient(ellipse at center, #5C3A42 0%, #3D2A2E 70%) !important;
}

.cover-frame {
  background: linear-gradient(165deg, #6B454E 0%, #4A3B3B 50%, #5C3A42 100%) !important;
  border-color: rgba(232, 196, 200, 0.4) !important;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.2),
    0 0 0 8px rgba(61, 42, 46, 0.5),
    0 0 0 9px rgba(183, 110, 121, 0.35),
    0 30px 80px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255,255,255,0.06) !important;
}

.cover-names {
  background: linear-gradient(180deg, #FFF9F9 0%, #E8C4C8 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.cover-badge {
  color: #E8C4C8 !important;
  border-color: rgba(232, 196, 200, 0.45) !important;
  background: rgba(183, 110, 121, 0.15) !important;
}

.btn-open {
  border-color: #E8C4C8 !important;
  color: #E8C4C8 !important;
}
.btn-open:hover {
  background: #B76E79 !important;
  color: #FFF9F9 !important;
  border-color: #B76E79 !important;
}

.invitation-shell {
  background: linear-gradient(180deg, #FFFBFB 0%, #FFF5F5 100%) !important;
  box-shadow:
    0 0 0 1px rgba(183, 110, 121, 0.2),
    0 0 0 10px rgba(61, 42, 46, 0.35),
    0 0 0 11px rgba(183, 110, 121, 0.2),
    0 40px 100px rgba(0, 0, 0, 0.35) !important;
}

.hero {
  background:
    linear-gradient(rgba(61, 42, 46, 0.65), rgba(74, 59, 59, 0.75)),
    url('https://images.unsplash.com/photo-1519741497674-611481863552?w=1600') center/cover no-repeat !important;
}

.section-title { color: #B76E79 !important; }
.section-title::after { background: #D4A5A5 !important; }

.avatar {
  background: linear-gradient(145deg, #B76E79 0%, #D4A5A5 100%) !important;
}
.avatar, .avatar-img {
  border-color: #D4A5A5 !important;
  box-shadow: 0 0 0 6px rgba(183, 110, 121, 0.15), 0 12px 30px rgba(183, 110, 121, 0.2) !important;
}

.ampersand, .event-time, .bank-name { color: #B76E79 !important; }

.event-card, .rsvp-form, .guestbook-card, .rekening-card {
  border-color: rgba(183, 110, 121, 0.22) !important;
}

.guestbook-card { border-left-color: #B76E79 !important; }

.btn {
  background: #B76E79 !important;
  border-color: #B76E79 !important;
}
.btn:hover {
  background: transparent !important;
  color: #B76E79 !important;
}

.btn-copy {
  border-color: #D4A5A5 !important;
  color: #4A3B3B !important;
}
.btn-copy:hover {
  background: #B76E79 !important;
  color: #fff !important;
  border-color: #B76E79 !important;
}

.footer {
  background: linear-gradient(180deg, #4A3B3B 0%, #3D2A2E 100%) !important;
  border-top-color: rgba(183, 110, 121, 0.35) !important;
}
.footer .thanks { color: #E8C4C8 !important; }

.music-btn {
  background: #B76E79 !important;
  border-color: rgba(232, 196, 200, 0.4) !important;
  color: #FFF9F9 !important;
}
.music-btn:hover {
  background: #D4A5A5 !important;
  color: #4A3B3B !important;
}

.count-item {
  border-color: rgba(232, 196, 200, 0.35) !important;
}
.count-item span { color: #E8C4C8 !important; }

.invitation-shell .bg-light {
  background: linear-gradient(180deg, #FFF0F0 0%, #F9E8E8 100%) !important;
}

@media (min-width: 761px) {
  #main:not(.hidden) {
    background:
      radial-gradient(ellipse at 50% 0%, rgba(183, 110, 121, 0.2) 0%, transparent 50%),
      #3D2A2E !important;
  }
}
