:root {
  --primary: #f472b6;
  --primary-dark: #be185d;
  --primary-deep: #9d174d;
  --secondary: #fce7f3;
  --accent: #fed7aa;
  --text: #4a3843;
  --text-muted: #7c6374;
  --text-light: #a892a0;
  --bg: #fff5f7;
  --card-bg: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(circle, rgba(244, 114, 182, 0.14) 2px, transparent 2px),
    radial-gradient(circle, rgba(251, 191, 36, 0.12) 1.5px, transparent 1.5px);
  background-size: 38px 38px, 54px 54px;
  background-position: 0 0, 19px 19px;
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

.container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

/* =========================================
   LATAR BELAKANG BLUR ATAS (COVER HERO)
========================================= */
.top-cover-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 560px;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.9) 45%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.9) 45%, rgba(0, 0, 0, 0) 100%);
}

.top-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(28px) brightness(0.92);
  transform: scale(1.2);
  opacity: 0.5;
  transition: opacity 0.5s ease;
}

.top-cover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg,
      rgba(252, 231, 243, 0.2) 0%,
      rgba(255, 241, 242, 0.6) 45%,
      var(--bg) 100%);
}

/* Lebar utama dibuat seragam dan simetris (880px) */
.content-wrapper {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 25px 20px;
  position: relative;
  z-index: 1;
}

/* COVER SCREEN */
#cover-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #fce7f3 0%, #ffe4e6 50%, #fff1f2 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  text-align: center;
  padding: 24px;
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

#cover-screen.hide {
  transform: translateY(-100%);
}

.cover-subtitle {
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  color: var(--primary-deep);
  font-weight: 600;
}

.cover-title {
  font-family: 'Baloo 2', cursive;
  font-size: clamp(2.4rem, 7vw, 3.5rem);
  color: var(--primary-dark);
  margin: 6px 0 10px;
  line-height: 1.15;
  text-shadow: 0 2px 10px rgba(244, 114, 182, 0.28);
}

.cover-desc {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  color: var(--text-muted);
}

.cover-desc strong {
  color: var(--text);
  font-weight: 600;
}

.btn-open {
  margin-top: 25px;
  padding: 13px 34px;
  background: linear-gradient(135deg, #fb7185 0%, #f43f5e 50%, #db2777 100%);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(244, 63, 94, 0.38);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-open:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 26px rgba(244, 63, 94, 0.48);
}

/* HERO SECTION (MOBILE) */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 10px 10px;
  gap: 20px;
}

.photo-container {
  position: relative;
  display: inline-block;
}

.party-hat {
  position: absolute;
  top: -24px;
  right: -6px;
  z-index: 5;
  transform-origin: bottom center;
  animation: hatWiggle 3.5s ease-in-out infinite alternate;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.18));
}

@keyframes hatWiggle {
  0% {
    transform: rotate(14deg) scale(1);
  }

  50% {
    transform: rotate(22deg) scale(1.06);
  }

  100% {
    transform: rotate(12deg) scale(0.98);
  }
}

.photo-frame {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 7px solid white;
  box-shadow: 0 10px 25px rgba(244, 114, 182, 0.28);
  overflow: hidden;
  background: var(--secondary);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-text {
  max-width: 580px;
}

.header-sub {
  font-size: clamp(0.82rem, 2.2vw, 0.95rem);
  color: var(--primary-deep);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

.child-name {
  font-family: 'Baloo 2', cursive;
  font-size: clamp(2.4rem, 6.5vw, 3.8rem);
  color: var(--primary-dark);
  line-height: 1.15;
  margin: 8px 0;
  text-shadow: 0 2px 10px rgba(244, 114, 182, 0.22);
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88) 0%, rgba(254, 240, 138, 0.72) 32%, rgba(251, 191, 36, 0.55) 75%, rgba(245, 158, 11, 0.42) 100%);
  color: #92400e;
  border: 1px solid #f59e0b;
  font-weight: 700;
  padding: 6px 22px;
  border-radius: 30px;
  font-size: clamp(0.92rem, 2.4vw, 1.08rem);
  box-shadow: 
    0 4px 16px rgba(245, 158, 11, 0.28),
    inset 0 1px 1px #ffffff,
    inset 0 -1px 1px rgba(217, 119, 6, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  letter-spacing: 0.5px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: all 0.25s ease;
}

.age-badge:hover {
  transform: translateY(-2px) scale(1.02);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(254, 240, 138, 0.82) 32%, rgba(251, 191, 36, 0.65) 75%, rgba(245, 158, 11, 0.5) 100%);
  border-color: #d97706;
  box-shadow: 
    0 6px 22px rgba(245, 158, 11, 0.38),
    inset 0 1px 1px #ffffff,
    inset 0 -1px 1px rgba(217, 119, 6, 0.35);
}

.invitation-text {
  font-size: clamp(0.92rem, 2.4vw, 1.02rem);
  line-height: 1.65;
  margin-top: 14px;
  color: var(--text-muted);
}

/* STYLING KARTU UMUM (EFEK KACA TRANSPARAN BLUR & SOFT ELEGAN SHADOW) */
.card {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(255, 242, 246, 0.52) 50%,
    rgba(255, 248, 250, 0.65) 100%
  );
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  padding: 34px 24px 30px;
  border-radius: 24px;
  border: 1.5px solid rgba(255, 255, 255, 0.88);
  box-shadow:
    0 10px 26px rgba(244, 114, 182, 0.10),
    0 3px 10px rgba(74, 56, 67, 0.04),
    inset 0 1px 2px rgba(255, 255, 255, 0.95);
  text-align: center;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.card:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.82) 0%,
    rgba(255, 242, 246, 0.62) 50%,
    rgba(255, 248, 250, 0.75) 100%
  );
  box-shadow:
    0 14px 34px rgba(244, 114, 182, 0.16),
    0 4px 14px rgba(74, 56, 67, 0.06),
    inset 0 1px 2px #ffffff;
}

/* Pola Tekstur Ornamen Pesta Transparan di dalam Kartu */
.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(244, 114, 182, 0.15) 1.5px, transparent 1.5px),
    radial-gradient(circle, rgba(245, 158, 11, 0.13) 1.2px, transparent 1.2px);
  background-size: 26px 26px, 38px 38px;
  background-position: 0 0, 13px 13px;
  opacity: 0.15;
  z-index: 0;
}

.card>* {
  position: relative;
  z-index: 1;
}

/* Garis aksen pelangi pesta HUT di bagian atas setiap kartu */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #f472b6 0%, #fb7185 20%, #fcd34d 40%, #c084fc 60%, #38bdf8 80%, #f472b6 100%);
  border-radius: 24px 24px 0 0;
  z-index: 2;
}

/* Aksen Ornamen Sudut Kartu (Corner Ribbon / Sparkle) */
.card-corner-ribbon {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 1.1rem;
  opacity: 0.82;
  filter: drop-shadow(0 2px 6px rgba(244, 114, 182, 0.35));
  pointer-events: none;
  z-index: 2;
  animation: cornerFloat 3s ease-in-out infinite alternate;
}

@keyframes cornerFloat {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
  }

  100% {
    transform: translateY(-3px) rotate(8deg) scale(1.08);
  }
}

.card h3 {
  font-family: 'Baloo 2', cursive;
  font-size: clamp(1.4rem, 3.8vw, 1.75rem);
  color: var(--primary-deep);
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}

/* ORNAMEN BENDERA PESTA HUT (BUNTING GARLAND) */
.hut-bunting {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 7px;
  position: relative;
  z-index: 3;
  overflow: hidden;
  padding: 2px 0 8px;
}

.cover-bunting {
  margin-bottom: 25px;
}

.main-bunting {
  margin: -10px auto 15px auto;
  max-width: 620px;
}

.hut-bunting .flag {
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 22px solid #f472b6;
  filter: drop-shadow(0 2px 4px rgba(244, 114, 182, 0.15));
  transform-origin: top center;
  animation: flagSwing 3s ease-in-out infinite alternate;
}

.hut-bunting .flag.f-blue,
.hut-bunting .flag.f-pink {
  border-top-color: #f472b6;
  animation-delay: 0.1s;
}

/* Pastel Rose Pink */
.hut-bunting .flag.f-yellow,
.hut-bunting .flag.f-cream {
  border-top-color: #fde2e4;
  animation-delay: 0.3s;
}

/* Soft Cream Pink */
.hut-bunting .flag.f-sky,
.hut-bunting .flag.f-blush {
  border-top-color: #fbcfe8;
  animation-delay: 0.5s;
}

/* Baby Pink */
.hut-bunting .flag.f-gold,
.hut-bunting .flag.f-peach {
  border-top-color: #fed7aa;
  animation-delay: 0.2s;
}

/* Peach Gold */

@keyframes flagSwing {
  0% {
    transform: rotate(-5deg);
  }

  100% {
    transform: rotate(5deg);
  }
}

/* ========================================================
   KARTU COUNTDOWN (TENGAH SENDIRI)
======================================================== */
.countdown-card {
  width: 100%;
  margin-top: 25px;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.time-box {
  background: rgba(255, 255, 255, 0.72);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  padding: 12px 10px;
  border-radius: 16px;
  min-width: 70px;
  flex: 1;
  max-width: 90px;
  box-shadow:
    0 6px 18px rgba(244, 114, 182, 0.09),
    inset 0 1px 1px rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.time-box:hover {
  transform: translateY(-3px) scale(1.03);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 22px rgba(244, 114, 182, 0.18);
}

.time-box span {
  display: block;
  font-weight: 700;
  font-size: clamp(1.3rem, 3.6vw, 1.65rem);
  color: var(--primary-dark);
  line-height: 1.2;
}

.time-box small {
  font-size: clamp(0.72rem, 2vw, 0.82rem);
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
  display: block;
}

/* GRID BAWAH (WAKTU & LOKASI + RSVP) */
.bottom-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

/* WAKTU & LOKASI */
.event-card {
  display: flex;
  flex-direction: column;
}

.event-info {
  font-size: clamp(0.92rem, 2.3vw, 1rem);
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--text);
}

.event-info strong {
  color: var(--primary-deep);
  font-weight: 600;
}

.card-action {
  margin-top: auto;
  /* Memaksa tombol selalu rata di dasar kartu */
}

.btn-map {
  display: block;
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #fb7185 0%, #f43f5e 100%);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(244, 63, 94, 0.32);
  transition: all 0.25s ease;
}

.btn-map:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(244, 63, 94, 0.42);
  opacity: 0.96;
}

.btn-map:active {
  transform: translateY(0);
}

/* RSVP */
.rsvp-card {
  display: flex;
  flex-direction: column;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.rsvp-form input,
.rsvp-form select {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid #fed7e2;
  border-radius: 12px;
  font-size: 0.92rem;
  outline: none;
  background-color: #fafafa;
  color: var(--text);
  font-family: inherit;
}

.btn-submit {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(34, 197, 94, 0.32);
  transition: all 0.25s ease;
  margin-top: auto;
  /* Memaksa tombol selalu rata di dasar kartu */
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(34, 197, 94, 0.42);
}

.btn-submit:active {
  transform: translateY(0);
}

/* WATERMARK FOOTER */
.footer-credit {
  width: 100%;
  background-color: #111111;
  color: #ffffff;
  text-align: center;
  padding: 13px;
  font-size: 0.75rem;
  letter-spacing: 0.8px;
  margin-top: 45px;
  opacity: 0.95;
}

/* ========================================================
   TAMPILAN DESKTOP & TABLET LEBAR (>= 768px)
======================================================== */
@media (min-width: 768px) {
  .content-wrapper {
    padding: 35px 20px;
  }

  /* Hero: Foto di Kiri, Detail Teks di Kanan */
  .hero-section {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: left;
    gap: 50px;
    padding: 20px 0 35px;
  }

  .child-name {
    font-size: 3.6rem;
  }

  .photo-frame {
    width: 250px;
    height: 250px;
    border-width: 8px;
  }

  /* Bagian Bawah Menjadi 2 Kolom Sejajar dan Sama Tinggi */
  .bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
  }

  .bottom-grid .card {
    padding: 32px 30px;
  }
}

/* =========================================
   FITUR KOLOM KOMENTAR & BUKU TAMU
========================================= */
.wishes-card {
  margin-top: 25px;
  text-align: left;
}

.wishes-card h3 {
  text-align: center;
}

.wishes-desc {
  text-align: center;
  font-size: clamp(0.88rem, 2.2vw, 0.95rem);
  color: var(--text-muted);
  margin-bottom: 20px;
}

.wishes-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 25px;
}

.wishes-form input,
.wishes-form textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid #fed7e2;
  border-radius: 12px;
  font-size: 0.92rem;
  outline: none;
  background-color: #fafafa;
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.2s, background-color 0.2s;
}

.wishes-form textarea {
  resize: vertical;
  min-height: 80px;
}

.wishes-form input:focus,
.wishes-form textarea:focus {
  border-color: var(--primary);
  background-color: #ffffff;
}

#btn-wish-submit {
  background: linear-gradient(135deg, #f59e0b 0%, #f43f5e 100%);
  color: white;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.32);
  transition: all 0.25s ease;
  margin-top: 4px;
}

#btn-wish-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.42);
  opacity: 0.96;
}

#btn-wish-submit:active {
  transform: translateY(0);
}

.wishes-header-count {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #fce7f3;
}

.wishes-header-count b {
  color: var(--primary-deep);
}

/* CONTAINER SCROLLABLE UCAPAN */
.wishes-container {
  max-height: 360px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 6px;
}

/* Scrollbar rapi */
.wishes-container::-webkit-scrollbar {
  width: 5px;
}

.wishes-container::-webkit-scrollbar-track {
  background: #f8f8f8;
  border-radius: 10px;
}

.wishes-container::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 10px;
}

/* BALON KOMENTAR / KARTU UCAPAN */
.wish-item {
  display: flex;
  gap: 12px;
  background: #fff5f7;
  border: 1px solid #fce7f3;
  border-radius: 14px;
  padding: 14px;
}

.wish-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #fda4af);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  text-transform: uppercase;
}

.wish-body {
  flex: 1;
  min-width: 0;
}

.wish-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.wish-sender {
  font-weight: 600;
  font-size: clamp(0.88rem, 2.2vw, 0.95rem);
  color: var(--text);
}

.wish-time {
  font-size: 0.72rem;
  color: var(--text-light);
}

.wish-text {
  font-size: clamp(0.85rem, 2.2vw, 0.92rem);
  color: var(--text);
  line-height: 1.55;
  word-wrap: break-word;
}

.wish-empty {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 24px 0;
}

/* TOMBOL PENGINGAT (ADD TO CALENDAR) */
.countdown-action {
  margin-top: 22px;
}

.btn-reminder {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 50px;
  font-size: clamp(0.88rem, 2.3vw, 0.96rem);
  font-weight: 600;
  cursor: pointer;
  box-shadow:
    0 8px 24px rgba(168, 85, 247, 0.38),
    0 2px 8px rgba(236, 72, 153, 0.2),
    inset 0 1px 2px rgba(255, 255, 255, 0.65);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  text-decoration: none;
}

.btn-reminder::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  animation: reminderShimmer 3.6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes reminderShimmer {
  0%, 30% {
    left: -60%;
  }
  70%, 100% {
    left: 140%;
  }
}

.btn-reminder-bell {
  font-size: 1.15rem;
  display: inline-block;
  transform-origin: top center;
  animation: bellRing 3s ease-in-out infinite;
}

@keyframes bellRing {
  0%, 65%, 100% {
    transform: rotate(0deg);
  }
  70% {
    transform: rotate(14deg);
  }
  75% {
    transform: rotate(-12deg);
  }
  80% {
    transform: rotate(8deg);
  }
  85% {
    transform: rotate(-6deg);
  }
  90% {
    transform: rotate(0deg);
  }
}

.btn-reminder-badge {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.btn-reminder:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 12px 28px rgba(168, 85, 247, 0.48),
    0 4px 12px rgba(236, 72, 153, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.85);
  background: linear-gradient(135deg, #b062f8 0%, #f45ca7 100%);
}

.btn-reminder:active {
  transform: translateY(-1px) scale(0.99);
}

/* =========================================
   FITUR KADO DIGITAL / ONLINE (AMPLOP DIGITAL)
========================================= */
.gift-card {
  margin-top: 25px;
}

.gift-desc {
  font-size: clamp(0.9rem, 2.3vw, 0.98rem);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 22px;
}

.bank-card {
  max-width: 440px;
  margin: 0 auto;
  background: linear-gradient(135deg, #ffffff 0%, #fff1f2 100%);
  border: 1.5px solid #fce7f3;
  border-radius: 20px;
  padding: 22px 20px;
  text-align: left;
  box-shadow: 0 8px 24px rgba(244, 114, 182, 0.1);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bank-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(244, 114, 182, 0.18);
}

.bank-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.bank-logo-box {
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
}

.bank-mandiri-logo {
  height: 30px;
  max-width: 120px;
  width: auto;
  object-fit: contain;
  display: block;
}

.bank-type-badge {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-deep);
  background: #fce7f3;
  padding: 4px 12px;
  border-radius: 20px;
}

.bank-card-content {
  text-align: left;
  margin-bottom: 18px;
}

.rek-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 10px;
  margin-bottom: 2px;
}

.rek-label:first-child {
  margin-top: 0;
}

.rek-number {
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(1.25rem, 4vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary-deep);
  user-select: all;
}

.rek-owner {
  font-size: clamp(0.95rem, 2.5vw, 1.08rem);
  font-weight: 600;
  color: var(--text);
  margin-top: 2px;
}

.bank-card-action {
  margin-top: 14px;
}

.btn-copy {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.28);
}

.btn-copy:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(236, 72, 153, 0.38);
}

.btn-copy:active {
  transform: translateY(0);
}

.btn-copy.copied {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
}

/* POPUP TOAST NOTIFIKASI SALIN */
.copy-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1e293b;
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 99999;
}

.copy-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

.toast-check {
  background: #10b981;
  color: #ffffff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
}

/* =========================================
   ANIMASI SCROLL (REVEAL) & ORNAMEN BALON
========================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.floating-decor {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.container {
  position: relative;
  z-index: 2;
  /* Agar konten berada di atas balon */
}

/* BALON CSS PURE */
.balloon {
  --b-color: #f472b6;
  --b-dark: rgba(190, 24, 93, 0.65);
  --b-scale: 1;
  position: absolute;
  bottom: -150px;
  width: 44px;
  height: 54px;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, var(--b-color) 45%, var(--b-dark, rgba(190, 24, 93, 0.65)) 100%);
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  opacity: 0.78;
  box-shadow: inset -2px -3px 6px rgba(0, 0, 0, 0.08), 0 8px 18px rgba(244, 114, 182, 0.25);
  animation: floatUp 15s infinite ease-in-out;
}

/* Simpul bawah balon */
.balloon::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 8px solid var(--b-color);
}

/* Tali balon */
.balloon::before {
  content: "";
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 1.5px;
  height: 25px;
  background-color: rgba(190, 24, 93, 0.22);
}

/* Varian posisi dan kecepatan balon tema baby pink pastel */
.balloon-1 {
  left: 10%;
  --b-color: #f9a8d4;
  --b-dark: rgba(219, 39, 119, 0.55);
  --b-scale: 0.95;
  animation-duration: 18s;
  animation-delay: 2s;
}

.balloon-2 {
  left: 25%;
  --b-color: #fde2e4;
  --b-dark: rgba(251, 113, 133, 0.55);
  --b-scale: 1.1;
  animation-duration: 25s;
  animation-delay: 0s;
}

.balloon-3 {
  left: 45%;
  --b-color: #f472b6;
  --b-dark: rgba(190, 24, 93, 0.65);
  --b-scale: 0.85;
  animation-duration: 16s;
  animation-delay: 5s;
}

.balloon-4 {
  left: 65%;
  --b-color: #fed7aa;
  --b-dark: rgba(234, 88, 12, 0.45);
  --b-scale: 1;
  animation-duration: 22s;
  animation-delay: 1s;
}

.balloon-5 {
  left: 80%;
  --b-color: #fbcfe8;
  --b-dark: rgba(219, 39, 119, 0.5);
  --b-scale: 1.2;
  animation-duration: 28s;
  animation-delay: 8s;
}

.balloon-6 {
  left: 90%;
  --b-color: #fda4af;
  --b-dark: rgba(225, 29, 72, 0.55);
  --b-scale: 0.9;
  animation-duration: 19s;
  animation-delay: 11s;
}

@keyframes floatUp {
  0% {
    bottom: -150px;
    transform: translateX(0) scale(var(--b-scale));
  }

  33% {
    transform: translateX(25px) scale(var(--b-scale));
  }

  66% {
    transform: translateX(-25px) scale(var(--b-scale));
  }

  100% {
    bottom: 110vh;
    transform: translateX(0) scale(var(--b-scale));
  }
}

/* =========================================
   CONFETTI & SPARKLE DECOR (SEMARAK HUT 1 TAHUN)
========================================= */
.confetti {
  position: absolute;
  top: -40px;
  pointer-events: none;
  opacity: 0.75;
  animation: confettiFall 12s linear infinite;
}

.c-sq {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.c-circle {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.c-ribbon {
  width: 5px;
  height: 14px;
  border-radius: 3px;
  transform: rotate(25deg);
}

.c-pink {
  background: #f472b6;
}

.c-gold {
  background: #fbbf24;
}

.c-rose {
  background: #fb7185;
}

.c-lilac {
  background: #c084fc;
}

.c-peach {
  background: #fed7aa;
}

.c-sky {
  background: #38bdf8;
}

.c-pos-1 {
  left: 7%;
  animation-duration: 11s;
  animation-delay: 1s;
}

.c-pos-2 {
  left: 17%;
  animation-duration: 14s;
  animation-delay: 4s;
}

.c-pos-3 {
  left: 27%;
  animation-duration: 10s;
  animation-delay: 2s;
}

.c-pos-4 {
  left: 39%;
  animation-duration: 13s;
  animation-delay: 0s;
}

.c-pos-5 {
  left: 51%;
  animation-duration: 15s;
  animation-delay: 6s;
}

.c-pos-6 {
  left: 63%;
  animation-duration: 11s;
  animation-delay: 3s;
}

.c-pos-7 {
  left: 74%;
  animation-duration: 13s;
  animation-delay: 7s;
}

.c-pos-8 {
  left: 84%;
  animation-duration: 12s;
  animation-delay: 2s;
}

.c-pos-9 {
  left: 93%;
  animation-duration: 14s;
  animation-delay: 5s;
}

.c-pos-10 {
  left: 46%;
  animation-duration: 16s;
  animation-delay: 9s;
}

@keyframes confettiFall {
  0% {
    top: -40px;
    transform: translateX(0) rotate(0deg) scale(1);
  }

  50% {
    transform: translateX(24px) rotate(180deg) scale(0.9);
  }

  100% {
    top: 105vh;
    transform: translateX(-24px) rotate(360deg) scale(1);
  }
}

/* Bintang Gemerlap (Twinkle Sparkles) */
.sparkle {
  position: absolute;
  font-size: 1.15rem;
  pointer-events: none;
  animation: sparklePulse 3.5s ease-in-out infinite alternate;
  filter: drop-shadow(0 2px 6px rgba(251, 191, 36, 0.45));
  opacity: 0.8;
  z-index: 1;
}

.sp-1 {
  top: 12%;
  left: 5%;
  animation-delay: 0.2s;
}

.sp-2 {
  top: 24%;
  right: 6%;
  animation-delay: 1.2s;
  font-size: 0.95rem;
}

.sp-3 {
  top: 46%;
  left: 4%;
  animation-delay: 0.7s;
}

.sp-4 {
  top: 60%;
  right: 5%;
  animation-delay: 1.8s;
  font-size: 1rem;
}

.sp-5 {
  top: 76%;
  left: 6%;
  animation-delay: 0.4s;
}

.sp-6 {
  top: 89%;
  right: 7%;
  animation-delay: 1.5s;
  font-size: 1rem;
}

@keyframes sparklePulse {
  0% {
    transform: scale(0.75) rotate(0deg);
    opacity: 0.4;
  }

  50% {
    transform: scale(1.18) rotate(15deg);
    opacity: 0.95;
  }

  100% {
    transform: scale(0.85) rotate(-10deg);
    opacity: 0.55;
  }
}

/* =========================================
   TOMBOl MUSIK MELAYANG (FLOATING AUDIO)
========================================= */
.music-floating-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f472b6 0%, #db2777 100%);
  border: 2.5px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 20px rgba(219, 39, 119, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  transition: transform 0.2s, background 0.3s, opacity 0.3s;
}

.music-floating-btn:hover {
  transform: scale(1.08);
}

.music-floating-btn:active {
  transform: scale(0.95);
}

.music-disc-icon {
  display: inline-block;
  font-size: 1.3rem;
  animation: discSpin 3.5s linear infinite;
}

.music-floating-btn.paused {
  background: #64748b;
  box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
}

.music-floating-btn.paused .music-disc-icon {
  animation-play-state: paused;
}

@keyframes discSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* =========================================
   GALERI FOTO (POTRET CERIA - MODERN MAGAZINE COLLAGE)
========================================= */
.gallery-card {
  margin-top: 25px;
}

.gallery-subtitle {
  font-size: clamp(0.88rem, 2.2vw, 0.95rem);
  color: var(--text-muted);
  margin-top: -10px;
  margin-bottom: 22px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.gallery-item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(244, 114, 182, 0.14);
  border: 3.5px solid #ffffff;
  background: #fce7f3;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 28px rgba(244, 114, 182, 0.25);
  z-index: 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item:hover img {
  transform: scale(1.07);
}

/* Overlay & Ikon Zoom saat Hover */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.25) 0%, rgba(157, 23, 77, 0.38) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.zoom-icon {
  font-size: 1.4rem;
  background: rgba(255, 255, 255, 0.92);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transform: scale(0.7);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .zoom-icon {
  transform: scale(1);
}

/* ========================================================
   DESKTOP GALLERY: LAYOUT KOLASE MAJALAH STUDIO (>= 768px)
   1 Foto Utama Besar di Kiri + 3 Foto Tersusun di Kanan
   (Foto Banner Kado di Atas, 2 Foto Persegi di Bawah)
======================================================== */
@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1.18fr 1fr 1fr;
    grid-template-rows: 210px 210px;
    gap: 16px;
    max-width: 820px;
    margin: 0 auto;
  }

  /* 1. Foto Utama Besar di Sisi Kiri (Memanjang 2 Baris Penuh) */
  .gallery-item.gallery-featured,
  .gallery-item:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    aspect-ratio: auto;
    height: 100%;
    border-radius: 22px;
    border-width: 4px;
    box-shadow: 0 8px 24px rgba(244, 114, 182, 0.18);
  }

  /* 2. Foto Kanan Atas (Menyambung 2 Kolom Kanan Seperti Banner Sinematik - Foto Kado) */
  .gallery-item.gallery-wide,
  .gallery-item:nth-child(2) {
    grid-column: 2 / 4;
    grid-row: 1 / 2;
    aspect-ratio: auto;
    height: 100%;
    border-radius: 20px;
  }

  .gallery-item.gallery-wide img {
    object-position: center 20%;
  }

  /* 3. Foto Kanan Bawah 1 */
  .gallery-item:nth-child(3) {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    aspect-ratio: auto;
    height: 100%;
  }

  /* 4. Foto Kanan Bawah 2 */
  .gallery-item:nth-child(4) {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
    aspect-ratio: auto;
    height: 100%;
  }
}

/* =========================================
   MODAL LIGHTBOX FOTO
========================================= */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(6px);
  padding: 20px;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-modal img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  border: 4px solid #ffffff;
  object-fit: contain;
  transform: scale(0.92);
  transition: transform 0.3s ease;
}

.lightbox-modal.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  color: #ffffff;
  font-size: 2.4rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  line-height: 1;
  transition: transform 0.2s;
}

.lightbox-close:hover {
  transform: scale(1.2);
}