/* ==========================================================================
   THƯ MỜI SỰ KIỆN VIỆN VĂN HÓA DOANH NHÂN VÀ PHÁT TRIỂN CỘNG ĐỒNG (IECCD)
   Website thương hiệu: https://vienphattriencongdong.com/
   Phong cách: Sang trọng, Tối giản, Thoáng đãng, Font chữ tiếng Việt siêu rõ nét
   ========================================================================== */

:root {
  /* Bảng màu chính thức từ https://vienphattriencongdong.com/ */
  --ieccd-navy-deep: #0b1c30;
  --ieccd-navy-main: #152a42;
  --ieccd-navy-royal: #1b3b5f;
  --ieccd-navy-soft: #f0f5fa;

  --ieccd-bronze-dark: #4a2106;
  --ieccd-bronze-main: #9a5b13;
  --ieccd-copper-hover: #c27c37;
  --ieccd-gold-bright: #d4af37;
  --ieccd-gold-champagne: #f5df9d;
  --ieccd-gold-border: #d8b268;

  --ieccd-silk-bg: #f6efe0;
  --ieccd-card-cream: #fffdf9;

  --color-text-main: #152a42;
  --color-text-sub: #334155;
  --color-text-muted: #64748b;

  /* Font tiếng Việt cực kỳ rõ nét, hiện đại & trang trọng */
  --font-sans: 'Be Vietnam Pro', 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-serif: 'Lora', Georgia, serif;

  --gradient-navy-royal: linear-gradient(135deg, #0b1c30 0%, #152a42 50%, #1f4068 100%);
  --gradient-bronze-gold: linear-gradient(135deg, #8a4f0d 0%, #c27c37 40%, #d4af37 80%, #783f04 100%);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--ieccd-silk-bg);
  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 HOÀNG KIM ĐÔNG SƠN & LỤA CỔ (TỪ BANNER VIENPHATTRIENCONGDONG.COM) */
.bg-light-silk {
  background-image:
    linear-gradient(180deg, rgba(251, 245, 230, 0.86) 0%, rgba(246, 236, 212, 0.82) 50%, rgba(242, 229, 198, 0.9) 100%),
    url("ieccd_dongson_bg.jpg");
  background-size: cover;
  background-position: center bottom;
  background-attachment: fixed;
}

/* HẠT BỤI VÀNG ĐÔNG SƠN TRÔ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.7; }
  85% { opacity: 0.45; }
  100% { transform: translateY(-105vh) translateX(25px); opacity: 0; }
}

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

.logo-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 253, 247, 0.96);
  border: 1.5px solid rgba(194, 124, 55, 0.55);
  padding: 6px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 15px rgba(21, 42, 66, 0.08);
}

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

.badge-text {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--ieccd-navy-main);
  text-transform: uppercase;
}

.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, 253, 247, 0.96);
  border: 1px solid rgba(194, 124, 55, 0.6);
  color: var(--ieccd-navy-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(21, 42, 66, 0.06);
  flex-shrink: 0;
}

.btn-action-icon:hover {
  background: var(--ieccd-navy-main);
  border-color: var(--ieccd-gold-bright);
  color: var(--ieccd-gold-champagne);
  transform: translateY(-2px);
}

.btn-action-icon .nav-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--ieccd-navy-main);
  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;
  z-index: 100;
}

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

.btn-action-sm {
  background: rgba(255, 253, 247, 0.96);
  border: 1px solid rgba(194, 124, 55, 0.6);
  color: var(--ieccd-navy-main);
  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(21, 42, 66, 0.05);
  font-family: var(--font-sans);
}

.btn-action-sm:hover {
  background: var(--ieccd-navy-main);
  border-color: var(--ieccd-gold-bright);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-admin-highlight {
  background: linear-gradient(135deg, #fffbeb 0%, #fde68a 100%);
  border-color: var(--ieccd-copper-hover);
  color: var(--ieccd-bronze-dark);
  font-weight: 700;
}

/* ==========================================================================
   PHONG BÌ HOÀNG GIA IECCD (NAVY & ĐỒNG ĐÔNG SƠN)
   ========================================================================== */
.envelope-overlay {
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 50% 35%, rgba(255, 250, 235, 0.92) 0%, rgba(244, 231, 200, 0.96) 100%),
    url("ieccd_dongson_bg.jpg");
  background-size: cover;
  background-position: center;
  backdrop-filter: blur(8px);
  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: 410px;
  height: 275px;
  background: var(--ieccd-navy-main);
  border-radius: 10px;
  box-shadow: 0 28px 65px rgba(11, 28, 48, 0.35), 0 0 0 2px rgba(212, 175, 55, 0.65);
  overflow: visible;
}

.envelope-back {
  position: absolute;
  inset: 0;
  background: #0f2136;
  border-radius: 10px;
}

.envelope-card-preview {
  position: absolute;
  top: 14px;
  left: 20px;
  right: 20px;
  height: 195px;
  background: linear-gradient(180deg, #fffdf8 0%, #f9efd8 100%);
  border: 1.5px solid var(--ieccd-gold-bright);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 16px 14px;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

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

.preview-brand {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--ieccd-bronze-main);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.preview-text {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--ieccd-navy-main);
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.preview-sub {
  font-size: 0.76rem;
  color: var(--ieccd-bronze-dark);
  margin-top: 5px;
  font-weight: 600;
}

.envelope-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-top: 137px solid transparent;
  border-bottom: 138px solid transparent;
  border-left: 205px solid #16304d;
  z-index: 2;
  border-radius: 10px 0 0 10px;
}

.envelope-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-top: 137px solid transparent;
  border-bottom: 138px solid transparent;
  border-right: 205px solid #122842;
  z-index: 2;
  border-radius: 0 10px 10px 0;
}

.envelope-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0;
  border-left: 205px solid transparent;
  border-right: 205px solid transparent;
  border-bottom: 155px solid #193759;
  z-index: 3;
  border-radius: 0 0 10px 10px;
  filter: drop-shadow(0 -2px 4px rgba(0, 0, 0, 0.2));
}

.envelope-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-left: 205px solid transparent;
  border-right: 205px solid transparent;
  border-top: 148px solid #1e4169;
  z-index: 4;
  transform-origin: top;
  transition: transform 0.65s ease-in-out;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.3));
}

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

/* CON DẤU ĐỒNG ĐÔNG SƠN & MẶT TRỜI IECCD (WAX SEAL) */
.wax-seal {
  position: absolute;
  top: 132px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 78px;
  height: 78px;
  background: radial-gradient(circle at 35% 35%, #fff3c4 0%, #d4af37 48%, #9a5b13 85%, #5c3104 100%);
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 22px rgba(212, 175, 55, 0.65);
  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 #fff8dc;
}

.wax-seal:hover {
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 243, 196, 0.9);
}

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

.seal-icon {
  width: 38px;
  height: 34px;
  margin-bottom: 1px;
}

.seal-text {
  font-family: var(--font-sans);
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 1.6px;
  color: #3a1402;
}

.seal-pulse {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1.5px dashed rgba(245, 223, 157, 0.75);
  animation: rotateSeal 14s linear infinite;
  pointer-events: none;
}

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

.envelope-instruction {
  text-align: center;
  max-width: 480px;
  background: rgba(255, 253, 247, 0.92);
  padding: 16px 26px;
  border-radius: 16px;
  border: 1px solid rgba(194, 124, 55, 0.45);
  box-shadow: 0 10px 30px rgba(21, 42, 66, 0.1);
}

.seal-prompt {
  font-size: 0.95rem;
  color: var(--ieccd-navy-main);
  margin-bottom: 12px;
  line-height: 1.5;
}

.btn-open-gold {
  background: var(--gradient-navy-royal);
  color: #fde68a;
  border: 1.5px solid var(--ieccd-gold-bright);
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(21, 42, 66, 0.28);
  transition: all 0.3s ease;
  font-family: var(--font-sans);
}

.btn-open-gold:hover {
  transform: translateY(-2px);
  background: var(--gradient-bronze-gold);
  color: #ffffff;
}

/* ==========================================================================
   KHUNG THIỆP CHÍNH (THOÁNG ĐÃNG, SANG TRỌNG, DỄ ĐỌC)
   ========================================================================== */
.invitation-container {
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 16px 40px 16px;
  z-index: 10;
}

/* KHUNG NGOÀI XANH NAVY HOÀNG GIA VIỀN VÀNG ĐỒNG */
.card-outer-shadow {
  width: 100%;
  border-radius: 22px;
  padding: 9px;
  background: linear-gradient(135deg, #0b1c30 0%, #152a42 45%, #1d3c5e 75%, #0b1c30 100%);
  box-shadow:
    0 26px 60px -12px rgba(11, 28, 48, 0.32),
    0 0 0 2px #d4af37,
    inset 0 0 0 1.5px rgba(245, 223, 157, 0.45);
  margin-bottom: 22px;
  position: relative;
}

/* MẶT THIỆP LỤA SÁNG RÕ NÉT */
.invitation-card.aspect-4-3 {
  width: 100%;
  min-height: 620px;
  background-color: var(--ieccd-card-cream);
  background-image:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.97) 0%, rgba(253, 249, 238, 0.94) 65%, rgba(249, 240, 218, 0.9) 100%),
    url("ieccd_dongson_bg.jpg");
  background-size: cover;
  background-position: center bottom;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: 2px solid var(--ieccd-gold-bright);
}

/* HỌA TIẾT TRỐNG ĐỒNG ĐÔNG SƠN IN CHÌM DỊU NHẸ */
.watermark-pattern-light {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 50% 45%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg width='400' height='400' viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23b47b28' stroke-opacity='0.09'%3E%3Ccircle cx='200' cy='200' r='180' stroke-width='1.5'/%3E%3Ccircle cx='200' cy='200' r='140' stroke-width='1' stroke-dasharray='5 4'/%3E%3Ccircle cx='200' cy='200' r='95' stroke-width='1.2'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center 45%;
  background-size: 480px 480px;
  pointer-events: none;
  z-index: 1;
}

/* KHUNG VIỀN ĐỒNG ĐÔNG SƠN KÉP */
.ornate-border-light {
  position: relative;
  width: 100%;
  flex: 1;
  border: 1.8px solid rgba(180, 123, 40, 0.72);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  z-index: 2;
  padding: 20px 24px;
  background: rgba(255, 254, 250, 0.78);
}

.ornate-border-light::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(21, 42, 66, 0.16);
  border-radius: 7px;
  pointer-events: none;
}

/* 4 GÓC HỌA TIẾT ĐÔNG SƠN */
.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 — KHOẢNG CÁCH THOÁNG ĐÃNG */
.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 16px;
  z-index: 3;
  gap: 12px;
}

/* 1. HEADER: LOGO IECCD & TÊN VIỆN RÕ NÉT */
.card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.invitation-logo {
  height: 68px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(21, 42, 66, 0.12));
}

.org-full-name {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--ieccd-navy-main);
  text-transform: uppercase;
}

.invitation-intro {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--ieccd-bronze-main);
  text-transform: uppercase;
}

/* 2. TÊN KHÁCH MỜI CÁ NHÂN HÓA — TO, RÕ, DỄ ĐỌC */
.guest-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.guest-ornament-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--ieccd-bronze-main);
  font-size: 0.75rem;
}

.guest-ornament-line .line-wing {
  width: 64px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--ieccd-gold-bright), var(--ieccd-bronze-main), transparent);
}

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

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

.guest-person-name {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--ieccd-navy-main);
  display: inline-block;
  padding: 0 8px;
}

.invitation-action-text {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-slate-muted);
  margin-top: 2px;
}

/* 3. TIÊU ĐỀ SỰ KIỆN TRỌNG ĐẠI — RÕ RÀNG, MẠNH MẼ */
.event-headline-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 820px;
  width: 100%;
}

.event-title {
  font-family: var(--font-sans);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--ieccd-navy-main);
  text-transform: uppercase;
  line-height: 1.25;
}

.event-subtitle-launch {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--ieccd-bronze-main);
  text-transform: uppercase;
}

/* Băng rôn chương trình Ra mắt Chân dung Doanh nhân Văn hóa & Chuyên gia */
.event-program-banner {
  background: var(--gradient-navy-royal);
  border: 1.5px solid var(--ieccd-gold-bright);
  padding: 8px 26px;
  border-radius: 999px;
  box-shadow: 0 4px 15px rgba(21, 42, 66, 0.16);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.event-program-highlight {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fde68a;
  letter-spacing: 0.3px;
}

/* 4. BIỂU TƯỢNG NGHỆ THUẬT IECCD: TRỐNG ĐỒNG – CHIM LẠC – MẶT TRỜI SÁCH MỞ */
.sacred-artwork-container {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.sacred-emblem-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* 5. KHỐI THỜI GIAN, ĐỊA ĐIỂM TẠI SÔNG MÂY & LỊCH TRÌNH CÔ ĐỌNG */
.event-details-card {
  width: 96%;
  max-width: 780px;
  background: #ffffff;
  border: 1.5px solid var(--ieccd-gold-border);
  border-radius: 14px;
  padding: 14px 20px;
  box-shadow: 0 8px 24px rgba(21, 42, 66, 0.07);
}

.details-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px dashed rgba(194, 124, 55, 0.4);
}

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

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

.icon-time {
  background: var(--ieccd-navy-main);
  border: 1.5px solid var(--ieccd-gold-bright);
  color: #fde68a;
}

.icon-location {
  background: linear-gradient(135deg, #9a5b13 0%, #c27c37 100%);
  border: 1.5px solid #fde68a;
  color: #ffffff;
}

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

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

.detail-value {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 800;
}

.text-royal {
  color: var(--ieccd-navy-main);
}

.text-bronze {
  color: var(--ieccd-bronze-dark);
}

.detail-divider {
  width: 1.5px;
  height: 38px;
  background: linear-gradient(180deg, transparent 0%, var(--ieccd-copper-hover) 50%, transparent 100%);
  margin: 0 20px;
}

/* LỊCH TRÌNH 2 MỐC NGẮN GỌN, DỄ ĐỌC */
.agenda-schedule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  text-align: left;
}

.agenda-item {
  background: #f4f8fc;
  border: 1px solid rgba(21, 42, 66, 0.18);
  border-left: 4px solid var(--ieccd-navy-main);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.agenda-item.agenda-item-bronze {
  background: #fffaf0;
  border: 1px solid rgba(194, 124, 55, 0.35);
  border-left: 4px solid var(--ieccd-copper-hover);
}

.agenda-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--ieccd-navy-main);
  text-transform: uppercase;
}

.agenda-item-bronze .agenda-date-badge {
  color: var(--ieccd-bronze-main);
}

.agenda-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ieccd-navy-main);
  display: inline-block;
}

.agenda-item-bronze .agenda-dot {
  background: var(--ieccd-copper-hover);
}

.agenda-title {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ieccd-navy-main);
  line-height: 1.4;
}

/* 6. LỜI CẢM TẠ BIẾT ƠN NGẮN GỌN */
.card-footer-gratitude {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 2px;
}

.gratitude-sentence {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ieccd-navy-main);
  text-align: center;
}

/* ==========================================================================
   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: 1000px;
}

.btn-primary-action {
  background: var(--gradient-navy-royal);
  color: #fde68a;
  border: 1.5px solid var(--ieccd-gold-bright);
  padding: 11px 20px;
  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(21, 42, 66, 0.25);
  transition: all 0.25s ease;
  font-family: var(--font-sans);
}

.btn-primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(21, 42, 66, 0.38);
  filter: brightness(1.08);
}

.btn-bronze-action {
  background: var(--gradient-bronze-gold);
  color: #ffffff;
  border: 1.5px solid #fde68a;
  box-shadow: 0 6px 18px rgba(154, 91, 19, 0.3);
}

.btn-secondary-action {
  background: rgba(255, 253, 247, 0.96);
  border: 1.5px solid var(--ieccd-copper-hover);
  color: var(--ieccd-navy-main);
  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(21, 42, 66, 0.06);
  font-family: var(--font-sans);
}

.btn-secondary-action:hover {
  background: var(--ieccd-navy-main);
  border-color: var(--ieccd-gold-bright);
  color: #fde68a;
  transform: translateY(-2px);
}

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

.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, 28, 48, 0.68);
  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: #fffdf8;
  border: 2px solid var(--ieccd-gold-bright);
  border-radius: 16px;
  width: 100%;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  background: var(--gradient-navy-royal);
  color: #fde68a;
  border-bottom: 1.5px solid var(--ieccd-gold-bright);
}

.modal-title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 800;
  color: #fde68a;
}

.btn-close {
  background: none;
  border: none;
  color: #fde68a;
  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(--ieccd-navy-main);
  margin-bottom: 4px;
  display: block;
}

.form-field-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--ieccd-copper-hover);
  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(--ieccd-navy-main);
  box-shadow: 0 0 0 3px rgba(21, 42, 66, 0.12);
}

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

.preset-chip {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: var(--ieccd-navy-main);
  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(--ieccd-copper-hover);
  color: var(--ieccd-bronze-dark);
}

/* ==========================================================================
   RESPONSIVE DESIGN (IPAD, MOBILE)
   ========================================================================== */
@media (max-width: 768px) {
  .card-outer-shadow {
    padding: 6px;
  }

  .invitation-card.aspect-4-3 {
    aspect-ratio: auto;
    min-height: auto;
    padding: 8px;
  }

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

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

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

  .invitation-logo {
    height: 52px;
  }

  .org-full-name {
    font-size: 0.76rem;
    letter-spacing: 0.6px;
  }

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

  .event-title {
    font-size: 1.32rem;
    letter-spacing: 0.6px;
  }

  .event-program-banner {
    padding: 7px 14px;
    border-radius: 12px;
  }

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

  .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: 62px;
    height: 62px;
  }
  .envelope-card-preview {
    top: 10px;
    left: 14px;
    right: 14px;
    height: 150px;
  }

  .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;
}


/* NÚT COPY NHANH ZOOM ID & MẬT MÃ */
.copy-trigger-inline {
  cursor: pointer;
  border-bottom: 1px dashed #9a5b13;
  transition: color 0.15s ease;
}
.copy-trigger-inline:hover {
  color: #9a5b13;
}
.zoom-cred-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.zoom-cred-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid rgba(21, 42, 66, 0.2);
  padding: 4px 10px;
  border-radius: 7px;
  font-size: 0.84rem;
  color: #152a42;
  cursor: pointer;
  transition: all 0.2s ease;
}
.zoom-cred-pill:hover {
  border-color: #c27c37;
  background: #fffcf2;
}
.btn-inline-copy {
  background: linear-gradient(135deg, #152a42 0%, #23476e 100%);
  color: #fde68a;
  border: 1px solid #d4af37;
  border-radius: 5px;
  padding: 2px 7px;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.btn-inline-copy:hover {
  transform: scale(1.04);
}
