/* ==========================================================================
   THƯ MỜI SỰ KIỆN VIỆN VĂN HÓA DOANH NHÂN VÀ PHÁT TRIỂN CỘNG ĐỒNG (IECCD)
   Sự kiện: NGÀY VĂN HÓA VIỆT NAM 2026 & RA MẮT CHÂN DUNG DOANH NHÂN VĂN HÓA - CHUYÊN GIA
   Phong cách: Lụa Ngà Voi Hoàng Gia + Xanh Navy Tinh Hoa & Ngọc Bích + Vàng Kim
   Tối ưu Desktop, Điện Thoại & Xuất ảnh PNG HD
   ========================================================================== */

:root {
  --color-bg-page: #faf8f5;
  --color-card-bg: #ffffff;
  --color-card-surface: #fffdfa;

  --color-royal-primary: #14284b;
  --color-royal-deep: #0b1930;
  --color-purple-ewit: #2e1065;
  --color-purple-light: #581c87;
  --color-purple-soft: #f3e8ff;
  --color-navy-soft: #eff6ff;

  --color-green-ewit: #059669;
  --color-green-bright: #10b981;
  --color-green-mint: #34d399;
  --color-green-soft: #ecfdf5;

  --color-gold-base: #ca8a04;
  --color-gold-bright: #eab308;
  --color-gold-light: #fef08a;
  --color-gold-foil: #b45309;
  --color-gold-border: #dfba73;

  --color-text-main: #1e1b4b;
  --color-text-sub: #475569;
  --color-text-muted: #64748b;

  --font-serif-luxury: 'Playfair Display', 'Cinzel', Georgia, serif;
  --font-serif-cinzel: 'Cinzel', 'Playfair Display', serif;
  --font-serif-elegant: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', system-ui, -apple-system, sans-serif;

  --gold-gradient: linear-gradient(135deg, #b45309 0%, #ca8a04 35%, #eab308 70%, #854d0e 100%);
  --gold-gradient-text: linear-gradient(135deg, #854d0e 0%, #b45309 25%, #ca8a04 50%, #996515 80%, #78350f 100%);
  --royal-gradient-text: linear-gradient(135deg, #0b1930 0%, #1e1b4b 45%, #3b0a64 100%);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-page);
  color: var(--color-text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  -webkit-font-smoothing: antialiased;
}

/* NỀN SÁNG LỤA NGÀ VOI VỚI HỌA TIẾT CÁT TƯỜNG TINH TẾ */
.bg-light-silk {
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(243, 232, 255, 0.65) 0%, transparent 60%),
    radial-gradient(circle at 10% 100%, rgba(209, 250, 229, 0.5) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(254, 243, 199, 0.65) 0%, transparent 50%),
    linear-gradient(rgba(250, 248, 245, 0.96), rgba(250, 248, 245, 0.98)),
    url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0 L80 40 L40 80 L0 40 Z' fill='none' stroke='%23dfba73' stroke-width='0.6' stroke-opacity='0.15'/%3E%3C/svg%3E");
  background-attachment: fixed;
}

/* HẠT ÁNH VÀNG RƠI NHẸ */
.particles-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

@keyframes floatUpParticle {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  15% { opacity: 0.65; }
  85% { opacity: 0.4; }
  100% { transform: translateY(-105vh) translateX(25px); opacity: 0; }
}

/* ==========================================================================
   TOP NAVIGATION
   ========================================================================== */
.top-nav {
  width: 100%;
  max-width: 1040px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  z-index: 20;
  gap: 12px;
  flex-wrap: wrap;
}

.logo-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(223, 186, 115, 0.65);
  padding: 6px 16px;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.mini-logo {
  height: 26px;
  width: auto;
  object-fit: contain;
}

.badge-text {
  font-family: var(--font-serif-luxury);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--color-royal-primary);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-action-icon {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(223, 186, 115, 0.65);
  color: var(--color-royal-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

.btn-action-icon:hover {
  background: #ffffff;
  border-color: var(--color-gold-base);
  color: var(--color-gold-foil);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(202, 138, 4, 0.25);
}

.btn-action-icon .nav-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(20, 40, 75, 0.95);
  color: #ffffff;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 100;
}

.btn-action-icon:hover .nav-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.btn-action-sm {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(223, 186, 115, 0.65);
  color: var(--color-royal-primary);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  font-family: var(--font-sans);
}

.btn-action-sm:hover {
  background: #fff;
  border-color: var(--color-gold-base);
  color: var(--color-gold-foil);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(202, 138, 4, 0.2);
}

.btn-admin-highlight {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.16) 0%, rgba(16, 185, 129, 0.14) 100%);
  border-color: var(--color-gold-base);
  color: #78350f;
  font-weight: 700;
}

/* ==========================================================================
   PHONG BÌ HOÀNG GIA (ENVELOPE OVERLAY)
   ========================================================================== */
.envelope-overlay {
  position: fixed;
  inset: 0;
  background: rgba(250, 248, 245, 0.96);
  backdrop-filter: blur(10px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.envelope-overlay.opened,
.envelope-overlay.envelope-open {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.envelope-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 20px;
}

.envelope {
  position: relative;
  width: 390px;
  height: 265px;
  background: #fdfaf5;
  border-radius: 8px;
  box-shadow: 0 25px 60px rgba(20, 40, 75, 0.16), 0 5px 25px rgba(223, 186, 115, 0.28);
  overflow: visible;
}

.envelope-back {
  position: absolute;
  inset: 0;
  background: #f8f4ec;
  border-radius: 8px;
  border: 1px solid rgba(223, 186, 115, 0.45);
}

.envelope-card-preview {
  position: absolute;
  top: 14px;
  left: 20px;
  right: 20px;
  height: 185px;
  background: #ffffff;
  border: 1px solid rgba(223, 186, 115, 0.65);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 14px 12px;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.envelope-wrapper:hover .envelope-card-preview {
  transform: translateY(-24px);
}

.preview-brand {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1.8px;
  color: var(--color-green-ewit);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.preview-text {
  font-family: var(--font-serif-luxury);
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--color-royal-primary);
  letter-spacing: 1.2px;
  line-height: 1.3;
}

.preview-sub {
  font-size: 0.74rem;
  color: #78350f;
  margin-top: 5px;
  font-weight: 700;
}

.envelope-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-top: 132px solid transparent;
  border-bottom: 133px solid transparent;
  border-left: 195px solid #f1ece1;
  z-index: 2;
  border-radius: 8px 0 0 8px;
}

.envelope-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-top: 132px solid transparent;
  border-bottom: 133px solid transparent;
  border-right: 195px solid #ece7dc;
  z-index: 2;
  border-radius: 0 8px 8px 0;
}

.envelope-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0;
  border-left: 195px solid transparent;
  border-right: 195px solid transparent;
  border-bottom: 148px solid #e7e0d3;
  z-index: 3;
  border-radius: 0 0 8px 8px;
}

.envelope-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-left: 195px solid transparent;
  border-right: 195px solid transparent;
  border-top: 142px solid #f5efe4;
  z-index: 4;
  transform-origin: top;
  transition: transform 0.65s ease-in-out;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.08));
}

.envelope.is-opening .envelope-top {
  transform: rotateX(180deg);
  z-index: 1;
}

/* CON DẤU SÁP HOÀNG GIA (WAX SEAL) */
.wax-seal {
  position: absolute;
  top: 124px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  background: radial-gradient(circle at 35% 35%, #fef08a 0%, #eab308 55%, #854d0e 100%);
  border-radius: 50%;
  box-shadow: 0 8px 25px rgba(202, 138, 4, 0.38), 0 0 20px rgba(234, 179, 8, 0.55);
  z-index: 6;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid #fff;
}

.wax-seal:hover {
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 10px 30px rgba(202, 138, 4, 0.55), 0 0 25px rgba(254, 240, 138, 0.85);
}

.wax-seal-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.seal-icon {
  width: 34px;
  height: 30px;
  color: #78350f;
  margin-bottom: 1px;
}

.seal-text {
  font-family: var(--font-serif-luxury);
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #78350f;
}

.seal-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed rgba(202, 138, 4, 0.55);
  animation: rotateSeal 12s linear infinite;
  pointer-events: none;
}

@keyframes rotateSeal {
  100% { transform: rotate(360deg); }
}

.envelope-instruction {
  text-align: center;
  max-width: 440px;
}

.seal-prompt {
  font-size: 0.96rem;
  color: var(--color-royal-primary);
  margin-bottom: 14px;
  line-height: 1.5;
}

.btn-open-gold {
  background: var(--gold-gradient);
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(202, 138, 4, 0.35);
  transition: all 0.3s ease;
  font-family: var(--font-sans);
}

.btn-open-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(202, 138, 4, 0.5);
  filter: brightness(1.06);
}

/* ==========================================================================
   KHUNG THIỆP CHÍNH (INVITATION CARD - NỀN SÁNG HOÀNG GIA)
   ========================================================================== */
.invitation-container {
  width: 100%;
  max-width: 1020px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 16px 44px 16px;
  z-index: 10;
}

.card-outer-shadow {
  width: 100%;
  border-radius: 20px;
  padding: 3px;
  background: linear-gradient(135deg, rgba(223, 186, 115, 0.85) 0%, rgba(5, 150, 105, 0.45) 50%, rgba(223, 186, 115, 0.92) 100%);
  box-shadow: 0 25px 60px -10px rgba(20, 40, 75, 0.18), 0 5px 25px rgba(223, 186, 115, 0.32);
  margin-bottom: 24px;
}

/* KHUNG THIỆP SANG TRỌNG */
.invitation-card.aspect-4-3 {
  width: 100%;
  min-height: 650px;
  background: var(--color-card-surface);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 18px;
}

/* NỀN HOA VĂN MỜ HOA SEN & SRIVATSA */
.watermark-pattern-light {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 50% 45%, rgba(223, 186, 115, 0.07) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M60 15 L105 60 L60 105 L15 60 Z' fill='none' stroke='%23dfba73' stroke-width='0.8' stroke-opacity='0.12'/%3E%3Ccircle cx='60' cy='60' r='30' fill='none' stroke='%23059669' stroke-width='0.8' stroke-opacity='0.08'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* KHUNG VIỀN VÀNG KÉP HOÀNG GIA (ORNATE DOUBLE GOLD BORDER) */
.ornate-border-light {
  position: relative;
  width: 100%;
  flex: 1;
  border: 1.5px solid rgba(202, 138, 4, 0.68);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  z-index: 2;
  padding: 14px 16px;
  background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.98) 0%, rgba(253, 251, 247, 0.94) 100%);
}

.ornate-border-light::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(202, 138, 4, 0.42);
  border-radius: 8px;
  pointer-events: none;
}

/* 4 HỌA TIẾT GÓC (CORNER FILIGREES) */
.corner-filigree {
  position: absolute;
  pointer-events: none;
  z-index: 5;
}

.corner-top-left { top: 4px; left: 4px; }
.corner-top-right { top: 4px; right: 4px; }
.corner-bottom-left { bottom: 4px; left: 4px; }
.corner-bottom-right { bottom: 4px; right: 4px; }

/* NỘI DUNG BÊN TRONG THIỆP MỜI */
.card-inner-content {
  position: relative;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding: 8px 18px;
  z-index: 3;
  gap: 8px;
}

/* 1. HEADER LOGO VÀ ĐƠN VỊ TỔ CHỨC */
.card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.logo-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
}

.invitation-logo {
  height: 62px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(20, 40, 75, 0.1));
}

.logo-motto {
  font-family: var(--font-serif-elegant);
  font-style: italic;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-gold-foil);
  letter-spacing: 0.8px;
}

.org-full-name {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1.6px;
  color: var(--color-royal-primary);
  text-transform: uppercase;
  margin-top: 2px;
}

.invitation-intro {
  font-family: var(--font-serif-luxury);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 3.5px;
  color: var(--color-gold-foil);
  text-transform: uppercase;
}

/* 2. TÂM ĐIỂM: DANH XƯNG & HỌ TÊN KHÁCH MỜI */
.guest-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 2px 0;
}

.guest-ornament-line {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-gold-base);
  opacity: 0.9;
}

.line-wing {
  width: 75px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--color-gold-base) 50%, transparent 100%);
}

.ornament-diamond {
  font-size: 0.75rem;
  color: var(--color-gold-foil);
}

.ornament-center-icon {
  font-size: 0.85rem;
  color: var(--color-green-ewit);
}

.guest-title-name {
  margin: 2px 0;
  line-height: 1.22;
  text-align: center;
}

.guest-salutation {
  display: none !important;
}

.guest-person-name {
  font-family: var(--font-serif-elegant);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  background: var(--royal-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding: 0 6px;
}

.invitation-action-text {
  font-family: var(--font-serif-elegant);
  font-style: italic;
  font-size: 1.12rem;
  color: var(--color-text-sub);
  letter-spacing: 0.6px;
}

/* 3. TIÊU ĐỀ SỰ KIỆN TRỌNG TÂM */
.event-headline-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  max-width: 820px;
}

.event-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(90deg, rgba(254, 240, 138, 0.35), rgba(209, 250, 229, 0.4), rgba(254, 240, 138, 0.35));
  border: 1px solid rgba(202, 138, 4, 0.45);
  color: #78350f;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  padding: 3px 14px;
  border-radius: 999px;
  text-transform: uppercase;
}

.event-title {
  font-family: var(--font-serif-luxury);
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: 2.2px;
  color: var(--color-royal-primary);
  text-transform: uppercase;
  line-height: 1.25;
}

.event-subtitle-launch {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--color-green-ewit);
  text-transform: uppercase;
  margin-top: 1px;
}

.event-program-highlight {
  font-family: var(--font-serif-elegant);
  font-size: 1.32rem;
  font-weight: 700;
  color: #78350f;
  background: linear-gradient(135deg, #78350f 0%, #b45309 50%, #92400e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.3;
  letter-spacing: 0.4px;
}

/* 4. TÁC PHẨM BIỂU TƯỢNG HÌNH ẢNH: HOA SEN & LÁ SEN VÔ CỰC 2 BÊN */
.sacred-artwork-container {
  position: relative;
  width: 100%;
  max-width: 460px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.sacred-emblem-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 2;
  filter: drop-shadow(0 3px 8px rgba(180, 83, 9, 0.16));
}

.center-lotus-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 82px;
  height: auto;
  z-index: 5;
  filter: drop-shadow(0 6px 16px rgba(212, 175, 55, 0.35)) drop-shadow(0 2px 6px rgba(180, 83, 9, 0.2));
  transition: transform 0.3s ease;
  pointer-events: auto;
}

.center-lotus-img:hover {
  transform: translate(-50%, -53%) scale(1.05);
}

/* 5. KHỐI THỜI GIAN, ĐỊA ĐIỂM SÔNG MÂY & LỊCH TRÌNH CHI TIẾT 21-24/11 */
.event-details-card {
  width: 96%;
  max-width: 780px;
  background: #ffffff;
  border: 1.5px solid rgba(223, 186, 115, 0.75);
  border-radius: 14px;
  padding: 12px 18px;
  box-shadow: 0 6px 22px rgba(20, 40, 75, 0.06);
}

.details-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px dashed rgba(202, 138, 4, 0.35);
}

.detail-box {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  flex: 1;
}

.detail-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-time {
  background: var(--color-navy-soft);
  border: 1px solid rgba(20, 40, 75, 0.22);
  color: var(--color-royal-primary);
}

.icon-location {
  background: var(--color-green-soft);
  border: 1px solid rgba(5, 150, 105, 0.3);
  color: var(--color-green-ewit);
}

.detail-content {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.detail-value {
  font-family: var(--font-serif-luxury);
  font-size: 1.14rem;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.text-royal {
  color: var(--color-royal-primary);
}

.text-emerald {
  color: var(--color-green-ewit);
}

.detail-sub {
  font-size: 0.77rem;
  color: var(--color-text-sub);
  font-weight: 500;
}

.detail-divider {
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, transparent 0%, rgba(202, 138, 4, 0.45) 50%, transparent 100%);
  margin: 0 16px;
}

/* KHỐI LỊCH TRÌNH TRỌNG TÂM 21-24/11 */
.agenda-schedule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  text-align: left;
}

.agenda-item {
  background: linear-gradient(135deg, #fffdf9 0%, #fefaf0 100%);
  border: 1px solid rgba(223, 186, 115, 0.55);
  border-left: 3.5px solid var(--color-gold-base);
  border-radius: 10px;
  padding: 9px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.agenda-item.agenda-item-emerald {
  background: linear-gradient(135deg, #f8fdfa 0%, #f0fdf4 100%);
  border-color: rgba(16, 185, 129, 0.35);
  border-left: 3.5px solid var(--color-green-ewit);
}

.agenda-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(202, 138, 4, 0.12);
}

.agenda-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #92400e;
  text-transform: uppercase;
}

.agenda-item-emerald .agenda-date-badge {
  color: #065f46;
}

.agenda-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-gold-base);
  display: inline-block;
}

.agenda-item-emerald .agenda-dot {
  background: var(--color-green-ewit);
}

.agenda-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--color-royal-primary);
  line-height: 1.38;
}

.agenda-desc {
  font-size: 0.73rem;
  color: var(--color-text-sub);
  line-height: 1.35;
}

/* DẢI GHI CHÚ TOÀN CHƯƠNG TRÌNH */
.program-strip {
  margin-top: 9px;
  background: #f8fafc;
  border-radius: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(202, 138, 4, 0.25);
  font-size: 0.76rem;
  color: var(--color-text-sub);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.program-strip strong {
  color: var(--color-royal-primary);
}

/* 6. LỜI CẢM TẠ BIẾT ƠN TRÂN TRỌNG */
.card-footer-gratitude {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4px 12px 2px 12px;
  gap: 2px;
}

.gratitude-sentence {
  font-family: var(--font-serif-elegant);
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 700;
  color: var(--color-royal-primary);
  letter-spacing: 0.4px;
  text-align: center;
}

.gratitude-sub-motto {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-gold-foil);
  text-transform: uppercase;
}

/* ==========================================================================
   DÃY NÚT HÀNH ĐỘNG DƯỚI THIỆP
   ========================================================================== */
.action-buttons-deck {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 980px;
}

.btn-primary-action {
  background: var(--gold-gradient);
  color: #ffffff;
  border: none;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(202, 138, 4, 0.3);
  transition: all 0.25s ease;
  font-family: var(--font-sans);
}

.btn-primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(202, 138, 4, 0.45);
  filter: brightness(1.05);
}

.btn-emerald-action {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.32);
}

.btn-emerald-action:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 8px 22px rgba(5, 150, 105, 0.48);
}

.btn-secondary-action {
  background: #ffffff;
  border: 1.5px solid rgba(223, 186, 115, 0.8);
  color: var(--color-royal-primary);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  font-family: var(--font-sans);
}

.btn-secondary-action:hover {
  background: #fdfaf5;
  border-color: var(--color-gold-base);
  color: var(--color-gold-foil);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(202, 138, 4, 0.2);
}

/* TOAST THÔNG BÁO NHANH */
.toast-notification {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--color-royal-primary);
  border: 1px solid var(--color-gold-border);
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

/* ==========================================================================
   MODAL CÁ NHÂN HÓA NHANH TÊN KHÁCH MỜI
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 25, 48, 0.6);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.modal-dialog {
  background: #ffffff;
  border: 1.5px solid rgba(223, 186, 115, 0.85);
  border-radius: 16px;
  width: 100%;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(223, 186, 115, 0.4);
  background: #faf8f5;
}

.modal-title {
  font-family: var(--font-serif-luxury);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-royal-primary);
}

.btn-close {
  background: none;
  border: none;
  color: #64748b;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-field-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--color-royal-primary);
  margin-bottom: 4px;
  display: block;
}

.form-field-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid rgba(223, 186, 115, 0.7);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  color: var(--color-text-main);
  outline: none;
}

.form-field-input:focus {
  border-color: var(--color-royal-primary);
  box-shadow: 0 0 0 3px rgba(20, 40, 75, 0.1);
}

.quick-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.preset-chip {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.preset-chip:hover {
  background: #fef3c7;
  border-color: var(--color-gold-base);
  color: #78350f;
}

/* ==========================================================================
   RESPONSIVE DESIGN (IPAD, MOBILE)
   ========================================================================== */
@media (max-width: 768px) {
  .invitation-card.aspect-4-3 {
    aspect-ratio: auto;
    min-height: auto;
    padding: 10px;
  }

  .ornate-border-light {
    padding: 10px 8px;
  }

  .card-inner-content {
    padding: 6px 8px;
  }

  .corner-filigree svg {
    width: 44px;
    height: 44px;
  }

  .invitation-logo {
    height: 50px;
  }

  .org-full-name {
    font-size: 0.68rem;
    letter-spacing: 1px;
  }

  .guest-person-name {
    font-size: 1.85rem;
  }

  .event-title {
    font-size: 1.25rem;
    letter-spacing: 1.2px;
  }

  .event-program-highlight {
    font-size: 1.08rem;
  }

  .details-row {
    flex-direction: column;
    gap: 10px;
  }

  .detail-divider {
    width: 80%;
    height: 1px;
    margin: 2px 0;
  }

  .detail-box {
    width: 100%;
    justify-content: flex-start;
  }

  .agenda-schedule-grid {
    grid-template-columns: 1fr;
  }

  .envelope {
    width: 320px;
    height: 220px;
  }

  .envelope-left {
    border-top-width: 110px !important;
    border-bottom-width: 110px !important;
    border-left-width: 160px !important;
  }
  .envelope-right {
    border-top-width: 110px !important;
    border-bottom-width: 110px !important;
    border-right-width: 160px !important;
  }
  .envelope-bottom {
    border-left-width: 160px !important;
    border-right-width: 160px !important;
    border-bottom-width: 115px !important;
  }
  .envelope-top {
    border-left-width: 160px !important;
    border-right-width: 160px !important;
    border-top-width: 112px !important;
  }
  .wax-seal {
    top: 98px;
    width: 60px;
    height: 60px;
  }
  .envelope-card-preview {
    top: 10px;
    left: 14px;
    right: 14px;
    height: 150px;
  }
  .sacred-artwork-container {
    max-width: 340px;
    height: 70px;
  }
  .center-lotus-img {
    width: 66px;
  }

  .action-buttons-deck {
    flex-direction: column;
    width: 100%;
  }

  .action-buttons-deck > * {
    width: 100%;
    justify-content: center;
  }
}


/* THANH CHUYỂN MẪU SO SÁNH (3 PHIÊN BẢN THIẾT KẾ) */
.theme-switcher-bar {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 253, 248, 0.96);
  border: 1.5px solid #d4af37;
  border-radius: 999px;
  padding: 3px;
  gap: 3px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
}
.theme-switch-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: "Be Vietnam Pro", "Montserrat", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: #334155;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.theme-switch-link:hover {
  background: rgba(212, 175, 55, 0.16);
  color: #0f172a;
}
.theme-switch-link.active {
  background: linear-gradient(135deg, #152a42 0%, #23476e 100%);
  color: #fde68a;
  box-shadow: 0 2px 8px rgba(21, 42, 66, 0.25);
}


.top-nav {
  max-width: 1180px !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
}
.logo-pill .badge-text {
  font-size: 0.72rem !important;
  letter-spacing: 0.5px !important;
}
@media (max-width: 1024px) {
  .top-nav {
    flex-wrap: wrap !important;
    justify-content: center !important;
  }
}


/* PHẦN MÔ TẢ MỤC ĐÍCH & LINK TRỰC TIẾP TRÊN THIỆP CHUYÊN GIA */
.event-purpose-text {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: #475569;
  line-height: 1.5;
  max-width: 700px;
  margin-top: 2px;
}
.card-inline-link {
  color: #b45309;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: normal;
}
.card-inline-link:hover {
  color: #78350f;
}
.card-inline-link-emerald {
  color: #047857;
}
.card-inline-link-emerald:hover {
  color: #064e3b;
}
