/* ============================================================
   CINELOVE EXACT REPLICA STYLESHEET
   Dành cho thiệp cưới: Trần Thông & Kiều Anh
   ============================================================ */

/* Nạp font cục bộ Playfair Display hỗ trợ 100% tiếng Việt chuẩn */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/PlayfairDisplay-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/PlayfairDisplay-SemiBold.ttf') format('truetype');
}

/* --- RESET & CẤU HÌNH CƠ BẢN --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-page: #faf9f6;
  --bg-pure: #ffffff;
  --color-gold: #b59d82;
  --color-gold-dark: #8c765e;
  --color-gold-light: #d8c8b8;
  --color-text-main: #1f1f1f;
  --color-text-sub: #5c5c5c;
  --color-text-muted: #8e8e8e;
  --color-red-btn: #f0534b;
  --color-film-bg: #141416;

  --font-serif: 'Playfair Display', 'Bodoni Moda', Georgia, serif;
  --font-classic: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-script-calligraphy: 'Great Vibes', 'Charm', 'Alex Brush', cursive;
  --font-script-formal: 'Pinyon Script', cursive;
  --font-script-brush: 'Alex Brush', cursive;
  --font-script: 'Great Vibes', 'Charm', 'Alex Brush', cursive;
  --font-sans: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-subcaps: 'Montserrat', sans-serif;

  --max-w: 460px;
}

html {
  scroll-behavior: smooth;
  background-color: #e9eaec;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--color-text-main);
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.08);
  overflow-x: hidden;
  padding-bottom: 74px; /* Chừa chỗ cho bottom toolbar */
}

/* --- ICON TRÒN GÓC TRÊN --- */
.top-nav-icons {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-w);
  display: flex;
  justify-content: flex-end;
  padding: 0 16px;
  z-index: 1000;
  pointer-events: none;
}

.circle-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.circle-icon:hover {
  transform: scale(1.08);
}

.music-icon {
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.music-icon.is-spinning svg {
  animation: spin 3s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* --- WATERMARK DỌC MÉP PHẢI --- */
.side-watermark {
  position: fixed;
  right: -24px;
  top: 58%;
  transform: rotate(-90deg) translateY(-50%);
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  color: rgba(30, 30, 30, 0.45);
  font-family: var(--font-subcaps);
  z-index: 900;
  pointer-events: none;
  font-weight: 300;
}

/* ============================================================
   1. HERO COVER SECTION
   ============================================================ */
.section-hero {
  position: relative;
  width: 100%;
  background-color: #000;
  overflow: hidden;
}

.hero-top-labels {
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 54px 0 20px; /* Chừa khoảng trống bên phải cho icon nhạc */
  z-index: 10;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-subcaps);
  font-size: 0.65rem;
  letter-spacing: 2px;
  font-weight: 300;
}

.hero-header-text {
  position: absolute;
  top: 44px;
  left: 18px;
  text-align: left;
  z-index: 10;
  color: #ffffff;
  padding: 0;
  max-width: none;
}

.we-got-married {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 0.88;
}

.line-we-got {
  font-family: var(--font-script-brush);
  font-size: clamp(2.3rem, 9vw, 3.1rem);
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);
}

.line-married {
  font-family: var(--font-script-brush);
  font-size: clamp(2.5rem, 10vw, 3.4rem);
  margin-top: -8px;
  margin-left: 45px; /* Thụt vào để nằm ngay dưới chữ 'got' */
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);
}

.hero-subquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.68rem, 2.6vw, 0.76rem);
  color: rgba(255, 255, 255, 0.95);
  margin-top: 4px;
  letter-spacing: 0.2px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
  line-height: 1.2;
  white-space: nowrap; /* Giữ trên cùng 1 dòng duy nhất */
}

.hero-date {
  font-family: var(--font-classic);
  font-size: 0.88rem;
  letter-spacing: 2px;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
}

.hero-image-box {
  position: relative;
  width: 100%;
}

.hero-img {
  width: 100%;
  height: 650px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.fade-to-white {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: linear-gradient(to bottom, transparent, var(--bg-page));
}

/* ============================================================
   2. INVITATION SECTION (HIỆU ỨNG TRƯỢT SÂU & MƯỢT MỖI KHI CUỘN ĐẾN)
   ============================================================ */
.section-invitation {
  background-color: var(--bg-page);
  padding: 10px 24px 28px;
  text-align: center;
  position: relative;
  z-index: 2;
}

[data-aos="invitation-slide-up"] {
  transform: translate3d(0, 65px, 0) !important;
  opacity: 0 !important;
  transition-property: transform, opacity !important;
  transition-duration: 1.6s !important;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1) !important;
}

[data-aos="invitation-slide-up"].aos-animate {
  transform: translate3d(0, 0, 0) !important;
  opacity: 1 !important;
}

/* Hiệu ứng quy tụ vào tâm trái tim ♥ (chậm rãi, thanh thoát) */
[data-aos="converge-left"] {
  transform: translate3d(-60px, -15px, 0) !important;
  opacity: 0 !important;
  transition-property: transform, opacity !important;
  transition-duration: 1.5s !important;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1) !important;
}
[data-aos="converge-left"].aos-animate {
  transform: translate3d(0, 0, 0) !important;
  opacity: 1 !important;
}

[data-aos="converge-right"] {
  transform: translate3d(60px, -15px, 0) !important;
  opacity: 0 !important;
  transition-property: transform, opacity !important;
  transition-duration: 1.5s !important;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1) !important;
}
[data-aos="converge-right"].aos-animate {
  transform: translate3d(0, 0, 0) !important;
  opacity: 1 !important;
}

[data-aos="heart-bloom"] {
  transform: scale(0.2) !important;
  opacity: 0 !important;
  transition-property: transform, opacity !important;
  transition-duration: 1.4s !important;
  transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
[data-aos="heart-bloom"].aos-animate {
  transform: scale(1) !important;
  opacity: 1 !important;
}

[data-aos="converge-bottom"] {
  transform: translate3d(0, 50px, 0) !important;
  opacity: 0 !important;
  transition-property: transform, opacity !important;
  transition-duration: 1.5s !important;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1) !important;
}
[data-aos="converge-bottom"].aos-animate {
  transform: translate3d(0, 0, 0) !important;
  opacity: 1 !important;
}

/* Hiệu ứng trượt từ 2 bên cho MY LOVER (Chậm rãi, êm ái như phim điện ảnh) */
[data-aos="lover-slide-left"] {
  transform: translate3d(-80px, 0, 0) !important;
  opacity: 0 !important;
  will-change: transform, opacity !important;
  transition-property: transform, opacity !important;
  transition-duration: 1.8s !important;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1) !important;
}
[data-aos="lover-slide-left"].aos-animate {
  transform: translate3d(0, 0, 0) !important;
  opacity: 1 !important;
}

[data-aos="lover-slide-right"] {
  transform: translate3d(80px, 0, 0) !important;
  opacity: 0 !important;
  will-change: transform, opacity !important;
  transition-property: transform, opacity !important;
  transition-duration: 1.8s !important;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1) !important;
}
[data-aos="lover-slide-right"].aos-animate {
  transform: translate3d(0, 0, 0) !important;
  opacity: 1 !important;
}

.couple-header {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  margin-top: 10px;
}

.person-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 110px;
}

.role-txt {
  font-family: var(--font-classic);
  font-size: 0.72rem;
  letter-spacing: 4px;
  color: var(--color-text-main);
  font-weight: 400;
  margin-bottom: 8px;
}

.person-name {
  font-family: var(--font-script-formal), cursive;
  font-size: 2.35rem;
  color: var(--color-gold-dark);
  font-weight: 400;
  white-space: nowrap;
  line-height: 1.15;
  letter-spacing: 1px;
}

.heart-symbol {
  font-size: 1.45rem;
  color: var(--color-gold);
  margin: 16px auto;
  opacity: 0.95;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Chữ WEDDING uốn lượn nghệ thuật kiểu Cinelove */
.artistic-wedding {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 26px;
}

.artistic-wedding .letter {
  font-family: var(--font-classic);
  font-size: clamp(2.4rem, 9.5vw, 3.2rem);
  color: var(--color-gold);
  font-weight: 300;
  letter-spacing: 2px;
  line-height: 1;
  display: inline-block;
  transform: scaleY(1.15);
}

.inv-intro {
  font-family: var(--font-classic);
  font-size: 0.75rem;
  letter-spacing: 3.5px;
  color: var(--color-text-main);
  margin-bottom: 4px;
}

.inv-guest {
  font-family: var(--font-script-formal);
  font-size: 3.4rem;
  color: var(--color-gold);
  line-height: 1.2;
  margin: 2px 0 8px;
}

.inv-desc {
  font-family: var(--font-classic);
  font-size: 0.7rem;
  letter-spacing: 2.5px;
  color: var(--color-text-sub);
  line-height: 1.8;
}

.inv-datetime {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 5.2vw, 1.7rem);
  color: var(--color-gold);
  letter-spacing: 1px;
  font-weight: 400;
  margin-top: 22px;
  line-height: 1.3;
}

.inv-lunar {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-top: 6px;
}

.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 18px auto;
  max-width: 220px;
}

.orn-line {
  flex: 1;
  height: 1px;
  background-color: var(--color-gold-light);
}

.orn-pattern {
  color: var(--color-gold);
  font-size: 0.65rem;
  letter-spacing: 2px;
}

.inv-location-title {
  font-family: var(--font-classic);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 3.5px;
  color: var(--color-gold-dark);
  margin-bottom: 6px;
}

.inv-location-name {
  font-family: var(--font-classic);
  font-size: 1.15rem;
  letter-spacing: 4px;
  color: var(--color-text-main);
  font-weight: 500;
  margin-bottom: 6px;
}

.inv-location-address {
  font-size: 0.82rem;
  color: var(--color-text-sub);
  line-height: 1.6;
  max-width: 320px;
  margin: 0 auto;
}

/* Map frame */
.map-card {
  width: 100%;
  margin-top: 22px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  border: 1px solid #e7e3dc;
}

.map-card iframe {
  width: 100%;
  height: 220px;
  border: none;
  display: block;
}

.map-action-wrap {
  background: #ffffff;
  padding: 10px 14px;
  text-align: center;
  border-top: 1px solid #ebe6df;
}

.btn-map-direct {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 18px;
  background-color: var(--color-gold-dark, #8a7356);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-decoration: none;
  border-radius: 20px;
  box-shadow: 0 3px 10px rgba(138, 115, 86, 0.2);
  transition: all 0.25s ease;
}

.btn-map-direct:hover {
  background-color: var(--color-gold-light, #a68c6a);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(138, 115, 86, 0.3);
}

.btn-map-direct:active {
  transform: scale(0.96);
}

.btn-map-direct svg {
  flex-shrink: 0;
}

/* Fall in love row */
.fall-in-love-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 24px 6px 0;
  margin-top: 20px;
  border-top: 1px solid #eae5de;
}

.fil-caps {
  font-family: var(--font-classic);
  font-size: 0.95rem;
  letter-spacing: 3px;
  color: var(--color-text-muted);
}

.fil-script {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.85rem;
  color: var(--color-text-main);
}

/* ============================================================
   3. PHOTO BANNER
   ============================================================ */
.section-photo-banner {
  position: relative;
  width: 100%;
}

.banner-photo-wrap {
  position: relative;
  width: 100%;
}

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

.banner-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 18px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.78rem;
  text-align: center;
  letter-spacing: 0.4px;
}

/* ============================================================
   4. COUPLE LETTER
   ============================================================ */
.section-couple-letter {
  background-color: var(--bg-pure);
  padding: 44px 28px 24px;
  text-align: center;
}

.letter-content p {
  font-family: var(--font-serif);
  font-size: 0.96rem;
  line-height: 2.1;
  color: var(--color-text-main);
  letter-spacing: 0.2px;
}

.letter-heart {
  margin-top: 28px;
}

/* ============================================================
   5. MY LOVER
   ============================================================ */
.section-my-lover {
  background-color: var(--bg-pure);
  padding: 10px 20px 40px;
  text-align: center;
}

.my-lover-title {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-bottom: 26px;
}

.my-lover-title span {
  font-family: var(--font-classic);
  font-size: clamp(2rem, 8vw, 2.7rem);
  color: var(--color-gold);
  line-height: 1;
  transform: scaleY(1.15);
}

.my-lover-title .gap {
  width: 16px;
}

.lover-duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.lover-card {
  text-align: center;
}

.lover-img-box {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 4px;
  background-color: #eee;
}

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

.lover-label-group {
  margin-top: 10px;
}

.lover-display-name {
  font-family: var(--font-script-formal), cursive;
  font-size: 1.95rem;
  color: var(--color-gold-dark);
  font-weight: 400;
  line-height: 1.2;
}

.lover-tag {
  font-family: var(--font-classic);
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* ============================================================
   6. FILM STRIP GALLERY
   ============================================================ */
.section-film-gallery {
  background-color: var(--color-film-bg);
  padding: 24px 0;
  width: 100%;
}

.film-container {
  display: flex;
  flex-direction: row;
  width: 100%;
}

.sprocket-holes {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 10px 6px;
  min-width: 22px;
}

.sprocket-holes i {
  display: block;
  width: 9px;
  height: 14px;
  background-color: #faf7f0;
  border-radius: 2px;
  opacity: 0.7;
  margin: 6px 0;
}

.film-frames-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.film-cell {
  background-color: #000;
  position: relative;
  overflow: hidden;
  border: 1px solid #222;
}

.cell-edge-top {
  display: flex;
  justify-content: space-between;
  padding: 4px 10px;
  font-family: monospace;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 1px;
}

.cell-media {
  position: relative;
  width: 100%;
}

.cell-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.film-subtext {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #ffffff;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.78rem;
  text-align: center;
}

/* ============================================================
   7. RSVP FORM & THANK YOU
   ============================================================ */
.section-rsvp {
  background-color: var(--bg-page);
  padding: 40px 24px 30px;
  text-align: center;
}

.rsvp-white-card {
  background-color: var(--bg-pure);
  border-radius: 10px;
  padding: 32px 24px;
  border: 1px solid #e3ded6;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  text-align: left;
  max-width: 380px;
  margin: 0 auto;
}

.rsvp-card-title {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-text-main);
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}

.rsvp-row {
  margin-bottom: 18px;
}

.input-title {
  display: block;
  font-size: 0.84rem;
  color: var(--color-text-sub);
  margin-bottom: 8px;
}

.input-cinelove {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #d5cec5;
  border-radius: 6px;
  font-size: 0.88rem;
  font-family: var(--font-sans);
  background-color: #fcfbf9;
  outline: none;
  transition: border-color 0.2s ease;
}

.input-cinelove:focus {
  border-color: var(--color-gold);
}

.radio-option {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--color-text-main);
  cursor: pointer;
}

.radio-item input {
  accent-color: #2196f3;
  width: 16px;
  height: 16px;
}

.btn-confirm-rsvp {
  width: 100%;
  padding: 12px;
  background-color: var(--color-red-btn);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  margin-top: 8px;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-confirm-rsvp:hover {
  background-color: #e4423a;
}

.btn-confirm-rsvp:active {
  transform: scale(0.98);
}

.rsvp-success-panel {
  text-align: center;
  padding: 20px 0;
}

.rsvp-success-panel h4 {
  color: var(--color-gold);
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.chibi-illustration {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.footer-img {
  max-width: 150px;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.06));
}

.artistic-thank-you {
  font-family: var(--font-script-formal);
  font-size: 3.8rem;
  color: var(--color-gold);
  margin-top: 10px;
  line-height: 1;
}

/* ============================================================
   8. BOTTOM TOOLBAR (CINELOVE STYLE)
   ============================================================ */
#cinelove-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-w);
  height: 62px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid #eae5de;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 999;
}

.bar-left-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background-color: rgba(0, 0, 0, 0.07);
  border-radius: 24px;
  font-size: 0.8rem;
  color: var(--color-text-sub);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.bar-left-pill:hover {
  background-color: rgba(0, 0, 0, 0.12);
}

.bar-right-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pill-action-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  background-color: rgba(0, 0, 0, 0.07);
  border: none;
  border-radius: 24px;
  font-size: 0.82rem;
  color: var(--color-text-main);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: transform 0.15s ease, background-color 0.2s ease;
}

.pill-action-btn:active {
  transform: scale(0.92);
}

.icon-round-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background-color: rgba(0, 0, 0, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s ease;
}

.icon-round-btn:active {
  transform: scale(0.9);
}

.like-counter {
  position: absolute;
  top: -4px;
  right: -4px;
  background: linear-gradient(135deg, #ff7b92, #f04768);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: bold;
  border-radius: 10px;
  padding: 1px 5px;
  border: 1px solid #fff;
}

.avatar-capsule {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  cursor: pointer;
}

.avatar-capsule img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-capsule .close-x {
  position: absolute;
  inset: 0;
  background-color: rgba(240, 83, 75, 0.85);
  color: #fff;
  font-size: 0.75rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.avatar-capsule:hover .close-x {
  opacity: 1;
}

/* ============================================================
   MODAL HỘP QUÀ
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.is-active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background-color: #ffffff;
  border-radius: 14px;
  width: 100%;
  max-width: 340px;
  padding: 24px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.modal-backdrop.is-active .modal-card {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f0ede8;
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.modal-header h3 {
  font-family: var(--font-classic);
  font-size: 1.15rem;
  color: var(--color-gold-dark);
}

.btn-close-modal {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #888;
  cursor: pointer;
}

.gift-thanks {
  font-size: 0.85rem;
  color: var(--color-text-sub);
  line-height: 1.6;
  margin-bottom: 16px;
}

.bank-info-box {
  background-color: #fbf9f6;
  border: 1px solid #e8e2d8;
  border-radius: 8px;
  padding: 14px;
  font-size: 0.88rem;
}

.bank-row {
  margin-bottom: 6px;
  color: var(--color-text-main);
}

/* ============================================================
   FLOATING HEARTS LAYER
   ============================================================ */
#floating-hearts-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

.flying-heart-item {
  position: absolute;
  font-size: 1.5rem;
  animation: floatUpFade 1.4s ease-out forwards;
}

@keyframes floatUpFade {
  0% {
    opacity: 1;
    transform: translateY(0) scale(0.8) rotate(0deg);
  }
  50% {
    transform: translateY(-80px) scale(1.2) rotate(15deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-160px) scale(1.4) rotate(-15deg);
  }
}

/* ============================================================
   INFINITE MARQUEE TEXT (DẢI CHỮ CHẠY NGANG VÔ TẬN)
   ============================================================ */
.infinite-marquee-container {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  padding: 14px 0;
  background-color: var(--bg-page);
  border-top: 1px solid #e7e2db;
  border-bottom: 1px solid #e7e2db;
  margin: 24px 0 0;
  display: flex;
}

.infinite-marquee-container.marquee-dark {
  background-color: var(--color-film-bg);
  border-color: #242426;
  margin: 0;
  padding: 12px 0;
}

.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  animation: infiniteMarquee 18s linear infinite;
  will-change: transform;
}

.marquee-track span {
  display: inline-block;
  font-family: var(--font-classic);
  font-size: 0.8rem;
  letter-spacing: 3px;
  color: var(--color-gold-dark);
  font-weight: 500;
}

.marquee-dark .marquee-track span {
  color: var(--color-gold-light);
  font-size: 0.75rem;
  letter-spacing: 4px;
}

@keyframes infiniteMarquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ============================================================
   TINH CHỈNH AOS SCROLL REVEAL (EASE-OUT, 0.8s, 20px)
   ============================================================ */
[data-aos] {
  pointer-events: auto !important;
}

[data-aos="fade-up"] {
  transform: translate3d(0, 20px, 0) !important;
  opacity: 0 !important;
  transition-property: transform, opacity !important;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1) !important; /* easeOut */
}

[data-aos="fade-up"].aos-animate {
  transform: translate3d(0, 0, 0) !important;
  opacity: 1 !important;
}

/* ============================================================
   CÁC PHẦN MỚI COVER TỪ ẢNH CINELOVE
   ============================================================ */

/* 1. Đoạn thơ dưới MY LOVER (Ảnh 1) */
.lover-poem-block {
  margin-top: 26px;
  padding: 0 16px;
  text-align: center;
}

.poem-vi {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--color-text-main);
  letter-spacing: 0.2px;
}

.poem-en {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-top: 10px;
}

.welcome-wedding-bar {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #eee8e0;
}

.welcome-wedding-bar span {
  font-family: var(--font-classic);
  font-size: 0.72rem;
  letter-spacing: 3px;
  color: var(--color-text-muted);
}

/* 2. Đếm ngược dưới dải phim KODAK (Ảnh 2) */
.film-countdown {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 24px 0 12px;
  background-color: var(--color-film-bg);
  border-top: 1px solid #222;
}

.cd-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 48px;
}

.cd-val {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--color-gold-light);
  line-height: 1;
  font-weight: 400;
}

.cd-unit {
  font-size: 0.65rem;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 5px;
  font-family: var(--font-sans);
}

/* 3. Section Standing Photo & Chữ dọc MY LOVE FOREVER (Ảnh 2 & 3) */
.section-standing-photo {
  background-color: var(--bg-page);
  padding: 38px 20px 24px;
  text-align: center;
}

.stand-poem-box {
  margin-bottom: 24px;
}

.stand-poem-text {
  font-family: var(--font-serif);
  font-size: 0.96rem;
  line-height: 1.9;
  color: var(--color-text-main);
}

.vertical-photo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.side-vertical-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex;
  gap: 14px;
  font-family: var(--font-classic);
  font-size: 0.68rem;
  letter-spacing: 4px;
  color: var(--color-gold);
}

.stand-img-box {
  width: calc(100% - 35px);
  max-width: 380px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.stand-img-box img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

/* 4. Section I LOVE YOU Block (Ảnh 3 & 4) */
.section-iloveyou-block {
  background-color: var(--bg-pure);
  padding: 30px 20px 40px;
}

.iloveyou-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.iloveyou-left-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
}

.iloveyou-left-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.05);
}

.iloveyou-right-content {
  text-align: left;
}

.iloveyou-title {
  font-family: var(--font-classic);
  font-size: 1.35rem;
  letter-spacing: 3px;
  color: var(--color-gold);
  margin-bottom: 8px;
}

.iloveyou-poem {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--color-text-sub);
}

.grand-photo-card {
  width: 100%;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.grand-photo-card img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
}

/* 5. Section SAVE THE DATE & LỊCH CƯỚI (Ảnh 5) */
.section-save-the-date {
  background-color: var(--bg-page);
  padding: 40px 20px;
  text-align: center;
}

.save-date-title {
  font-family: var(--font-classic);
  font-size: clamp(2rem, 8vw, 2.7rem);
  letter-spacing: 4px;
  color: var(--color-gold);
  line-height: 1;
}

.save-poem {
  font-family: var(--font-serif);
  font-size: 0.94rem;
  line-height: 1.9;
  color: var(--color-text-main);
  margin-top: 10px;
  margin-bottom: 24px;
}

.calendar-photo-container {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
}

.cal-bg-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  filter: grayscale(0.15) brightness(0.95);
}

.calendar-overlay-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  max-width: 320px;
  background: rgba(0, 0, 0, 0.16); /* Rất trong suốt, tôn trọn vẹn ảnh nền */
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  border-radius: 10px;
  padding: 16px 14px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.cal-month-title {
  font-family: var(--font-classic);
  font-size: 0.78rem;
  letter-spacing: 3px;
  color: #ffffff;
  margin-bottom: 12px;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 8px;
  text-align: center;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

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

.cal-days-grid .day {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  color: rgba(255, 255, 255, 0.95);
  font-family: var(--font-sans);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

/* Đổi ngày 20 thành hình trái tim đỏ nổi bật */
.cal-days-grid .wedding-day-highlight {
  position: relative;
  background-color: transparent !important;
  color: #ffffff !important;
  font-weight: 700;
  z-index: 1;
}

.cal-days-grid .wedding-day-highlight::before {
  content: '♥';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -54%);
  font-size: 2.1rem;
  color: var(--color-red-btn);
  z-index: -1;
  filter: drop-shadow(0 2px 6px rgba(240, 83, 75, 0.7));
}

/* ============================================================
   HIỆU ỨNG CHỮ CUỘN TRANG (SCROLL REVEAL THEO TỐC ĐỘ CUỘN)
   ============================================================ */
.scroll-reveal-text {
  opacity: 0;
  transform: translateY(20px);
  will-change: opacity, transform;
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}

/* Đoạn cuối (ngày giờ nhắc lại tông xám nhạt hoài cổ) */
.vintage-date-recall {
  margin-top: 32px;
  padding: 24px 16px 10px;
  text-align: center;
  border-top: 1px solid #e8e2da;
}

.recall-sub {
  font-family: var(--font-classic);
  font-size: 0.65rem;
  letter-spacing: 4px;
  color: #a39b92;
  display: block;
  margin-bottom: 8px;
}

.recall-date {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  color: #7d756d;
  letter-spacing: 6px;
  font-weight: 300;
  margin-bottom: 6px;
}

.recall-note {
  font-size: 0.8rem;
  color: #9c9288;
  font-family: var(--font-serif);
  font-style: italic;
}

/* ============================================================
   WEDDING ALBUM SECTION (ALBUM ẢNH CƯỚI TẠP CHÍ)
   ============================================================ */
.section-wedding-album {
  background-color: var(--bg-pure);
  padding: 40px 16px 30px;
  text-align: center;
}

.album-header-wrap {
  margin-bottom: 24px;
}

.album-sub-label {
  font-family: var(--font-classic);
  font-size: 0.68rem;
  letter-spacing: 4px;
  color: var(--color-gold);
  display: block;
  margin-bottom: 6px;
}

.album-main-title {
  font-family: var(--font-classic);
  font-size: clamp(1.8rem, 7vw, 2.3rem);
  letter-spacing: 4px;
  color: var(--color-gold);
  line-height: 1.1;
}

.album-desc {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--color-text-sub);
  margin-top: -6px;
  margin-bottom: 20px;
}

.album-masonry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.album-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background-color: #f0ebe4;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.album-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.album-item:hover img {
  transform: scale(1.04);
}

/* Biến tấu bố cục so le nghệ thuật */
.album-item.item-large {
  grid-row: span 2;
}

.album-item.item-large img {
  aspect-ratio: auto;
  height: 100%;
}

.album-item.item-wide {
  grid-column: span 2;
}

.album-item.item-wide img {
  aspect-ratio: 16 / 10;
}

/* ============================================================
   LIGHTBOX MODAL (XEM ẢNH PHÓNG TO TOÀN MÀN HÌNH)
   ============================================================ */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-modal.is-active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 6px;
  object-fit: contain;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  animation: zoomLightbox 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zoomLightbox {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
  }
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  color: #f1f1f1;
  font-size: 36px;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 100000;
  line-height: 1;
}

.lightbox-close:hover {
  color: var(--color-gold-light);
}

/* ============================================================
   MÀN HÌNH CHÀO MỞ THIỆP CƯỚI (WELCOME ENVELOPE SCREEN)
   ============================================================ */
.welcome-envelope-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  background: radial-gradient(circle at 50% 30%, #fefcf9 0%, #f4eee6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.welcome-envelope-screen.envelope-fade-out {
  opacity: 0;
  transform: translateY(-40px) scale(1.03);
  pointer-events: none;
}

.envelope-card-content {
  background: #ffffff;
  width: 100%;
  max-width: 380px;
  padding: 40px 24px 34px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 16px 45px rgba(163, 126, 92, 0.18), 0 4px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.3);
  position: relative;
  animation: envelopeSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.envelope-icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fbf7f2;
  color: var(--color-gold);
  border: 1px dashed rgba(212, 175, 55, 0.4);
}

.envelope-tag {
  font-family: var(--font-classic);
  font-size: 0.72rem;
  letter-spacing: 5px;
  color: var(--color-gold);
  display: block;
  margin-bottom: 12px;
}

.envelope-names.diagonal-layout {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 8px auto 16px;
  width: 100%;
  max-width: 300px;
}

.envelope-names .line-groom {
  text-align: left;
  font-family: var(--font-script-formal), cursive;
  font-size: clamp(2.8rem, 9vw, 3.6rem);
  color: var(--color-gold-dark);
  line-height: 1.15;
  padding-left: 10px;
  display: block;
}

.envelope-names .line-amp {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.85rem;
  color: var(--color-red-btn);
  line-height: 1;
  margin: -4px 0 -2px;
  filter: drop-shadow(0 2px 6px rgba(240, 83, 75, 0.45));
  animation: heartPulseSubtle 2s infinite ease-in-out;
}

@keyframes heartPulseSubtle {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

.envelope-names .line-bride {
  text-align: right;
  font-family: var(--font-script-formal), cursive;
  font-size: clamp(2.8rem, 9vw, 3.6rem);
  color: var(--color-gold-dark);
  line-height: 1.15;
  padding-right: 10px;
  display: block;
}

.envelope-date {
  font-family: var(--font-classic);
  font-size: 0.85rem;
  letter-spacing: 4px;
  color: #8c827a;
  margin-bottom: 12px;
}

.envelope-divider {
  font-size: 0.7rem;
  letter-spacing: 6px;
  color: rgba(212, 175, 55, 0.6);
  margin-bottom: 14px;
}

.envelope-invite-text {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-style: italic;
  color: #7d736b;
  margin-bottom: 24px;
}

.btn-open-envelope {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 240px;
  padding: 13px 20px;
  background-color: var(--color-red-btn);
  color: #ffffff;
  border: none;
  border-radius: 30px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(240, 83, 75, 0.4);
  transition: all 0.3s ease;
  animation: pulseOpenBtn 2s infinite;
}

.btn-open-envelope:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(240, 83, 75, 0.55);
}

@keyframes pulseOpenBtn {
  0% {
    box-shadow: 0 0 0 0 rgba(240, 83, 75, 0.6);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(240, 83, 75, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(240, 83, 75, 0);
  }
}

.envelope-sound-tip {
  font-size: 0.72rem;
  color: #a89f97;
  margin-top: 14px;
  font-family: var(--font-sans);
}




