:root {
  --cream: #fbf5e9;
  --paper: #fffaf1;
  --olive: #56673f;
  --olive-dark: #344025;
  --wine: #8e2f3f;
  --pink: #f6b8c7;
  --text: #373126;
  --muted: #786d5e;
  --shadow: 0 18px 45px rgba(77, 54, 38, 0.16);
  --script: 'Great Vibes', cursive;
  --serif: 'Cormorant Garamond', serif;
  --body: 'Be Vietnam Pro', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--body);
  background:
    radial-gradient(circle at 20% 10%, rgba(246, 184, 199, .28), transparent 34%),
    radial-gradient(circle at 80% 0%, rgba(86, 103, 63, .18), transparent 30%),
    #f2eadc;
}

.location-section {
  padding: 60px 16px;
  background: #fff8f2;
}

.map-card {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 24px 18px 26px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 14px 35px rgba(80, 58, 35, 0.14);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.map-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(150, 124, 80, 0.25);
  border-radius: 24px;
  pointer-events: none;
}

.map-card .pin {
  width: 54px;
  height: 54px;
  object-fit: contain;
  margin-bottom: 10px;
  animation: pinBounce 1.8s ease-in-out infinite;
}

.map-card h2 {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  color: #5f6f42;
  margin: 4px 0 14px;
  font-weight: 700;
}

.venue-image-wrap {
  width: 100%;
  height: 180px;
  border-radius: 20px;
  overflow: hidden;
  margin: 12px 0 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.venue-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Nếu không muốn hiện ảnh địa điểm thì xóa .venue-image-wrap trong HTML */

.map-card h3 {
  font-size: 22px;
  color: #7b1e25;
  margin: 8px 0 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.map-card p {
  font-size: 15px;
  line-height: 1.6;
  color: #5f5144;
  margin: 0 auto 16px;
  max-width: 340px;
}

#directionBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7b1e25, #a8333b);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(123, 30, 37, 0.28);
  margin-bottom: 18px;
  transition: 0.25s ease;
}

#directionBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(123, 30, 37, 0.35);
}

.map-embed {
  width: 100%;
  height: 285px;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid #f1b7b7;
  background: #f6eee7;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

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

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

body.lock { overflow: hidden; }

.phone-frame {
  width: min(100%, 430px);
  margin: 0 auto;
  min-height: 100vh;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0 50px rgba(0,0,0,.08);
}

.section {
  position: relative;
  padding: 66px 22px;
  background:
    linear-gradient(rgba(255,255,255,.2), rgba(255,255,255,.2)),
    repeating-linear-gradient(90deg, rgba(86,103,63,.025) 0 1px, transparent 1px 9px),
    var(--paper);
}

.section:nth-child(even) { background-color: var(--cream); }

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.script-title {
  margin: 0 0 12px;
  text-align: center;
  font-family: var(--script);
  font-size: 52px;
  line-height: 1;
  color: var(--olive);
  font-weight: 400;
}

.section-title {
  margin: 0 0 22px;
  text-align: center;
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.1;
  color: var(--olive-dark);
  letter-spacing: .04em;
}

.sub-title {
  margin: 0 auto 22px;
  max-width: 320px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: .12em;
}

/* Gate mở thiệp */
.invite-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: rgba(255, 247, 238, .76);
  backdrop-filter: blur(10px);
  transition: opacity .7s ease, visibility .7s ease;
}

.invite-gate.opened {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gate-blur {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(246,184,199,.35), transparent 55%);
}

.envelope {
  position: relative;
  width: 260px;
  height: 170px;
  border: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 26px 28px rgba(92, 58, 58, .22));
  animation: floatEnvelope 2.4s ease-in-out infinite;
}

.envelope-body {
  position: absolute;
  inset: 44px 0 0;
  border-radius: 0 0 20px 20px;
  background: linear-gradient(145deg, #ffd6df, #f2a7b8);
}

.envelope-body::before,
.envelope-body::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 0;
  height: 0;
  border-bottom: 126px solid #f4b3c2;
}

.envelope-body::before {
  left: 0;
  border-right: 130px solid transparent;
}

.envelope-body::after {
  right: 0;
  border-left: 130px solid transparent;
}

.envelope-flap {
  position: absolute;
  left: 0;
  top: 44px;
  z-index: 2;
  width: 0;
  height: 0;
  border-left: 130px solid transparent;
  border-right: 130px solid transparent;
  border-top: 98px solid #ffc2d0;
  transform-origin: top;
  transition: transform .8s ease;
}

.envelope:hover .envelope-flap { transform: rotateX(18deg); }

.wax-seal {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 94px;
  width: 46px;
  height: 46px;
  transform: translateX(-50%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  font-size: 20px;
  background: var(--wine);
  box-shadow: inset 0 2px 8px rgba(255,255,255,.16), 0 5px 16px rgba(142,47,63,.3);
}

.open-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -48px;
  color: var(--wine);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
}

@keyframes floatEnvelope {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Music */
.music-btn {
  position: fixed;
  z-index: 50;
  top: 14px;
  right: calc(50% - 200px);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.72);
  background: rgba(86,103,63,.9);
  color: white;
  box-shadow: 0 8px 22px rgba(0,0,0,.16);
  cursor: pointer;
}

.music-btn span { display: inline-block; font-size: 22px; }
.music-btn.playing span { animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 460px) {
  .music-btn { right: 14px; }
}

/* Hero */
.hero-section {
  min-height: 100vh;
  padding-top: 76px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.flower {
  position: absolute;
  width: 135px;
  pointer-events: none;
  opacity: .95;
}

.flower-left { left: -20px; top: 10px; }
.flower-right { right: -26px; top: 42px; transform: none; }

.save-date {
  margin: 0 0 8px;
  padding: 8px 0;
  font-family: var(--script);
  font-size: 48px;
  line-height: 1.2;
  color: var(--olive);
  overflow: visible;
  position: relative;
  z-index: 2;
}

.couple-name {
  margin: 0;
  font-family: var(--script);
  font-weight: 400;
  font-size: 55px;
  line-height: .96;
  color: var(--olive-dark);
}

.couple-name span { display: block; }
.couple-name small { display: block; font-size: 38px; color: var(--wine); margin: 5px 0; }
.couple-icon { font-size: 34px; margin: 20px 0 16px; }

.hero-image,
.quote-section img,
.story-section img,
.countdown-section img {
  width: 100%;
  border-radius: 28px 28px 12px 12px;
  box-shadow: var(--shadow);
  display: block;
  object-fit: cover;
}

/* Family */
.family-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: stretch;
}

.family-card {
  padding: 18px 12px;
  border: 1px solid rgba(86,103,63,.18);
  border-radius: 22px;
  background: rgba(255,255,255,.65);
  text-align: center;
}

.family-card h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 25px;
  color: var(--wine);
}

.family-card p {
  margin: 8px 0;
  font-size: 12px;
  line-height: 1.65;
}

.family-divider {
  display: grid;
  place-items: center;
  width: 36px;
  font-size: 24px;
}

/* Invitation */
.mini-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 22px;
}

.mini-gallery img,
.album-grid img,
.profile-card img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.mini-gallery img {
  height: 200px;
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}

.event-card {
  margin: 22px 0;
  padding: 24px 18px;
  text-align: center;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(86,103,63,.18);
  border-radius: 28px;
  box-shadow: 0 14px 32px rgba(77, 54, 38, .08);
}

.event-badge {
  display: inline-flex;
  padding: 10px 20px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--wine);
  color: white;
  font-family: var(--serif);
  font-size: 22px;
}

.event-label {
  margin: 12px 0 4px;
  color: var(--muted);
  font-size: 13px;
}

.event-card h3,
.event-card h4 {
  margin: 7px 0;
  color: var(--olive-dark);
  line-height: 1.4;
}

.event-card h3 { font-size: 18px; }
.event-card h4 { font-size: 15px; letter-spacing: .04em; }
.event-lunar { color: var(--muted); font-size: 12px; }

.map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 40px;
  margin: 12px 0;
  border-radius: 999px;
  text-decoration: none;
  color: white;
  background: var(--olive);
  box-shadow: 0 10px 18px rgba(86,103,63,.24);
}

.map-box {
  height: 150px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: rgba(52,64,37,.6);
  background: linear-gradient(135deg, rgba(86,103,63,.14), rgba(246,184,199,.16));
  border: 1px dashed rgba(86,103,63,.25);
}

/* Quote */
.quote-section { padding-left: 0; padding-right: 0; }
.quote-section img { border-radius: 0; box-shadow: none; }
.quote-section p {
  margin: -55px 20px 0;
  position: relative;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,250,241,.8);
  backdrop-filter: blur(6px);
  text-align: center;
  font-family: var(--script);
  color: var(--wine);
  font-size: 35px;
  box-shadow: var(--shadow);
}

/* Profile */
.profile-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.profile-card {
  padding: 10px 10px 18px;
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
}

.profile-card img { height: 210px; border-radius: 6px; margin-bottom: 12px; }
.profile-card span { font-size: 12px; color: var(--muted); }
.profile-card h3 {
  margin: 4px 0 0;
  font-family: var(--script);
  font-size: 32px;
  color: var(--olive);
  font-weight: 400;
}
.left-card { transform: rotate(-4deg); }
.right-card { transform: rotate(4deg); margin-top: 34px; }

/* Story */
.story-section { text-align: center; }
.heart {
  width: 52px;
  height: 52px;
  margin: 8px auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffe0e8;
  color: var(--wine);
  font-size: 24px;
  animation: pulse 1.6s ease infinite;
}
.story-section p {
  margin: 0 auto 24px;
  max-width: 350px;
  line-height: 1.9;
  color: var(--muted);
  font-size: 14px;
}
@keyframes pulse { 50% { transform: scale(1.08); } }

/* Calendar */
.calendar-section {
  background:
    linear-gradient(rgba(255,250,241,.86), rgba(255,250,241,.9)),
    url('assets/images/calendar-bg.svg') center / cover;
}
.calendar-card {
  padding: 20px;
  border-radius: 28px;
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow);
}
.weekdays,
.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  text-align: center;
}
.weekdays { color: var(--olive); font-weight: 700; font-size: 12px; margin-bottom: 12px; }
.days span {
  position: relative;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 13px;
}
.days .special {
  color: white;
  background: var(--wine);
  animation: pulse 1.8s ease infinite;
}
.days .empty { visibility: hidden; }






.weekdays,
.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  align-items: center;
}

.weekdays span {
  font-size: 14px;
  font-weight: 700;
  color: #52673b;
  margin-bottom: 12px;
}

.days span {
  height: 42px;
  line-height: 42px;
  font-size: 15px;
  color: #4b4b4b;
  position: relative;
  z-index: 1;
}

.days .empty-day {
  visibility: hidden;
}

.days .active-day {
  color: #ffffff;
  font-weight: 700;
}

.days .active-day::before {
  content: "";
  width: 38px;
  height: 38px;
  background: #a64256;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  box-shadow: 0 6px 14px rgba(166, 66, 86, 0.35);
}
/* Timeline */
.timeline-section { text-align: center; }
.timeline-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 84%;
  margin: 16px auto;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(86,103,63,.16);
  text-align: left;
}
.timeline-item span {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f5dfd1;
  font-size: 24px;
}
.timeline-item strong { color: var(--wine); font-size: 18px; }
.timeline-item p { margin: 4px 0 0; color: var(--muted); }

/* Countdown */
.countdown-section {
  background: var(--olive);
  color: white;
  text-align: center;
}
.countdown-section .script-title { color: #fff6e7; margin-top: 24px; }
.countdown-section img { box-shadow: 0 16px 34px rgba(0,0,0,.18); }
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 20px;
}
.countdown-grid div {
  padding: 13px 6px;
  border-radius: 18px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
}
.countdown-grid strong { display: block; font-size: 22px; }
.countdown-grid span { font-size: 11px; opacity: .85; }

/* Album */
.album-section .section-title span { display: block; font-family: var(--script); color: var(--wine); font-weight: 400; }
.album-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 9px;
}
.album-grid img {
  border-radius: 18px;
  min-height: 150px;
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
  cursor: pointer;
}
.album-grid img:first-child { grid-row: span 2; height: 310px; }

/* RSVP */
.rsvp-section { text-align: center; }
.rsvp-section p { color: var(--muted); line-height: 1.8; }
.rsvp-form {
  margin-top: 20px;
  padding: 22px;
  border-radius: 28px;
  background: white;
  box-shadow: var(--shadow);
  text-align: left;
}
.rsvp-form label {
  display: block;
  margin: 14px 0 8px;
  color: var(--olive-dark);
  font-size: 13px;
  font-weight: 600;
}
.rsvp-form input[type="text"],
.rsvp-form select,
.live-actions input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(86,103,63,.24);
  outline: none;
  font-family: var(--body);
  background: #fffdf9;
}
.radio-group label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.5;
}
.rsvp-form button {
  width: 100%;
  height: 48px;
  margin-top: 18px;
  border: 0;
  border-radius: 999px;
  background: var(--olive);
  color: white;
  font-family: var(--body);
  font-weight: 700;
  box-shadow: 0 12px 20px rgba(86,103,63,.24);
  cursor: pointer;
}

/* Gift */
.gift-section { text-align: center; padding-bottom: 130px; }
.gift-box {
  width: 86px;
  height: 86px;
  margin: 16px auto;
  border: 0;
  border-radius: 28px;
  background: #ffe0e8;
  font-size: 48px;
  box-shadow: var(--shadow);
  cursor: pointer;
  animation: giftBounce 2s ease infinite;
}
@keyframes giftBounce { 50% { transform: translateY(-8px) rotate(4deg); } }
.gift-section p { color: var(--muted); line-height: 1.8; }

/* Live overlay */
.live-overlay {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 12px;
  width: min(100% - 20px, 410px);
  transform: translateX(-50%);
  pointer-events: none;
}
.wish-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.wish-item {
  max-width: 86%;
  padding: 8px 12px;
  border-radius: 16px;
  color: #823447;
  background: rgba(255, 222, 230, .88);
  backdrop-filter: blur(8px);
  font-size: 12px;
  line-height: 1.45;
  box-shadow: 0 5px 14px rgba(99, 34, 52, .12);
  animation: commentIn .35s ease;
}
@keyframes commentIn { from { opacity: 0; transform: translateY(10px); } }
.live-actions {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 7px;
  pointer-events: auto;
}
.live-actions input {
  height: 42px;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(8px);
}
.live-actions button {
  min-width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--wine);
  cursor: pointer;
  box-shadow: 0 7px 16px rgba(0,0,0,.12);
}
.floating-heart {
  position: fixed;
  z-index: 80;
  bottom: 72px;
  left: 50%;
  font-size: 26px;
  pointer-events: none;
  animation: flyHeart 1.4s ease forwards;
}
@keyframes flyHeart {
  to { opacity: 0; transform: translate(var(--x), -190px) scale(1.7); }
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(27, 24, 20, .46);
  opacity: 0;
  visibility: hidden;
  transition: .25s ease;
}
.modal.show { opacity: 1; visibility: visible; }
.modal-card {
  position: relative;
  width: min(100%, 360px);
  padding: 26px;
  border-radius: 28px;
  text-align: center;
  background: var(--paper);
  box-shadow: 0 24px 70px rgba(0,0,0,.24);
}
.modal-close {
  position: absolute;
  right: 12px;
  top: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(142,47,63,.12);
  color: var(--wine);
  font-size: 24px;
  cursor: pointer;
}
.modal-card h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 28px;
  color: var(--olive-dark);
}
.modal-card p { color: var(--muted); line-height: 1.8; }
.bank-box {
  padding: 16px;
  border-radius: 20px;
  background: white;
  border: 1px dashed rgba(86,103,63,.25);
}
.bank-box strong { color: var(--wine); }

@media (max-width: 360px) {
  .couple-name { font-size: 48px; }
  .family-grid { grid-template-columns: 1fr; }
  .family-divider { width: 100%; height: 30px; }
  .profile-row { gap: 10px; }
  .profile-card img { height: 180px; }
}



/* =====================================================
   EXTRA WEDDING EFFECTS
===================================================== */

html,
body {
  scroll-behavior: smooth;
}

/* Layer hiệu ứng toàn trang */
.fx-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 999;
}

/* Hoa rơi */
.falling-flower {
  position: absolute;
  top: -40px;
  color: rgba(145, 89, 105, 0.75);
  filter: drop-shadow(0 4px 8px rgba(120, 70, 80, 0.18));
  animation-name: flowerFall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes flowerFall {
  0% {
    transform: translateY(-60px) translateX(0) rotate(0deg);
  }

  50% {
    transform: translateY(55vh) translateX(38px) rotate(180deg);
  }

  100% {
    transform: translateY(110vh) translateX(-28px) rotate(360deg);
  }
}

/* Tim bay */
.floating-heart {
  position: fixed;
  bottom: 68px;
  color: #b44a62;
  text-shadow: 0 8px 18px rgba(180, 74, 98, 0.25);
  animation: heartFloat linear forwards;
  z-index: 1002;
}

@keyframes heartFloat {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.65) rotate(0deg);
  }

  10% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(-78vh) scale(1.45) rotate(18deg);
  }
}

/* Lấp lánh */
.sparkle-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 214, 146, 0.9);
  box-shadow:
    0 0 8px rgba(255, 214, 146, 0.9),
    0 0 18px rgba(255, 214, 146, 0.55);
  animation: sparkleBlink ease-in-out infinite;
}

@keyframes sparkleBlink {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.3);
  }

  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

/* Reveal animation */
.fx-reveal {
  opacity: 0;
  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.9s ease;
  will-change: opacity, transform;
}

.fx-reveal[data-animate="fade-up"] {
  transform: translateY(46px);
}

.fx-reveal[data-animate="fade-left"] {
  transform: translateX(-46px);
}

.fx-reveal[data-animate="fade-right"] {
  transform: translateX(46px);
}

.fx-reveal[data-animate="zoom-in"] {
  transform: scale(0.88);
  filter: blur(2px);
}

.fx-reveal[data-animate="soft-rotate"] {
  transform: translateY(40px) rotate(-2deg);
}

.fx-reveal.fx-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1) rotate(0);
  filter: blur(0);
}

/* Ảnh động nhẹ */
.fx-photo-motion {
  transform: translateY(var(--photoMove, 0px)) scale(1.02);
  transition:
    transform 0.35s ease-out,
    filter 0.35s ease;
  animation: photoBreath 5.5s ease-in-out infinite;
  will-change: transform;
}

@keyframes photoBreath {
  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.05);
  }
}

/* Chữ có ánh sáng nhẹ */
.text-shine {
  position: relative;
  overflow: visible;
}

.text-shine::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -140%;
  width: 70%;
  height: 140%;
  background: linear-gradient(
    110deg,
    transparent,
    rgba(255, 255, 255, 0.22),
    transparent
  );
  animation: textShine 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes textShine {
  0% {
    left: -130%;
  }

  45%,
  100% {
    left: 130%;
  }
}

/* Nút tự trượt */
.auto-scroll-toggle {
  position: fixed;
  right: 14px;
  bottom: 86px;
  z-index: 1005;
  height: 38px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  background: rgba(126, 45, 62, 0.92);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(126, 45, 62, 0.28);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: 0.25s ease;
}

.auto-scroll-toggle:hover {
  transform: translateY(-2px);
}

.auto-scroll-toggle.is-paused {
  background: rgba(82, 103, 59, 0.92);
}

/* Làm section có cảm giác nổi hơn */
.section {
  position: relative;
}

.calendar-card,
.map-card,
.rsvp-card,
.gift-card,
.album-card {
  animation: cardFloat 5.8s ease-in-out infinite;
}

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

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

/* Mobile tối ưu */
@media (max-width: 480px) {
  .auto-scroll-toggle {
    right: 10px;
    bottom: 78px;
    height: 36px;
    font-size: 12px;
    padding: 0 12px;
  }

  .falling-flower {
    opacity: 0.45;
  }
}


/* ==============================
   GIFT QR MODAL
============================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(38, 28, 24, 0.58);
  backdrop-filter: blur(5px);
}

.modal.show {
  display: flex;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 430px;
  max-height: 88vh;
  overflow-y: auto;
  background: #fffaf3;
  border-radius: 28px;
  padding: 26px 18px 24px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  animation: modalPopup 0.35s ease;
}

@keyframes modalPopup {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.94);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #9b3d4f;
  color: #fff;
  font-size: 24px;
  line-height: 34px;
  cursor: pointer;
  z-index: 2;
}

.gift-qr-modal h2 {
  font-family: "Great Vibes", cursive;
  font-size: 42px;
  color: #526b3e;
  margin: 6px 0 6px;
}

.gift-qr-note {
  font-size: 14px;
  color: #7a6558;
  line-height: 1.5;
  margin-bottom: 18px;
}

.gift-qr-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.gift-qr-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 18px 14px;
  border: 1px solid rgba(154, 61, 79, 0.16);
  box-shadow: 0 10px 25px rgba(95, 67, 46, 0.1);
}

.gift-qr-card h3 {
  margin: 0;
  font-size: 16px;
  color: #9b3d4f;
}

.gift-qr-card h4 {
  margin: 6px 0 14px;
  font-size: 20px;
  color: #526b3e;
  letter-spacing: 1px;
}

.gift-qr-card img {
  width: 210px;
  height: 210px;
  object-fit: cover;
  border-radius: 16px;
  border: 2px solid #f1d6ca;
  background: #fff;
  padding: 6px;
  margin-bottom: 12px;
}

.gift-qr-card p {
  margin: 4px 0;
  color: #6d5a4f;
  font-size: 14px;
}

.hero-section,
.hero-section * {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.save-date,
.couple-name,
.couple-name span,
.couple-name small {
  overflow: visible !important;
  white-space: normal;
  transform: none;
}

.hero-section .text-shine {
  overflow: visible !important;
}