/* ==========================================================================
   WEDDING INVITATION TEMPLATE GALLERY - LUXURY ANTI-GRAVITY STYLING
   ========================================================================== */

:root {
  --gallery-bg-start: #FAF7F2;
  --gallery-bg-end: #F5EFEB;
  --gold-metallic-1: #B38728;
  --gold-metallic-2: #FBF5B7;
  --gold-metallic-3: #DAA520;
  --gold-metallic-4: #AA771C;
  --gold-champagne: #D4AF37;
  --gold-champagne-light: #FBF4DE;
  --gold-glow: rgba(212, 175, 55, 0.35);
  --rose-blush: #F4D7D7;
  --rose-blush-dark: #E5A9A9;
  --burgundy-deep: #7B1113;
  --burgundy-dark: #500708;
  --slate-muted: #64748B;
  --text-dark: #232220;
  --card-glass: rgba(255, 255, 255, 0.72);
  --card-border: rgba(212, 175, 55, 0.25);
  --badge-basic: #3B82F6;
  --badge-premium-start: #8B5CF6;
  --badge-premium-end: #6366F1;
}

/* Reset & Base for Gallery */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.gallery-page {
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(ellipse at 50% 10%, #FFFFFF 0%, var(--gallery-bg-start) 45%, var(--gallery-bg-end) 100%);
  color: var(--text-dark);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Ambient Ray / Vignette Overlay */
.ambient-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 25%, rgba(251, 245, 183, 0.18) 0%, transparent 70%),
              radial-gradient(circle at 10% 85%, rgba(244, 215, 215, 0.22) 0%, transparent 60%);
  z-index: 1;
}

/* Background Particle Canvas */
#gallery-particles-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* Flowing Golden Shimmer Ribbon (SVG Container) */
.shimmer-ribbon-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
  opacity: 0.65;
}

.shimmer-ribbon-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 10px rgba(230, 190, 100, 0.65));
}

.ribbon-glow-trail {
  stroke-dasharray: 240, 480;
  animation: ribbonFlow 16s linear infinite;
}

@keyframes ribbonFlow {
  0% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -1440;
  }
}

/* Main Container Wrapper */
.gallery-layout {
  position: relative;
  z-index: 5;
  max-width: 1560px;
  margin: 0 auto;
  padding: 1.25rem 2rem 4rem;
}

/* TOP NAVIGATION & ACTION BAR */
.gallery-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.5rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 9999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  margin-bottom: 2rem;
  position: sticky;
  top: 1rem;
  z-index: 30;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--slate-muted);
}

.breadcrumbs a {
  color: var(--slate-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.breadcrumbs a:hover {
  color: var(--gold-metallic-3);
}

.breadcrumbs .separator {
  color: rgba(100, 116, 139, 0.4);
}

.breadcrumbs .current {
  color: var(--text-dark);
  font-weight: 600;
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.icon-action-btn {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.28);
  color: var(--text-dark);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.icon-action-btn:hover {
  background: #FFF;
  border-color: var(--gold-champagne);
  color: var(--gold-metallic-4);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px var(--gold-glow);
}

.icon-action-btn svg {
  width: 18px;
  height: 18px;
}

.top-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.15rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #1A1A1A, #2C2C2C);
  color: #FFF;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(212, 175, 55, 0.4);
  transition: all 0.25s ease;
  margin-left: 0.5rem;
}

.top-cta-btn:hover {
  background: linear-gradient(135deg, #B38728, #AA771C);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--gold-glow);
}

/* HEADER SECTION */
.gallery-header {
  text-align: center;
  margin-bottom: 2.25rem;
  padding: 0 1rem;
}

.gallery-title-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-metallic-4);
  background: rgba(251, 245, 183, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.gallery-main-title {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.85rem;
  line-height: 1.2;
  background: linear-gradient(135deg, #8C6512 0%, #D4AF37 35%, #FBF5B7 50%, #B38728 75%, #754E05 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 20px rgba(212, 175, 55, 0.15);
}

.gallery-subtitle {
  font-size: clamp(0.95rem, 1.4vw, 1.12rem);
  color: var(--slate-muted);
  max-width: 680px;
  margin: 0 auto;
  font-weight: 400;
}

/* FILTER & CONTROLS TOOLBAR */
.gallery-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.15rem 1.5rem;
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
}

.toolbar-upper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Category Filter Pills (Mouse Drag Scrollable) */
.category-pills-wrapper {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-width: 280px;
}

.category-pills-scroll {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  scrollbar-width: none; /* Firefox */
  padding: 4px 2px;
}

.category-pills-scroll::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.category-pills-scroll.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.category-pill {
  white-space: nowrap;
  padding: 0.52rem 1.15rem;
  font-size: 0.84rem;
  font-weight: 500;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--slate-muted);
  border: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.22s ease;
}

.category-pill:hover {
  background: #FFFFFF;
  color: var(--gold-metallic-3);
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-1px);
}

.category-pill.active {
  background: linear-gradient(135deg, #232220, #363430);
  color: #FBF5B7;
  border-color: var(--gold-champagne);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  font-weight: 600;
}

/* Toolbar Controls (Right side: Tier dropdown & Search) */
.toolbar-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tier-select-wrapper {
  position: relative;
}

.tier-select {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 0.52rem 2.2rem 0.52rem 1rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-dark);
  border-radius: 9999px;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.tier-select:focus {
  border-color: var(--gold-metallic-3);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.tier-chevron {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  width: 14px;
  height: 14px;
  color: var(--slate-muted);
}

.search-box-wrapper {
  position: relative;
  min-width: 200px;
}

.search-box {
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.52rem 1rem 0.52rem 2.2rem;
  font-size: 0.84rem;
  border-radius: 9999px;
  outline: none;
  transition: all 0.2s ease;
}

.search-box:focus {
  border-color: var(--gold-champagne);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.search-icon {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--slate-muted);
  pointer-events: none;
}

/* ANTI-GRAVITY 3D GRID CONTAINER */
.anti-gravity-scene {
  perspective: 1200px;
  transform-style: preserve-3d;
  width: 100%;
  padding: 1rem 0 3rem;
}

.anti-gravity-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.65rem 1.4rem;
  transform-style: preserve-3d;
}

/* Responsive Grid Breakpoints */
@media (max-width: 1560px) {
  .anti-gravity-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 1280px) {
  .anti-gravity-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1024px) {
  .anti-gravity-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .anti-gravity-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem 0.85rem;
  }
  .gallery-layout {
    padding: 1rem 1rem 3rem;
  }
}

/* INDIVIDUAL TEMPLATE CARD & FLOATING PHYSICS */
.template-card-wrapper {
  position: relative;
  aspect-ratio: 3 / 4.4;
  border-radius: 20px;
  perspective: 1000px;
  will-change: transform;
}

/* Floating animation variations to avoid synchronization */
.float-type-1 {
  animation: floatSlow 5.2s ease-in-out infinite alternate;
  animation-delay: -0.8s;
}

.float-type-2 {
  animation: floatReverse 6.8s ease-in-out infinite alternate;
  animation-delay: -2.3s;
}

.float-type-3 {
  animation: floatSlow 4.6s ease-in-out infinite alternate;
  animation-delay: -1.5s;
}

.float-type-4 {
  animation: floatReverse 7.2s ease-in-out infinite alternate;
  animation-delay: -3.7s;
}

.float-type-5 {
  animation: floatSlow 5.8s ease-in-out infinite alternate;
  animation-delay: -4.1s;
}

.float-type-6 {
  animation: floatReverse 6.2s ease-in-out infinite alternate;
  animation-delay: -1.9s;
}

@keyframes floatSlow {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(0.6deg);
  }
  100% {
    transform: translateY(2px) rotate(-0.3deg);
  }
}

@keyframes floatReverse {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(8px) rotate(-0.5deg);
  }
  100% {
    transform: translateY(-2px) rotate(0.35deg);
  }
}

/* Card Inner & Magnetic Hover Tilt */
.template-card {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  background: var(--card-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--card-border);
  box-shadow: 0 10px 28px rgba(35, 34, 32, 0.08);
  cursor: pointer;
  transition: box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease,
              transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
}

/* Active Hover State (driven dynamically by JS tilt for smooth coordinates) */
.template-card-wrapper:hover {
  z-index: 20;
  animation-play-state: paused;
}

.template-card-wrapper:hover .template-card {
  border-color: rgba(212, 175, 55, 0.65);
  box-shadow: 0 22px 42px -8px rgba(212, 175, 55, 0.32),
              0 0 20px rgba(251, 245, 183, 0.25);
}

/* ==========================================================================
   CINELOVE HOVER-TO-SCROLL INVITATION PREVIEW EFFECT
   ========================================================================== */
.card-media-box {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* Mockup Tall Card Container */
.cinelove-scroll-track {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.cinelove-scroll-content {
  width: 100%;
  height: 220%; /* Extra height to scroll through full invitation */
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.template-card:hover .cinelove-scroll-content {
  transform: translateY(-54%); /* Scrolls down smoothly to reveal full invite */
}

/* Scrolling Inner Sections */
.scroll-mock-section {
  width: 100%;
  position: relative;
}

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

/* Badges (Top Left & Top Right) */
.card-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 12;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFFFFF;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.card-badge-left {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 12;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFFFFF;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.badge-hot {
  background: linear-gradient(135deg, #FF6B6B, #EE5253);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.badge-new {
  background: linear-gradient(135deg, #10B981, #059669);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.badge-trending {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.badge-basic {
  background: #3B82F6;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.badge-premium {
  background: linear-gradient(135deg, #8B5CF6, #6366F1);
  border: 1px solid rgba(255, 255, 255, 0.45);
  position: relative;
  overflow: hidden;
}

.badge-premium::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: rotate(30deg);
  animation: badgeShimmer 3.5s infinite;
}

@keyframes badgeShimmer {
  0% { transform: translateX(-100%) rotate(30deg); }
  35%, 100% { transform: translateX(100%) rotate(30deg); }
}

/* ==========================================================================
   DISTINCT ARCHETYPES & THEMATIC FRAMES (10 STYLES)
   ========================================================================== */

/* 1. VOGUE / EDITORIAL MAGAZINE STYLE */
.archetype-magazine {
  background: #111;
  color: #FFF;
}
.magazine-masthead {
  padding: 0.65rem 0.5rem 0.35rem;
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  background: #000;
  color: #FFF;
  text-transform: uppercase;
}
.magazine-issue-date {
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  color: var(--gold-metallic-2);
  margin-top: 0.15rem;
}

/* 2. THE WEDDING GAZETTE / VINTAGE NEWSPAPER */
.archetype-newspaper {
  background: #F4F1EA;
  color: #232220;
  border: 1.5px solid #232220;
}
.newspaper-banner {
  border-bottom: 2px solid #232220;
  padding: 0.5rem;
  text-align: center;
  background: #EDE8DE;
}
.newspaper-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.newspaper-meta-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.58rem;
  border-top: 1px solid #232220;
  border-bottom: 1px solid #232220;
  padding: 2px 4px;
  margin-top: 3px;
  text-transform: uppercase;
  font-weight: 600;
}

/* 3. BOARDING PASS / PASSPORT AIRLINE */
.archetype-boarding-pass {
  background: #FAF0CA;
  border: 1px solid #0D3B66;
}
.boarding-header {
  background: #0D3B66;
  color: #FFF;
  padding: 0.45rem 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.boarding-barcode {
  background: #FFF;
  padding: 0.4rem;
  display: flex;
  justify-content: center;
  border-top: 1px dashed #0D3B66;
}

/* 4. CHINESE / VIETNAMESE SONG HY ĐỎ */
.archetype-song-hy {
  background: #9E1A1A;
  border: 2px solid #D4AF37;
}
.song-hy-badge-gold {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid #FBF5B7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #FBF5B7;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  margin: 0.65rem auto;
  background: radial-gradient(circle, #D4AF37 0%, #AA771C 100%);
}

/* 5. VELVET NOIR 24K GOLD */
.archetype-velvet-gold {
  background: #14120D;
  border: 1.5px solid #D4AF37;
  box-shadow: inset 0 0 25px rgba(212, 175, 55, 0.15);
}

/* 6. ROMANTIC ARCH FRAME */
.archetype-arch {
  background: #FAF7F2;
}
.arch-card-frame {
  margin: 0.65rem;
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  border-top-left-radius: 110px;
  border-top-right-radius: 110px;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  overflow: hidden;
  height: calc(100% - 1.3rem);
}

/* 7. WATERCOLOR FLORAL */
.archetype-watercolor {
  background: radial-gradient(circle at 10% 20%, #F1FAEE 0%, #FFFFFF 50%, #FAF7F2 100%);
  border: 1px solid rgba(69, 123, 157, 0.25);
}

/* 8. POLAROID WITH HANDWRITTEN NOTE */
.archetype-polaroid {
  background: #FFFFFF;
  padding: 0.5rem 0.5rem 1.75rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.polaroid-handwritten {
  font-family: 'Playfair Display', cursive, serif;
  font-style: italic;
  text-align: center;
  font-size: 0.85rem;
  color: #333;
  margin-top: 0.5rem;
}

/* 9. WAX SEAL ROYAL ENVELOPE */
.archetype-envelope {
  background: radial-gradient(circle at center, #9E1A1A 0%, #7B1113 70%, #500708 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
}

/* 10. MINIMALIST CHIC */
.archetype-minimal-type {
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.08);
}

/* Load More / Pagination Area */
.gallery-pagination-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 3.5rem 0 2rem;
  gap: 1rem;
}

.load-more-btn {
  background: linear-gradient(135deg, #1A1A1A 0%, #2D2A26 100%);
  color: #FBF5B7;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.95rem 2.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.load-more-btn:hover {
  background: linear-gradient(135deg, #B38728 0%, #AA771C 100%);
  color: #FFF;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px var(--gold-glow);
}

.gallery-count-status {
  font-size: 0.85rem;
  color: var(--slate-muted);
  font-weight: 500;
}

.badge-basic {
  background: var(--badge-basic);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.badge-premium {
  background: linear-gradient(135deg, var(--badge-premium-start), var(--badge-premium-end));
  border: 1px solid rgba(255, 255, 255, 0.45);
  position: relative;
  overflow: hidden;
}

.badge-premium::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: rotate(30deg);
  animation: badgeShimmer 3.5s infinite;
}

@keyframes badgeShimmer {
  0% { transform: translateX(-100%) rotate(30deg); }
  35%, 100% { transform: translateX(100%) rotate(30deg); }
}

/* Card Overlays & Types */

/* TYPE A: Photo Centric with bottom gradient & overlay typography */
.card-overlay-photo {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 12, 12, 0.85) 0%, rgba(15, 12, 12, 0.35) 45%, transparent 75%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.15rem 1rem;
  color: #FFFFFF;
  pointer-events: none;
}

.card-tagline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-metallic-2);
  margin-bottom: 0.2rem;
}

.card-names {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.25;
  color: #FFFFFF;
  margin-bottom: 0.25rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.card-footer-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.75);
}

/* TYPE B: Wax Seal Envelope Style */
.card-overlay-envelope {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, #9E1A1A 0%, var(--burgundy-deep) 65%, var(--burgundy-dark) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  text-align: center;
  color: #FFFFFF;
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.wax-seal-graphic {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #D4AF37 0%, #AA771C 65%, #754E05 100%);
  border: 2px solid rgba(251, 245, 183, 0.6);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45), inset 0 2px 4px rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFF;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  margin-bottom: 1rem;
  position: relative;
}

.quill-feather {
  position: absolute;
  top: -12px;
  right: -16px;
  font-size: 1.35rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  transform: rotate(25deg);
}

.envelope-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #FBF5B7;
  margin-bottom: 0.35rem;
}

.envelope-card-subtitle {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
}

/* TYPE C: Arch Frame Minimalist */
.card-overlay-arch {
  position: absolute;
  inset: 0;
  background: #FDFBF7;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.arch-frame {
  width: 100%;
  height: 100%;
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  border-top-left-radius: 120px;
  border-top-right-radius: 120px;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  padding: 1.25rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  background: #FFF;
  box-shadow: inset 0 0 15px rgba(212, 175, 55, 0.08);
}

.arch-floral {
  font-size: 1.25rem;
  color: var(--gold-champagne);
  margin-top: 0.5rem;
}

.arch-quote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.88rem;
  font-style: italic;
  color: var(--slate-muted);
}

.arch-names {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--burgundy-deep);
  line-height: 1.25;
}

.arch-date {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold-metallic-3);
  margin-bottom: 0.5rem;
}

/* Hover Quick-Action Button Overlay */
.card-hover-actions {
  position: absolute;
  inset: 0;
  background: rgba(26, 23, 23, 0.68);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  opacity: 0;
  transition: opacity 0.28s ease;
  padding: 1rem;
  z-index: 10;
}

.template-card:hover .card-hover-actions {
  opacity: 1;
}

.quick-preview-btn {
  background: #FFFFFF;
  color: var(--text-dark);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.6rem 1.15rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: 85%;
  justify-content: center;
}

.quick-preview-btn:hover {
  background: var(--gold-metallic-2);
  color: #1A1A1A;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--gold-glow);
}

.quick-choose-btn {
  background: linear-gradient(135deg, #B38728, #AA771C);
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.6rem 1.15rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(179, 135, 40, 0.35);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: 85%;
  justify-content: center;
}

.quick-choose-btn:hover {
  background: linear-gradient(135deg, #D4AF37, #C5A059);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--gold-glow);
}

/* Empty State */
.gallery-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1rem;
  color: var(--slate-muted);
}

.gallery-empty-state .icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.gallery-empty-state h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1E293B;
  margin-bottom: 0.35rem;
  text-transform: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.gallery-empty-state p {
  font-size: 13.5px;
  color: #64748B;
  text-transform: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ==========================================================================
   LIGHTBOX MODAL (QUICK PREVIEW POPUP)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 16, 16, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

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

.modal-dialog {
  background: #FFFFFF;
  border-radius: 28px;
  max-width: 920px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3),
              0 0 30px rgba(212, 175, 55, 0.2);
  border: 1px solid rgba(212, 175, 55, 0.35);
  display: grid;
  grid-template-columns: 1.15fr 1.35fr;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.modal-backdrop.open .modal-dialog {
  transform: scale(1) translateY(0);
}

@media (max-width: 820px) {
  .modal-dialog {
    grid-template-columns: 1fr;
    max-height: 86vh;
    overflow-y: auto;
  }
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.08);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--text-dark);
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  touch-action: manipulation;
}

.modal-close-btn::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
}

.modal-close-btn:hover {
  background: #1A1A1A;
  color: #FFF;
  transform: rotate(90deg);
}

/* Modal Left: Preview Card */
.modal-preview-visual {
  background: radial-gradient(circle at center, #FAF7F2, #ECE5DD);
  padding: 2.25rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.modal-card-preview-frame {
  width: 100%;
  max-width: 290px;
  aspect-ratio: 3 / 4.2;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16),
              0 0 25px rgba(212, 175, 55, 0.25);
  border: 1px solid rgba(212, 175, 55, 0.4);
  position: relative;
}

.modal-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Modal Right: Details & Actions */
.modal-details-pane {
  padding: 2.5rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #FFF;
}

.modal-header-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.modal-tier-pill {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFF;
}

.modal-category-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate-muted);
}

.modal-template-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.modal-couple-names {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  color: var(--gold-metallic-3);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.modal-description {
  font-size: 0.88rem;
  color: var(--slate-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.modal-feature-list {
  list-style: none;
  margin-bottom: 1.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modal-feature-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-dark);
}

.modal-feature-item svg {
  color: var(--gold-champagne);
  flex-shrink: 0;
}

/* Modal Actions */
.modal-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1rem;
}

.modal-btn-demo {
  flex: 1;
  background: #FAF7F2;
  color: var(--text-dark);
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 0.85rem 1.25rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.modal-btn-demo:hover {
  background: #FFF;
  border-color: var(--gold-champagne);
  box-shadow: 0 4px 14px var(--gold-glow);
  transform: translateY(-2px);
}

.modal-btn-choose {
  flex: 1.2;
  background: linear-gradient(135deg, #B38728, #AA771C);
  color: #FFFFFF;
  border: none;
  padding: 0.85rem 1.45rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 6px 18px rgba(179, 135, 40, 0.35);
  text-decoration: none;
}

.modal-btn-choose:hover {
  background: linear-gradient(135deg, #D4AF37, #B8972E);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--gold-glow);
}

/* Toast Notifications */
.gallery-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(50px);
  background: #1A1A1A;
  color: #FFFFFF;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  z-index: 200;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

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

/* ==========================================================================
   FULL INVITATION CARD ARCHETYPES (10 STYLES APPLIED TO invitation.html)
   ========================================================================== */

/* ==========================================================================
   TOP INTERACTIVE TEMPLATE SWITCHER (LUXURY FLOATING GLASS DOCK)
   ========================================================================== */
.template-switcher-bar {
  position: fixed;
  top: 0.85rem;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: calc(100% - 2rem);
  max-width: 1240px;
  z-index: 1000;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.switcher-inner {
  pointer-events: auto;
  background: rgba(18, 14, 15, 0.86);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(212, 175, 55, 0.38);
  border-radius: 9999px;
  padding: 0.42rem 0.65rem 0.42rem 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 
    0 16px 42px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.switcher-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.switcher-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(170, 119, 28, 0.12));
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 0.28rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #F0D290;
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
}

.switcher-badge-dot {
  width: 6px;
  height: 6px;
  background: #4ADE80;
  border-radius: 50%;
  box-shadow: 0 0 8px #4ADE80;
}

.switcher-picker {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 2px 4px;
  gap: 4px;
}

.switcher-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #E2DFD8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.switcher-icon-btn:hover {
  background: rgba(212, 175, 55, 0.25);
  color: #FFF;
  transform: scale(1.08);
}

.switcher-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.switcher-dropdown {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  outline: none;
  background: transparent;
  color: #FFF;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  padding: 0.35rem 1.8rem 0.35rem 0.6rem;
  cursor: pointer;
  max-width: 290px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  transition: all 0.2s ease;
}

.switcher-dropdown option, 
.switcher-dropdown optgroup {
  background: #1C1819;
  color: #FFF;
}

.switcher-select-arrow {
  position: absolute;
  right: 0.5rem;
  pointer-events: none;
  color: #D4AF37;
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
}

.switcher-glass-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #F5F3EF;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  padding: 0.42rem 0.95rem;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.switcher-glass-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
  color: #FFF;
  transform: translateY(-1px);
}

.switcher-primary-btn {
  background: linear-gradient(135deg, #E6C280 0%, #D4AF37 50%, #B8860B 100%);
  background-size: 200% auto;
  color: #161005;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: inherit;
  padding: 0.45rem 1.15rem;
  border-radius: 9999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.switcher-primary-btn:hover {
  background-position: right center;
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 22px rgba(212, 175, 55, 0.6);
  color: #0A0602;
}

.switcher-primary-btn .btn-arrow {
  transition: transform 0.2s ease;
}

.switcher-primary-btn:hover .btn-arrow {
  transform: translateX(3px);
}

.switcher-subtle-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #C8C5BF;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.42rem 0.85rem;
  border-radius: 9999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.switcher-subtle-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(212, 175, 55, 0.5);
  color: #D4AF37;
}

.switcher-close-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #A8A59E;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.switcher-close-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  color: #FF9494;
}

.reopen-preview-pill {
  position: fixed;
  top: 1rem;
  left: 1.25rem;
  z-index: 999;
  background: rgba(20, 16, 18, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 9999px;
  color: #F5E6C8;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.42rem 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  transition: all 0.25s ease;
}

.reopen-preview-pill:hover {
  transform: translateY(-2px);
  border-color: #D4AF37;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35);
}

body.has-preview-banner {
  padding-top: 5.5rem;
}

body.has-preview-banner .guest-audio-disc {
  top: 5.2rem !important;
  transition: top 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body:not(.has-preview-banner) .guest-audio-disc {
  top: 1.5rem !important;
  transition: top 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 992px) {
  .template-switcher-bar {
    width: calc(100% - 1rem);
    top: 0.5rem;
  }
  .switcher-inner {
    flex-wrap: wrap;
    border-radius: 20px;
    padding: 0.55rem 0.75rem;
    gap: 0.5rem;
  }
  .switcher-badge {
    display: none;
  }
  .switcher-dropdown {
    max-width: 220px;
  }
}

@media (max-width: 640px) {
  .template-switcher-bar {
    top: 0.35rem;
    width: calc(100% - 0.75rem);
  }
  .switcher-inner {
    border-radius: 16px;
    justify-content: center;
    gap: 0.4rem;
  }
  .switcher-dropdown {
    max-width: 160px;
    min-width: 130px;
    font-size: 0.75rem;
  }
  .switcher-glass-btn .btn-text {
    display: none;
  }
  .switcher-primary-btn {
    padding: 0.35rem 0.8rem;
    font-size: 0.75rem;
  }
  .switcher-subtle-btn span {
    display: none;
  }
  body.has-preview-banner {
    padding-top: 6.8rem;
  }
}

/* 1. ARCHETYPE: VOGUE MAGAZINE HIGH-FASHION */
.full-invitation-card.archetype-magazine {
  background: #0E0E0E !important;
  color: #EFEFEF !important;
  border: 1.5px solid rgba(212, 175, 55, 0.5) !important;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8), 0 0 35px rgba(212, 175, 55, 0.15) !important;
}

.full-invitation-card.archetype-magazine::before {
  border: 1px solid rgba(212, 175, 55, 0.25) !important;
}

.full-invitation-card.archetype-magazine .magazine-masthead {
  margin: -3.5rem -2rem 1.75rem;
  padding: 1.75rem 1rem 1rem;
  font-size: 2.4rem;
  letter-spacing: 0.35em;
  background: #000;
  border-bottom: 2px solid rgba(212, 175, 55, 0.5);
  font-family: 'Cinzel', serif;
}

.full-invitation-card.archetype-magazine .magazine-issue-date {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--primary-gold);
  margin-top: 0.35rem;
}

.full-invitation-card.archetype-magazine .card-couple-names {
  color: #FFFFFF !important;
  font-family: 'Cinzel', serif !important;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.full-invitation-card.archetype-magazine .card-couple-names .sep {
  color: var(--primary-gold) !important;
}

.full-invitation-card.archetype-magazine .card-header-badge {
  color: var(--primary-gold) !important;
}

.full-invitation-card.archetype-magazine .card-invitation-text {
  color: #CCCCCC !important;
}

.full-invitation-card.archetype-magazine h3,
.full-invitation-card.archetype-magazine h4 {
  color: var(--primary-gold) !important;
}

.full-invitation-card.archetype-magazine .family-card {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(212, 175, 55, 0.3) !important;
  color: #FFF !important;
}

.full-invitation-card.archetype-magazine .parent-names {
  color: #EEEEEE !important;
}

.full-invitation-card.archetype-magazine .family-badge {
  color: var(--primary-gold) !important;
}

.full-invitation-card.archetype-magazine .ceremony-meta {
  color: #AAAAAA !important;
  border-top-color: rgba(255, 255, 255, 0.12) !important;
}

.full-invitation-card.archetype-magazine .bank-card,
.full-invitation-card.archetype-magazine .wish-card,
.full-invitation-card.archetype-magazine .story-card {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #DDD !important;
}

.full-invitation-card.archetype-magazine .story-title,
.full-invitation-card.archetype-magazine .wish-sender {
  color: #FFF !important;
}

/* 2. ARCHETYPE: THE WEDDING GAZETTE / VINTAGE NEWSPAPER */
.full-invitation-card.archetype-newspaper {
  background: #F4F1EA !important;
  color: #232220 !important;
  border: 3px double #232220 !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35) !important;
}

.full-invitation-card.archetype-newspaper::before {
  border: 1px solid #232220 !important;
  inset: 6px !important;
}

.full-invitation-card.archetype-newspaper .newspaper-banner {
  margin: -3.5rem -2rem 1.5rem;
  padding: 1.5rem 1rem 1rem;
  border-bottom: 2.5px solid #232220;
  background: #ECE7DC;
}

.full-invitation-card.archetype-newspaper .newspaper-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #232220;
}

.full-invitation-card.archetype-newspaper .newspaper-meta-line {
  border-top: 1.5px solid #232220;
  border-bottom: 1.5px solid #232220;
  padding: 4px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  margin-top: 6px;
  color: #232220;
}

.full-invitation-card.archetype-newspaper .wedding-banner-img {
  filter: grayscale(85%) contrast(1.15) sepia(18%);
  border: 2px solid #232220 !important;
  border-radius: 0 !important;
}

.full-invitation-card.archetype-newspaper .card-couple-names {
  font-family: 'Playfair Display', serif !important;
  color: #232220 !important;
  font-size: 2.2rem;
  font-weight: 900;
  text-transform: uppercase;
}

.full-invitation-card.archetype-newspaper .card-couple-names .sep {
  color: #555 !important;
}

.full-invitation-card.archetype-newspaper .family-card {
  background: #ECE7DC !important;
  border: 1.5px solid #232220 !important;
  border-radius: 0 !important;
}

.full-invitation-card.archetype-newspaper .family-badge {
  color: #232220 !important;
}

.full-invitation-card.archetype-newspaper .parent-names {
  color: #232220 !important;
}

.full-invitation-card.archetype-newspaper .ceremony-meta {
  color: #444 !important;
  border-top: 1px dashed #232220 !important;
}

.full-invitation-card.archetype-newspaper h3,
.full-invitation-card.archetype-newspaper h4 {
  color: #232220 !important;
  font-family: 'Playfair Display', serif;
}

.full-invitation-card.archetype-newspaper .card-header-badge {
  color: #232220 !important;
  font-weight: 800;
}

/* 3. ARCHETYPE: BOARDING PASS AIRLINE TICKET */
.full-invitation-card.archetype-boarding-pass {
  background: #FAF0CA !important;
  color: #0D3B66 !important;
  border: 2.5px solid #0D3B66 !important;
  border-radius: 16px !important;
  position: relative;
  overflow: visible;
}

.full-invitation-card.archetype-boarding-pass .boarding-header {
  margin: -3.5rem -2rem 1.5rem;
  padding: 1.25rem 1.5rem;
  background: #0D3B66;
  color: #FFF;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.full-invitation-card.archetype-boarding-pass .card-couple-names {
  color: #0D3B66 !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.full-invitation-card.archetype-boarding-pass .family-card {
  background: #F4E8B8 !important;
  border: 1.5px solid #0D3B66 !important;
  border-radius: 8px !important;
}

.full-invitation-card.archetype-boarding-pass .family-badge {
  color: #0D3B66 !important;
}

.full-invitation-card.archetype-boarding-pass .parent-names,
.full-invitation-card.archetype-boarding-pass .ceremony-meta {
  color: #0D3B66 !important;
}

.full-invitation-card.archetype-boarding-pass h3,
.full-invitation-card.archetype-boarding-pass h4 {
  color: #0D3B66 !important;
}

/* 4. ARCHETYPE: SONG HỶ TRUYỀN THỐNG Á ĐÔNG */
.full-invitation-card.archetype-song-hy {
  background: linear-gradient(160deg, #9E1A1A 0%, #750A0B 100%) !important;
  color: #FFFFFF !important;
  border: 2.5px solid #FFD700 !important;
  box-shadow: 0 25px 70px rgba(117, 10, 11, 0.6), inset 0 0 30px rgba(255, 215, 0, 0.25) !important;
}

.full-invitation-card.archetype-song-hy::before {
  border: 1.5px solid rgba(255, 215, 0, 0.45) !important;
  inset: 8px !important;
}

.full-invitation-card.archetype-song-hy .card-couple-names {
  color: #FFE79A !important;
  font-family: 'Cinzel', serif !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.full-invitation-card.archetype-song-hy .card-couple-names .sep {
  color: #FFFFFF !important;
}

.full-invitation-card.archetype-song-hy .card-header-badge {
  color: #FFD700 !important;
  font-weight: 800;
}

.full-invitation-card.archetype-song-hy h3,
.full-invitation-card.archetype-song-hy h4 {
  color: #FFD700 !important;
}

.full-invitation-card.archetype-song-hy .family-card {
  background: rgba(0, 0, 0, 0.25) !important;
  border: 1.5px solid rgba(255, 215, 0, 0.4) !important;
  color: #FFFFFF !important;
}

.full-invitation-card.archetype-song-hy .family-badge {
  color: #FFD700 !important;
}

.full-invitation-card.archetype-song-hy .parent-names {
  color: #FFFFFF !important;
}

.full-invitation-card.archetype-song-hy .ceremony-meta {
  color: #FFE79A !important;
  border-top-color: rgba(255, 215, 0, 0.3) !important;
}

.full-invitation-card.archetype-song-hy .card-invitation-text {
  color: #FFF !important;
}

.full-invitation-card.archetype-song-hy .bank-card,
.full-invitation-card.archetype-song-hy .wish-card,
.full-invitation-card.archetype-song-hy .story-card {
  background: rgba(0, 0, 0, 0.2) !important;
  border: 1px solid rgba(255, 215, 0, 0.3) !important;
  color: #FFF !important;
}

/* 5. ARCHETYPE: ROMAN ARCH CLASSICAL */
.full-invitation-card.archetype-arch {
  background: #FAF7F2 !important;
}

.full-invitation-card.archetype-arch .wedding-banner-img {
  border-top-left-radius: 160px !important;
  border-top-right-radius: 160px !important;
  border-bottom-left-radius: 14px !important;
  border-bottom-right-radius: 14px !important;
  border: 2px solid rgba(212, 175, 55, 0.5) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* 6. ARCHETYPE: POLAROID SNAPSHOT */
.full-invitation-card.archetype-polaroid {
  background: #FFFFFF !important;
}

.full-invitation-card.archetype-polaroid .wedding-banner-img {
  background: #FFFFFF;
  padding: 10px 10px 35px 10px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
  border: 1px solid #E5E5E5;
  border-radius: 4px !important;
}

/* 7. ARCHETYPE: VELVET NOIR 24K GOLD */
.full-invitation-card.archetype-velvet-gold {
  background: #14120D !important;
  color: #FBF5B7 !important;
  border: 2px solid #D4AF37 !important;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8), inset 0 0 35px rgba(212, 175, 55, 0.2) !important;
}

.full-invitation-card.archetype-velvet-gold .card-couple-names {
  color: #FFFFFF !important;
  text-shadow: 0 0 14px rgba(212, 175, 55, 0.5);
}

.full-invitation-card.archetype-velvet-gold .family-card {
  background: rgba(212, 175, 55, 0.07) !important;
  border: 1px solid rgba(212, 175, 55, 0.35) !important;
}

.full-invitation-card.archetype-velvet-gold .parent-names {
  color: #EEE !important;
}

.full-invitation-card.archetype-velvet-gold h3,
.full-invitation-card.archetype-velvet-gold h4 {
  color: #D4AF37 !important;
}

/* 8. ARCHETYPE: WATERCOLOR FLORAL */
.full-invitation-card.archetype-watercolor {
  background: radial-gradient(circle at 10% 20%, #F1FAEE 0%, #FFFFFF 50%, #FAF7F2 100%) !important;
  border: 1.5px solid rgba(69, 123, 157, 0.3) !important;
}

/* 9. ARCHETYPE: MINIMALIST CHIC */
.full-invitation-card.archetype-minimal-type {
  background: #FFFFFF !important;
  color: #111111 !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06) !important;
}

.full-invitation-card.archetype-minimal-type::before {
  display: none !important;
}

/* 10. ARCHETYPE: CINEMATIC FILM 35MM */
.full-invitation-card.archetype-cinematic {
  background: #171D22 !important;
  color: #ECEFF1 !important;
  border: 1.5px solid #455A64 !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7) !important;
}

.full-invitation-card.archetype-cinematic .card-couple-names {
  color: #FFFFFF !important;
}

.full-invitation-card.archetype-cinematic .family-card {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid #455A64 !important;
}

.full-invitation-card.archetype-cinematic .parent-names {
  color: #ECEFF1 !important;
}

.full-invitation-card.archetype-cinematic h3,
.full-invitation-card.archetype-cinematic h4 {
  color: var(--primary-gold) !important;
}

