/* ==========================================================================
   WEDDING INVITATION - MAIN STYLESHEET
   Template: Sunswedding Classic Luxury Theme (Vuong & Ha)
   ========================================================================== */

/* 1. GOOGLE FONTS IMPORT */
@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..700;1,6..96,400..700&family=Cinzel:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&display=swap');

/* 2. DESIGN TOKENS & VARIABLES */
:root {
  --font-serif: 'Bodoni Moda', 'Playfair Display', 'Cormorant Garamond', serif;
  --font-display: 'Cinzel', serif;
  --font-script: 'Alex Brush', cursive;
  --font-sans: 'Inter', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

  --color-gold: #c9a227;
  --color-gold-dark: #a68942;
  --color-gold-light: #f5eccb;
  --color-gold-gradient: linear-gradient(135deg, #d4af37 0%, #edd892 50%, #aa8012 100%);
  
  --color-bg: #faf7f2;
  --color-bg-secondary: #f4efe6;
  --color-card-bg: #ffffff;
  
  --color-text-main: #2b2825;
  --color-text-secondary: #635f59;
  --color-text-muted: #8c867e;
  
  --color-border: #e6ded3;
  --color-border-light: rgba(201, 162, 39, 0.25);
  
  --envelope-bg-1: #ede9e3;
  --envelope-bg-2: #e8e3dc;
  --envelope-bg-3: #e2dcd5;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
  --shadow-gold: 0 10px 30px rgba(201, 162, 39, 0.25);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --header-height: 70px;
}

/* 3. RESET & BASE STYLES */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: all 0.25s ease;
}

input, textarea, select {
  font-family: inherit;
  border: 1px solid var(--color-border);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

/* 4. TYPOGRAPHY HELPERS */
.font-serif { font-family: var(--font-serif); }
.font-display { font-family: var(--font-display); }
.font-script { font-family: var(--font-script); }
.font-sans { font-family: var(--font-sans); }

.text-gold { color: var(--color-gold); }
.text-gold-dark { color: var(--color-gold-dark); }
.text-main { color: var(--color-text-main); }
.text-secondary { color: var(--color-text-secondary); }
.text-muted { color: var(--color-text-muted); }

.section-tag {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--color-gold-dark);
  margin-bottom: 0.75rem;
  font-weight: 600;
  display: block;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  line-height: 1.3;
  color: var(--color-text-main);
  margin-bottom: 1rem;
  font-weight: 500;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 5rem 0;
}

@media (min-width: 768px) {
  .section-padding {
    padding: 7rem 0;
  }
}

/* 5. CANVAS PETALS & FALLING SPARKLES */
#petals-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 40;
}

/* Khóa cuộn trang khi chưa mở thiệp */
html.envelope-locked, body.envelope-locked {
  overflow: hidden !important;
  height: 100vh !important;
  touch-action: none !important;
  -webkit-overflow-scrolling: auto !important;
  overscroll-behavior: none !important;
}

/* 6. ENVELOPE OPENING OVERLAY (COVER-1) */
.envelope-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--color-bg);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.8s ease, visibility 0.8s;
  touch-action: none;
  overscroll-behavior: none;
  user-select: none;
}

.envelope-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none !important;
  display: none !important;
}

.envelope-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.envelope-greeting-tag {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 0.35em;
  color: var(--color-gold-dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.envelope-guest-name {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: #1d241b;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .envelope-guest-name {
    font-size: 2.5rem;
  }
}

/* Envelope Card 3D Component */
.envelope-wrapper {
  perspective: 1000px;
  cursor: pointer;
  position: relative;
  transition: transform 0.3s ease;
}

.envelope-wrapper:hover {
  transform: translateY(-4px);
}

.envelope-shadow {
  position: absolute;
  bottom: -12px;
  left: 10%;
  width: 80%;
  height: 20px;
  background: rgba(0, 0, 0, 0.12);
  filter: blur(10px);
  border-radius: var(--radius-full);
}

.envelope-box {
  position: relative;
  width: 300px;
  height: 200px;
  background: linear-gradient(180deg, var(--envelope-bg-1) 0%, var(--envelope-bg-2) 100%);
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(180, 165, 150, 0.4);
  overflow: visible;
}

@media (min-width: 768px) {
  .envelope-box {
    width: 380px;
    height: 240px;
  }
}

/* Nắp phong bì 3D Flap */
.envelope-flap-top {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 110px;
  clip-path: polygon(0 0, 50% 100%, 100% 0);
  background: linear-gradient(180deg, var(--envelope-bg-2) 0%, var(--envelope-bg-3) 100%);
  transform-origin: top center;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
  .envelope-flap-top {
    height: 130px;
  }
}

/* Con dấu sáp đỏ / vàng phong bì */
.envelope-seal {
  position: absolute;
  top: 90px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  background: var(--color-gold-gradient);
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(201, 162, 39, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border: 2px solid #ffffff;
}

.envelope-seal svg {
  width: 24px;
  height: 24px;
  fill: #ffffff;
}

.envelope-hand-pointer {
  position: absolute;
  top: 105px;
  left: calc(50% + 30px);
  z-index: 12;
  pointer-events: none;
}

.envelope-hand-pointer svg {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
}

.envelope-footer {
  margin-top: 2.5rem;
  text-align: center;
  font-family: var(--font-serif);
}

.envelope-couple-names {
  font-size: 1.15rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #1d241b;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.envelope-couple-names .ampersand {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-gold-dark);
  font-size: 1.5rem;
}

.envelope-date-box {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  color: var(--color-text-secondary);
}

.envelope-hint-text {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--color-gold-dark);
  font-style: italic;
}

/* 7. NAVIGATION HEADER */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.4s ease;
  padding: 1.25rem 0;
}

.site-header.scrolled {
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 0.75rem 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #ffffff;
  transition: color 0.3s;
}

.site-header.scrolled .nav-logo {
  color: var(--color-text-main);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.site-header.scrolled .nav-links a {
  color: var(--color-text-main);
}

.nav-links a:hover {
  color: var(--color-gold);
}

@media (min-width: 868px) {
  .nav-links {
    display: flex;
  }
}

/* Nút Hamburger 3 gạch ngang trên Mobile */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.site-header.scrolled .mobile-menu-toggle span {
  background-color: var(--color-text-main);
}

@media (min-width: 868px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* MENU ĐIỀU HƯỚNG TOÀN MÀN HÌNH CHO MOBILE (OFF-CANVAS DRAWER) */
.mobile-menu-drawer {
  position: fixed;
  inset: 0;
  background: #fbf8f2;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-drawer.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  color: #333333;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.mobile-menu-close:hover {
  transform: scale(1.15) rotate(90deg);
}

.mobile-menu-content {
  text-align: center;
}

.mobile-menu-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.mobile-menu-nav a {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  color: #2c2520;
  transition: color 0.25s ease, transform 0.25s ease;
  display: inline-block;
  font-style: normal;
}

.mobile-menu-nav a:hover, .mobile-menu-nav a:active {
  color: var(--color-gold-dark);
  transform: translateY(-2px);
}

/* 8. HERO BANNER SECTION */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  padding: 6rem 1.5rem 4rem;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.75) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
}

.hero-tagline {
  font-size: 0.9rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-weight: 500;
  opacity: 0.95;
}

.hero-couple-name {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  font-weight: 400;
  font-style: italic;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.hero-bride-name, .hero-groom-name {
  display: inline-block;
  white-space: nowrap;
}

.hero-amp {
  font-style: italic;
  font-weight: 300;
  color: #ffffff;
  margin-right: 0.25rem;
}

@media (min-width: 768px) {
  .hero-couple-name {
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
    gap: 1.25rem;
    font-size: 3.8rem;
    white-space: nowrap;
  }
}

@media (min-width: 1200px) {
  .hero-couple-name {
    font-size: 4.8rem;
    gap: 1.5rem;
  }
}

.hero-divider-line {
  width: 100px;
  height: 1px;
  background: rgba(255, 255, 255, 0.45);
  margin: 1.25rem auto;
}

.hero-wedding-date {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  letter-spacing: 0.15em;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.hero-location {
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.hero-scroll-btn {
  margin-top: 3rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
  opacity: 0.8;
  animation: gentleFloat 2.5s infinite ease-in-out;
}

.hero-scroll-btn span {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* 9. SAVE THE DATE & CALENDAR */
.calendar-section {
  background-color: var(--color-bg);
  text-align: center;
}

.calendar-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--color-card-bg);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.calendar-month-header {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-text-main);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.calendar-day-head {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-gold-dark);
  padding: 0.5rem 0;
  text-transform: uppercase;
}

.calendar-day {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  position: relative;
}

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

.calendar-day.wedding-day {
  background: var(--color-gold);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(201, 162, 39, 0.4);
  animation: heartPulse 2s infinite ease-in-out;
}

.calendar-day.wedding-day::after {
  content: '❤️';
  position: absolute;
  top: -10px;
  right: -6px;
  font-size: 0.75rem;
}

.btn-add-calendar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--color-bg-secondary);
  color: var(--color-text-main);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--color-border);
  transition: all 0.3s;
}

.btn-add-calendar:hover {
  background: var(--color-gold);
  color: #ffffff;
  border-color: var(--color-gold);
}

/* 10. STORY SECTION (HÀNH TRÌNH TÌNH YÊU) */
.story-section {
  background-color: var(--color-bg-secondary);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .story-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.story-image-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.story-image-wrap img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.story-image-wrap:hover img {
  transform: scale(1.04);
}

.story-border-decor {
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: calc(var(--radius-md) - 8px);
  pointer-events: none;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  padding-left: 2rem;
}

.timeline-list::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--color-border);
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-gold);
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px var(--color-gold);
}

.timeline-year {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-gold-dark);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.timeline-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-text-main);
  margin-bottom: 0.5rem;
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* 11. COUPLE PROFILE (ĐÔI NÉT VỀ CHÚNG TÔI) */
.couple-section {
  background-color: var(--color-bg);
  text-align: center;
}

.couple-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 960px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .couple-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.couple-card {
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
  text-align: center;
  transition: transform 0.3s ease;
}

.couple-avatar-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border: 4px solid #ffffff;
}

@media (max-width: 576px) {
  .couple-avatar-wrap {
    width: 170px;
    height: 170px;
  }
}

.couple-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.couple-card:hover .couple-avatar-wrap img {
  transform: scale(1.08);
}

.couple-rank {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--color-gold-dark);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.couple-name {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  color: #1d241b;
  margin-bottom: 0.65rem;
  font-weight: 500;
}

.couple-parents {
  font-size: 0.88rem;
  color: #555555;
  line-height: 1.5;
}

.couple-parents p {
  margin: 0.15rem 0;
}

.couple-parents strong {
  font-weight: 600;
  color: #222222;
}

/* Đường phân cách kèm trái tim phía dưới */
.couple-bottom-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  max-width: 480px;
  margin: 3.5rem auto 0;
}

.couple-bottom-divider .divider-line {
  flex: 1;
  height: 1px;
  background: #e2ddd5;
}

.couple-bottom-divider .divider-heart {
  font-size: 1.15rem;
  color: #a67c52;
}

/* 12. VENUES & LỊCH TRÌNH SỰ KIỆN */
.venues-section {
  background-color: var(--color-bg-secondary);
}

.venues-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 960px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .venues-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.venue-card {
  background: var(--color-card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease;
}

.venue-card:hover {
  transform: translateY(-6px);
}

.venue-image-wrap {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.venue-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.venue-card:hover .venue-image-wrap img {
  transform: scale(1.05);
}

.venue-icon-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--shadow-sm);
}

.venue-content {
  padding: 2rem;
}

.venue-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  color: var(--color-text-main);
  margin-bottom: 1rem;
}

.venue-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

.venue-detail-item .icon {
  color: var(--color-gold-dark);
  font-size: 1.1rem;
  margin-top: 2px;
}

.btn-map {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.85rem 1.5rem;
  background: var(--color-gold-dark);
  color: #ffffff;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s;
}

.btn-map:hover {
  background: var(--color-gold);
  box-shadow: 0 4px 15px rgba(201, 162, 39, 0.4);
}

/* Dress code */
.dress-code-box {
  margin-top: 3.5rem;
  text-align: center;
  background: var(--color-card-bg);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  border: 1px dashed var(--color-border);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.dress-colors-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.dress-color-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.color-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.color-circle.bordered {
  border: 2px solid #dedede;
}

.color-label {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

/* 13. PHOTO GALLERY (ALBUM ẢNH CƯỚI - LOOKBOOK CAO CẤP) */
.gallery-section {
  background-color: var(--color-bg);
  text-align: center;
  padding-bottom: 5rem;
}

/* Khung ảnh ngang lớn tự chuyển động (Hero Carousel) */
.gallery-hero-carousel {
  position: relative;
  width: 100%;
  height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  background: #2b2825;
}

@media (min-width: 768px) {
  .gallery-hero-carousel {
    height: 500px;
  }
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.2s ease-in-out, transform 1.8s ease-out;
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
}

.carousel-badge {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.carousel-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: all 0.3s;
  cursor: pointer;
}

.carousel-dot.active {
  width: 24px;
  border-radius: 10px;
  background: #ffffff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 3/4;
  background: #e9e5dd;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-zoom-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-main);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-zoom-icon {
  transform: scale(1);
}

/* =========================================================================
   BỐ CỤC TẠP CHÍ NGHỆ THUẬT (MAGAZINE EDITORIAL COLLAGE)
   ========================================================================= */
.magazine-collage-wrap {
  margin: 3.5rem 0 2.5rem;
}

.magazine-grid-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .magazine-grid-layout {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
  }
}

.magazine-left-col {
  display: flex;
  flex-direction: column;
}

.magazine-subgrid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0.65rem;
}

.forever-love-header {
  text-align: center;
  margin-bottom: 0.65rem;
}

.forever-love-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  letter-spacing: 0.16em;
  color: #555555;
  font-style: italic;
  font-weight: 300;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .forever-love-title {
    font-size: 1.55rem;
  }
}

.magazine-photo-tall {
  position: relative;
  min-height: 250px;
  height: 100%;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.magazine-photo-tall img, 
.magazine-photo-stacked img, 
.magazine-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.magazine-photo-tall:hover img, 
.magazine-photo-stacked:hover img, 
.magazine-hero-photo:hover img {
  transform: scale(1.04);
}

.magazine-stacked-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.magazine-photo-stacked {
  position: relative;
  flex: 1;
  min-height: 120px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.forever-love-quote {
  text-align: center;
  font-size: 0.8rem;
  font-family: var(--font-serif);
  font-style: italic;
  color: #666666;
  max-width: 340px;
  margin: 1.25rem auto 0;
  line-height: 1.5;
}

.magazine-hero-photo {
  position: relative;
  height: 350px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
  .magazine-hero-photo {
    height: 520px;
  }
}

/* KHUNG POSTER TẠP CHÍ DƯỚI (LOVE WHISPERS THROUGH THE LEAVES) */
.magazine-card-poster {
  max-width: 320px;
  margin: 3.5rem auto 0;
  background: #f5f4f2;
  padding: 1.15rem 1.15rem 1.65rem;
  border-radius: 2px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #eae5de;
}

.poster-photos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.poster-photo-item {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  border: 4px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  cursor: pointer;
}

.poster-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.poster-photo-item:hover img {
  transform: scale(1.06);
}

.love-whispers-text {
  text-align: center;
  margin-top: 1.25rem;
}

.love-whispers-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: #222222;
  line-height: 1.25;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.love-whispers-sub {
  font-size: 0.7rem;
  font-style: italic;
  color: #777777;
  letter-spacing: 0.03em;
}

/* Nút Xem Tất Cả Ảnh Cưới */
.gallery-view-all-wrap {
  text-align: center;
  margin-top: 3.5rem;
}

.btn-view-all-gallery {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #a67c52;
  color: #ffffff;
  padding: 0.85rem 2.25rem;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  border: 1px solid #916840;
  box-shadow: 0 6px 20px rgba(166, 124, 82, 0.35);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-view-all-gallery:hover {
  background: #8e653d;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(166, 124, 82, 0.45);
}

/* Modal Xem Tất Cả 18 Ảnh Cưới (View All Grid Modal) */
.gallery-all-modal {
  position: fixed;
  inset: 0;
  background: rgba(18, 16, 14, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery-all-modal.active {
  opacity: 1;
  visibility: visible;
}

.gallery-all-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: rgba(26, 23, 20, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  z-index: 10;
}

.gallery-all-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.gallery-all-close {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-all-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.gallery-all-body {
  flex: 1;
  overflow-y: auto;
  padding: 2rem 1.5rem 4rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.gallery-all-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .gallery-all-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .gallery-all-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.gallery-all-item {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  background: #2b2825;
}

.gallery-all-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-all-item:hover img {
  transform: scale(1.08);
}

/* =========================================================================
   LIGHTBOX TOÀN MÀN HÌNH (FULLSCREEN LIGHTBOX MODAL)
   ========================================================================= */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  user-select: none;
  touch-action: pan-y;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img-wrap {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem 3.5rem;
}

.lightbox-img-wrap img {
  max-width: 96vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
  transition: transform 0.3s ease;
}

.lightbox-caption {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  font-family: var(--font-serif);
  font-style: italic;
  text-align: center;
}

.lightbox-btn {
  position: absolute;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  z-index: 100002;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.08);
}

.lightbox-close {
  top: 1.25rem;
  right: 1.25rem;
  width: 46px;
  height: 46px;
  font-size: 1.75rem;
  line-height: 1;
}

.lightbox-prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
}

@media (min-width: 768px) {
  .lightbox-prev {
    left: 2rem;
    width: 56px;
    height: 56px;
  }
}

.lightbox-next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
}

@media (min-width: 768px) {
  .lightbox-next {
    right: 2rem;
    width: 56px;
    height: 56px;
  }
}

.lightbox-counter {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 100002;
}

/* 14. VIDEO SECTION */
.video-section {
  background-color: var(--color-bg-secondary);
  text-align: center;
}

.video-container {
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  border: 4px solid #ffffff;
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-description {
  max-width: 640px;
  margin: 2rem auto 0;
  font-size: 1rem;
  color: var(--color-text-secondary);
  font-style: italic;
}

/* 15. NHẮN GỬI YÊU THƯƠNG / SỔ LƯU BÚT & XÁC NHẬN THAM DỰ */
.wishes-section {
  background-color: var(--color-bg);
  padding: 5rem 0;
}

.wishes-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.wishes-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-top: 0.5rem;
  font-family: var(--font-main);
  letter-spacing: 0.02em;
}

.wishes-unified-card {
  max-width: 640px;
  margin: 0 auto 3.5rem;
  background: #ffffff;
  border-radius: 18px;
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05), 0 2px 8px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(226, 218, 206, 0.75);
}

@media (max-width: 576px) {
  .wishes-unified-card {
    padding: 2rem 1.25rem;
    border-radius: 14px;
  }
}

.form-group {
  margin-bottom: 1.35rem;
  width: 100%;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: #3b3630;
  margin-bottom: 0.45rem;
  text-align: left;
  font-family: var(--font-main);
}

.form-input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0.75rem 1rem;
  border-radius: 9px;
  border: 1px solid #e2ddd5;
  background: #fbfaf8;
  font-size: 0.95rem;
  color: #333333;
  outline: none;
  font-family: inherit;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.form-input:focus {
  border-color: #a67c52;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(166, 124, 82, 0.12);
}

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

.textarea-relative-wrap textarea {
  display: block;
  width: 100%;
  min-height: 125px;
  padding: 0.95rem 2.75rem 0.95rem 1rem;
  border-radius: 10px;
  border: 1px solid #e2ddd5;
  background: #fbfaf8;
  font-size: 0.95rem;
  color: #333333;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  font-family: inherit;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.textarea-relative-wrap textarea:focus {
  border-color: #a67c52;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(166, 124, 82, 0.12);
}

.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.emoji-toggle-btn {
  background: #f8f4ee;
  border: 1px solid #e2ddd5;
  border-radius: 20px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #7a5a3a;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
  font-family: inherit;
}

.emoji-toggle-btn:hover, .emoji-toggle-btn.active {
  background: #eedfcb;
  border-color: #a67c52;
  color: #4a341e;
}

.emoji-drawer {
  display: none;
  background: #fbfaf8;
  border: 1px solid #e5ded4;
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  margin-top: 0.6rem;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
}

.emoji-drawer.active {
  display: block;
  animation: fadeIn 0.2s ease-out;
}

.emoji-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px dashed #e5ded4;
}

.emoji-drawer-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b6359;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.emoji-drawer-hint {
  font-size: 0.7rem;
  color: #9e9488;
  font-style: italic;
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 0.35rem;
}

@media (max-width: 576px) {
  .emoji-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 0.4rem;
  }
}

@media (max-width: 380px) {
  .emoji-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.emoji-item {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  height: 38px;
  cursor: pointer;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #f0eae1;
  transition: all 0.15s ease;
  user-select: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.emoji-item:hover {
  background: #fff4e6;
  border-color: #a67c52;
  transform: scale(1.18);
  box-shadow: 0 3px 8px rgba(166, 124, 82, 0.2);
}

.emoji-item:active {
  transform: scale(0.95);
}

.emoji-item {
  font-size: 1.25rem;
  cursor: pointer;
  text-align: center;
  border-radius: 6px;
  padding: 4px;
  transition: background 0.15s, transform 0.15s;
  user-select: none;
}

.emoji-item:hover {
  background: #f4eee6;
  transform: scale(1.2);
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 576px) {
  .form-row-2col {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.custom-select-styled {
  display: block;
  width: 100%;
  height: 48px;
  border-radius: 9px;
  border: 1.5px solid #a67c52;
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a67c52' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 1rem center;
  padding: 0 2.25rem 0 1rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: #3f3933;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.custom-select-styled:focus {
  box-shadow: 0 0 0 3px rgba(166, 124, 82, 0.15);
}

/* Bộ 3 ảnh chọn là khách của Cô Dâu / Chú Rể / Cả Hai */
.guest-side-photo-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin: 1.5rem 0 1.75rem;
}

.guest-side-card {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 2.5px solid transparent;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  background: #e8e3dc;
}

.guest-side-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.guest-side-card:hover img {
  transform: scale(1.08);
}

.guest-side-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.75) 100%);
  transition: opacity 0.3s;
}

.guest-side-label {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  text-align: center;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  z-index: 2;
  letter-spacing: 0.02em;
}

.guest-side-card.active {
  border-color: #a67c52;
  box-shadow: 0 0 0 3px rgba(166, 124, 82, 0.3), 0 8px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
}

.guest-side-card.active::after {
  content: '✓';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  background: #a67c52;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.btn-submit-wishes {
  width: 100%;
  height: 50px;
  background: #a67c52;
  color: #ffffff;
  border: none;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(166, 124, 82, 0.35);
  text-transform: uppercase;
}

.btn-submit-wishes:hover {
  background: #8e653e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(166, 124, 82, 0.45);
}

.wishes-feed-wrapper {
  max-width: 640px;
  margin: 0 auto;
}

.wishes-feed-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--color-text-main);
}

.wishes-feed {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-height: 560px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

/* Custom scrollbar */
.wishes-feed::-webkit-scrollbar {
  width: 5px;
}
.wishes-feed::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 10px;
}

.wish-card {
  background: var(--color-card-bg);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform 0.2s;
}

.wish-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.wish-author-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wish-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-gold-light);
  color: var(--color-gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.wish-author-name {
  font-weight: 600;
  color: var(--color-text-main);
  font-size: 0.95rem;
}

.wish-relation {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.wish-time {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.wish-text {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.wish-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-like-wish {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: none;
  background: none;
  transition: all 0.2s;
}

.btn-like-wish.liked {
  color: #e53e3e;
}

/* 17. LUCKY MONEY / HỘP MỪNG CƯỚI */
.gift-section {
  background-color: var(--color-bg);
  text-align: center;
  overflow: hidden;
}

.gift-toggle-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  padding: 1.5rem 2.5rem;
  background: var(--color-card-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  transition: all 0.3s;
  max-width: 90vw;
}

.gift-toggle-btn:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.gift-box-icon {
  font-size: 3rem;
  animation: heartPulse 2.5s infinite ease-in-out;
}

.gift-container {
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}

.gift-container.active {
  display: block;
}

.gift-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  width: 100%;
}

.gift-tab-btn {
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  background: var(--color-bg-secondary);
  border: 1.5px solid var(--color-border);
  color: var(--color-text-secondary);
  transition: all 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
  flex: 1 1 auto;
  max-width: 220px;
}

@media (max-width: 480px) {
  .gift-tabs {
    gap: 0.5rem;
  }
  .gift-tab-btn {
    padding: 0.55rem 0.85rem;
    font-size: 0.82rem;
    max-width: calc(50% - 0.3rem);
  }
}

.gift-tab-btn.active {
  background: var(--color-gold);
  color: #ffffff;
  border-color: var(--color-gold);
  box-shadow: 0 4px 15px rgba(201, 162, 39, 0.35);
}

.bank-card {
  background: var(--color-card-bg);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.25rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .bank-card {
    grid-template-columns: 220px 1fr;
    padding: 2.5rem 2rem;
    gap: 2rem;
  }
}

.bank-qr-wrap {
  width: 190px;
  max-width: 100%;
  height: 190px;
  margin: 0 auto;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--color-border);
  padding: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.bank-qr-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bank-info {
  text-align: center;
  width: 100%;
}

@media (min-width: 768px) {
  .bank-info {
    text-align: left;
  }
}

.bank-name-tag {
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.bank-account-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-text-main);
  margin-bottom: 1rem;
  word-break: break-word;
}

.bank-account-num-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-bg-secondary);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  border: 1px solid var(--color-border);
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
}

.bank-account-num {
  font-family: monospace;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-text-main);
}

@media (max-width: 380px) {
  .bank-account-num {
    font-size: 1rem;
  }
}

.btn-copy {
  padding: 0.45rem 0.85rem;
  background: var(--color-gold-dark);
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
}

.btn-copy:hover {
  background: var(--color-gold);
}

/* 18. LIVE COUNTDOWN SECTION */
.countdown-section {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #ffffff;
  text-align: center;
  padding: 6rem 1.5rem;
}

.countdown-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.countdown-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.countdown-item {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
}

.countdown-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .countdown-num {
    font-size: 3.5rem;
  }
}

.countdown-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.8);
}

/* 19. THANK YOU & FOOTER */
.thankyou-section {
  background-color: var(--color-bg);
  text-align: center;
  padding: 6rem 1.5rem 3rem;
}

.thankyou-avatar {
  width: 180px;
  height: 180px;
  margin: 0 auto 2rem;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #ffffff;
  box-shadow: var(--shadow-lg);
  outline: 2px solid var(--color-gold);
}

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

.thankyou-tag {
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.thankyou-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-text-main);
  max-width: 600px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

.thankyou-hearts {
  font-size: 1.5rem;
  margin-top: 1rem;
  letter-spacing: 0.25rem;
}

.site-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* 20. FLOATING MUSIC PLAYER & WIDGETS */
.floating-actions-group {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 990;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

/* Nút Quick Wish nổi góc dưới màn hình */
.floating-quick-wish {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  animation: floatBounce 3s infinite ease-in-out;
  text-decoration: none;
}

.quick-wish-pill {
  background: #ffffff;
  color: #4a3b32;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.14);
  border: 1px solid #eee8df;
  white-space: nowrap;
}

.quick-wish-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #a67c52;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(166, 124, 82, 0.35);
  border: 2px solid #ffffff;
  transition: transform 0.25s ease, background 0.25s ease;
}

.floating-quick-wish:hover .quick-wish-btn {
  transform: scale(1.1);
  background: #8e653d;
}

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

.floating-music-btn {
  width: 50px;
  height: 50px;
  background: #b5895f;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  border: 2px solid #ffffff;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.floating-music-btn:hover {
  transform: scale(1.08);
}

.vinyl-disc {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle, #333 30%, #111 60%, #444 70%, #111 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.2);
}

.vinyl-center {
  width: 13px;
  height: 13px;
  background: var(--color-gold);
  border-radius: 50%;
  border: 2px solid #ffffff;
}

/* Playlist popup */
.music-drawer {
  position: fixed;
  bottom: 140px;
  right: 20px;
  width: 280px;
  background: var(--color-card-bg);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  z-index: 991;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s ease;
}

.music-drawer.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.music-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.music-drawer-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-main);
}

.playlist-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.playlist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  transition: all 0.2s;
}

.playlist-item:hover, .playlist-item.active {
  background: rgba(201, 162, 39, 0.1);
  color: var(--color-gold-dark);
  font-weight: 600;
}

/* Toast Message */
.toast-notification {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(29, 36, 27, 0.92);
  color: #ffffff;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 100000;
  box-shadow: var(--shadow-lg);
  pointer-events: none;
  display: none;
}

.toast-notification.active {
  display: block;
}

/* Back to top button */
.btn-back-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  color: var(--color-text-main);
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.btn-back-to-top.active {
  opacity: 1;
  visibility: visible;
}
