* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-family, 'Segoe UI', Roboto, sans-serif);
  background: var(--color-bg, #090d16);
  color: var(--color-text, #e6edf3);
  position: relative;
  min-height: 100vh;
}
.hidden { display: none !important; }

/* ---- ORNAMENT BACKGROUND OVERLAY ---- */
.ornament-bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.9;
}

/* 1. CIRCUIT ANIMATIONS (REALISTIC PCB TRACES & SIGNAL FLOW) */
.circuit-svg {
  width: 100%;
  height: 100%;
}
@keyframes circuitFlow {
  0% { stroke-dashoffset: 380; }
  100% { stroke-dashoffset: 0; }
}
@keyframes nodePulse {
  0%, 100% { opacity: 0.35; transform: scale(0.8); filter: drop-shadow(0 0 2px var(--color-primary)); }
  50% { opacity: 1; transform: scale(1.4); filter: drop-shadow(0 0 10px var(--color-primary)); }
}
.circuit-pulse {
  animation: circuitFlow 4s linear infinite;
  opacity: 0.95;
  filter: drop-shadow(0 0 6px var(--color-primary));
}
.pulse-fast { animation-duration: 2.8s; }
.pulse-mid { animation-duration: 4.2s; animation-delay: -1.5s; stroke: var(--color-primary); filter: drop-shadow(0 0 6px var(--color-primary)); }
.pulse-slow { animation-duration: 5.8s; animation-delay: -2.8s; stroke: var(--color-secondary); filter: drop-shadow(0 0 6px var(--color-secondary)); }

.circuit-node { transform-box: fill-box; transform-origin: center; }
.node-1 { animation: nodePulse 2s ease-in-out infinite; }
.node-2 { animation: nodePulse 2.8s ease-in-out infinite 0.7s; }
.node-3 { animation: nodePulse 1.9s ease-in-out infinite 1.2s; }

/* 2. STARS & GALAXY ANIMATIONS (DEEP SPACE FIELD) */
.stars-svg {
  width: 100%;
  height: 100%;
}
@keyframes starTwinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.7); filter: drop-shadow(0 0 2px var(--color-primary)); }
  50% { opacity: 1; transform: scale(1.3); filter: drop-shadow(0 0 10px #ffffff); }
}
.star-blink-1 { animation: starTwinkle 2.5s infinite ease-in-out; transform-box: fill-box; transform-origin: center; }
.star-blink-2 { animation: starTwinkle 3.8s infinite ease-in-out 1.1s; transform-box: fill-box; transform-origin: center; }
.star-blink-3 { animation: starTwinkle 2.2s infinite ease-in-out 0.5s; transform-box: fill-box; transform-origin: center; }

@keyframes rotateSparkle {
  0% { transform: rotate(0deg) scale(0.8); opacity: 0.3; }
  50% { transform: rotate(180deg) scale(1.2); opacity: 1; filter: drop-shadow(0 0 8px var(--color-primary)); }
  100% { transform: rotate(360deg) scale(0.8); opacity: 0.3; }
}
.sparkle-rotate-1 { animation: rotateSparkle 6s linear infinite; transform-box: fill-box; }
.sparkle-rotate-2 { animation: rotateSparkle 9s linear infinite reverse; transform-box: fill-box; }

/* 3. REALISTIC WATER BUBBLES ANIMATIONS (ORGANIC SWAY & CONTINUOUS SPREAD) */
.bubbles-container {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}
@keyframes floatBubbleOrganic {
  0% {
    bottom: -60px;
    transform: translateX(0) scale(0.5);
    opacity: 0;
  }
  15% {
    opacity: 0.85;
  }
  35% {
    transform: translateX(28px) scale(0.85);
  }
  65% {
    transform: translateX(-22px) scale(1.1);
    opacity: 0.85;
  }
  85% {
    opacity: 0.7;
  }
  100% {
    bottom: 108vh;
    transform: translateX(18px) scale(1.3);
    opacity: 0;
  }
}
.bubble {
  position: absolute;
  bottom: -60px;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.3) 55%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  box-shadow: inset -2px -2px 6px rgba(255, 255, 255, 0.6), 0 0 12px var(--color-primary);
  animation: floatBubbleOrganic 8s ease-in-out infinite;
  backdrop-filter: blur(1px);
}

.b1 { left: 4%; width: 24px; height: 24px; animation-duration: 7.2s; animation-delay: -1.2s; }
.b2 { left: 16%; width: 14px; height: 14px; animation-duration: 9.8s; animation-delay: -4.5s; }
.b3 { left: 28%; width: 38px; height: 38px; animation-duration: 11.5s; animation-delay: -2.1s; }
.b4 { left: 37%; width: 18px; height: 18px; animation-duration: 6.4s; animation-delay: -5.8s; }
.b5 { left: 48%; width: 44px; height: 44px; animation-duration: 13.2s; animation-delay: -7.3s; }
.b6 { left: 59%; width: 10px; height: 10px; animation-duration: 5.6s; animation-delay: -1.8s; }
.b7 { left: 68%; width: 32px; height: 32px; animation-duration: 8.9s; animation-delay: -3.4s; }
.b8 { left: 77%; width: 20px; height: 20px; animation-duration: 7.8s; animation-delay: -6.2s; }
.b9 { left: 86%; width: 30px; height: 30px; animation-duration: 10.1s; animation-delay: -0.8s; }
.b10 { left: 94%; width: 12px; height: 12px; animation-duration: 6.9s; animation-delay: -4.1s; }
.b11 { left: 11%; width: 36px; height: 36px; animation-duration: 12.0s; animation-delay: -8.0s; }
.b12 { left: 43%; width: 26px; height: 26px; animation-duration: 8.4s; animation-delay: -3.7s; }
.b13 { left: 64%; width: 16px; height: 16px; animation-duration: 6.2s; animation-delay: -2.3s; }
.b14 { left: 82%; width: 40px; height: 40px; animation-duration: 14.0s; animation-delay: -9.1s; }
.b15 { left: 22%; width: 8px; height: 8px; animation-duration: 4.8s; animation-delay: -1.0s; }

/* 4. GRID OVERLAY */
.grid-overlay {
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
}

/* ---- COVER ---- */
.cover {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: transparent;
  padding: 24px 14px;
}
.cover-inner {
  background: var(--color-bg, #090d16);
  border-radius: 20px;
  border: 1px solid var(--color-border, #1f293d);
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  padding: 36px 20px;
  width: calc(100% - 28px);
  max-width: 440px;
  color: var(--color-text, #e6edf3);
}
.cover-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  padding: 6px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.cover-eyebrow { letter-spacing: 4px; text-transform: uppercase; font-size: 0.85rem; color: var(--color-primary, #00f2fe); font-weight: 600; }
.cover-title {
  font-size: 2.2rem;
  margin: 12px 0;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cover-guest { margin: 20px 0; font-size: 1rem; color: var(--color-text, #e6edf3); line-height: 1.5; }
.btn-open {
  margin-top: 24px;
  padding: 14px 32px;
  border-radius: 30px;
  border: none;
  background: linear-gradient(135deg, var(--color-primary, #00f2fe), var(--color-secondary, #7928ca));
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}
.btn-open:hover {
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

/* ---- MAIN CONTENT ---- */
.main {
  position: relative;
  z-index: 2;
  width: calc(100% - 28px);
  max-width: 440px;
  margin: 20px auto;
  background: var(--color-bg, #090d16);
  border-radius: 20px;
  border: 1px solid var(--color-border, #1f293d);
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  overflow: hidden;
}
.section {
  padding: 20px 20px;
  text-align: center;
  border-bottom: 1px solid var(--color-border, #1f293d);
}
.section h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.eyebrow { letter-spacing: 3px; text-transform: uppercase; font-size: 0.75rem; color: var(--color-primary, #00f2fe); font-weight: 600; }
/* ---- HERO / POSTER ---- */
.hero-section { padding: 24px 16px; }
.pure-poster-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.poster-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  object-fit: contain;
  border: 1px solid var(--color-border, #1f293d);
}
.hero-overlay-wrap {
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  padding: 30px 16px;
  position: relative;
  overflow: hidden;
}
.hero-overlay-wrap::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(9, 13, 22, 0.65);
  z-index: 1;
}
.hero-overlay-wrap > * { position: relative; z-index: 2; }
.hero-logo { width: 68px; height: 68px; object-fit: contain; margin-bottom: 10px; border-radius: 50%; background: rgba(255,255,255,0.95); padding: 4px; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.hero-section h1 { font-size: 1.9rem; margin: 10px 0; }
.hero-section .subtitle { font-size: 1.1rem; color: var(--color-secondary, #7928ca); font-weight: 500; }
.hero-section .host { margin-top: 14px; color: var(--color-muted, #7d8590); }

.flash {
  background: rgba(254, 243, 199, 0.15);
  border: 1px solid #fbbf24;
  padding: 10px 16px;
  margin: 16px 20px 0;
  border-radius: 8px;
  font-size: 0.9rem;
  text-align: center;
  color: #fbbf24;
}

/* ---- COUNTDOWN ---- */
.countdown { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.cd-box {
  background: var(--color-card-bg, #121824);
  border: 1px solid var(--color-border, #1f293d);
  border-radius: 12px;
  padding: 12px 10px;
  min-width: 60px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.cd-box span {
  display: block;
  font-size: 1.4rem;
  font-weight: bold;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cd-box label { font-size: 0.68rem; color: var(--color-muted, #7d8590); text-transform: uppercase; letter-spacing: 1px; }

/* ---- LOCATION ---- */
.map-wrap { margin-top: 16px; border-radius: 12px; overflow: hidden; border: 1px solid var(--color-border, #1f293d); }

/* ---- GIFT ---- */
.gift-note { color: var(--color-muted, #7d8590); font-size: 0.9rem; }
.gift-grid { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.gift-card {
  background: var(--color-card-bg, #121824);
  border: 1px solid var(--color-border, #1f293d);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.gift-jenis { font-size: 0.8rem; color: var(--color-muted, #7d8590); margin: 0; text-transform: uppercase; letter-spacing: 1px; }
.gift-nomor {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 6px 0;
  color: var(--color-primary, #00f2fe);
}
.gift-nama { font-size: 0.85rem; color: var(--color-text, #e6edf3); margin: 0; }
.gift-address { margin-top: 16px; font-size: 0.9rem; color: var(--color-muted, #7d8590); }

/* ---- RSVP FORM ---- */
.rsvp-form { text-align: left; margin-top: 16px; }
.rsvp-form label { display: block; font-weight: 600; margin: 14px 0 6px; font-size: 0.85rem; color: var(--color-text, #e6edf3); }
.rsvp-form input, .rsvp-form select, .rsvp-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--color-border, #1f293d);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--color-card-bg, #121824);
  color: var(--color-text, #e6edf3);
}
.rsvp-form input:focus, .rsvp-form select:focus, .rsvp-form textarea:focus {
  outline: none;
  border-color: var(--color-primary, #00f2fe);
}
.rsvp-form textarea { min-height: 85px; resize: vertical; }
.btn-submit {
  margin-top: 20px;
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--color-primary, #00f2fe), var(--color-secondary, #7928ca));
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.btn-submit:hover { opacity: 0.95; transform: translateY(-1px); }

/* ---- WISHES ---- */
.wishes-list { margin-top: 30px; text-align: left; }
.wish-item {
  background: var(--color-card-bg, #121824);
  border: 1px solid var(--color-border, #1f293d);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
}
.wish-nama { font-weight: 600; margin: 0 0 4px; font-size: 0.95rem; color: var(--color-text, #e6edf3); }
.wish-status { font-weight: normal; color: var(--color-primary, #00f2fe); font-size: 0.8rem; margin-left: 4px; }
.wish-text { margin: 4px 0; font-size: 0.9rem; color: var(--color-text, #e6edf3); line-height: 1.4; }
.wish-item time { font-size: 0.72rem; color: var(--color-muted, #7d8590); display: block; margin-top: 6px; }
.wish-empty { color: var(--color-muted, #7d8590); font-size: 0.9rem; }

/* ---- FOOTER ---- */
.footer { text-align: center; padding: 30px 20px; color: var(--color-muted, #7d8590); font-size: 0.85rem; border-top: 1px solid var(--color-border, #1f293d); }

/* ---- MUSIC ---- */
.music-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--color-primary, #00f2fe), var(--color-secondary, #7928ca));
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  z-index: 10;
}

/* ---- THANK YOU MODAL & ANTI-SPAM NOTICE ---- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-card {
  background: var(--color-bg, #090d16);
  border: 1px solid var(--color-border, #1f293d);
  border-radius: 20px;
  width: 100%;
  max-width: 420px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
  animation: modalAppear 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes modalAppear {
  0% { opacity: 0; transform: scale(0.85) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-icon { font-size: 2.8rem; display: block; margin-bottom: 8px; }
.modal-header h2 {
  font-size: 1.6rem;
  margin: 0 0 6px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.modal-subtitle { color: var(--color-muted, #7d8590); font-size: 0.88rem; margin: 0 0 16px; }

.rsvp-summary {
  background: var(--color-card-bg, #121824);
  border: 1px solid var(--color-border, #1f293d);
  border-radius: 12px;
  padding: 14px;
  text-align: left;
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.rsvp-summary p { margin: 6px 0; color: var(--color-text, #e6edf3); }
.badge-status {
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(0, 242, 254, 0.15);
  color: var(--color-primary, #00f2fe);
}

.barcode-pass-box {
  background: #ffffff;
  color: #1f293d;
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
  text-align: center;
}
.barcode-title { font-weight: bold; margin: 0 0 10px; font-size: 0.92rem; color: #0f172a; }
.barcode-img { max-width: 100%; height: auto; margin: 8px 0; border-radius: 8px; }
.barcode-note { font-size: 0.78rem; color: #64748b; margin: 6px 0 12px; line-height: 1.3; }
.btn-download-pass {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.btn-close-modal {
  margin-top: 10px;
  width: 100%;
  padding: 12px;
  border-radius: 25px;
  border: 1px solid var(--color-border, #1f293d);
  background: var(--color-card-bg, #121824);
  color: var(--color-text, #e6edf3);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

/* Anti-Spam Notice */
.rsvp-done-notice {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid #10b981;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
  text-align: center;
}
.notice-icon { font-size: 1.6rem; color: #10b981; margin: 0 0 4px; font-weight: bold; }
.rsvp-done-notice h3 { margin: 0 0 4px; font-size: 1rem; color: #10b981; }
.notice-desc { margin: 0; font-size: 0.82rem; color: var(--color-muted, #7d8590); }
