/* ===== ROOT ===== */
:root {
  --cream: #f8f3eb;
  --navy: #4870a3;
  --navy-dark: #1B2F50;
  --gold: #C4A882;
  --text: #252524;
  --text-light: #888;
  --card-w: 500px;
}

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

body {
  background: #dde0e5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 80px;
  overflow-x: hidden;
  font-family: Quicksand, 'Montserrat', sans-serif;
}

/* ===== ENVELOPE SCREEN ===== */
.envelope-screen {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: radial-gradient(circle, #b71c1c 0%, #4a0002 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 1s ease, opacity .8s ease;
}

.envelope-screen.slide-up {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* Header above envelope */
.env-top-header {
  text-align: center;
  margin-bottom: 24px;
  animation: fadeIn 1.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.env-hy-symbol {
  font-size: 3.5rem;
  line-height: 1;
  color: transparent;
  background: linear-gradient(135deg, #ffe082 0%, #ffb300 50%, #ffa000 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  font-weight: bold;
  margin-bottom: 8px;
  animation: sealPulse 2s infinite;
}

.env-event-name {
  font-family: Quicksand, sans-serif;
  font-size: .8rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #ffe082;
  margin-bottom: 6px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.env-couple-heading {
  font-family: Mallong, 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: #ffffff;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.env-couple-heading span {
  color: #ffe082;
  margin: 0 8px;
}

.env-header-deco {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ffe082, transparent);
  margin-top: 10px;
}

/* Envelope */
.env-wrapper {
  width: 280px;
  height: 187px;
  position: relative;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, .35));
  cursor: pointer;
}

/* Flap triangle */
.env-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-left: 140px solid transparent;
  border-right: 140px solid transparent;
  border-top: 100px solid #8f0e11;
  z-index: 4;
  transform-origin: top center;
  transition: transform .6s ease;
}

.env-wrapper.flap-open .env-flap {
  transform: rotateX(180deg);
}

/* Side flaps */
.env-left-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-top: 94px solid transparent;
  border-bottom: 94px solid transparent;
  border-left: 140px solid #a82023;
  z-index: 2;
}

.env-right-flap {
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-top: 94px solid transparent;
  border-bottom: 94px solid transparent;
  border-right: 140px solid #9e1b1e;
  z-index: 2;
}

.env-bottom-flap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 0;
  height: 0;
  border-left: 140px solid transparent;
  border-right: 140px solid transparent;
  border-bottom: 110px solid #7f1214;
  z-index: 3;
}

/* Envelope body */
.env-body {
  position: absolute;
  inset: 0;
  background: #6b0c0e;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
}

.env-inner-photo img {
  width: 200px;
  height: 130px;
  object-fit: cover;
  object-position: top;
  display: block;
  border-radius: 2px;
}

/* Hearts inside envelope */
.env-hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.env-heart {
  position: absolute;
  font-size: 12px;
  animation: floatHeart 2s ease-in-out infinite;
}

.env-heart.h1 {
  bottom: 20px;
  left: 20%;
  color: #ffb300;
  animation-delay: 0s;
}

.env-heart.h2 {
  bottom: 30px;
  left: 50%;
  color: #ffe082;
  animation-delay: .5s;
}

.env-heart.h3 {
  bottom: 15px;
  right: 20%;
  color: #ffd54f;
  animation-delay: 1s;
}

.env-heart::before {
  content: '❤';
}

/* Seal button */
.env-seal {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff176, #fbc02d, #f57f17);
  border: 2px solid #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
  animation: sealPulse 2s infinite;
  z-index: 10;
  transition: transform 0.2s ease;
}

.env-seal:hover {
  transform: translateX(-50%) scale(1.08);
}

.seal-text {
  color: #8a0c10;
  font-size: 1.6rem;
  font-weight: bold;
  font-family: Arial, sans-serif;
  line-height: 1;
  margin-bottom: 2px;
}

@keyframes sealPulse {

  0%,
  100% {
    box-shadow: 0 4px 14px rgba(0, 0, 0, .4), 0 0 0 0 rgba(251, 192, 45, .5);
  }

  50% {
    box-shadow: 0 4px 14px rgba(0, 0, 0, .4), 0 0 0 10px rgba(251, 192, 45, 0);
  }
}

/* Tap instruction */
.env-tap-instruction {
  margin-top: 24px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 1px;
  animation: floatHeart 2.5s ease-in-out infinite;
  font-family: Quicksand, sans-serif;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* ===== MAIN CARD ===== */
.main-card {
  width: 100%;
  max-width: var(--card-w);
  background: var(--cream);
  box-shadow: 0 0 60px rgba(0, 0, 0, .18);
  position: relative;
  overflow: hidden;
}

.hidden {
  display: none !important;
}

/* ===== CARD TOP HEADER (inside main card) ===== */
.card-top-header {
  text-align: center;
  padding: 30px 20px 18px;
  background: var(--cream);
  border-bottom: 1px solid rgba(72, 112, 163, .15);
  position: relative;
}

.card-event-name {
  font-family: Quicksand, sans-serif;
  font-size: .75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}

.card-couple-heading {
  font-family: Mallong, 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: var(--navy-dark);
  font-weight: bold;
  line-height: 1.2;
}

.card-couple-heading span {
  color: var(--navy);
  margin: 0 8px;
  font-size: 2rem;
}

.card-header-deco {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 14px auto 0;
  border-radius: 2px;
}

/* ===== MUSIC BUTTON ===== */
.music-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 100;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(165, 165, 165, .2);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}

.music-disc {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: mrotate 5s linear infinite;
}

.music-btn.paused .music-disc {
  animation-play-state: paused;
}

@keyframes mrotate {
  to {
    transform: rotate(360deg);
  }
}

/* ===== EVENT INFO BAR ===== */
.event-info-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: transparent;
  padding: 14px 8px;
  border-bottom: 1px solid rgba(72, 112, 163, .15);
}

.info-item {
  text-align: center;
  flex: 1;
}

.info-label {
  display: block;
  color: var(--navy-dark);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.info-sub {
  display: block;
  color: var(--text-light);
  font-size: .55rem;
  letter-spacing: 1px;
  margin-top: 2px;
}

.info-divider {
  color: rgba(72, 112, 163, .4);
  font-size: 1rem;
}

/* ===== HERO PHOTO ===== */
.hero-photo {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-photo img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.floating-hearts-hero {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.fh {
  position: absolute;
  font-size: 1.2rem;
  color: rgba(255, 100, 120, .8);
  animation: floatHeart 3s ease-in-out infinite;
}

.fh1 {
  bottom: 20%;
  left: 10%;
  animation-delay: 0s;
}

.fh2 {
  bottom: 30%;
  left: 50%;
  animation-delay: .8s;
  font-size: 1.8rem;
}

.fh3 {
  bottom: 15%;
  right: 12%;
  animation-delay: 1.5s;
}

@keyframes floatHeart {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

/* ===== FAMILY SECTION ===== */
.family-section {
  padding: 30px 20px 20px;
  background: var(--cream);
}

/* Mini envelope */
.mini-envelope-wrap {
  position: relative;
  width: 280px;
  height: 200px;
  margin: 0 auto 32px;
  cursor: pointer;
}

.mini-envelope-shadow {
  position: absolute;
  bottom: -10px;
  left: 10px;
  right: 10px;
  height: 20px;
  background: rgba(0, 0, 0, .15);
  filter: blur(8px);
  border-radius: 50%;
}

.mini-envelope-container {
  position: absolute;
  inset: 0;
  background: #6b0c0e;
  border-radius: 2px;
}

/* Envelope body */
.mini-env-pocket {
  display: none;
}

.mini-env-wax-seal {
  display: none;
}

.mini-env-flap {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  width: 0;
  height: 0;
  border-left: 140px solid transparent;
  border-right: 140px solid transparent;
  border-top: 106px solid #8f0e11;
  transform-origin: top center;
  transition: transform .6s ease, z-index 0s 0.3s;
}

.mini-envelope-wrap.open .mini-env-flap {
  transform: rotateX(180deg);
  z-index: 0;
}

.mini-env-side {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  height: 0;
}

.mini-env-left {
  left: 0;
  border-top: 100px solid transparent;
  border-bottom: 100px solid transparent;
  border-left: 140px solid #a82023;
  z-index: 2;
}

.mini-env-right {
  right: 0;
  border-top: 100px solid transparent;
  border-bottom: 100px solid transparent;
  border-right: 140px solid #9e1b1e;
  z-index: 2;
}

.mini-env-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 0;
  height: 0;
  border-left: 140px solid transparent;
  border-right: 140px solid transparent;
  border-bottom: 120px solid #7f1214;
  z-index: 3;
}

.mini-env-letter {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: transform 0.8s ease 0.4s;
}

.mini-envelope-wrap.open .mini-env-letter {
  transform: translateY(-70px);
}

.mini-letter-img {
  width: 200px;
  height: 130px;
  object-fit: cover;
  border-radius: 2px;
}

.mini-env-hint {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: .7rem;
  color: #ffe082;
  z-index: 5;
  letter-spacing: 1px;
  transition: opacity 0.3s ease;
  animation: floatHeart 2s ease-in-out infinite;
}

.mini-envelope-wrap.open .mini-env-hint {
  opacity: 0;
}

/* Burst Hearts */
.mini-env-hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  overflow: visible;
}

.mini-burst-heart {
  position: absolute;
  bottom: 50%;
  color: #ffe082;
  font-size: 1.2rem;
  animation: burstUp 2s ease-out forwards;
}

@keyframes burstUp {
  0% {
    transform: translateY(0) scale(0.5);
    opacity: 1;
  }

  100% {
    transform: translateY(-120px) scale(1.5) rotate(15deg);
    opacity: 0;
  }
}

/* Hearts burst container */
.mini-env-hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  overflow: visible;
}

.burst-heart {
  position: absolute;
  bottom: 50%;
  left: 50%;
  font-size: 1.2rem;
  color: #ff4970;
  animation: burstHeart 1.2s ease-out forwards;
  pointer-events: none;
}

@keyframes burstHeart {
  0% {
    transform: translate(-50%, 0) scale(0.5);
    opacity: 1;
  }

  60% {
    opacity: 1;
  }

  100% {
    transform: translate(var(--tx), var(--ty)) scale(1.4);
    opacity: 0;
  }
}

/* Family info */
.family-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0;
  padding: 0 10px;
}

.family-col {
  flex: 1;
  text-align: center;
}

.family-side {
  font-family: Carlytte, 'Great Vibes', cursive;
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 8px;
}

.parent {
  font-size: .9rem;
  color: var(--navy-dark);
  margin-bottom: 4px;
  font-weight: 500;
}

.hometown {
  font-size: .8rem;
  color: var(--text-light);
  font-style: italic;
  margin-top: 6px;
}

.family-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #ff6b8a;
  font-size: 1.4rem;
}

.family-div-line {
  width: 1px;
  height: 40px;
  background: #ccc;
}

/* Couple names */
.couple-names-section {
  padding: 0 10px 10px;
}

.role-label {
  font-family: Carlytte, 'Great Vibes', cursive;
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 2px;
}

.couple-names-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.groom-name,
.bride-name {
  font-family: Mallong, 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  color: var(--navy);
  font-weight: bold;
  flex: 1;
  text-align: center;
}

.couple-heart-icon {
  flex: 0 0 auto;
}

.float-heart-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  animation: floatHeart 2.5s ease-in-out infinite;
}

.couple-dob-row {
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
}

.dob {
  font-family: Carlytte, cursive;
  font-size: 1.2rem;
  color: var(--navy);
}

/* Invitation block */
.invitation-text-block {
  text-align: center;
  padding: 20px 0 10px;
  border-top: 1px solid rgba(72, 112, 163, .2);
  margin-top: 16px;
}

.invite-label {
  font-size: .8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 4px;
}

.invite-event {
  font-family: Mallong, serif;
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.invite-time-block {
  background: rgba(72, 112, 163, .06);
  border-radius: 8px;
  padding: 12px;
  margin: 0 10px 12px;
}

.invite-time-big {
  font-size: .7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}

.invite-date-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 6px;
}

.invite-date-row span {
  font-size: .7rem;
  color: var(--text-light);
  letter-spacing: 1px;
}

.invite-day-big {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem !important;
  color: var(--navy) !important;
  font-weight: 600;
  line-height: 1;
}

.invite-lunar {
  font-size: .65rem;
  color: var(--text-light);
  font-style: italic;
}

.invite-location-title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--navy);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.invite-address {
  font-size: .75rem;
  color: var(--text-light);
  margin-bottom: 10px;
}

.map-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--navy);
  color: #fff;
  border-radius: 20px;
  font-size: .75rem;
  text-decoration: none;
  letter-spacing: 1px;
}

/* ===== COUPLE SPLIT PHOTOS ===== */
.couple-photo-split {
  position: relative;
  display: flex;
  gap: 4px;
  width: 100%;
  overflow: visible;
  margin: 10px 0 40px;
}

.split-center {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  z-index: 10;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.split-center .float-heart-img {
  width: 90px;
  height: 90px;
}

.split-photo {
  flex: 1;
  overflow: hidden;
}

.split-photo img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 6s ease;
}

.split-photo:hover img {
  transform: scale(1.05);
}

.left-photo {
  clip-path: polygon(0 0, 95% 0, 100% 100%, 0 100%);
}

.right-photo {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 5% 100%);
}

/* ===== LOVE STORY ===== */
.love-story-section {
  padding: 30px 24px;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

/* Decorative background image like template photo-bg-wrap */
.photo-bg-wrap {
  position: absolute;
  top: 0;
  right: 0;
  width: 160px;
  height: 160px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right top;
  opacity: .18;
  pointer-events: none;
}

.story-text {
  font-family: Quicksand, sans-serif;
  font-size: .875rem;
  color: #4b5320;
  line-height: 1.87;
  position: relative;
  z-index: 1;
}

/* Section headings */
.section-heading {
  font-family: RetroSignature, 'Great Vibes', cursive;
  font-size: 2.5rem;
  color: var(--text);
  text-align: center;
  margin-bottom: 16px;
}

.section-heading.retro {
  font-family: RetroSignature, cursive;
}

.retro-blue {
  font-family: RetroSignature, cursive;
  color: var(--navy);
  text-align: center;
  margin-bottom: 8px;
}

.month-label {
  font-size: 2rem;
  margin: 10px 0 0;
}

.section-sub {
  font-size: 1.5rem;
}

/* ===== COUNTDOWN ===== */
.countdown-section {
  padding: 20px 24px 30px;
}

.countdown-wrap {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.cd-box {
  flex: 1;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  border-radius: 4px;
}

.cd-num {
  font-size: 1.5rem;
  font-weight: bold;
  font-family: Arial, sans-serif;
  line-height: 1;
}

.cd-label {
  font-size: .65rem;
  margin-top: 3px;
}

/* ===== CALENDAR ===== */
.calendar-events-section {
  padding: 0 20px 20px;
  position: relative;
  overflow: hidden;
}

/* Decorative wedding element above calendar */
.material-component {
  pointer-events: none;
  position: relative;
  height: 110px;
  overflow: hidden;
}

.photo-bg-wrap.cal-deco {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 130px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 1;
}

.mini-calendar {
  background: #fff;
  border-radius: 12px;
  padding: 14px 12px;
  margin-bottom: 20px;
  box-shadow: 0 3px 16px rgba(0, 0, 0, .08);
  position: relative;
}

.cal-header {
  font-family: Mallong, serif;
  color: var(--navy);
  font-size: 1.05rem;
  text-align: center;
  margin-bottom: 10px;
  font-weight: bold;
  letter-spacing: 1px;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  font-size: .7rem;
  text-align: center;
}

.cal-dow {
  color: var(--text-light);
  font-weight: 600;
  padding: 4px 0;
  font-size: .65rem;
}

.cal-d {
  padding: 6px 2px;
  color: #888;
  border-radius: 6px;
  position: relative;
}

.cal-d.highlight {
  background: rgba(231, 76, 60, .07);
  border-radius: 6px;
}

.heart-date {
  width: 14px;
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
}

.colorF {
  color: #e74c3c;
  font-weight: bold;
}


/* ===== TIMELINE (horizontal 3-col like reference image) ===== */
.timeline-wrap {
  padding: 20px 16px 10px;
  background: var(--cream);
}

.timeline-title {
  font-family: RetroSignature, 'Great Vibes', cursive;
  font-size: 2.2rem;
  color: var(--text);
  text-align: center;
  margin-bottom: 24px;
}

.timeline-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  position: relative;
}

/* Dashed connector line between icons */
.timeline-row::before {
  content: '';
  position: absolute;
  top: 52px;
  /* vertically centered with icons */
  left: 15%;
  right: 15%;
  height: 1px;
  border-top: 1.5px dashed #ccc;
  z-index: 0;
}

.tl-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 6px;
  position: relative;
  z-index: 1;
}

.tl-icon-wrap {
  width: 74px;
  height: 74px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.tl-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

/* Wobble animation for icons */
@keyframes wobble {

  0%,
  100% {
    transform: rotate(0deg);
  }

  15% {
    transform: rotate(-8deg);
  }

  30% {
    transform: rotate(6deg);
  }

  45% {
    transform: rotate(-5deg);
  }

  60% {
    transform: rotate(4deg);
  }

  75% {
    transform: rotate(-2deg);
  }
}

.wobble {
  animation: wobble 3s ease-in-out infinite;
  transform-origin: center bottom;
}

.tl-item:nth-child(1) .wobble {
  animation-delay: 0s;
}

.tl-item:nth-child(2) .wobble {
  animation-delay: 0.9s;
}

.tl-item:nth-child(3) .wobble {
  animation-delay: 1.8s;
}

.tl-time {
  font-family: Quicksand, 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.tl-name {
  font-family: Quicksand, sans-serif;
  font-size: .78rem;
  color: var(--text-light);
  margin-bottom: 2px;
}

.tl-place {
  font-size: .68rem;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 8px;
}

.tl-map-btn {
  display: inline-block;
  padding: 4px 12px;
  background: var(--navy);
  color: #fff;
  border-radius: 14px;
  font-size: .65rem;
  text-decoration: none;
  letter-spacing: .5px;
}

/* ===== GALLERY / MEMORY ===== */
.gallery-section {
  padding: 20px;
}

/* Diagonal overlap 3-photo grid like template */
.memory-overlap {
  position: relative;
  height: 260px;
  margin: 0 16px 24px;
}

.mo-photo {
  position: absolute;
  width: 150px;
  border: 4px solid #fff;
  border-radius: 4px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
  overflow: hidden;
  transition: transform .3s ease;
}

.mo-photo img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

/* left photo: rotate left, bottom-left corner */
.mo-p1 {
  left: 0;
  top: 30px;
  transform: rotate(-6deg);
  z-index: 1;
}

/* center photo: straight, on top */
.mo-p2 {
  left: 50%;
  top: 0;
  transform: translateX(-50%) rotate(0deg);
  z-index: 3;
}

/* right photo: rotate right, bottom-right corner */
.mo-p3 {
  right: 0;
  top: 30px;
  transform: rotate(6deg);
  z-index: 2;
}

/* Hover effect */
.mo-photo:hover {
  transform: scale(1.04) rotate(0deg) !important;
  z-index: 10;
}

.gallery-slider {
  border: 4px solid var(--navy);
  border-radius: 8px;
  overflow: hidden;
}

.gallery-main-img-wrap {
  position: relative;
}

.gallery-main-img-wrap img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: opacity .3s;
}

.gal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .8);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}

.gal-prev {
  left: 8px;
}

.gal-next {
  right: 8px;
}

.gal-zoom-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s;
}

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

/* ===== LIGHTBOX ===== */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.gallery-lightbox.active .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10001;
  transition: transform 0.2s;
  padding: 10px;
}

.lightbox-close:hover {
  transform: scale(1.1);
}

.gallery-thumbs {
  display: flex;
  gap: 6px;
  padding: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--cream);
}

.gthumb {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color .2s;
}

.gthumb.active {
  border-color: var(--navy);
  box-shadow: 0 2px 8px rgba(72, 112, 163, .4);
}

.gthumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-invite-text {
  font-family: Quicksand, sans-serif;
  font-size: .8rem;
  color: var(--text);
  text-align: center;
  padding: 12px 10px 0;
}

/* ===== RSVP ===== */
.rsvp-section {
  padding: 20px;
}

.rsvp-form-wrap {
  background: #f8f3eb;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rsvp-form label {
  font-size: .78rem;
  color: #333;
  display: block;
  margin-bottom: 2px;
}

.rsvp-form input[type=text],
.rsvp-form select {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: .78rem;
  background: #fff;
  color: #333;
}

.rsvp-attend-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rsvp-radio {
  font-size: .78rem;
  color: #333;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  cursor: pointer;
  line-height: 1.4;
}

.rsvp-submit-btn {
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 4px;
  font-size: .8rem;
  cursor: pointer;
  margin-top: 6px;
}

/* ===== GIFT / QR SECTION ===== */
.gift-section {
  padding: 20px;
}

.gift-photo img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

.qr-wrap {
  display: flex;
  justify-content: center;
  margin: 16px 0;
}

.qr-float-icon {
  width: 140px;
  height: 155px;
  object-fit: contain;
  animation: floatHeart 2s ease-in-out infinite;
}

/* ===== FOOTER ===== */
.card-footer {
  text-align: center;
}

.footer-photo img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  display: block;
}

.footer-text {
  padding: 24px 20px 40px;
  background: var(--cream);
}

.footer-names {
  font-family: Mallong, serif;
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.footer-and {
  color: #e74c3c;
  margin: 0 6px;
}

.footer-text p {
  font-size: .78rem;
  color: var(--text-light);
  margin-bottom: 6px;
  font-family: 'Soul Note Display', serif;
}

.footer-date {
  font-family: RetroSignature, cursive;
  font-size: 1.3rem !important;
  color: var(--navy) !important;
}

/* ===== ACTION BAR (Cinelove toolbar) ===== */
.action-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--card-w);
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  height: 60px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, .12);
}

/* Wish open button */
.wish-open-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  padding: 4px 10px;
  min-width: 60px;
}

.wish-open-btn span {
  font-size: .6rem;
  color: var(--navy);
}

.action-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-btn {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 20px;
  background: rgba(0, 0, 0, .1);
  border: none;
  font-size: .75rem;
  color: #333;
  height: 36px;
}

.action-btn img {
  height: 26px;
}

.heart-badge {
  background: linear-gradient(#ff9aa6, #ff4969);
  color: #fff;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: .6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.music-action {
  color: var(--navy);
}

/* ===== FLOATING WISHES ===== */
.floating-wishes-wrapper {
  position: fixed;
  bottom: 80px;
  left: 15px;
  width: 330px; /* Custom wider container */
  z-index: 999;
  pointer-events: none;
}

.wishes-toggle-wrap {
  margin-bottom: 8px;
  pointer-events: auto; /* Clickable switch */
}

.wishes-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  color: var(--navy-dark);
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  user-select: none;
  transition: transform 0.2s, background-color 0.2s;
  border: 1px solid rgba(225, 117, 117, 0.15);
}

.wishes-toggle-label:hover {
  transform: translateY(-1px);
  background: #fff;
}

.wishes-toggle-label input[type="checkbox"] {
  display: none; /* Hide standard browser checkbox */
}

/* Custom Sliding Switch Track */
.switch-slider {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 18px;
  background-color: #e4e4e7;
  border-radius: 10px;
  transition: background-color 0.2s ease;
}

/* Custom Sliding Switch Knob */
.switch-slider::before {
  content: "";
  position: absolute;
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* Color mapped to active theme */
.wishes-toggle-label input[type="checkbox"]:checked + .switch-slider {
  background-color: var(--navy);
}

.wishes-toggle-label input[type="checkbox"]:checked + .switch-slider::before {
  transform: translateX(14px);
}

.floating-wishes {
  height: 160px; /* Custom taller height for displaying more wishes */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
  /* Top and bottom fade out effect */
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  transition: opacity 0.5s ease;
}

.floating-wishes.hidden {
  opacity: 0;
  pointer-events: none;
  height: 0;
}

.wishes-scroll-track {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wish-bubble {
  font-size: 0.72rem;
  color: #fff;
  background: rgba(225, 117, 117, 0.75);
  border-radius: 20px;
  /* Beautiful capsule shape */
  padding: 5px 12px;
  width: fit-content;
  max-width: 95%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  animation: fadeIn 0.4s ease;
  line-height: 1.3;
}

.wish-bubble strong {
  display: inline;
  font-size: 0.72rem;
  margin-right: 4px;
  color: #fffdec;
}

/* ===== HEART PARTICLES ===== */
#heart-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8000;
  overflow: hidden;
}

.hp {
  position: absolute;
  animation: riseHeart 2.5s ease-out forwards;
  pointer-events: none;
}

@keyframes riseHeart {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  100% {
    transform: translateY(-60vh) scale(1.4);
    opacity: 0;
  }
}

/* ===== FALLING PETALS ===== */
#petals-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8500;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -10vh;
  opacity: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@keyframes petalFall {
  0% {
    top: -10vh;
    opacity: 0;
  }

  10% {
    opacity: 0.8;
  }

  80% {
    opacity: 0.8;
  }

  100% {
    top: 110vh;
    opacity: 0;
  }
}

@keyframes petalSway {
  0% {
    transform: translateX(0px) rotate(0deg);
  }

  50% {
    transform: translateX(40px) rotate(60deg);
  }

  100% {
    transform: translateX(-40px) rotate(-60deg);
  }
}

/* ===== REVEAL ANIMATION ===== */
/* Generic reveal for sections */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* Specific: images slide from sides */
.hero-photo.reveal {
  transform: translateY(0);
  opacity: 0;
}

.hero-photo.reveal.in-view {
  opacity: 1;
}

.split-photo.left-photo.reveal {
  transform: translateX(-40px);
  opacity: 0;
  transition: opacity .9s ease, transform .9s ease;
}

.split-photo.left-photo.reveal.in-view {
  opacity: 1;
  transform: translateX(0);
}

.split-photo.right-photo.reveal {
  transform: translateX(40px);
  opacity: 0;
  transition: opacity .9s ease .2s, transform .9s ease .2s;
}

.split-photo.right-photo.reveal.in-view {
  opacity: 1;
  transform: translateX(0);
}

.story-text {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease .2s, transform 1s ease .2s;
}

.love-story-section.in-view .story-text {
  opacity: 1;
  transform: none;
}

.ev-card.reveal {
  transform: translateY(30px);
  opacity: 0;
}

.ev-card.reveal.in-view {
  opacity: 1;
  transform: none;
}

.ev-card:nth-child(1).reveal {
  transition-delay: 0s;
}

.ev-card:nth-child(2).reveal {
  transition-delay: 0.2s;
}

.ev-card:nth-child(3).reveal {
  transition-delay: 0.4s;
}

.gallery-slider.reveal {
  opacity: 0;
  transform: scale(.97);
  transition: opacity .8s ease, transform .8s ease;
}

.gallery-slider.reveal.in-view {
  opacity: 1;
  transform: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 520px) {
  :root {
    --card-w: 100vw;
  }

  .couple-photo-split {
    gap: 2px;
  }

  .split-photo img {
    height: 220px;
  }
}

/* ===== WISH PANEL ===== */
.wish-panel {
  position: fixed;
  bottom: 60px;
  /* sits just above the action bar */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--card-w);
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, .18);
  z-index: 2000;
  padding-bottom: 24px;
  transition: transform .4s ease, opacity .4s ease;
}

.wish-panel.hidden {
  display: none !important;
}

.wish-panel.slide-in {
  animation: slideUpPanel .35s ease forwards;
}

@keyframes slideUpPanel {
  from {
    transform: translateX(-50%) translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

.wish-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 10px;
  border-bottom: 1px solid #f0f0f0;
}

.wish-panel-title {
  flex: 1;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-dark);
  font-family: Quicksand, sans-serif;
}

.wish-panel-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: #888;
  padding: 0 4px;
  line-height: 1;
}

.wish-panel-body {
  padding: 16px 20px 0;
}

.wish-panel-field {
  margin-bottom: 12px;
}

.wish-panel-field input,
.wish-panel-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: .85rem;
  font-family: Quicksand, sans-serif;
  color: #333;
  background: #fafafa;
  resize: none;
  outline: none;
  transition: border-color .2s;
}

.wish-panel-field input:focus,
.wish-panel-field textarea:focus {
  border-color: var(--navy);
}

.wish-submit-btn {
  display: block;
  width: 90%;
  margin: 16px auto 0;
  padding: 12px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: .5px;
  font-family: Quicksand, sans-serif;
  transition: background .2s;
}

.wish-submit-btn:active {
  background: var(--navy-dark);
}

/* ========================================= */
/* COUNTDOWN & CALENDAR (Added styles)       */
/* ========================================= */

.countdown-wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding: 0 10px;
}

.cd-box {
  flex: 1;
  background: var(--navy);
  border-radius: 8px;
  padding: 18px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(72, 112, 163, 0.2);
}

.cd-num {
  font-size: 1.8rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  line-height: 1;
  margin-bottom: 6px;
}

.cd-label {
  font-size: 0.8rem;
  font-family: 'Quicksand', sans-serif;
  text-transform: uppercase;
}

.calendar-events-section {
  position: relative;
  padding: 40px 20px;
  text-align: center;
}

.month-label {
  font-family: 'Aquarelle', cursive;
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.mini-calendar {
  background: #fff;
  border-radius: 12px;
  padding: 24px 20px;
  margin: 0 auto 30px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  max-width: 320px;
  position: relative;
  z-index: 2;
}

.cal-header {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  text-align: center;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.9rem;
}

.cal-dow {
  font-weight: bold;
  color: var(--navy);
  margin-bottom: 10px;
}

.cal-d {
  position: relative;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  z-index: 1;
}

.cal-d.highlight {
  color: #fff;
  font-weight: bold;
}

.cal-d.highlight .colorF {
  color: #fff;
  z-index: 2;
  position: relative;
}

.heart-date {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  z-index: -1;
  animation: heartPulse 1.5s ease-in-out infinite alternate;
}

@keyframes heartPulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.timeline-wrap {
  margin-top: 40px;
  position: relative;
}

.timeline-title {
  font-family: 'Aquarelle', cursive;
  font-size: 2.2rem;
  color: var(--navy);
  margin-bottom: 30px;
}

.timeline-row {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding: 0 5px;
}

.timeline-row::before {
  content: '';
  position: absolute;
  top: 35px;
  /* exactly middle of the 70px icon-wrap */
  left: 15%;
  right: 15%;
  height: 2px;
  background: #c3d3e6;
  z-index: 0;
}

.tl-item {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tl-icon-wrap {
  width: 70px;
  height: 70px;
  background: #fff;
  border-radius: 50%;
  border: 2px solid var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.tl-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.tl-time {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.tl-name {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #555;
  line-height: 1.2;
}

.material-component {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.4;
  pointer-events: none;
}

.cal-deco {
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: center top;
  background-repeat: no-repeat;
}

/* ===== QR MODAL ===== */
.qr-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: opacity 0.3s ease;
}

.qr-modal.hidden {
  display: none !important;
}

.qr-modal-content {
  background: #fff;
  width: 90%;
  max-width: 480px;
  border-radius: 20px;
  padding: 24px 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  animation: qrModalSlideUp 0.3s ease-out;
  text-align: center;
}

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

.qr-modal-title {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
}

.qr-modal-subtitle {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 20px;
}

.qr-columns {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.qr-column {
  width: 49%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-column-label {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.groom-label {
  color: #4870a3;
}

.bride-label {
  color: #f36b7f;
}

.qr-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 8px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.qr-code-img {
  width: 100%;
  max-width: 130px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
  border: 1px solid #f1f5f9;
}

.qr-info-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.qr-info-bank {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.65rem;
  color: #64748b;
  margin-bottom: 2px;
}

.qr-info-acc {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 8px;
}

.qr-copy-btn {
  border: none;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
  width: 90%;
  transition: transform 0.1s, opacity 0.2s;
  font-family: 'Quicksand', sans-serif;
}

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

.groom-copy {
  background-color: #e0f2fe;
  color: #0369a1;
}

.groom-copy:hover {
  background-color: #bae6fd;
}

.bride-copy {
  background-color: #fce7f3;
  color: #be185d;
}

.bride-copy:hover {
  background-color: #fbcfe8;
}

.qr-modal-footer {
  display: flex;
  justify-content: center;
}

.qr-close-btn {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 32px;
  color: #334155;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.qr-close-btn:hover {
  background-color: #f1f5f9;
  border-color: #94a3b8;
}

/* Toast alert styling */
.copy-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #1f2937;
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  z-index: 11000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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