:root {
  --pink-50: #fff8fc;
  --pink-100: #ffe8f4;
  --pink-200: #ffd0ea;
  --pink-300: #ffb3de;
  --pink-400: #ff8fd0;
  --pink-500: #ff6bc4;
  --pink-600: #f042a8;
  --pink-700: #d42a8f;
  --pink-800: #b01a75;
  --pink-900: #8a145c;
  --blush: #fce7f3;
  --rose-gold: #e8a4c4;
  --sparkle: #ffffff;
  --text: #5c1a42;
  --muted: #9a4d78;
  --card: rgba(255, 255, 255, 0.92);
  --shadow: 0 16px 48px rgba(212, 42, 143, 0.18);
  --shadow-soft: 0 8px 24px rgba(255, 107, 196, 0.12);
  --radius: 18px;
  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-body: "Nunito", "DM Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: linear-gradient(
    160deg,
    #e8f7f5 0%,
    var(--pink-50) 25%,
    var(--pink-100) 55%,
    #ffe8d6 85%,
    var(--blush) 100%
  );
  background-attachment: fixed;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Rhinestone field background */
.bg-pattern {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none'%3E%3Ccircle cx='8' cy='12' r='3.5' fill='%23ffffff' fill-opacity='0.55'/%3E%3Ccircle cx='8' cy='12' r='2' fill='%23ffe8f4'/%3E%3Ccircle cx='7' cy='11' r='0.8' fill='%23ffffff' fill-opacity='0.95'/%3E%3Ccircle cx='42' cy='8' r='2.8' fill='%23ffffff' fill-opacity='0.45'/%3E%3Ccircle cx='42' cy='8' r='1.5' fill='%23ffb3de'/%3E%3Ccircle cx='41' cy='7' r='0.6' fill='%23ffffff'/%3E%3Ccircle cx='28' cy='38' r='4' fill='%23ffffff' fill-opacity='0.5'/%3E%3Ccircle cx='28' cy='38' r='2.2' fill='%23ff8fd0' fill-opacity='0.4'/%3E%3Ccircle cx='26.5' cy='36.5' r='0.9' fill='%23ffffff'/%3E%3Ccircle cx='52' cy='44' r='3.2' fill='%23ffffff' fill-opacity='0.4'/%3E%3Ccircle cx='52' cy='44' r='1.8' fill='%23ffd0ea'/%3E%3Ccircle cx='14' cy='48' r='2.5' fill='%23ffffff' fill-opacity='0.35'/%3E%3Ccircle cx='36' cy='18' r='2' fill='%23ffffff' fill-opacity='0.4'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 60px;
}

.sparkles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, #fff 0%, transparent 70%);
  border-radius: 50%;
  animation: twinkle 3s ease-in-out infinite;
}

.sparkle:nth-child(1) { top: 8%; left: 6%; animation-delay: 0s; }
.sparkle:nth-child(2) { top: 18%; right: 10%; animation-delay: 0.5s; width: 8px; height: 8px; }
.sparkle:nth-child(3) { top: 32%; left: 12%; animation-delay: 1s; width: 5px; height: 5px; }
.sparkle:nth-child(4) { top: 48%; right: 6%; animation-delay: 0.2s; }
.sparkle:nth-child(5) { top: 62%; left: 4%; animation-delay: 1.4s; width: 7px; height: 7px; }
.sparkle:nth-child(6) { top: 75%; right: 18%; animation-delay: 0.8s; }
.sparkle:nth-child(7) { top: 88%; left: 22%; animation-delay: 1.8s; width: 6px; height: 6px; }
.sparkle:nth-child(8) { top: 42%; right: 28%; animation-delay: 2.2s; width: 9px; height: 9px; }
.sparkle:nth-child(9) { top: 55%; left: 45%; animation-delay: 0.4s; width: 4px; height: 4px; }
.sparkle:nth-child(10) { top: 25%; left: 75%; animation-delay: 1.6s; }
.sparkle:nth-child(11) { top: 68%; right: 42%; animation-delay: 2.5s; width: 7px; height: 7px; }
.sparkle:nth-child(12) { top: 92%; right: 8%; animation-delay: 0.9s; width: 5px; height: 5px; }

@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem max(1.25rem, env(safe-area-inset-right)) 4rem
    max(1.25rem, env(safe-area-inset-left));
}

.save-the-date {
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 1.5rem;
  margin-left: auto;
  margin-right: auto;
  padding: 1.25rem 1rem;
  border-radius: var(--radius);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95),
    rgba(255, 232, 244, 0.98)
  );
  border: 2px solid var(--pink-300);
  box-shadow: var(--shadow-soft);
}

.save-the-date-gem {
  display: block;
  font-size: 0.55rem;
  color: var(--pink-500);
  margin: 0.15rem 0;
  animation: twinkle 2.5s ease-in-out infinite;
}

.save-the-date-gem:last-child {
  animation-delay: 1.2s;
}

.save-the-date-label {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7.5vw, 2.85rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0.15rem 0 0.35rem;
  color: var(--pink-800);
  background: linear-gradient(180deg, var(--pink-700), var(--pink-900));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.save-the-date-type {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pink-600);
}

.save-the-date-date {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 6.8vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  line-height: 1.15;
  color: var(--pink-800);
}

.save-the-date-date time {
  font-style: normal;
}

.save-the-date-time {
  margin: 0;
  font-size: clamp(0.95rem, 2.8vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.calendar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 0 0 0.85rem;
}

.calendar-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.65rem 1.2rem;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 6px 18px rgba(212, 42, 143, 0.18),
    inset 0 2px 0 rgba(255, 255, 255, 0.55),
    inset 0 -3px 8px rgba(176, 26, 117, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
  animation: calendar-bubble-float 4s ease-in-out infinite;
}

.calendar-link::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 14%;
  width: 28%;
  height: 32%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.25) 55%,
    transparent 70%
  );
  pointer-events: none;
}

.calendar-link:nth-child(2) {
  animation-delay: 1.2s;
}

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

.calendar-bubble-icon {
  font-size: 1.05rem;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.12));
}

.calendar-link--google {
  color: #1a5fb4;
  background: radial-gradient(
    circle at 28% 22%,
    #fff 0%,
    #f0f7ff 38%,
    #dcecff 100%
  );
  border-color: rgba(66, 133, 244, 0.35);
  box-shadow:
    0 6px 20px rgba(66, 133, 244, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.7),
    inset 0 -3px 8px rgba(66, 133, 244, 0.1);
}

.calendar-link--google:hover {
  transform: translateY(-3px);
  box-shadow:
    0 10px 24px rgba(66, 133, 244, 0.28),
    inset 0 2px 0 rgba(255, 255, 255, 0.75);
}

.calendar-link--ical {
  color: #fff;
  background: radial-gradient(
    circle at 28% 22%,
    var(--pink-300) 0%,
    var(--pink-500) 42%,
    var(--pink-700) 100%
  );
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow:
    0 6px 20px rgba(212, 42, 143, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.35),
    inset 0 -3px 10px rgba(138, 20, 92, 0.25);
}

.calendar-link--ical:hover {
  transform: translateY(-3px);
  box-shadow:
    0 10px 26px rgba(212, 42, 143, 0.38),
    inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

@media (prefers-reduced-motion: reduce) {
  .calendar-link {
    animation: none;
  }
}

/* Rhinestone frame */
.rhinestone-frame {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding: 10px;
  margin-bottom: 2rem;
  border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(
    135deg,
    var(--pink-300),
    var(--pink-500),
    var(--rose-gold),
    var(--pink-400),
    var(--pink-600)
  );
  box-shadow: var(--shadow), inset 0 0 40px rgba(255, 255, 255, 0.25);
}

.rhinestone-frame::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: calc(var(--radius) + 4px);
  border: 2px dashed rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

.rhinestone-dots {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Ccircle cx='10' cy='10' r='4' fill='%23ffffff' fill-opacity='0.7'/%3E%3Ccircle cx='8' cy='8' r='1.2' fill='%23ffffff'/%3E%3C/svg%3E");
  background-size: 14px 14px;
  opacity: 0.35;
  mask-image: linear-gradient(#000, #000);
  -webkit-mask-image: linear-gradient(#000, #000);
}

.hero {
  position: relative;
  text-align: center;
  padding: 0;
  background: linear-gradient(
    145deg,
    #1a7a8c 0%,
    var(--pink-700) 35%,
    var(--pink-600) 60%,
    #e85d4a 100%
  );
  color: var(--pink-50);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-photo {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  padding: 1.35rem 1.25rem 0.75rem;
  background:
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(255, 255, 255, 0.08) 0%, transparent 60%),
    linear-gradient(
      135deg,
      var(--pink-400) 0%,
      var(--pink-600) 40%,
      var(--pink-800) 100%
    );
  overflow: hidden;
}

.hero-photo-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  min-height: 300px;
}

.hero-side-float {
  position: absolute;
  left: 0;
  top: 0;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
  z-index: 2;
  pointer-events: none;
  will-change: transform, left, top;
}

.hero-side-float--l2,
.hero-side-float--r2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}

.hero-side-float--l3,
.hero-side-float--r3 {
  font-size: clamp(1.4rem, 3.2vw, 1.9rem);
}

.hero-side-float--l4,
.hero-side-float--r4 {
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.hero-photo--fallback .hero-photo-stage {
  display: none;
}

.hero-photo-frame {
  position: relative;
  flex-shrink: 0;
  width: 240px;
  max-width: 58%;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.hero-photo-img {
  width: 100%;
  height: calc(100% + 40px);
  margin-top: -20px;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.hero-photo--fallback .hero-photo-frame {
  display: none;
}

.hero-photo-fallback {
  display: none;
  position: relative;
  width: min(82%, 300px);
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.35);
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.2) 0%, transparent 35%),
    linear-gradient(135deg, var(--pink-500), var(--pink-800));
}

.hero-photo--fallback .hero-photo-fallback {
  display: block;
}

.hero-float {
  position: absolute;
  font-size: clamp(2rem, 8vw, 3.5rem);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
  animation: floaty 4s ease-in-out infinite;
}

.hero-float--1 { top: 18%; left: 12%; animation-delay: 0s; }
.hero-float--2 { bottom: 15%; left: 28%; animation-delay: 0.8s; font-size: 2.2rem; }
.hero-float--3 { top: 22%; right: 15%; animation-delay: 1.2s; }
.hero-float--4 { bottom: 20%; right: 22%; animation-delay: 0.4s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}

.hero-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 55%,
    rgba(138, 20, 92, 0.35) 100%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 1.5rem 1.5rem 2rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.hero::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.08) 45%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.08) 55%,
    transparent 60%
  );
  animation: shimmer 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% { transform: translateX(-30%) rotate(0deg); }
  100% { transform: translateX(30%) rotate(0deg); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pink-100);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
}

.hero-badge::before,
.hero-badge::after {
  content: "✦";
  font-size: 0.55rem;
  color: var(--sparkle);
  opacity: 0.9;
}

.hero-badge--live {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.35), rgba(255, 255, 255, 0.2));
  border-color: rgba(255, 230, 150, 0.7);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.25);
}

.hero-badge--live::before {
  content: "🎸";
  font-size: 0.85rem;
  letter-spacing: 0;
}

.hero-badge--live::after {
  content: "✦";
}

.hero-live-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 0 0 1.1rem;
  padding: 0.75rem 1.1rem;
  border-radius: 12px;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.2),
    rgba(255, 255, 255, 0.12),
    rgba(0, 0, 0, 0.2)
  );
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.hero-live-icon {
  font-size: 1.35rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.hero-live-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-align: center;
}

.hero-live-text strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 18px rgba(255, 215, 0, 0.45);
}

.hero-live-text span {
  font-size: 0.82rem;
  color: var(--pink-100);
  font-weight: 600;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(calc(1.2rem - 1pt), calc(5.8vw - 1pt), calc(3.25rem - 1pt));
  font-weight: 700;
  margin: 0 0 0.4rem;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  color: #fff;
  text-shadow: 0 2px 24px rgba(138, 20, 92, 0.35);
  background: linear-gradient(180deg, #fff 20%, var(--pink-100) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title-line {
  display: block;
}

@media (min-width: 520px) {
  .hero h1 {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.35em;
    white-space: nowrap;
  }

  .hero-title-line {
    display: inline;
  }
}

.hero .subtitle {
  font-size: 1.08rem;
  margin: 0 0 0.85rem;
  color: var(--pink-100);
  font-weight: 600;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1rem, 3.5vw, 1.2rem);
  font-style: italic;
  line-height: 1.45;
  margin: 0 0 1.35rem;
  padding: 0.75rem 1rem;
  color: var(--pink-50);
  background: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  font-size: 0.9rem;
}

.hero-meta span,
.hero-meta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-meta-link {
  text-decoration: none;
  color: inherit;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.hero-meta-link:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.countdown-frame {
  position: relative;
  margin: 1.75rem 0 1rem;
  padding: 12px;
  border-radius: calc(var(--radius) + 10px);
  background: linear-gradient(
    135deg,
    #ffd700 0%,
    var(--pink-300) 18%,
    var(--pink-500) 45%,
    var(--rose-gold) 65%,
    var(--pink-400) 82%,
    #ffd700 100%
  );
  background-size: 200% 200%;
  animation: countdown-border-shine 8s ease infinite;
  box-shadow:
    var(--shadow),
    0 0 40px rgba(255, 107, 196, 0.35),
    inset 0 0 30px rgba(255, 255, 255, 0.2);
}

@keyframes countdown-border-shine {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.countdown-frame::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: calc(var(--radius) + 4px);
  border: 2px dashed rgba(255, 255, 255, 0.45);
  pointer-events: none;
  z-index: 2;
}

.countdown-frame-gems {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Ccircle cx='9' cy='9' r='3.5' fill='%23ffffff' fill-opacity='0.85'/%3E%3Ccircle cx='7.5' cy='7.5' r='1' fill='%23ffffff'/%3E%3C/svg%3E");
  background-size: 12px 12px;
  opacity: 0.45;
}

.countdown-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.5rem 1rem 1.35rem;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 215, 0, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(26, 122, 140, 0.25) 0%, transparent 50%),
    linear-gradient(165deg, #2a0838 0%, var(--pink-900) 35%, #6b1048 70%, #1a0520 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.countdown-inner::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  background: linear-gradient(
    105deg,
    transparent 42%,
    rgba(255, 255, 255, 0.04) 47%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.04) 53%,
    transparent 58%
  );
  animation: countdown-shimmer 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes countdown-shimmer {
  0% { transform: translateX(-20%) rotate(0deg); }
  100% { transform: translateX(20%) rotate(0deg); }
}

.countdown-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
}

.countdown-header-gem {
  font-size: 0.6rem;
  color: #ffd700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
  animation: twinkle 2s ease-in-out infinite;
}

.countdown-header-gem:last-child {
  animation-delay: 1s;
}

.countdown-label {
  font-family: var(--font-display);
  font-size: clamp(1rem, 3.5vw, 1.2rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
  font-weight: 700;
  text-shadow: 0 0 20px rgba(255, 107, 196, 0.6);
}

.countdown-date {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink-200);
  margin: 0 0 1.15rem;
  font-weight: 700;
  opacity: 0.9;
}

.countdown-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 100%;
  margin: 0 auto;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  flex: 0 1 auto;
  min-width: 0;
}

.countdown-face {
  position: relative;
  width: clamp(58px, 17vw, 76px);
  padding: 0.55rem 0.35rem 0.65rem;
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.06) 40%,
    rgba(0, 0, 0, 0.15) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -2px 8px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(6px);
}

.countdown-face::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.55),
    transparent
  );
  border-radius: 1px;
}

.countdown-face::after {
  content: "✦";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.45rem;
  color: #ffd700;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.9);
}

.countdown-face--tick {
  animation: countdown-pop 0.35s ease;
}

@keyframes countdown-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); box-shadow: 0 8px 28px rgba(255, 107, 196, 0.45); }
  100% { transform: scale(1); }
}

.countdown-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 7vw, 2.65rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 15%, var(--pink-100) 55%, #ffd700 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(255, 107, 196, 0.5));
}

.countdown-num--flip {
  animation: countdown-flip 0.4s ease;
}

@keyframes countdown-flip {
  0% { transform: perspective(200px) rotateX(0deg); opacity: 1; }
  45% { transform: perspective(200px) rotateX(-90deg); opacity: 0.3; }
  55% { transform: perspective(200px) rotateX(90deg); opacity: 0.3; }
  100% { transform: perspective(200px) rotateX(0deg); opacity: 1; }
}

.countdown-word {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pink-300);
  font-weight: 800;
}

.countdown-sep {
  flex: 0 0 auto;
  align-self: center;
  margin: 0 0.15rem;
  padding-bottom: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 700;
  line-height: 1;
  color: #ffd700;
  text-shadow:
    0 0 12px rgba(255, 215, 0, 0.7),
    0 0 24px rgba(255, 107, 196, 0.4);
  opacity: 0.85;
}

.countdown-sep--pulse {
  animation: sep-pulse 1s ease-in-out infinite;
}

@keyframes sep-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.countdown-unit--secs .countdown-face {
  border-color: rgba(255, 215, 0, 0.45);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.35),
    0 0 16px rgba(255, 215, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.countdown-tagline {
  margin: 1.1rem 0 0;
  font-size: 0.82rem;
  font-style: italic;
  font-family: var(--font-display);
  color: var(--pink-200);
  opacity: 0.85;
}

.countdown-frame.countdown--done {
  animation: countdown-celebrate 1.2s ease;
}

@keyframes countdown-celebrate {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.02); }
  60% { transform: scale(0.99); }
}

.countdown-frame.countdown--done .countdown-inner {
  background: linear-gradient(165deg, var(--pink-600), var(--pink-800), var(--pink-900));
}

.countdown-frame.countdown--done .countdown-label {
  letter-spacing: 0.06em;
  text-transform: none;
  font-size: clamp(1.1rem, 4vw, 1.35rem);
}

.countdown-frame.countdown--done .countdown-date,
.countdown-frame.countdown--done .countdown-tagline {
  display: none;
}

.countdown-frame.countdown--done .countdown-num {
  background: linear-gradient(180deg, #fff, #ffd700);
  -webkit-background-clip: text;
  background-clip: text;
}

@media (max-width: 400px) {
  .countdown-sep {
    margin: 0 0.05rem;
    padding-bottom: 1.35rem;
  }

  .countdown-face {
    width: clamp(52px, 20vw, 64px);
    padding: 0.45rem 0.2rem 0.55rem;
  }

  .countdown-word {
    font-size: 0.5rem;
    letter-spacing: 0.14em;
  }
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0.5rem 0 1.25rem;
  padding: 0 0.5rem;
}

.divider-line {
  flex: 1;
  max-width: 120px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--pink-400),
    var(--sparkle),
    var(--pink-400),
    transparent
  );
  border-radius: 2px;
}

.divider-gem {
  font-size: 0.55rem;
  color: var(--pink-500);
  opacity: 0.85;
  animation: twinkle 2.5s ease-in-out infinite;
}

.divider-icon {
  font-size: 1.1rem;
  filter: drop-shadow(0 1px 2px rgba(138, 20, 92, 0.2));
}

.divider--stars .divider-line {
  max-width: 80px;
}

.divider--wave .divider-line {
  background: linear-gradient(
    90deg,
    transparent,
    #1a7a8c,
    var(--pink-400),
    #1a7a8c,
    transparent
  );
}

.divider--rsvp {
  margin-bottom: 0.75rem;
}

.section-icon {
  font-size: 1.15rem;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(138, 20, 92, 0.15));
}

.card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--pink-200);
  backdrop-filter: blur(8px);
}

.card::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 14px;
  right: 14px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--pink-300),
    var(--sparkle),
    var(--pink-400),
    var(--sparkle),
    var(--pink-300),
    transparent
  );
  opacity: 0.8;
}

.card h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0.5rem 0 0.85rem;
  color: var(--pink-800);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  gap: 0.5rem;
}

.card h2::after {
  content: "✦";
  font-size: 0.65rem;
  color: var(--pink-400);
  opacity: 0.85;
}

.card p,
.card li {
  color: var(--muted);
  margin: 0 0 0.65rem;
}

.card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.card code {
  font-size: 0.85em;
  background: var(--pink-100);
  color: var(--pink-800);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--pink-200);
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-item strong {
  color: var(--pink-600);
  font-size: 0.9rem;
  font-weight: 800;
}

.rsvp-card {
  border: 2px solid var(--pink-400);
  box-shadow: var(--shadow), inset 0 0 60px rgba(255, 182, 222, 0.15);
}

.rsvp-card h2 {
  color: var(--pink-700);
}

.rsvp-card h2::before {
  content: "♡ ";
  -webkit-text-fill-color: var(--pink-600);
}

form label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin: 1rem 0 0.35rem;
  color: var(--pink-800);
}

form label .req {
  color: var(--pink-600);
}

input,
select,
textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 0.75rem 0.9rem;
  border: 2px solid var(--pink-200);
  border-radius: 10px;
  background: var(--pink-50);
  color: var(--text);
  min-height: 44px;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

select {
  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='%23b01a75' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.25rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--pink-500);
  box-shadow: 0 0 0 4px rgba(255, 107, 196, 0.2);
  background: #fff;
}

textarea {
  min-height: 4.5rem;
  resize: vertical;
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 520px) {
  .row-2 {
    grid-template-columns: 1fr;
  }
}

.btn {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.9rem 2rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  color: #fff;
  width: 100%;
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  background: linear-gradient(
    135deg,
    var(--pink-500) 0%,
    var(--pink-600) 45%,
    var(--pink-700) 100%
  );
  box-shadow:
    0 4px 0 var(--pink-800),
    0 8px 24px rgba(212, 42, 143, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 0 var(--pink-800),
    0 12px 32px rgba(212, 42, 143, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn:active {
  transform: translateY(2px);
  box-shadow:
    0 1px 0 var(--pink-800),
    0 4px 12px rgba(212, 42, 143, 0.3);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  display: none;
}

.status.show {
  display: block;
}

.status.success {
  background: var(--pink-100);
  color: var(--pink-800);
  border: 1px solid var(--pink-300);
}

.status.error {
  background: #fff0f5;
  color: var(--pink-900);
  border: 1px solid var(--pink-400);
}

footer {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 2rem;
}

footer a {
  color: var(--pink-700);
  font-weight: 700;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Desktop — keep invite centered and contained */
@media (min-width: 768px) {
  .wrap {
    padding: 2.5rem 1.5rem 4rem;
  }

  .save-the-date-label {
    font-size: 2.85rem;
    letter-spacing: 0.18em;
  }

  .save-the-date-date {
    font-size: 2.5rem;
  }

  .save-the-date-time {
    font-size: 1.05rem;
  }

  .hero-photo {
    padding: 1.5rem 1.5rem 0.85rem;
  }

  .hero-photo-stage {
    max-width: 380px;
    min-height: 320px;
  }

  .hero-photo-frame {
    width: 250px;
    max-width: 250px;
  }

  .hero h1 {
    font-size: clamp(2rem, 3.2vw, 3rem);
  }

  .countdown-frame {
    max-width: 100%;
  }
}

/* Mobile layout & touch */
@media (max-width: 600px) {
  .wrap {
    padding: 1.25rem 1rem 3rem;
  }

  .save-the-date {
    padding: 1rem 0.85rem;
    margin-bottom: 1.25rem;
  }

  .save-the-date-label {
    font-size: clamp(1.65rem, 7.5vw, 2.1rem);
    letter-spacing: 0.14em;
  }

  .save-the-date-type {
    letter-spacing: 0.14em;
    font-size: 0.75rem;
  }

  .save-the-date-date {
    font-size: clamp(1.5rem, 6.8vw, 1.9rem);
  }

  .rhinestone-frame {
    padding: 8px;
    margin-bottom: 1.5rem;
  }

  .hero-photo {
    padding: 1rem 0.75rem 0.5rem;
  }

  .hero-photo-stage {
    width: 100%;
    max-width: 360px;
    min-height: 280px;
  }

  .hero-photo-frame {
    width: min(58%, 230px);
    max-width: 230px;
  }

  .hero-inner {
    padding: 1.15rem 1rem 1.5rem;
  }

  .hero-badges {
    gap: 0.4rem;
  }

  .hero-badge {
    font-size: 0.65rem;
    letter-spacing: 0.16em;
    padding: 0.35rem 0.75rem;
  }

  .hero-live-strip {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
  }

  .hero-live-text strong {
    font-size: 1rem;
  }

  .hero-live-text span {
    font-size: 0.78rem;
  }

  .hero-meta {
    gap: 0.5rem;
  }

  .hero-meta span {
    font-size: 0.82rem;
    padding: 0.4rem 0.75rem;
  }

  .countdown-frame {
    margin: 1.25rem 0 0.75rem;
    padding: 10px;
  }

  .countdown-inner {
    padding: 1.15rem 0.65rem 1.1rem;
  }

  .countdown-label {
    letter-spacing: 0.12em;
    font-size: 0.9rem;
  }

  .countdown-tagline {
    font-size: 0.76rem;
    padding: 0 0.25rem;
  }

  .card {
    padding: 1.15rem 1.1rem;
    margin-bottom: 1rem;
  }

  .card h2 {
    font-size: 1.3rem;
    flex-wrap: wrap;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.2rem;
    padding: 0.75rem 0;
  }

  .timeline-item strong {
    font-size: 0.95rem;
  }

  .divider {
    gap: 0.45rem;
    margin: 0.35rem 0 1rem;
  }

  .divider-line {
    max-width: 72px;
  }
}

@media (max-width: 380px) {
  .hero-side-float--l3,
  .hero-side-float--l4,
  .hero-side-float--r3,
  .hero-side-float--r4 {
    display: none;
  }

  .hero-side-float {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }

  .countdown-num {
    font-size: clamp(1.45rem, 6.5vw, 1.85rem);
  }

  .countdown-sep {
    font-size: 1.25rem;
    padding-bottom: 1.2rem;
  }
}

.admin-page {
  max-width: 1100px;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.admin-toolbar input[type="password"] {
  max-width: 220px;
}

.admin-toolbar .btn {
  width: auto;
  margin-top: 0;
}

.admin-toolbar .btn.btn-secondary {
  background: linear-gradient(135deg, var(--pink-300), var(--pink-500));
  box-shadow: 0 4px 0 var(--pink-700), 0 6px 16px rgba(212, 42, 143, 0.25);
}

.admin-toolbar .btn.btn-muted {
  background: linear-gradient(135deg, #c9a0b8, #9a6d88);
  box-shadow: 0 4px 0 #6d4d62, 0 6px 16px rgba(90, 40, 70, 0.2);
}

.summary-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.pill {
  background: linear-gradient(135deg, var(--pink-600), var(--pink-800));
  color: var(--pink-50);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  background: var(--card);
  border: 1px solid var(--pink-200);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

th,
td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--pink-100);
}

th {
  background: linear-gradient(180deg, var(--pink-700), var(--pink-800));
  color: var(--pink-50);
  font-weight: 700;
  white-space: nowrap;
}

tr:hover td {
  background: var(--pink-50);
}

td a {
  color: var(--pink-700);
  font-weight: 600;
}

.login-panel {
  max-width: 400px;
  margin: 2rem auto;
}
