/* ==========================================================================
   WEDDING INVITATION - STYLESHEET (Mobile-First Luxury Vintage Floral Design)
   ========================================================================== */

@font-face {
  font-family: 'Ergisa';
  src: url('/static/fonts/ergisa.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Flavinda';
  src: url('/static/fonts/flavinda.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'LoraCustom';
  src: url('/static/fonts/lora.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Great+Vibes&family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --primary-color: #781d28;
  --dark-color: #541018;
  --accent-color: #942735;
  --gold: #b38e44;
  --light-gold: #dfc896;
  --soft-pink: #fdf5f2;
  --paper-bg: #faf7f2;
  --text-dark: #222222;
  --text-muted: #555555;
  --font-serif: 'Ergisa', 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-script: 'Flavinda', 'Great Vibes', cursive;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 14px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: #e8e4dc;
  background-image: radial-gradient(#d3cdc4 1px, transparent 1px);
  background-size: 20px 20px;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
  margin: 0;
  overflow-x: hidden;
}

/* ==========================================================================
   MOBILE CONTAINER WRAPPER
   ========================================================================== */
.wedding-wrapper {
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  position: relative;
  background-color: var(--paper-bg);
  background-image: url('/static/images/plaster_bg.png');
  background-repeat: repeat;
  background-size: 440px auto;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.2);
  overflow-x: hidden;
  margin: 0 auto;
  padding-bottom: 90px; /* Space for floating bar */
}

/* Texture overlay for ultra-luxury touch */
.wedding-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.25);
  pointer-events: none;
  z-index: 1;
}

.wedding-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* ==========================================================================
   DECORATIVE WATERCOLOR FLOWERS
   ========================================================================== */
.deco-flower {
  position: absolute;
  pointer-events: none;
  z-index: 3;
  opacity: 0.92;
  user-select: none;
}

.deco-top-left {
  top: -15px;
  left: -20px;
  width: 170px;
}

.deco-top-right {
  top: 10px;
  right: -15px;
  width: 160px;
}

.deco-mid-left {
  top: 48%;
  left: -25px;
  width: 150px;
}

.deco-bottom-right {
  bottom: 10px;
  right: -25px;
  width: 200px;
}

.deco-bottom-left {
  bottom: 0;
  left: -20px;
  width: 160px;
}

/* ==========================================================================
   MUSIC FLOATING DISC
   ========================================================================== */
.floating-music {
  position: fixed;
  top: 20px;
  right: calc(50% - 200px);
  z-index: 999;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 450px) {
  .floating-music {
    right: 16px;
  }
}

.disc-wrapper {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary-color);
  border: 2px solid #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
  position: relative;
}

.disc-wrapper.playing {
  animation: spinDisc 4s linear infinite;
}

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

.music-note-icon {
  width: 24px;
  height: 24px;
  fill: #ffffff;
}

.sound-wave {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 18px;
  background: rgba(255, 255, 255, 0.85);
  padding: 4px 6px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sound-bar {
  width: 3px;
  background: var(--primary-color);
  border-radius: 2px;
  height: 6px;
}

.sound-wave.active .sound-bar:nth-child(1) { animation: wave 0.8s ease-in-out infinite alternate; }
.sound-wave.active .sound-bar:nth-child(2) { animation: wave 1.2s ease-in-out 0.2s infinite alternate; }
.sound-wave.active .sound-bar:nth-child(3) { animation: wave 0.9s ease-in-out 0.4s infinite alternate; }

@keyframes wave {
  0% { height: 4px; }
  100% { height: 16px; }
}

/* ==========================================================================
   SECTION 1: HERO / BANNER INTRO
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: 50px 20px 40px;
  overflow: hidden;
}

.hero-photo-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(250,247,242,0.1) 0%, rgba(250,247,242,0.4) 50%, rgba(250,247,242,0.95) 85%, #faf7f2 100%);
  z-index: 2;
}

.hero-text-box {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-top: 20px;
}

.hero-intro-label {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  letter-spacing: 1px;
  color: var(--primary-color);
  margin-bottom: 6px;
}

.hero-names {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  letter-spacing: 2.5px;
  color: var(--primary-color);
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.hero-names .ampersand {
  font-family: var(--font-script);
  font-size: 2.6rem;
  font-weight: normal;
  text-transform: none;
  display: block;
  margin: -6px 0;
  color: var(--gold);
}

.hero-date-badge {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  letter-spacing: 4px;
  color: var(--primary-color);
  font-weight: 600;
  padding: 4px 16px;
  border-top: 1px solid var(--primary-color);
  border-bottom: 1px solid var(--primary-color);
  margin-top: 4px;
}

/* ==========================================================================
   SECTION 2: SAVE THE DATE (MATCHING UPLOADED IMAGE 1)
   ========================================================================== */
.save-the-date-section {
  position: relative;
  padding: 50px 24px 60px;
  text-align: center;
}

.monogram-logo {
  font-family: var(--font-script);
  font-size: 4.8rem;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 22px;
  user-select: none;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
}

.std-quote {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  letter-spacing: 1.5px;
  line-height: 1.6;
  color: var(--primary-color);
  text-transform: uppercase;
  max-width: 320px;
  margin: 0 auto 16px;
  font-weight: 600;
}

.std-divider-line {
  width: 1px;
  height: 24px;
  background: var(--primary-color);
  margin: 0 auto 14px;
}

.save-the-date-title {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  letter-spacing: 4px;
  color: var(--primary-color);
  text-transform: uppercase;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.save-the-date-title .script-the {
  font-family: var(--font-script);
  font-size: 2.8rem;
  text-transform: lowercase;
  color: var(--gold);
  font-weight: normal;
  margin-top: -6px;
}

.std-date-number {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  letter-spacing: 3px;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 35px;
}

/* Framed Couple Photos with Green Ribbon (Pixel-perfect matching screenshot 1) */
.ribbon-frame-container {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  padding: 10px;
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.ribbon-photos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}

.ribbon-photo-item {
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: #f0ede6;
}

.ribbon-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}

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

/* Green satin ribbon overlay across the 2 photos */
.ribbon-overlay-graphic {
  position: absolute;
  top: 52%;
  left: -24px;
  right: -24px;
  transform: translateY(-50%);
  z-index: 5;
  pointer-events: none;
}

.ribbon-overlay-graphic img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

/* ==========================================================================
   SECTION 3: INVITATION DETAILS (MATCHING UPLOADED IMAGE 2)
   ========================================================================== */
.invitation-card-section {
  position: relative;
  padding: 40px 24px 60px;
  text-align: center;
}

.invitation-greeting {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 300px;
  margin: 0 auto 30px;
  font-weight: 500;
}

/* Parents info (Nhà Trai & Nhà Gái) */
.parents-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 35px;
  padding: 0 10px;
}

.parents-block {
  text-align: center;
}

.parents-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-color);
  font-weight: 700;
  border-bottom: 1px solid rgba(11, 73, 58, 0.25);
  padding-bottom: 4px;
  margin-bottom: 10px;
  display: inline-block;
}

.parents-name {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.5;
}

.parents-origin {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-style: italic;
}

/* Main Groom & Bride Names */
.invitation-couple-names {
  margin-bottom: 25px;
}

.invitation-name-groom,
.invitation-name-bride {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  letter-spacing: 2px;
  color: var(--primary-color);
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.2;
}

.invitation-ampersand-script {
  font-family: var(--font-script);
  font-size: 2.5rem;
  color: var(--gold);
  line-height: 1;
  margin: 4px 0;
}

.ceremony-title-line {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary-color);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Date triple-box: [THÁNG 10] [ 04 ] [NĂM 2026] */
.calendar-date-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 16px;
}

.cal-box-month,
.cal-box-year {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  letter-spacing: 2px;
  color: var(--primary-color);
  text-transform: uppercase;
  padding: 6px 10px;
  border-top: 1.5px solid var(--primary-color);
  border-bottom: 1.5px solid var(--primary-color);
  font-weight: 600;
}

.cal-box-day {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1;
  padding: 0 4px;
}

.lunar-date-text {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--primary-color);
  margin-bottom: 30px;
}

/* Location details */
.venue-details-block {
  margin-bottom: 25px;
}

.venue-prefix {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.venue-name {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  letter-spacing: 2px;
  color: var(--primary-color);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 6px;
}

.venue-address {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 320px;
  margin: 0 auto 20px;
}

/* Button "CHỈ ĐƯỜNG" */
.btn-directions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  background-color: var(--primary-color);
  color: #ffffff !important;
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 30px;
  box-shadow: 0 6px 18px rgba(11, 73, 58, 0.28);
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-directions:hover,
.btn-directions:active {
  background-color: var(--dark-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(11, 73, 58, 0.38);
}

.btn-directions svg {
  width: 18px;
  height: 18px;
  fill: #ffffff;
}

/* ==========================================================================
   SECTION 4: COUNTDOWN TIMER
   ========================================================================== */
.countdown-section {
  position: relative;
  padding: 40px 24px;
  text-align: center;
}

.section-title-sm {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  letter-spacing: 3px;
  color: var(--primary-color);
  text-transform: uppercase;
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
}

.section-title-sm::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 30%;
  right: 30%;
  height: 1px;
  background: var(--gold);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 340px;
  margin: 0 auto;
}

.countdown-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(11, 73, 58, 0.15);
  border-radius: var(--radius-sm);
  padding: 12px 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.countdown-num {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 4px;
}

.countdown-unit {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   SECTION 5: THE LOVE STORY & ALBUM
   ========================================================================== */
.gallery-section {
  position: relative;
  padding: 40px 20px 50px;
  text-align: center;
}

.section-title-romantic {
  margin-bottom: 25px;
}

.section-title-romantic .script-title {
  font-family: var(--font-script);
  font-size: 3.2rem;
  color: var(--gold);
  line-height: 0.9;
  display: block;
}

.section-title-romantic .serif-subtitle {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  letter-spacing: 4px;
  color: var(--primary-color);
  text-transform: uppercase;
  font-weight: 600;
}

.gallery-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.gallery-card {
  position: relative;
  background: #ffffff;
  padding: 10px;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-3px);
}

.gallery-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

/* ==========================================================================
   SECTION 6: RSVP & WISHES (GỬI LỜI NHẮN & XÁC NHẬN)
   ========================================================================== */
.rsvp-section {
  position: relative;
  padding: 45px 22px 50px;
}

.rsvp-box {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(11, 73, 58, 0.2);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.rsvp-form-group {
  margin-bottom: 18px;
  text-align: left;
}

.rsvp-label {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.98rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 8px;
}

.rsvp-input,
.rsvp-select,
.rsvp-textarea {
  width: 100%;
  padding: 11px 14px;
  background: #ffffff;
  border: 1px solid #d8d3c8;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.2s ease;
}

.rsvp-input:focus,
.rsvp-textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(11, 73, 58, 0.1);
}

.rsvp-options-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.rsvp-radio-card {
  flex: 1;
  min-width: 120px;
  border: 1px solid #d8d3c8;
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
  cursor: pointer;
  background: #ffffff;
  transition: all 0.2s ease;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.rsvp-radio-card input {
  display: none;
}

.rsvp-radio-card.active {
  border-color: var(--primary-color);
  background: rgba(11, 73, 58, 0.07);
  color: var(--primary-color);
  font-weight: 600;
}

.btn-submit-rsvp {
  width: 100%;
  padding: 14px;
  background: var(--primary-color);
  color: #ffffff;
  border: none;
  border-radius: 30px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(11, 73, 58, 0.25);
  margin-top: 10px;
  transition: all 0.3s ease;
}

.btn-submit-rsvp:hover,
.btn-submit-rsvp:active {
  background: var(--dark-color);
  transform: translateY(-2px);
}

/* Guestbook Wishes List */
.guestbook-wrapper {
  margin-top: 35px;
}

.guestbook-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--primary-color);
  letter-spacing: 1.5px;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 600;
}

.wishes-scroll-box {
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 4px;
}

.wish-item {
  background: #ffffff;
  border-left: 3px solid var(--primary-color);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

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

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

.wish-badge {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(11, 73, 58, 0.08);
  color: var(--primary-color);
}

.wish-body {
  font-size: 0.9rem;
  line-height: 1.45;
  color: #444444;
}

.wish-time {
  font-size: 0.72rem;
  color: #888888;
  margin-top: 6px;
  text-align: right;
}

/* ==========================================================================
   SECTION 7: GIFT BOX & QR CODES (HỘP MỪNG CƯỚI)
   ========================================================================== */
.gift-section {
  position: relative;
  padding: 30px 20px 45px;
  text-align: center;
}

.btn-open-gift {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #b38e44 0%, #cfa95c 100%);
  color: #ffffff;
  border: none;
  border-radius: 30px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(179, 142, 68, 0.35);
  transition: all 0.3s ease;
}

.btn-open-gift:hover,
.btn-open-gift:active {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(179, 142, 68, 0.45);
}

/* ==========================================================================
   SECTION 8: THANK YOU & FOOTER
   ========================================================================== */
.footer-section {
  position: relative;
  padding: 40px 24px 30px;
  text-align: center;
}

.thankyou-script {
  font-family: var(--font-script);
  font-size: 4rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 12px;
}

.thankyou-message {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text-dark);
  max-width: 320px;
  margin: 0 auto 25px;
}

.footer-social-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 20px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(11, 73, 58, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-btn:hover {
  background: var(--primary-color);
  color: #ffffff;
}

.footer-copyright {
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #888888;
}

/* ==========================================================================
   MOBILE FLOATING BOTTOM ACTION BAR
   ========================================================================== */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 10px 16px;
}

.bottom-bar-inner {
  pointer-events: auto;
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(11, 73, 58, 0.15);
  border-radius: 30px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 12px;
}

.bar-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.bar-action-item:active {
  transform: scale(0.95);
  background: rgba(11, 73, 58, 0.08);
}

.bar-action-item svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ==========================================================================
   MODAL: GIFT POPUP (HỘP MỪNG CƯỚI / QR BANK)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-backdrop.show {
  display: flex;
  opacity: 1;
}

.modal-box {
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--paper-bg);
  background-image: url('/static/images/plaster_bg.png');
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  position: relative;
  padding: 26px 20px;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-backdrop.show .modal-box {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #333;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--primary-color);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.qr-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.qr-tab-btn {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--primary-color);
  background: #ffffff;
  color: var(--primary-color);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qr-tab-btn.active {
  background: var(--primary-color);
  color: #ffffff;
}

.qr-card-content {
  display: none;
  text-align: center;
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 20px 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.qr-card-content.active {
  display: block;
}

.qr-image-frame {
  width: 200px;
  height: 200px;
  margin: 0 auto 16px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #e0dcd5;
  border-radius: 8px;
}

.qr-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bank-info-table {
  text-align: left;
  margin-bottom: 16px;
  font-size: 0.92rem;
}

.bank-info-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed #e8e4dc;
}

.bank-info-label {
  color: #666;
}

.bank-info-val {
  font-weight: 600;
  color: var(--primary-color);
}

.btn-copy-stk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 11px;
  background: var(--primary-color);
  color: #ffffff;
  border: none;
  border-radius: 25px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy-stk:active {
  background: var(--dark-color);
  transform: scale(0.98);
}

/* ==========================================================================
   LIGHTBOX FULLSCREEN PHOTO VIEWER
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox-modal.show {
  display: flex;
}

.lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  z-index: 3001;
}

/* ==========================================================================
   LIVE EDITOR: BOTTOM SHEET / ADMIN PANEL
   ========================================================================== */
.btn-toggle-editor {
  position: fixed;
  bottom: 80px;
  right: 16px;
  z-index: 997;
  background: #111827;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-toggle-editor:hover {
  background: #1f2937;
  transform: translateY(-2px);
}

/* Bottom Sheet Editor Drawer */
.editor-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 85vh;
  max-width: 600px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
  z-index: 2500;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.editor-drawer.open {
  transform: translateY(0);
}

.editor-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.editor-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 8px;
}

.editor-nav-tabs {
  display: flex;
  overflow-x: auto;
  padding: 8px 16px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  gap: 8px;
}

.editor-nav-tab {
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #4b5563;
  background: transparent;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
}

.editor-nav-tab.active {
  background: var(--primary-color);
  color: #ffffff;
}

.editor-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.editor-section-pane {
  display: none;
}

.editor-section-pane.active {
  display: block;
}

.form-row {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #111827;
}

.form-control:focus {
  border-color: var(--primary-color);
  outline: none;
}

.file-upload-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.upload-preview-thumb {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
}

.btn-upload-file {
  padding: 7px 14px;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.82rem;
  cursor: pointer;
}

.editor-footer {
  padding: 14px 20px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-save-config {
  padding: 10px 24px;
  background: var(--primary-color);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(11, 73, 58, 0.3);
}

.btn-close-editor {
  padding: 10px 18px;
  background: #e5e7eb;
  color: #374151;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 85px;
  left: 50%;
  transform: translateX(-50%) translateY(50px);
  background: rgba(17, 24, 39, 0.92);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 4000;
  white-space: nowrap;
}

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

/* Hidden in Guest View Mode */
body.guest-view-mode .btn-toggle-editor,
body.guest-view-mode .editor-drawer {
  display: none !important;
}


/* ==========================================================================
   CALENDAR GRID (MATCHING SCREENSHOT 3 VIỆT KHÔI & BÍCH THỦY)
   ========================================================================== */
.calendar-card-box {
  background: #ffffff;
  border: 1px solid rgba(120, 29, 40, 0.15);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  margin: 30px auto;
  max-width: 360px;
}

.calendar-month-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-color);
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
}

.calendar-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-family: var(--font-sans);
}

.calendar-table th {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-dark);
  padding: 8px 0;
  border-bottom: 1.5px solid var(--text-dark);
}

.calendar-table td {
  padding: 10px 0;
  font-size: 0.95rem;
  color: var(--text-dark);
  position: relative;
}

.calendar-table td.heart-day {
  color: #ffffff;
  font-weight: 700;
  position: relative;
}

.calendar-table td.heart-day::before {
  content: '♥';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.2rem;
  color: var(--primary-color);
  z-index: 1;
}

.calendar-table td.heart-day span {
  position: relative;
  z-index: 2;
  font-size: 0.8rem;
}

/* Event timeline / 2 venues badge */
.venue-dual-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(120, 29, 40, 0.18);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 16px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  text-align: center;
}

.venue-dual-tag {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary-color);
  font-weight: 700;
  padding: 3px 12px;
  background: rgba(120, 29, 40, 0.08);
  border-radius: 12px;
  margin-bottom: 8px;
}

.admin-login-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.admin-login-modal.show {
  display: flex;
}

.admin-login-box {
  background: #ffffff;
  border-radius: 12px;
  padding: 28px 24px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  text-align: center;
}
