/* ===========================
   WEDINVITE — INVITATION PAGE
   =========================== */

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

:root {
  --inv-bg: linear-gradient(165deg, #dde8f5 0%, #ecdaf2 35%, #f5e8d8 70%, #f8f0e3 100%);
  --card-bg: rgba(254, 251, 247, 0.96);
  --maroon: #7c2d3d;
  --gold: #c9913d;
  --gold-light: #e8b96a;
  --gold-pale: #f5e6c8;
  --rose: #c4556a;
  --rose-pale: #fce8ee;
  --text-dark: #2a1a1f;
  --text-mid: #5c3d46;
  --text-light: #a07080;
  --font-serif: 'Cinzel', serif;
  --font-lora: 'Lora', serif;
  --font-sans: 'Outfit', sans-serif;
  --radius: 24px;
  --shadow: 0 8px 50px rgba(180,100,120,0.18);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--inv-bg);
  background-attachment: fixed;
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ====== PETALS ====== */
.petals-wrap {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.inv-petal {
  position: absolute;
  top: -60px;
  animation: invPetalFall linear infinite;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.inv-petal svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(180,60,90,0.18));
}
@keyframes invPetalFall {
  0%   {
    transform: translateY(0) rotate(0deg) translateX(0);
    opacity: 0.9;
  }
  25%  { transform: translateY(25vh) rotate(120deg) translateX(18px); }
  50%  { transform: translateY(50vh) rotate(240deg) translateX(-14px); }
  75%  { transform: translateY(75vh) rotate(380deg) translateX(10px); }
  100% {
    transform: translateY(115vh) rotate(540deg) translateX(-8px);
    opacity: 0;
  }
}

/* ====== AUDIO FAB ====== */
.audio-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--rose) 0%, var(--maroon) 100%);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(196,85,106,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.audio-fab:hover { transform: scale(1.1); }

/* ====== VIDEO INTRO OVERLAY ====== */
.video-intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: #0a0608;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.8s ease;
}
.video-intro-overlay.video-reveal {
  opacity: 0;
  pointer-events: none;
}

/* Video fills the entire viewport — optimized for all device sizes */
.intro-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;    /* fills viewport, no letterbox */
  object-position: center center;
  z-index: 1;
}

/* ── Overlay content (couple names + tap hint) ── */
.video-overlay-content {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: radial-gradient(
    ellipse 70% 60% at 50% 50%,
    rgba(10, 6, 8, 0.55) 0%,
    rgba(10, 6, 8, 0.82) 100%
  );
  transition: opacity 0.6s ease, transform 0.6s ease;
  padding: 20px;
  text-align: center;
}
.video-overlay-content.fade-out {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}

.video-couple-names {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 6vw, 3.2rem);
  color: #fff;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
  margin-bottom: 4px;
}

.video-date {
  font-family: var(--font-lora);
  font-size: clamp(0.8rem, 2.5vw, 1rem);
  color: rgba(255,255,255,0.75);
  font-style: italic;
  letter-spacing: 0.12em;
  text-shadow: 0 1px 10px rgba(0,0,0,0.5);
}

/* ── Tap hint ── */
.tap-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.tap-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: tapPulse 2s ease-in-out infinite;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(4px);
  transition: var(--transition);
}
.tap-circle:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.8);
}
.tap-circle svg {
  width: 32px;
  height: 32px;
  margin-left: 3px; /* optical center for play icon */
}

@keyframes tapPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255,255,255,0.25);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 16px rgba(255,255,255,0);
  }
}

.tap-text {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  animation: tapTextFade 2.5s ease-in-out infinite;
}

@keyframes tapTextFade {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ── Skip button ── */
.video-skip-btn {
  position: absolute;
  bottom: 32px;
  right: 32px;
  z-index: 20;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
  padding: 10px 24px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.4s ease;
  pointer-events: none;
}
.video-skip-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.video-skip-btn:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
}

/* ── When video is playing, hide cursor after a delay ── */
.video-intro-overlay.video-playing {
  cursor: default;
}

/* ── Responsive adjustments ── */
@media (max-width: 480px) {
  .tap-circle {
    width: 60px;
    height: 60px;
  }
  .tap-circle svg {
    width: 26px;
    height: 26px;
  }
  .video-skip-btn {
    bottom: 24px;
    right: 20px;
    padding: 8px 18px;
    font-size: 0.75rem;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  .video-couple-names {
    font-size: 1.6rem;
  }
  .tap-hint {
    margin-top: 16px;
  }
  .tap-circle {
    width: 52px;
    height: 52px;
  }
}

/* ====== GANESH JI IMAGE ====== */
.ganesh-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(201,145,61,0.45));
  animation: ganeshGlow 3s ease-in-out infinite;
}
.ganesh-top-img { width: 90px; height: 90px; }
@keyframes ganeshGlow {
  0%, 100% { filter: drop-shadow(0 2px 8px rgba(201,145,61,0.45)); transform: scale(1); }
  50%       { filter: drop-shadow(0 4px 18px rgba(201,145,61,0.75)); transform: scale(1.04); }
}

/* ====== INVITATION MAIN ====== */
.invite-main {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* ====== SECTIONS ====== */
.invite-section { margin-bottom: 32px; }

.invite-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 48px 36px;
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(201,145,61,0.12);
}
.invite-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-pale), var(--gold), var(--rose), var(--gold), var(--gold-pale));
}

.section-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-eyebrow.gold { color: var(--gold); }

/* ====== BLESSING SECTION ====== */
.ganesh-top { font-size: 2.8rem; margin-bottom: 12px; }
.blessing-devanagari {
  font-size: 0.95rem;
  color: var(--maroon);
  line-height: 1.8;
  margin-bottom: 20px;
  font-family: 'Lora', serif;
  opacity: 0.85;
}
.blessing-italic {
  font-family: var(--font-lora);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 32px;
}

.couple-names { margin-bottom: 20px; }
.bride-title, .groom-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 6vw, 3rem);
  color: var(--maroon);
  font-weight: 400;
  letter-spacing: 0.02em;
  animation: fadeSlideUp 0.8s ease both;
}
@keyframes fadeSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.groom-title { animation-delay: 0.15s; }

.ampersand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin: 8px 0;
}
.gold-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.gold-line:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.amp-char {
  font-family: var(--font-lora);
  font-size: 1.8rem;
  color: var(--gold);
  font-style: italic;
}

.parents-line {
  font-family: var(--font-lora);
  font-size: 0.82rem;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 24px;
}
.floral-divider {
  font-size: 1.8rem;
  color: var(--gold);
  opacity: 0.6;
}

/* ====== SAVE DATE / SCRATCH ====== */
.date-card { padding: 48px 28px; }
.date-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  color: var(--maroon);
  margin-bottom: 10px;
}
.date-subheading {
  font-family: var(--font-lora);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 36px;
}

/* Three-panel layout */
.scratch-panels {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.scratch-panel-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scratch-panel-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-light);
  text-transform: uppercase;
}
.scratch-panel {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 18px;
  overflow: hidden;
  cursor: crosshair;
  box-shadow: 0 8px 32px rgba(180,100,120,0.22);
}
.scratch-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 18px;
  touch-action: none;
}
.scratch-panel-value {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #c8717f 0%, #b05568 100%);
  border-radius: 18px;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 4vw, 1.7rem);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 8px rgba(80,20,30,0.3);
  padding: 0 10px;
  text-align: center;
  overflow: hidden;
  word-break: break-word;
  line-height: 1.15;
}
.date-sub {
  font-family: var(--font-lora);
  font-style: italic;
  font-size: 0.88rem;
  color: var(--text-mid);
}

/* ====== COUNTDOWN ====== */
.countdown-card { padding: 48px 28px; }
.countdown-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--maroon);
  margin-bottom: 8px;
}
.countdown-date-label {
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-bottom: 32px;
  font-weight: 600;
}
.countdown-display {
  display: flex;
  justify-content: center;
  gap: 24px;
}
.count-unit { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.count-num {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--text-dark);
  font-weight: 400;
  line-height: 1;
  min-width: 68px;
  text-align: center;
  border-bottom: 2px solid rgba(201,145,61,0.3);
  padding-bottom: 8px;
}
.count-label {
  font-size: 0.65rem;
  color: var(--text-light);
  letter-spacing: 0.15em;
  font-weight: 700;
}

/* ====== STORY SECTION ====== */
.story-section { background: transparent; }
.story-header-wrap { text-align: center; margin-bottom: 32px; }
.story-heading {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--maroon);
}
.story-timeline { display: flex; flex-direction: column; gap: 20px; }
.story-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(201,145,61,0.12);
  display: flex;
  gap: 24px;
  align-items: flex-start;
  animation: fadeSlideUp 0.6s ease both;
  position: relative;
  overflow: hidden;
}
.story-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gold), var(--rose));
  border-radius: 4px 0 0 4px;
}
.story-year-badge {
  background: linear-gradient(135deg, var(--gold-pale), var(--gold));
  color: var(--maroon);
  border-radius: 50px;
  padding: 8px 18px;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.story-body { text-align: left; }
.story-body h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--maroon);
  margin-bottom: 8px;
}
.story-body p {
  font-family: var(--font-lora);
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.7;
  font-style: italic;
}

/* ====== GALLERY ====== */
.gallery-card { padding: 40px 28px; }
.gallery-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--maroon);
  margin-bottom: 24px;
}

/* ====== VENUE ====== */
.venue-card { padding: 40px 28px; }
.venue-title-text {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--maroon);
  margin-bottom: 24px;
}
.venue-image-wrap {
  width: 100%;
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5e8d0, #ecdaf2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.venue-img { width: 100%; height: 100%; object-fit: cover; }
.venue-placeholder { font-size: 4rem; }
.diamond-icon {
  color: var(--gold);
  font-size: 1.2rem;
  margin: 8px 0 16px;
}
.venue-name-text {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--maroon);
  margin-bottom: 8px;
}
.venue-addr-text {
  font-family: var(--font-lora);
  font-style: italic;
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.6;
}
.btn-directions {
  display: inline-block;
  background: linear-gradient(135deg, var(--maroon) 0%, var(--rose) 100%);
  color: #fff;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}
.btn-directions:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(124,45,61,0.4); }

/* ====== EVENTS ====== */
.events-section { background: transparent; }
.events-inner { text-align: center; }
.events-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 2.6rem);
  color: var(--maroon);
  margin-bottom: 36px;
  font-style: italic;
}
.events-grid { display: flex; flex-direction: column; gap: 0; }

/* Each event = image block + info card stacked */
.event-block { margin-bottom: 24px; }

/* ── Image with overlay ── */
.event-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(80,20,40,0.22);
}
.event-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.event-block:hover .event-img-wrap img { transform: scale(1.04); }

/* Dark gradient at bottom of image for text readability */
.event-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.05) 0%,
    rgba(0,0,0,0.28) 50%,
    rgba(0,0,0,0.68) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 28px 24px;
  text-align: center;
}
.event-overlay-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  color: #fff;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  margin-bottom: 6px;
}
.event-overlay-date {
  font-family: var(--font-lora);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.9);
  font-style: italic;
  margin-bottom: 2px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.event-overlay-time {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

/* ── Info card below image ── */
.event-info-card {
  background: var(--card-bg);
  border-radius: 20px;
  margin-top: 12px;
  padding: 28px 32px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(180,100,120,0.1);
  border: 1px solid rgba(201,145,61,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.event-quote {
  font-family: var(--font-lora);
  font-style: italic;
  font-size: 1rem;
  color: var(--rose);
  line-height: 1.6;
}
.event-info-venue {
  font-family: var(--font-lora);
  font-size: 0.88rem;
  color: var(--text-mid);
  margin-top: 4px;
}
.event-directions-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #7c3040 0%, #9a3d50 100%);
  color: #fff;
  padding: 13px 36px;
  border-radius: 50px;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(124,48,64,0.3);
  margin-top: 4px;
}
.event-directions-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124,48,64,0.45);
}
.event-dir-icon { font-size: 1rem; }

/* ====== VENUE PLACEHOLDER ====== */
.venue-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100%;
  width: 100%;
}
.venue-placeholder-icon { font-size: 4rem; opacity: 0.7; }
.venue-placeholder-text {
  font-family: var(--font-lora);
  font-style: italic;
  font-size: 0.88rem;
  color: var(--text-light);
  opacity: 0.8;
}

/* ====== VENUE MAP EMBED ====== */
.venue-map-wrap {
  margin-top: 24px;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(80,20,40,0.12);
  border: 1px solid rgba(201,145,61,0.15);
}
.venue-map-frame {
  width: 100%;
  height: 260px;
  border: none;
}

/* ====== SPECIAL REQUEST ====== */
.special-card { padding: 48px 36px; }
.special-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--maroon);
  margin-bottom: 20px;
}
.special-message {
  font-family: var(--font-lora);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.8;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  padding: 20px 0;
}
.special-message::before,
.special-message::after {
  content: '"';
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--gold-light);
  position: absolute;
  opacity: 0.5;
}
.special-message::before {
  top: -8px;
  left: -8px;
}
.special-message::after {
  content: '"';
  bottom: -20px;
  right: -8px;
}

/* ====== INVITEE SECTION ====== */
.invitee-card { padding: 48px 36px; }
.invitee-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--maroon);
  margin-bottom: 16px;
}
.invitee-name-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  margin: 20px 0 24px;
}
.invitee-decorative-line {
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.invitee-name {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  color: var(--gold);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 8px rgba(201,145,61,0.2);
}
.invitee-note {
  font-family: var(--font-lora);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 440px;
  margin: 0 auto;
}

/* ====== REMINDER / CALENDAR ====== */
.reminder-card { padding: 48px 32px; }
.reminder-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--maroon);
  margin-bottom: 10px;
}
.reminder-subtitle {
  font-family: var(--font-lora);
  font-size: 0.88rem;
  color: var(--text-mid);
  font-style: italic;
  margin-bottom: 32px;
}
.reminder-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 360px;
  margin: 0 auto;
}
.reminder-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  border-radius: 14px;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: var(--transition);
}
.reminder-btn:hover {
  transform: translateY(-2px);
}
.reminder-btn-icon { font-size: 1.3rem; }

.reminder-btn.google-cal {
  background: linear-gradient(135deg, #4285f4 0%, #1a73e8 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(66,133,244,0.35);
}
.reminder-btn.google-cal:hover {
  box-shadow: 0 8px 24px rgba(66,133,244,0.5);
}

.reminder-btn.ical {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--rose) 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(124,45,61,0.3);
}
.reminder-btn.ical:hover {
  box-shadow: 0 8px 24px rgba(124,45,61,0.45);
}

.reminder-success {
  text-align: center;
  padding: 20px 0;
  margin-top: 16px;
  animation: fadeSlideUp 0.5s ease both;
}
.reminder-success-icon {
  font-size: 2.4rem;
  margin-bottom: 8px;
  display: block;
}
.reminder-success p {
  font-family: var(--font-lora);
  font-style: italic;
  color: var(--maroon);
  font-size: 0.95rem;
}

/* ====== FOOTER ====== */
.invite-footer {
  text-align: center;
  padding: 48px 24px;
  position: relative;
  z-index: 1;
}
.footer-floral {
  font-family: var(--font-lora);
  font-size: 1.2rem;
  color: var(--gold);
  font-style: italic;
  margin-bottom: 12px;
}
.footer-couple {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--maroon);
  margin-bottom: 8px;
}
.footer-date { font-size: 0.85rem; color: var(--text-light); font-family: var(--font-lora); font-style: italic; margin-bottom: 24px; }
.footer-brand { margin-top: 8px; }

.footer-cta-wrap {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(201,145,61,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.footer-cta-text {
  font-family: var(--font-lora);
  font-size: 0.95rem;
  color: var(--text-mid);
  font-style: italic;
}
.footer-cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold) 0%, #a0702a 100%);
  color: #fff;
  padding: 14px 36px;
  border-radius: 50px;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 24px rgba(201,145,61,0.35);
  transition: var(--transition);
}
.footer-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(201,145,61,0.5);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 600px) {
  .invite-card { padding: 32px 20px; }
  .envelope-card { width: 310px; height: 200px; }
  .env-flap::before {
    border-left-width: 157px;
    border-right-width: 157px;
    border-top-width: 102px;
  }
  .countdown-display { gap: 14px; }
  .count-num { font-size: 2.2rem; min-width: 54px; }
  .bride-title, .groom-title { font-size: 2rem; }
  .story-card { flex-direction: column; gap: 12px; }
  .event-img-wrap { aspect-ratio: 3 / 2; }
  .event-info-card { padding: 20px 20px; }
}

/* ====== CIRCULAR GALLERY ====== */
.circular-gallery-wrap {
  width: 100%;
  height: 500px;
  position: relative;
  overflow: hidden;
  cursor: grab;
  border-radius: 20px;
}
.circular-gallery-wrap:active { cursor: grabbing; }
.circular-gallery-wrap:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.circular-gallery-wrap canvas { display: block; }

/* ====== LOADING / NOT FOUND STATES ====== */
.inv-loading,
.inv-not-found {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 40px 24px;
  font-family: var(--font-lora);
  color: var(--text-mid);
}
.inv-loading-icon { font-size: 3rem; animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.15); } }
.inv-not-found h2 { font-family: var(--font-serif); font-size: 1.6rem; color: var(--maroon); }
.inv-not-found p  { font-style: italic; font-size: 0.95rem; }

/* ====== ICON REPLACEMENTS ====== */
.diamond-icon { margin: 8px 0 16px; }
.diamond-icon-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  opacity: 0.7;
}
.floral-divider { margin: 16px 0 8px; }
.floral-divider-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  opacity: 0.55;
}

/* ===== PREVIEW MODE EXPORT BAR ===== */
.preview-export-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 24px;
  background: rgba(20, 10, 5, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(201, 145, 61, 0.3);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
}

.preview-export-bar__text {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
}

.preview-export-bar__emoji {
  font-size: 1.1rem;
}

.preview-export-bar__btn {
  flex-shrink: 0;
  padding: 10px 22px;
  background: linear-gradient(135deg, #c9913d, #a8722a);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 16px rgba(201, 145, 61, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.preview-export-bar__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 145, 61, 0.55);
}

@media (max-width: 480px) {
  .preview-export-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 12px 16px;
  }
  .preview-export-bar__btn {
    width: 100%;
  }
}
