/* ================================================================
   VALLERIE VALENCIA — SWEET SEVENTEEN
   Pink Marble · Elegant · Dreamy
   ================================================================ */

/* ── Variables ── */
:root {
  /* Pink Marble Palette */
  --cream:          #fff8fa;
  --blush-lightest: #fef0f5;
  --blush-light:    #fce4ef;
  --blush:          #f5bfd4;
  --rose-pale:      #e8a0bc;
  --rose-mid:       #d4788c;
  --rose:           #c2547a;
  --deep-rose:      #9a3060;
  --burgundy:       #7B1B3E;
  --dark-burg:      #5a0e28;

  /* Gold / Rose Gold */
  --gold:           #d4af6e;
  --rose-gold:      #c9967a;
  --gold-light:     #e8cc90;
  --gold-pale:      #f5e8c8;

  /* Text */
  --text-primary:   #5a1030;
  --text-secondary: #9a4060;
  --text-muted:     #c4809a;
  --text-light:     #e8c0d0;

  /* Glassmorphism */
  --glass:           rgba(255, 255, 255, 0.72);
  --glass-soft:      rgba(255, 255, 255, 0.50);
  --glass-pink:      rgba(252, 228, 239, 0.55);
  --glass-border:    rgba(255, 255, 255, 0.88);
  --glass-border-sm: rgba(212, 175, 110, 0.28);

  /* Typography */
  --script:  'Dancing Script', cursive;
  --serif:   'Cormorant Garamond', Georgia, serif;
  --display: 'Cinzel', serif;
  --sans:    'Jost', system-ui, sans-serif;

  /* Spacing */
  --gap-xs:  8px;
  --gap-sm:  16px;
  --gap-md:  32px;
  --gap-lg:  64px;
  --gap-xl:  96px;

  /* Radius */
  --r-sm:   8px;
  --r-md:   16px;
  --r-lg:   24px;
  --r-xl:   40px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-soft:  0 8px 40px rgba(122, 27, 62, 0.10);
  --shadow-card:  0 4px 24px rgba(122, 27, 62, 0.08);
  --shadow-hover: 0 16px 48px rgba(122, 27, 62, 0.18);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t:    0.4s;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--sans);
  background: url('pink_marble_bg.png') center / cover fixed;
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Warm tint overlay on marble */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(255, 240, 248, 0.30) 0%,
    rgba(252, 224, 239, 0.20) 50%,
    rgba(248, 215, 233, 0.28) 100%
  );
  z-index: 0;
  pointer-events: none;
}

img    { display: block; width: 100%; height: 100%; object-fit: cover; }
a      { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: var(--sans); }

/* ── Canvas sparkles ── */
#canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ── Decorative Corner Orbs ── */
.orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  animation: orbFadeIn 2.5s ease forwards;
}

.orb-tl {
  width: 480px; height: 480px;
  top: -180px; left: -180px;
  background: radial-gradient(circle at 60% 60%,
    rgba(200, 110, 160, 0.60) 0%,
    rgba(180,  80, 130, 0.35) 40%,
    rgba(212, 175, 110, 0.15) 65%,
    transparent 75%);
  filter: blur(55px);
  animation-delay: 0.3s;
}
.orb-tr {
  width: 420px; height: 420px;
  top: -150px; right: -150px;
  background: radial-gradient(circle at 40% 60%,
    rgba(212, 175, 110, 0.55) 0%,
    rgba(200, 140, 100, 0.30) 40%,
    rgba(200, 110, 160, 0.15) 65%,
    transparent 75%);
  filter: blur(50px);
  animation-delay: 0.6s;
}
.orb-bl {
  width: 360px; height: 360px;
  bottom: -120px; left: -120px;
  background: radial-gradient(circle at 60% 40%,
    rgba(212, 175, 110, 0.50) 0%,
    rgba(200, 140, 100, 0.25) 40%,
    transparent 70%);
  filter: blur(50px);
  animation-delay: 0.9s;
}
.orb-br {
  width: 460px; height: 460px;
  bottom: -160px; right: -160px;
  background: radial-gradient(circle at 40% 40%,
    rgba(200, 100, 155, 0.58) 0%,
    rgba(170,  60, 115, 0.30) 40%,
    rgba(212, 175, 110, 0.12) 65%,
    transparent 75%);
  filter: blur(55px);
  animation-delay: 1.1s;
}

@keyframes orbFadeIn {
  to { opacity: 1; }
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 48px;
  display: flex;
  align-items: center;
  transition: background var(--t) var(--ease), padding var(--t) var(--ease);
}

.nav.scrolled {
  background: rgba(255, 238, 246, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 14px 48px;
  border-bottom: 1px solid rgba(212, 175, 110, 0.28);
  box-shadow: 0 4px 24px rgba(122, 27, 62, 0.07);
}

.nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-name {
  font-family: var(--script);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--burgundy);
  letter-spacing: 0.01em;
  text-shadow: 0 2px 12px rgba(122, 27, 62, 0.10);
}

.nav-links {
  display: flex;
  gap: var(--gap-md);
}

.nav-links a {
  font-family: var(--display);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--t) var(--ease);
  position: relative;
  padding-bottom: 3px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--rose), var(--gold));
  transform: scaleX(0);
  transition: transform var(--t) var(--ease);
  transform-origin: left;
}

.nav-links a:hover { color: var(--burgundy); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  z-index: 2;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
  animation: fadeUp 1.3s var(--ease) both;

  /* Glassmorphism invitation card */
  background: rgba(255, 255, 255, 0.70);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.90);
  border-radius: var(--r-xl);
  padding: 56px 60px 52px;
  box-shadow:
    0 24px 80px rgba(122, 27, 62, 0.14),
    0 0 0 1px rgba(212, 175, 110, 0.16) inset,
    0 -1px 0 rgba(255,255,255,0.8) inset;
}

.hero-pre {
  font-family: var(--display);
  font-size: 0.60rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--deep-rose);
  margin-bottom: var(--gap-md);
  opacity: 0.88;
}

.hero-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-sm);
  margin: var(--gap-sm) 0;
}

.hero-rule span:not(.hero-diamond) {
  display: block;
  height: 1px;
  width: 70px;
  background: linear-gradient(to right, transparent, var(--gold));
}

.hero-rule span:last-child {
  background: linear-gradient(to left, transparent, var(--gold));
}

.hero-diamond {
  color: var(--gold);
  font-size: 0.55rem;
  opacity: 0.75;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: var(--gap-sm) 0;
  line-height: 1.0;
}

.hero-name {
  font-family: var(--script);
  font-size: clamp(3.5rem, 10vw, 6.5rem);
  font-weight: 600;
  color: var(--burgundy);
  line-height: 1.10;
  letter-spacing: 0.01em;
}

.hero-event {
  font-family: var(--script);
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 500;
  color: var(--dark-burg);
  line-height: 1.05;
}

.hero-sub {
  font-family: var(--display);
  font-size: 0.68rem;
  letter-spacing: 0.48em;
  text-transform: uppercase;
  color: var(--rose);
  margin: var(--gap-sm) 0;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
  margin: var(--gap-md) auto;
  max-width: 440px;
  border: 1px solid rgba(212, 175, 110, 0.38);
  padding: var(--gap-md) var(--gap-md);
  position: relative;
  background: rgba(255, 248, 252, 0.55);
  border-radius: var(--r-md);
}

.hero-meta::before,
.hero-meta::after {
  content: '◆';
  position: absolute;
  color: var(--gold);
  font-size: 0.5rem;
  opacity: 0.75;
}
.hero-meta::before { top: -7px; left: 50%; transform: translateX(-50%); background: transparent; }
.hero-meta::after  { bottom: -7px; left: 50%; transform: translateX(-50%); background: transparent; }

.hero-meta-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--gap-md);
}

.meta-label {
  font-family: var(--display);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose-gold);
  flex-shrink: 0;
}

.meta-value {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--text-primary);
  text-align: right;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.hero-meta-sep {
  height: 1px;
  background: rgba(212, 175, 110, 0.24);
}

.hero-btn {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose) 0%, var(--burgundy) 100%);
  padding: 15px 44px;
  border-radius: var(--r-full);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
  box-shadow: 0 6px 28px rgba(122, 27, 62, 0.32);
  margin-top: 4px;
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 44px rgba(122, 27, 62, 0.42);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--rose), transparent);
  margin: 0 auto;
  animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50%  { opacity: 0.9; }
  100% { opacity: 0; transform: scaleY(1); }
}

/* ── Sections (common) ── */
.section { position: relative; z-index: 2; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--gap-xl) var(--gap-md);
  text-align: center;
}

/* ── Tab Panels System ── */
.tab-panels-wrapper {
  position: relative;
  z-index: 2;
}

.tab-panel {
  display: none;
  animation: tabFadeIn 0.5s var(--ease) both;
}

.tab-panel.active {
  display: block;
}

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

/* Tab section should fill at least viewport height */
.tab-panel > .section {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: flex-start;
}

.tab-panel > .section > .container {
  width: 100%;
  padding-top: 100px;
  padding-bottom: var(--gap-xl);
}

/* Active nav link indicator */
.nav-links a.active {
  color: var(--burgundy);
  font-weight: 500;
}

.nav-links a.active::after {
  transform: scaleX(1);
}

/* Home nav link */
.nav-home-link {
  position: relative;
  padding-right: var(--gap-sm) !important;
  margin-right: 4px;
}

.nav-home-link::before {
  content: '⌂';
  margin-right: 4px;
  font-size: 0.7rem;
  vertical-align: middle;
  opacity: 0.75;
}

.eyebrow {
  font-family: var(--display);
  font-size: 0.60rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--rose-gold);
  opacity: 0.9;
  margin-bottom: var(--gap-xs);
}

.section-heading {
  font-family: var(--script);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 600;
  color: var(--burgundy);
  margin-bottom: var(--gap-sm);
  line-height: 1.2;
}

.section-body {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto var(--gap-lg);
  line-height: 1.85;
  font-weight: 300;
}

/* ── Section Backgrounds ── */
.countdown-section {
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-top: 1px solid rgba(255, 255, 255, 0.80);
  border-bottom: 1px solid rgba(255, 255, 255, 0.80);
}

.gift-section {
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.78);
}

.wishes-section {
  background: rgba(252, 228, 239, 0.32);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.rsvp-section {
  background: rgba(255, 255, 255, 0.64);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-top: 1px solid rgba(255, 255, 255, 0.80);
}

/* ── Countdown ── */
.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-sm);
  flex-wrap: wrap;
  margin-top: var(--gap-lg);
}

.c-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 110px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(212, 175, 110, 0.25);
  border-radius: var(--r-lg);
  padding: var(--gap-md) var(--gap-sm);
  box-shadow: var(--shadow-card);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}

.c-unit:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(194, 84, 122, 0.30);
}

.c-num {
  font-family: var(--script);
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 600;
  color: var(--burgundy);
  line-height: 1;
  letter-spacing: -0.01em;
  transition: color 0.3s;
}

.c-unit:hover .c-num { color: var(--rose); }

.c-label {
  font-family: var(--display);
  font-size: 0.55rem;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 10px;
}

.c-divider {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--rose-pale);
  padding-bottom: 24px;
  opacity: 0.55;
}

/* ── Gift ── */
.gift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap-sm);
  margin-top: var(--gap-lg);
}

.gift-card {
  padding: var(--gap-lg) var(--gap-md);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 110, 0.26);
  border-radius: var(--r-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-sm);
  box-shadow: var(--shadow-card);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}

.gift-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(194, 84, 122, 0.25);
}

.gift-bank-icon {
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: -4px;
}

.gift-bank {
  font-family: var(--display);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rose);
}

.gift-owner {
  font-family: var(--script);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.gift-num-box {
  border: 1px solid rgba(212, 175, 110, 0.40);
  padding: 12px 24px;
  min-width: 180px;
  border-radius: var(--r-sm);
  background: rgba(255, 248, 252, 0.60);
}

.gift-num {
  font-family: var(--display);
  font-size: 0.88rem;
  letter-spacing: 0.15em;
  color: var(--text-primary);
}

.gift-copy-btn {
  font-family: var(--display);
  font-size: 0.57rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--rose);
  border: 1px solid rgba(194, 84, 122, 0.30);
  padding: 10px 26px;
  border-radius: var(--r-full);
  transition: all var(--t) var(--ease);
}

.gift-copy-btn:hover {
  background: linear-gradient(135deg, var(--rose) 0%, var(--burgundy) 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 6px 22px rgba(122, 27, 62, 0.28);
  transform: translateY(-1px);
}

.gift-copied {
  font-family: var(--display);
  font-size: 0.55rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--rose);
  opacity: 0;
  transition: opacity 0.3s;
  height: 16px;
}
.gift-copied.show { opacity: 1; }

/* ── Forms ── */
.form-wrapper {
  max-width: 560px;
  margin: 0 auto var(--gap-lg);
  text-align: left;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: var(--r-lg);
  padding: var(--gap-md) var(--gap-md);
  box-shadow: var(--shadow-soft);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: var(--gap-sm);
  position: relative;
}

.field label {
  font-family: var(--display);
  font-size: 0.58rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--rose);
}

.field input,
.field textarea,
.field select {
  background: rgba(255, 248, 252, 0.82);
  border: 1px solid rgba(212, 175, 110, 0.26);
  border-radius: var(--r-sm);
  padding: 14px 18px;
  font-size: 0.95rem;
  color: var(--text-primary);
  font-family: var(--serif);
  font-weight: 300;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
  resize: none;
}

.field select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23C2547A' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 10px;
  padding-right: 42px;
}

.field select option {
  background: #FFF8FC;
  color: var(--text-primary);
  font-family: var(--serif);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-muted);
  font-style: italic;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(194, 84, 122, 0.12);
}

.guest-pax {
  font-family: var(--display);
  font-size: 0.60rem;
  letter-spacing: 0.12em;
  color: var(--deep-rose);
  background: rgba(194, 84, 122, 0.12);
  padding: 2px 8px;
  border-radius: var(--r-full);
  margin-left: 8px;
  font-weight: 500;
  vertical-align: middle;
}

.field-count {
  position: absolute;
  bottom: -20px;
  right: 0;
  font-family: var(--display);
  font-size: 0.55rem;
  letter-spacing: 0.10em;
  color: var(--text-muted);
}

.form-btn {
  width: 100%;
  font-family: var(--display);
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: white;
  background: linear-gradient(135deg, var(--rose) 0%, var(--burgundy) 100%);
  padding: 16px;
  margin-top: var(--gap-sm);
  border-radius: var(--r-full);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
  box-shadow: 0 6px 24px rgba(122, 27, 62, 0.26);
}

.form-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(122, 27, 62, 0.38);
}
.form-btn:disabled { opacity: 0.50; cursor: default; transform: none; box-shadow: none; }

/* ── Wishes Wall ── */
.wishes-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap-sm);
  margin-top: var(--gap-lg);
}

.wish-card {
  padding: var(--gap-md);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: var(--r-lg);
  text-align: left;
  animation: fadeUp 0.5s var(--ease) both;
  box-shadow: var(--shadow-card);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
  position: relative;
  overflow: hidden;
}

.wish-card::before {
  content: '✦';
  position: absolute;
  top: var(--gap-sm);
  right: var(--gap-sm);
  color: var(--gold);
  font-size: 0.85rem;
  opacity: 0.45;
}

.wish-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.wish-card-name {
  font-family: var(--display);
  font-size: 0.60rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 10px;
}

.wish-card-text {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.75;
  font-weight: 300;
}

.wish-card-time {
  font-family: var(--display);
  font-size: 0.50rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-top: 14px;
}

.wall-empty {
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--text-muted);
  margin-top: var(--gap-lg);
  text-align: center;
}

/* ── RSVP Stats ── */
.stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-md);
  margin-bottom: var(--gap-lg);
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(212, 175, 110, 0.22);
  border-radius: var(--r-lg);
  padding: var(--gap-md) 48px;
  box-shadow: var(--shadow-card);
  transition: transform var(--t) var(--ease);
}

.stat:hover { transform: translateY(-3px); }

.stat-num {
  font-family: var(--script);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  color: var(--burgundy);
  line-height: 1;
}

.stat-lbl {
  font-family: var(--display);
  font-size: 0.55rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* RSVP Choices */
.rsvp-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-sm);
}

.choice { cursor: pointer; }
.choice input { display: none; }

.choice-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border: 1px solid rgba(212, 175, 110, 0.22);
  background: rgba(255, 248, 252, 0.65);
  border-radius: var(--r-md);
  transition: all var(--t) var(--ease);
}

.choice:hover .choice-box {
  border-color: var(--rose);
  background: rgba(255, 240, 248, 0.80);
}

.choice input:checked + .choice-box {
  border-color: var(--rose);
  background: rgba(252, 228, 239, 0.55);
  box-shadow: 0 0 0 3px rgba(194, 84, 122, 0.10);
}

.choice-mark {
  width: 16px; height: 16px;
  border: 1.5px solid rgba(194, 84, 122, 0.38);
  border-radius: 50%;
  flex-shrink: 0;
  transition: all var(--t) var(--ease);
  position: relative;
}

.choice-mark::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--burgundy));
  opacity: 0;
  transition: opacity var(--t) var(--ease);
}

.choice input:checked + .choice-box .choice-mark::after { opacity: 1; }

.choice-label {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-secondary);
  transition: color var(--t) var(--ease);
}

.choice input:checked + .choice-box .choice-label {
  color: var(--burgundy);
  font-weight: 400;
}

/* ── Guest List ── */
.guest-list-wrap {
  margin-top: var(--gap-lg);
  text-align: left;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.guest-list-title {
  font-family: var(--script);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--burgundy);
  margin-bottom: var(--gap-md);
  text-align: center;
}

.guest-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid rgba(212, 175, 110, 0.22);
}

.guest-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--gap-md);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  animation: fadeUp 0.4s var(--ease) both;
  transition: background var(--t) var(--ease);
}

.guest-entry:hover { background: rgba(255, 248, 252, 0.90); }

.guest-entry-name {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-primary);
}

.guest-entry-status {
  font-family: var(--display);
  font-size: 0.54rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--r-full);
}

.guest-entry-status.hadir {
  background: rgba(154, 48, 96, 0.12);
  color: var(--deep-rose);
  border: 1px solid rgba(154, 48, 96, 0.20);
}

.guest-entry-status.tidak {
  background: rgba(160, 128, 140, 0.10);
  color: var(--text-muted);
  border: 1px solid rgba(160, 128, 140, 0.18);
}

/* ── Footer ── */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.64);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--gap-lg) var(--gap-md);
  text-align: center;
}

.footer-name {
  font-family: var(--script);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--burgundy);
  margin-bottom: 6px;
}

.footer-detail {
  font-family: var(--display);
  font-size: 0.60rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--gap-sm);
}

.footer-rule {
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: var(--gap-sm) auto;
}

.footer-copy {
  font-family: var(--serif);
  font-size: 0.90rem;
  font-style: italic;
  color: var(--text-muted);
  font-weight: 300;
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   GALLERY / MEMORIES SECTION
   ================================================================ */

.gallery-section {
  background: rgba(252, 228, 239, 0.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
}

/* ── Gallery Closed Card (Lock until Hari H) ── */
.gallery-closed-card {
  max-width: 540px;
  margin: var(--gap-md) auto var(--gap-lg);
  padding: 36px 28px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(212, 175, 110, 0.35);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.gallery-closed-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rose), var(--gold), var(--burgundy));
}

.closed-badge {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.52rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--burgundy);
  background: rgba(212, 175, 110, 0.15);
  border: 1px solid rgba(212, 175, 110, 0.35);
  padding: 5px 14px;
  border-radius: var(--r-full);
  margin-bottom: 14px;
}

.closed-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
  animation: floatOrb 4s ease-in-out infinite;
}

.closed-title {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--burgundy);
  margin-bottom: 10px;
}

.closed-desc {
  font-family: var(--sans);
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.closed-desc strong {
  color: var(--burgundy);
  font-weight: 600;
}

.closed-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--rose);
}

/* ── Upload Dropzone ── */
.gallery-upload-wrapper {
  max-width: 560px;
}

.gallery-dropzone {
  position: relative;
  border: 2px dashed rgba(212, 175, 110, 0.40);
  border-radius: var(--r-lg);
  background: rgba(255, 248, 252, 0.55);
  padding: var(--gap-lg) var(--gap-md);
  cursor: pointer;
  transition: all var(--t) var(--ease);
  overflow: hidden;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-dropzone:hover {
  border-color: var(--rose);
  background: rgba(252, 228, 239, 0.40);
  box-shadow: 0 0 0 4px rgba(194, 84, 122, 0.08);
}

.gallery-dropzone.drag-over {
  border-color: var(--rose);
  background: rgba(252, 228, 239, 0.55);
  box-shadow: 0 0 0 6px rgba(194, 84, 122, 0.12);
  transform: scale(1.01);
}

.dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.dropzone-icon {
  color: var(--rose-pale);
  margin-bottom: 4px;
  transition: color var(--t) var(--ease), transform var(--t) var(--ease);
}

.gallery-dropzone:hover .dropzone-icon {
  color: var(--rose);
  transform: translateY(-4px);
}

.dropzone-text {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-secondary);
  font-style: italic;
}

.dropzone-hint {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.dropzone-formats {
  font-family: var(--display);
  font-size: 0.52rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--rose-pale);
  margin-top: 4px;
  padding: 4px 16px;
  background: rgba(212, 175, 110, 0.10);
  border-radius: var(--r-full);
}

/* ── File Preview Inside Dropzone (Multi-file Support) ── */
.dropzone-preview {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 12px;
}

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

.preview-count-badge {
  font-family: var(--display);
  font-size: 0.70rem;
  font-weight: 600;
  color: var(--burgundy);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  background: rgba(194, 84, 122, 0.12);
  padding: 4px 12px;
  border-radius: var(--r-full);
}

.preview-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-add-more-btn,
.preview-clear-all-btn {
  background: none;
  border: 1px solid rgba(194, 84, 122, 0.35);
  border-radius: var(--r-full);
  padding: 4px 14px;
  font-family: var(--sans);
  font-size: 0.70rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preview-add-more-btn {
  color: var(--burgundy);
  background: rgba(255, 255, 255, 0.90);
}

.preview-add-more-btn:hover {
  background: var(--burgundy);
  color: #fff;
  border-color: var(--burgundy);
  transform: translateY(-1px);
}

.preview-clear-all-btn {
  color: var(--text-muted);
}

.preview-clear-all-btn:hover {
  color: #d32f2f;
  border-color: #d32f2f;
  background: rgba(211, 47, 47, 0.08);
}

.dropzone-previews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
  gap: 12px;
  width: 100%;
  max-height: 280px;
  overflow-y: auto;
  padding: 4px 2px;
}

.preview-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(122, 27, 62, 0.12);
  background: #fdf5f8;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(212, 175, 110, 0.28);
}

.preview-card img,
.preview-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-video-badge {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: rgba(0, 0, 0, 0.70);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.55rem;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--sans);
  font-weight: 600;
  pointer-events: none;
}

.preview-item-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(122, 27, 62, 0.88);
  color: white;
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid white;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 3;
}

.preview-item-remove:hover {
  transform: scale(1.15);
  background: #d32f2f;
}

/* ── Upload Info Note ── */
.gallery-upload-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(212, 175, 110, 0.08);
  border: 1px solid rgba(212, 175, 110, 0.18);
  border-radius: var(--r-sm);
  margin-top: var(--gap-sm);
  margin-bottom: 4px;
}

.gallery-upload-info span {
  font-family: var(--serif);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
  font-weight: 300;
}

.upload-info-icon {
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ── Upload Progress Bar ── */
.upload-progress {
  position: relative;
  height: 36px;
  background: rgba(255, 248, 252, 0.70);
  border: 1px solid rgba(212, 175, 110, 0.22);
  border-radius: var(--r-full);
  overflow: hidden;
  margin-top: var(--gap-sm);
}

.upload-progress-bar {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--rose), var(--burgundy), var(--gold));
  background-size: 200% 100%;
  border-radius: var(--r-full);
  transition: width 0.3s ease;
  animation: progressShimmer 1.5s ease infinite;
}

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

.upload-progress-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-primary);
  z-index: 1;
  mix-blend-mode: multiply;
}

/* ================================================================
   GALLERY GRID — Masonry-style
   ================================================================ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--gap-sm);
  margin-top: var(--gap-lg);
}

.gallery-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
  animation: fadeUp 0.5s var(--ease) both;
}

.gallery-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.gallery-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--blush-lightest);
}

.gallery-card-media img,
.gallery-card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.gallery-card:hover .gallery-card-media img,
.gallery-card:hover .gallery-card-media video {
  transform: scale(1.08);
}

/* Video play overlay */
.gallery-card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(90, 14, 40, 0.25);
  opacity: 0;
  transition: opacity var(--t) var(--ease);
}

.gallery-card:hover .gallery-card-play {
  opacity: 1;
}

.gallery-card-play-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.20);
  transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-card-play-icon {
  transform: scale(1.1);
}

.gallery-card-play-icon svg {
  width: 22px;
  height: 22px;
  color: var(--burgundy);
  margin-left: 3px;
}

/* Video badge */
.gallery-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.50);
  backdrop-filter: blur(8px);
  color: white;
  font-family: var(--display);
  font-size: 0.48rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-full);
}

/* Card footer info */
.gallery-card-info {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.gallery-card-meta {
  flex: 1;
  min-width: 0;
}

.gallery-card-name {
  font-family: var(--display);
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-card-time {
  font-family: var(--display);
  font-size: 0.48rem;
  letter-spacing: 0.10em;
  color: var(--text-muted);
}

.gallery-card-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--r-full);
  background: rgba(122, 27, 62, 0.08);
  border: 1px solid rgba(122, 27, 62, 0.22);
  color: var(--burgundy);
  font-family: var(--display);
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.22s ease;
}

.gallery-card-download-btn:hover {
  background: linear-gradient(135deg, var(--rose), var(--burgundy));
  color: white;
  border-color: transparent;
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 4px 14px rgba(90, 14, 40, 0.28);
}

.gallery-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.gallery-card-delete-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(220, 53, 69, 0.08);
  border: 1px solid rgba(220, 53, 69, 0.22);
  color: #c93b50;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.gallery-card-delete-btn:hover {
  background: #c93b50;
  color: white;
  border-color: transparent;
  transform: scale(1.12);
  box-shadow: 0 4px 12px rgba(201, 59, 80, 0.35);
}

/* ── Gallery Load More Button ── */
.gallery-load-more-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: var(--gap-lg);
  margin-bottom: var(--gap-sm);
  width: 100%;
}

.gallery-load-more-btn {
  max-width: 340px;
  padding: 13px 28px;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  border-radius: var(--r-full);
  box-shadow: 0 4px 20px rgba(122, 27, 62, 0.18);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-load-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(122, 27, 62, 0.28);
}

/* ================================================================
   GALLERY LIGHTBOX — Full-screen Preview
   ================================================================ */

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.gallery-lightbox.show {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 5, 18, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.lightbox-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 90vh;
  width: 100%;
  transform: scale(0.92);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery-lightbox.show .lightbox-content {
  transform: scale(1);
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg) scale(1.1);
}

.lightbox-download-top {
  position: fixed;
  top: 20px;
  right: 80px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: white;
  font-family: var(--display);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lightbox-download-top:hover {
  background: linear-gradient(135deg, var(--rose), var(--burgundy));
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.20);
  color: white;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-media {
  max-width: 85vw;
  max-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-media img {
  max-width: 85vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: 0 16px 80px rgba(0, 0, 0, 0.50);
}

.lightbox-media video {
  max-width: 85vw;
  max-height: 75vh;
  border-radius: var(--r-md);
  box-shadow: 0 16px 80px rgba(0, 0, 0, 0.50);
}

.lightbox-info {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
}

.lightbox-info-meta {
  text-align: left;
}

.lightbox-info-name {
  font-family: var(--script);
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 2px;
}

.lightbox-info-time {
  font-family: var(--display);
  font-size: 0.50rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.lightbox-save-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--rose), var(--burgundy));
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: white;
  font-family: var(--display);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.40);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.lightbox-save-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(212, 175, 110, 0.45);
}

.lightbox-save-btn svg {
  flex-shrink: 0;
}

.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.lightbox-delete-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: var(--r-full);
  background: rgba(220, 53, 69, 0.20);
  border: 1px solid rgba(220, 53, 69, 0.50);
  color: #ff9aa7;
  font-family: var(--display);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.40);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.lightbox-delete-btn:hover {
  background: #c93b50;
  color: white;
  border-color: transparent;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 22px rgba(201, 59, 80, 0.50);
}

.lightbox-delete-btn svg {
  flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav          { padding: 12px 20px; }
  .nav.scrolled { padding: 10px 20px; }
  .nav-inner    { flex-direction: column; gap: 8px; text-align: center; }
  .nav-name     { font-size: 0.95rem; margin-bottom: 2px; }
  .nav-links    { gap: var(--gap-sm); justify-content: center; width: 100%; }
  .nav-links a  { font-size: 0.58rem; }

  .hero-content { padding: 36px 28px 40px; border-radius: var(--r-lg); }

  .hero-meta { padding: var(--gap-md) var(--gap-sm); }
  .hero-meta-item { flex-direction: column; gap: 4px; }
  .meta-value { text-align: left; }

  .rsvp-choices { grid-template-columns: 1fr; }

  .stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .stat      { padding: var(--gap-md) 10px; width: 100%; box-sizing: border-box; }
  .stat:last-child { grid-column: span 2; }

  .form-wrapper { padding: var(--gap-md) var(--gap-sm); }

  .c-unit   { min-width: 80px; padding: var(--gap-sm) var(--gap-xs); }
  .c-divider { font-size: 1.5rem; }

  /* Gallery responsive */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery-dropzone { padding: var(--gap-md) var(--gap-sm); min-height: 150px; }
  .lightbox-nav { width: 38px; height: 38px; font-size: 1.4rem; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-media img,
  .lightbox-media video { max-width: 92vw; max-height: 70vh; }
}

@media (max-width: 480px) {
  .container { padding: var(--gap-lg) var(--gap-sm); }

  .countdown-grid { gap: 8px; }
  .c-divider { display: none; }

  /* Gallery mobile */
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-dropzone { min-height: 140px; }
  .dropzone-icon svg { width: 36px; height: 36px; }
}

/* ================================================================
   SPLASH SCREEN — Full-page Intro Overlay
   ================================================================ */
.splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.splash-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(253,224,239,0.95) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(212,175,110,0.2) 0%, transparent 50%),
    linear-gradient(135deg, #fef0f5 0%, #fce4ef 40%, #f5bfd4 100%);
  backdrop-filter: blur(0px);
}

/* Floating petals */
.splash-petals {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.splash-petals span {
  position: absolute;
  font-size: 1.8rem;
  animation: petal-float 6s ease-in-out infinite;
  opacity: 0.7;
}
.splash-petals span:nth-child(1) { top: 8%;  left: 10%; animation-delay: 0s;    font-size: 2rem; }
.splash-petals span:nth-child(2) { top: 15%; right: 12%; animation-delay: 1s;  font-size: 1.4rem; }
.splash-petals span:nth-child(3) { top: 70%; left: 8%;  animation-delay: 2s;   font-size: 1.6rem; }
.splash-petals span:nth-child(4) { top: 80%; right: 10%; animation-delay: 0.5s; font-size: 1.2rem; }
.splash-petals span:nth-child(5) { top: 45%; left: 5%;  animation-delay: 3s;   font-size: 1rem; }
.splash-petals span:nth-child(6) { top: 30%; right: 6%; animation-delay: 1.5s; font-size: 2.2rem; }

@keyframes petal-float {
  0%, 100% { transform: translateY(0) rotate(0deg);   opacity: 0.5; }
  33%       { transform: translateY(-18px) rotate(8deg); opacity: 0.8; }
  66%       { transform: translateY(10px) rotate(-5deg); opacity: 0.6; }
}

/* Card */
.splash-content {
  position: relative;
  text-align: center;
  padding: 3rem 2.5rem 2.5rem;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 28px;
  box-shadow:
    0 8px 40px rgba(194,84,122,0.15),
    0 2px 12px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.9);
  max-width: 420px;
  width: 90%;
  animation: splash-card-in 0.8s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes splash-card-in {
  from { opacity: 0; transform: scale(0.85) translateY(30px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.splash-pre {
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rose-mid);
  margin-bottom: 0.75rem;
}

.splash-name {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(2.2rem, 6vw, 3rem);
  font-weight: 700;
  color: var(--deep-rose);
  line-height: 1.15;
  margin: 0 0 0.5rem;
  text-shadow: 0 2px 12px rgba(154,48,96,0.15);
}
.splash-name span {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.25rem;
}

.splash-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
  font-style: italic;
}

/* CTA Button */
.splash-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.9rem 2.2rem;
  background: linear-gradient(135deg, var(--deep-rose), var(--rose-mid));
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  cursor: pointer;
  overflow: visible;
  box-shadow:
    0 4px 20px rgba(154,48,96,0.4),
    0 1px 4px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.splash-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 28px rgba(154,48,96,0.5);
}
.splash-btn:active { transform: scale(0.97); }

/* Pulse rings around button */
.splash-btn-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50px;
  border: 2px solid rgba(194,84,122,0.5);
  animation: btn-pulse 1.8s ease-out infinite;
  pointer-events: none;
}
@keyframes btn-pulse {
  0%   { transform: scale(1);   opacity: 0.8; }
  100% { transform: scale(1.3); opacity: 0; }
}

.splash-hint {
  margin-top: 1.2rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* Fade-out animation when dismissed */
.splash.hide {
  animation: splash-out 0.6s ease-in-out forwards;
  pointer-events: none;
}
@keyframes splash-out {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.05); }
}

/* ================================================================
   MUSIC PLAYER — Floating Bottom-Right
   ================================================================ */
.music-player {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

/* Disc */
.music-disc {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--deep-rose), var(--rose-mid), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 3px rgba(255,255,255,0.4),
    0 0 20px rgba(194,84,122,0.45),
    0 4px 16px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.music-disc:hover {
  box-shadow:
    0 0 0 4px rgba(255,255,255,0.6),
    0 0 30px rgba(212,175,110,0.6),
    0 6px 24px rgba(0,0,0,0.35);
  transform: scale(1.08);
}

.music-disc-inner {
  width: 28px;
  height: 28px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-disc-inner svg {
  width: 22px;
  height: 22px;
}

/* Spinning animation when playing */
@keyframes disc-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.music-player.playing .music-disc {
  animation: disc-spin 4s linear infinite;
}

.music-player.playing .music-disc:hover {
  animation-play-state: paused;
}

/* Equalizer bars */
.music-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.music-player.playing .music-bars {
  opacity: 1;
}

.music-bars span {
  display: block;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(to top, var(--rose), var(--gold));
  height: 4px;
}

@keyframes bar1 { 0%,100%{height:4px} 50%{height:16px} }
@keyframes bar2 { 0%,100%{height:10px} 33%{height:4px}  66%{height:18px} }
@keyframes bar3 { 0%,100%{height:16px} 25%{height:6px}  75%{height:12px} }
@keyframes bar4 { 0%,100%{height:6px}  40%{height:18px} 80%{height:4px} }

.music-player.playing .music-bars span:nth-child(1) { animation: bar1 0.8s ease-in-out infinite; }
.music-player.playing .music-bars span:nth-child(2) { animation: bar2 0.6s ease-in-out infinite; }
.music-player.playing .music-bars span:nth-child(3) { animation: bar3 0.9s ease-in-out infinite; }
.music-player.playing .music-bars span:nth-child(4) { animation: bar4 0.7s ease-in-out infinite; }

/* Label */
.music-label {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.85;
  transition: opacity 0.3s;
}

.music-player.playing .music-label {
  color: var(--rose);
  opacity: 1;
}

/* Pulse ring when playing */
@keyframes pulse-ring {
  0%   { transform: scale(1);   opacity: 0.5; }
  100% { transform: scale(1.7); opacity: 0; }
}

.music-player.playing .music-disc::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--rose);
  animation: pulse-ring 1.6s ease-out infinite;
  pointer-events: none;
}

/* ================================================================
   GIFT MODAL — Premium Overlay & Transitions
   ================================================================ */
.gift-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.gift-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.gift-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(90, 16, 48, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.gift-modal-content {
  position: relative;
  background: rgba(255, 248, 250, 0.98);
  border: 1px solid rgba(212, 175, 110, 0.35);
  border-radius: 24px;
  padding: 3.5rem 2rem 2.5rem;
  width: 90%;
  max-width: 780px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 
    0 24px 60px rgba(90, 16, 48, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  z-index: 2;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
}

.gift-modal.show .gift-modal-content {
  transform: scale(1) translateY(0);
}

.gift-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s;
}

.gift-modal-close:hover {
  color: var(--burgundy);
  transform: rotate(90deg);
}

.gift-modal-title {
  font-family: var(--display);
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--burgundy);
  margin-bottom: 8px;
}

.gift-modal-subtitle {
  font-family: var(--serif);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.5;
}

/* Button to Open Gift Modal */
.gift-open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.8rem;
  background: linear-gradient(135deg, var(--burgundy), var(--deep-rose));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 
    0 8px 24px rgba(123, 27, 62, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gift-open-btn:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 
    0 12px 30px rgba(123, 27, 62, 0.45),
    0 0 0 4px rgba(194, 84, 122, 0.2);
  background: linear-gradient(135deg, var(--deep-rose), var(--rose-mid));
}

.gift-open-btn:active {
  transform: scale(0.98) translateY(0);
}

/* Mobile Gift Grid Adjustment Inside Modal */
@media (max-width: 768px) {
  .gift-modal-content {
    padding: 3rem 1.2rem 2rem;
  }
  .gift-grid {
    grid-template-columns: 1fr !important;
    gap: var(--gap-md) !important;
  }
}

/* ── RSVP Confirmation Card ── */
.rsvp-done-card {
  text-align: center;
  padding: 2.8rem 2rem;
  background: linear-gradient(135deg, rgba(252,228,239,0.6), rgba(255,240,248,0.4));
  border: 1px solid rgba(212,175,110,0.3);
  border-radius: 1.4rem;
  backdrop-filter: blur(8px);
  animation: fadeSlideUp 0.55s ease both;
}

.rsvp-done-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.rsvp-done-title {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.rsvp-done-status {
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.rsvp-done-badge {
  display: inline-block;
  padding: 0.25rem 0.9rem;
  border-radius: 2rem;
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.rsvp-done-badge.hadir {
  background: rgba(180, 120, 80, 0.15);
  color: var(--gold);
  border: 1px solid rgba(212,175,110,0.4);
}

.rsvp-done-badge.tidak {
  background: rgba(194,84,122,0.12);
  color: var(--rose);
  border: 1px solid rgba(194,84,122,0.3);
}

.rsvp-done-note {
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted, #b49ca8);
  font-style: italic;
}

/* ── RSVP Closed Notice Card ── */
.rsvp-closed-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 3rem 2rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(212, 175, 110, 0.35);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fadeSlideUp 0.55s ease both;
}

.rsvp-closed-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rose), var(--gold), var(--burgundy));
}

.rsvp-closed-icon {
  font-size: 2.8rem;
  margin-bottom: 0.8rem;
  line-height: 1;
}

.rsvp-closed-title {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--burgundy);
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.rsvp-closed-desc {
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

.rsvp-closed-sub {
  font-family: 'Jost', sans-serif;
  font-size: 0.88rem;
  color: var(--text-muted, #b49ca8);
  font-style: italic;
  line-height: 1.5;
}

