/* ==========================================================================
   UNDANGAN DIGITAL ULANG TAHUN - HAYYU GRILL THEME
   Mobile-First, Responsive, Festive, Elegant
   ========================================================================== */

:root {
  --color-hayyu-blue: #2554a5;
  --color-hayyu-blue-dark: #1b3d7a;
  --color-hayyu-blue-light: #376dc4;
  --color-hayyu-red: #e52e2e;
  --color-hayyu-red-dark: #b81b1b;
  --color-hayyu-yellow: #ffb800;
  --color-hayyu-orange: #ff7a00;
  --color-bg-page: #102242;
  --color-card-bg: rgba(255, 255, 255, 0.96);
  --color-text-main: #1e293b;
  --color-text-muted: #64748b;
  --color-text-light: #f8fafc;
  --shadow-card: 0 12px 32px -4px rgba(10, 31, 68, 0.25);
  --shadow-button: 0 6px 18px rgba(229, 46, 46, 0.35);
  --border-radius-card: 24px;
  --border-radius-pill: 9999px;
  --font-heading: 'Fredoka', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-bg-page);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-x: hidden;
}

/* Background canvas with Hayyu Blue, Seigaiha waves & sparkles */
.page-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--color-hayyu-blue);
  background-image: 
    url('assets/seigaiha_pattern.svg'),
    radial-gradient(circle at 50% 15%, rgba(65, 126, 224, 0.6) 0%, rgba(27, 61, 122, 0.8) 100%);
  background-repeat: repeat;
  background-size: 80px 40px, cover;
  z-index: -2;
}

/* Ambient floating stars/sparkles across the screen */
.sparkles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.sparkle-icon {
  position: absolute;
  color: rgba(255, 255, 255, 0.7);
  animation: floatSparkle 6s ease-in-out infinite alternate;
  user-select: none;
}

@keyframes floatSparkle {
  0% { transform: translateY(0px) rotate(0deg) scale(0.9); opacity: 0.4; }
  50% { opacity: 0.9; }
  100% { transform: translateY(-25px) rotate(45deg) scale(1.15); opacity: 0.6; }
}

/* App / Invitation Container (Mobile-first wrapper) */
.invitation-wrapper {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background: transparent;
  position: relative;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

/* Cover / Welcome Screen (Overlay) */
.cover-screen {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 100vh;
  height: 100dvh;
  background-color: var(--color-hayyu-blue);
  background-image: 
    url('assets/seigaiha_pattern.svg'),
    radial-gradient(circle at 50% 30%, #356ec7 0%, #173770 100%);
  background-size: 80px 40px, cover;
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 32px 24px;
  text-align: center;
  color: white;
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.6s ease;
  overflow-y: auto;
}

.cover-screen.opened {
  transform: translateX(-50%) translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.cover-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
}

.brand-badge {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: var(--border-radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  gap: 6px;
}

.cover-logo-wrapper {
  margin: 14px 0 10px;
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

/* Pure White Radiant Light Aura Behind Logo */
.cover-logo-wrapper::before {
  content: '';
  position: absolute;
  width: 270px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.35) 40%, rgba(255, 255, 255, 0) 75%);
  filter: blur(16px);
  animation: dynamicWhiteAura 3.6s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
  will-change: opacity, transform;
}

.hayyu-logo-img {
  position: relative;
  z-index: 1;
  width: 285px;
  max-width: 90%;
  height: auto;
  filter: 
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 25px rgba(255, 255, 255, 0.7))
    drop-shadow(0 0 45px rgba(255, 255, 255, 0.4))
    drop-shadow(0 8px 18px rgba(10, 25, 60, 0.45));
  will-change: transform;
  transform: scale(1) rotate(0deg);
  backface-visibility: hidden;
  animation: dynamicZoomRotateLogo 3.6s ease-in-out infinite;
  transform-origin: 50% 50%;
}

.cover-photo-wrapper {
  position: relative;
  width: 170px;
  height: 170px;
  margin: 14px auto;
}

.cover-photo-frame {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid #ffffff;
  box-shadow: 0 0 0 4px var(--color-hayyu-red), 0 10px 25px rgba(0,0,0,0.4);
  overflow: hidden;
  position: relative;
  background: #f1f5f9;
}

.cover-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}

.party-hat-icon {
  position: absolute;
  top: -24px;
  right: -8px;
  font-size: 2.5rem;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
  animation: wiggleHat 3s infinite ease-in-out;
  transform-origin: bottom center;
}

@keyframes wiggleHat {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
}

/* Special Invitation with White and Red Dual Contour */
.cover-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffff;
  /* Dual White & Red Contour */
  text-shadow:
    /* Layer 1: Crisp Red Contour Outline */
    -2px -2px 0 #e52e2e,
     2px -2px 0 #e52e2e,
    -2px  2px 0 #e52e2e,
     2px  2px 0 #e52e2e,
     0px -2.5px 0 #e52e2e,
     0px  2.5px 0 #e52e2e,
    -2.5px 0px 0 #e52e2e,
     2.5px 0px 0 #e52e2e,
    /* Layer 2: White Shimmering Contour Halo */
    0 0 10px #ffffff,
    0 0 20px rgba(255, 255, 255, 0.9),
    0 0 35px rgba(255, 255, 255, 0.6),
    0 4px 10px rgba(180, 20, 20, 0.7);
  margin-bottom: 6px;
  display: inline-block;
  padding: 4px 16px;
  background: rgba(229, 46, 46, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--border-radius-pill);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(229, 46, 46, 0.25);
  animation: pulseSpecialTitle 3s ease-in-out infinite alternate;
}

@keyframes pulseSpecialTitle {
  0% { transform: scale(1); }
  100% { transform: scale(1.04); }
}

.cover-child-name {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 3px 8px rgba(0,0,0,0.4);
  line-height: 1.2;
}

.cover-guest-card {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 18px;
  padding: 14px 20px;
  width: 90%;
  margin: 16px auto;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.cover-guest-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 4px;
}

.cover-guest-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
  word-break: break-word;
}

.btn-open-invitation {
  background: linear-gradient(135deg, #e52e2e 0%, #ff5252 100%);
  color: white;
  border: none;
  border-radius: var(--border-radius-pill);
  padding: 14px 36px;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-button);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-smooth);
  animation: pulseButton 2s infinite ease-in-out;
}

.btn-open-invitation:hover,
.btn-open-invitation:focus {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 24px rgba(229, 46, 46, 0.5);
}

@keyframes pulseButton {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229, 46, 46, 0.7); }
  50% { box-shadow: 0 0 0 14px rgba(229, 46, 46, 0); }
}

/* Main Content Area */
.main-content {
  width: 100%;
  padding: 24px 16px 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.main-content.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Brand Hero Header (Seamless, No Outer Box, Glowing & Swaying) */
.brand-hero-header {
  background: transparent;
  padding: 10px 8px 4px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo-glow-wrapper {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 6px 0 12px;
}

/* Pure White Radiant Light Aura Behind Logo */
.logo-glow-wrapper::before {
  content: '';
  position: absolute;
  width: 330px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.35) 40%, rgba(255, 255, 255, 0) 75%);
  filter: blur(18px);
  animation: dynamicWhiteAura 3.6s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
  will-change: opacity, transform;
}

@keyframes dynamicWhiteAura {
  0% {
    opacity: 0.65;
    transform: scale(0.95);
  }
  25% {
    opacity: 1;
    transform: scale(1.15) rotate(-2.5deg);
  }
  50% {
    opacity: 0.65;
    transform: scale(0.95);
  }
  75% {
    opacity: 1;
    transform: scale(1.15) rotate(2.5deg);
  }
  100% {
    opacity: 0.65;
    transform: scale(0.95);
  }
}

/* Enlarged, Ultra Smooth Dynamic Zoom & Rotate Logo with Pure White Glow */
.main-hayyu-logo {
  position: relative;
  z-index: 1;
  width: 340px;
  max-width: 96%;
  height: auto;
  margin: 0 auto;
  /* Pure White Shimmering Light Aura */
  filter: 
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 25px rgba(255, 255, 255, 0.7))
    drop-shadow(0 0 48px rgba(255, 255, 255, 0.4))
    drop-shadow(0 8px 18px rgba(10, 25, 60, 0.45));
  /* GPU Composited Dynamic Zoom & Rotate (Zero Delay, Tidak Monoton) */
  will-change: transform;
  transform: scale(1) rotate(0deg);
  backface-visibility: hidden;
  animation: dynamicZoomRotateLogo 3.6s ease-in-out infinite;
  transform-origin: 50% 50%;
}

/* Dynamic Zoom In/Out + Playful Alternating Rotation (Tanpa Delay & Tidak Monoton) */
@keyframes dynamicZoomRotateLogo {
  0% {
    transform: scale(1) rotate(0deg);
  }
  25% {
    transform: scale(1.06) rotate(-2.5deg);
  }
  50% {
    transform: scale(1) rotate(0deg);
  }
  75% {
    transform: scale(1.06) rotate(2.5deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

.party-badge-container {
  margin-top: 4px;
}

/* Red Box Badge ("bacaan di box merah") */
.party-badge-pill {
  display: inline-block;
  background: linear-gradient(135deg, #e52e2e 0%, #ff3838 100%);
  color: #ffffff;
  padding: 8px 26px;
  border-radius: var(--border-radius-pill);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  box-shadow: 0 4px 18px rgba(229, 46, 46, 0.55), 0 0 12px rgba(255, 80, 80, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.4);
  animation: pulseRedBadge 2.8s infinite ease-in-out;
}

@keyframes pulseRedBadge {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 18px rgba(229, 46, 46, 0.55); }
  50% { transform: scale(1.04); box-shadow: 0 8px 26px rgba(229, 46, 46, 0.8), 0 0 20px rgba(255, 80, 80, 0.6); }
}

/* Card General Styling */
.invitation-card {
  background: var(--color-card-bg);
  backdrop-filter: blur(16px);
  border-radius: var(--border-radius-card);
  padding: 28px 20px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}

.card-title-section {
  text-align: center;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-hayyu-red);
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  color: var(--color-hayyu-blue);
  font-weight: 800;
  line-height: 1.25;
}

.card-decoration-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, var(--color-hayyu-red), var(--color-hayyu-yellow));
  border-radius: 2px;
  margin: 10px auto 0;
}

/* Child Spotlight Section (Foto di Tengah) */
.child-spotlight-card {
  text-align: center;
}

.child-avatar-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 10px auto 20px;
}

.child-avatar-glow {
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-hayyu-red) 0%, var(--color-hayyu-yellow) 50%, var(--color-hayyu-blue) 100%);
  animation: rotateGlow 6s linear infinite;
  z-index: 1;
}

@keyframes rotateGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.child-avatar-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 6px solid #ffffff;
  overflow: hidden;
  background: #e2e8f0;
  z-index: 2;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.child-photo-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.avatar-hat-badge {
  position: absolute;
  top: -24px;
  right: 0px;
  font-size: 2.8rem;
  z-index: 3;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
  animation: wiggleHat 3s infinite ease-in-out;
}

.child-age-badge {
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--color-hayyu-red) 0%, #ff5252 100%);
  color: white;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  padding: 6px 18px;
  border-radius: var(--border-radius-pill);
  border: 3px solid #ffffff;
  white-space: nowrap;
  z-index: 4;
  box-shadow: 0 4px 12px rgba(229, 46, 46, 0.4);
}

.child-name-display {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--color-hayyu-blue);
  margin-top: 10px;
  line-height: 1.2;
}

.child-sub-greeting {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-hayyu-red);
  margin-top: 4px;
}

.child-bio-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-top: 14px;
  padding: 0 8px;
}

.parent-names {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-hayyu-blue-dark);
  margin-top: 10px;
}

/* Event Details & Schedule (Hari, Tgl, dll) */
.event-details-card {
  padding: 24px 20px;
}

/* Countdown Timer */
.countdown-box {
  background: linear-gradient(135deg, #f0f7ff 0%, #e2eeff 100%);
  border: 2px dashed #93c5fd;
  border-radius: 18px;
  padding: 16px 10px;
  margin-bottom: 24px;
  text-align: center;
}

.countdown-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-hayyu-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.timer-item {
  background: #ffffff;
  border-radius: 14px;
  padding: 10px 4px;
  box-shadow: 0 4px 10px rgba(37, 84, 165, 0.1);
  border: 1px solid rgba(147, 197, 253, 0.4);
}

.timer-value {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--color-hayyu-red);
  line-height: 1;
}

.timer-unit {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-text-muted);
  margin-top: 4px;
  text-transform: uppercase;
}

/* Info Items (Date, Time, Location) */
.event-info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.event-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #ffffff;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.info-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-hayyu-blue) 0%, #3a75d4 100%);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 84, 165, 0.25);
}

.info-icon-badge.red {
  background: linear-gradient(135deg, var(--color-hayyu-red) 0%, #ff5252 100%);
  box-shadow: 0 4px 12px rgba(229, 46, 46, 0.25);
}

.info-content {
  flex: 1;
}

.info-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 0.5px;
}

.info-main-text {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-text-main);
  margin: 2px 0;
}

.info-sub-text {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.location-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-hayyu-blue) 0%, var(--color-hayyu-blue-light) 100%);
  color: white;
  border: none;
  border-radius: var(--border-radius-pill);
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(37, 84, 165, 0.25);
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(37, 84, 165, 0.35);
}

.btn-secondary {
  background: #ffffff;
  color: var(--color-hayyu-blue);
  border: 2px solid var(--color-hayyu-blue);
  border-radius: var(--border-radius-pill);
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: #f0f7ff;
}

/* Rundown Timeline */
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
  position: relative;
}

.timeline-list::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 20px;
  width: 2px;
  background: #cbd5e1;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-hayyu-red);
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px var(--color-hayyu-red);
  margin-top: 4px;
  margin-left: 14px;
  flex-shrink: 0;
  z-index: 1;
}

.timeline-content {
  flex: 1;
  background: #f8fafc;
  padding: 10px 14px;
  border-radius: 12px;
  border-left: 3px solid var(--color-hayyu-blue);
}

.timeline-time {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--color-hayyu-blue);
}

.timeline-event {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-top: 2px;
}

.timeline-desc {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}


/* Kado Digital (Amplop Digital & Kado Fisik) */
.gift-intro {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.5;
  margin-bottom: 20px;
}

.gift-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bank-card {
  background: linear-gradient(135deg, #1b3d7a 0%, #2554a5 100%);
  color: white;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(27, 61, 122, 0.25);
  position: relative;
  overflow: hidden;
}

.bank-card::after {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
}

.bank-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.bank-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.bank-chip {
  width: 36px;
  height: 26px;
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  border-radius: 6px;
  border: 1px solid #fef3c7;
}

.account-number {
  font-family: monospace;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.account-holder {
  font-size: 0.88rem;
  opacity: 0.85;
  text-transform: uppercase;
}

.btn-copy {
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: white;
  padding: 8px 18px;
  border-radius: var(--border-radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.btn-copy:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.btn-copy:active {
  transform: scale(0.98);
}

/* Secondary Gift Options: QRIS & Physical Address */
.gift-secondary-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.btn-gift-option {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-hayyu-blue-dark);
}

.btn-gift-option:hover {
  background: #e2e8f0;
  border-color: var(--color-hayyu-blue);
}

.btn-gift-option span.icon {
  font-size: 1.5rem;
}

/* QRIS Modal & Physical Address Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #ffffff;
  border-radius: 24px;
  padding: 24px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--color-text-muted);
}

.qris-preview-img {
  width: 220px;
  height: 220px;
  margin: 16px auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px;
  background: white;
}

/* RSVP Form */
.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-main);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-text-main);
  background: #f8fafc;
  transition: var(--transition-smooth);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--color-hayyu-blue);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 84, 165, 0.15);
}

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

.rsvp-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.btn-rsvp-submit {
  background: linear-gradient(135deg, var(--color-hayyu-red) 0%, #ff5252 100%);
  color: white;
  border: none;
  border-radius: var(--border-radius-pill);
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: var(--shadow-button);
  transition: var(--transition-smooth);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.btn-rsvp-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(229, 46, 46, 0.45);
}

.btn-whatsapp-rsvp {
  background: #25d366;
  color: white;
  border: none;
  border-radius: var(--border-radius-pill);
  padding: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  transition: var(--transition-smooth);
}

.btn-whatsapp-rsvp:hover {
  background: #20bd5a;
  transform: translateY(-1px);
}

/* Wishes Wall (Buku Tamu & Ucapan) */
.wishes-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.wish-item {
  background: #f8fafc;
  border-radius: 16px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wish-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wish-sender {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-hayyu-blue-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.wish-badge {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: var(--border-radius-pill);
  font-weight: 600;
}

.wish-badge.hadir {
  background: #dcfce7;
  color: #166534;
}

.wish-badge.tidak-hadir {
  background: #fee2e2;
  color: #991b1b;
}

.wish-time {
  font-size: 0.72rem;
  color: #94a3b8;
}

.wish-text {
  font-size: 0.88rem;
  color: var(--color-text-main);
  line-height: 1.5;
}

/* Footer Section */
.invitation-footer {
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  padding: 20px 10px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 170px;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.footer-quote {
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 360px;
  color: rgba(255, 255, 255, 0.85);
}

.footer-closing {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffde59;
}

.footer-credit {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 10px;
}

/* Floating Controls (Music Player & Confetti Button) */
.floating-controls {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 90;
}

.btn-floating {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  color: var(--color-hayyu-blue);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.25rem;
  transition: var(--transition-smooth);
}

.btn-floating:hover {
  transform: scale(1.1);
}

.btn-music-toggle.playing {
  animation: spinVinyl 4s linear infinite;
  color: var(--color-hayyu-red);
}

@keyframes spinVinyl {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Admin Panel Trigger in Footer */
.admin-login-wrapper {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.btn-log-admin {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px dashed rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 20px;
  border-radius: var(--border-radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.btn-log-admin:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* PIN Verification Modal */
.pin-modal-box {
  max-width: 360px;
  padding: 28px 24px;
}

.pin-icon-header {
  font-size: 2.8rem;
  margin-bottom: 8px;
  animation: pulseIcon 2s infinite ease-in-out;
}

@keyframes pulseIcon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.pin-input-group {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.pin-input {
  width: 100%;
  padding: 14px 44px 14px 18px;
  border: 2px solid #cbd5e1;
  border-radius: 14px;
  font-size: 1.25rem;
  font-family: monospace;
  letter-spacing: 4px;
  text-align: center;
  background: #f8fafc;
  color: var(--color-text-main);
  transition: var(--transition-smooth);
}

.pin-input:focus {
  outline: none;
  border-color: var(--color-hayyu-blue);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 84, 165, 0.15);
}

.pin-input.shake {
  animation: shakeInput 0.4s ease;
  border-color: var(--color-hayyu-red);
}

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

.btn-toggle-pin {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: #64748b;
  padding: 4px;
}

.pin-error-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-hayyu-red);
  margin-top: 8px;
  text-align: center;
}

/* Admin Panel Styling Inside Edit Modal */
.admin-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #dcfce7;
  color: #166534;
  padding: 4px 12px;
  border-radius: var(--border-radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.admin-section-divider {
  border: none;
  border-top: 1px dashed #e2e8f0;
  margin: 16px 0 12px;
}

.admin-section-heading {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color-hayyu-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-admin-logout {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
  border-radius: var(--border-radius-pill);
  padding: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  margin-top: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.btn-admin-logout:hover {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 85px;
  left: 50%;
  transform: translateX(-50%) translateY(50px);
  background: #1e293b;
  color: white;
  padding: 12px 24px;
  border-radius: var(--border-radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

/* Responsive Media Queries */
@media (max-width: 480px) {
  .invitation-wrapper {
    box-shadow: none;
  }
  .child-name-display {
    font-size: 1.85rem;
  }
  .timer-value {
    font-size: 1.45rem;
  }
}

