/*
  =========================================
  Warmly Duplicate Master CSS System
  Architect: Gemini | Coder: Claude
  Aesthetic: Premium Editorial & High Contrast Warm HSL
  =========================================
*/

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&family=Instrument+Serif:ital@0;1&display=swap');

/* CSS Variables */
:root {
  --template-background: #fcf7ed;
  --template-surface: #fffaf1;
  --template-surface-accent: #f6edd7;
  --template-card: #ffffff;
  --template-card-muted: #f7efe2;
  --template-text: #2f241b;
  --template-muted: #76614d;
  --template-accent: #8a5a2b;
  --template-accent-soft: #e7c88a;
  --template-border: rgba(47, 36, 27, 0.12);
  --template-hero-overlay: rgba(21, 16, 11, 0.18);
  --template-footer-overlay: rgba(17, 12, 9, 0.52);
  --template-button-text: #fff9f1;
  --template-page-background: #fffaf1;

  /* Typography */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--template-page-background);
  color: var(--template-text);
  line-height: 1.5;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button {
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  outline: none;
}

/* Typography Classes */
.serif-display {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

.heading-serif {
  font-family: var(--font-display);
  font-weight: 400;
}

/* Navigation System */
nav.sticky-nav {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 50;
  padding: 18px 16px;
  display: flex;
  justify-content: center;
}

.nav-container {
  width: 100%;
  max-width: 1600px;
  height: 52px;
  background-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border-radius: 9999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  color: #111111;
}

.nav-logo {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.nav-logo:hover {
  opacity: 0.7;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-btn {
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.menu-btn:active {
  transform: scale(0.9);
}

.menu-icon {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 10px;
}

.menu-icon span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: currentColor;
  border-radius: 99px;
  transition: var(--transition-fast);
}

/* Nav Menu Overlay dropdown */
.nav-menu-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 8px;
  min-width: 180px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: scale(0.95);
  opacity: 0;
  pointer-events: none;
  transform-origin: top right;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.nav-menu-dropdown.active {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}

.nav-menu-dropdown a {
  font-size: 18px;
  color: rgba(0, 0, 0, 0.8);
  padding: 8px;
  border-radius: 8px;
}

.nav-menu-dropdown a:hover {
  color: #000;
  background-color: rgba(0, 0, 0, 0.03);
}

/* Hero Section */
#hero-section {
  height: 100svh;
  position: relative;
  background-color: var(--template-page-background-hero);
}

.hero-wrapper {
  height: 100%;
  width: 100%;
  padding: 16px;
  padding-top: 86px; /* Offset sticky nav padding */
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 24px;
  background-color: #f0e6d2;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 0;
  left: 0;
  transform: scaleX(-1);

}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: var(--template-hero-overlay);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 32px;
  z-index: 10;
}

.hero-headline-svg {
  position: absolute;
  bottom: 128px;
  left: 0;
  right: 0;
  width: 100%;
  padding: 0 24px;
  pointer-events: none;
}

.hero-headline-svg text {
  font-family: var(--font-display);
  font-size: 140px;
  font-style: italic;
  fill: #ffffff;
}

.hero-bottom {
  width: 100%;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  pointer-events: none;
}

.hero-divider {
  height: 1px;
  width: 100%;
  background-color: #ffffff;
  opacity: 0.5;
}

.hero-scroll-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  opacity: 0.9;
}

.scroll-indicator {
  display: flex;
  align-items: center;
}

.bounce-arrow {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

/* Story Intro Section */
#story-intro {
  position: relative;
  z-index: 30;
  display: flex;
  min-h: 60svh;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 96px 16px;
  text-align: center;
}

#story-intro p {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 90vw;
}

#story-intro span[data-vision-word] {
  display: inline-block;
  opacity: 0.4;
  transition: opacity 0.3s ease-out;
}

/* Polaroid Scrolling Parallax Section */
#story {
  position: relative;
  width: 100%;
  height: 600vh; /* Extremely long track to scroll through all cards */
  z-index: 30;
}

.story-sticky-container {
  position: sticky;
  top: 0;
  height: 100svh;
  width: 100%;
  overflow: hidden;
}

.story-title-wrapper {
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 30;
}

.story-section-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 15vw, 14vw);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--template-text);
  font-weight: 400;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-section-title.active {
  opacity: 1;
  transform: translateY(0);
}

/* Captions / Chapters text overlays */
.story-chapter-caption {
  position: absolute;
  top: 316px;
  left: 0;
  right: 0;
  z-index: 25;
  width: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: none !important; /* Hidden by default (mobile/tablet) */
}

.story-chapter-caption.active {
  opacity: 1;
}

.chapter-caption-inner {
  width: 100%;
}

.chapter-text-left {
  text-align: right;
  padding-right: 16px;
}

.chapter-text-right {
  text-align: left;
  padding-left: 16px;
}

.story-chapter-caption h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--template-text);
}

.story-chapter-caption p {
  font-size: 18px;
  color: var(--template-muted);
  line-height: 1.4;
}

/* Mobile chapter captions layout */
.mobile-chapter-caption {
  position: absolute;
  top: 150px; /* Positioned nicely above the cards on mobile/tablet */
  left: 0;
  right: 0;
  padding: 0 24px;
  text-align: center;
  z-index: 25;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: block !important; /* Visible on mobile/tablet */
}

.mobile-chapter-caption.active {
  opacity: 1;
}

.mobile-chapter-caption h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--template-text);
}

.mobile-chapter-caption p {
  font-size: 15px;
  color: var(--template-muted);
  max-width: 42rem;
  margin: 0 auto;
  line-height: 1.4;
}

/* Polaroid Card wrapper elements */
.story-card-wrapper {
  position: absolute;
  top: 360px; /* Shifted lower on mobile/tablet to clear the mobile caption */
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 32px;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 50px, 0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-card-wrapper.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

.story-card-spacer-left {
  width: 25%;
  flex-shrink: 0;
}

.story-card-container {
  position: relative;
  flex-shrink: 0;
  margin: 0 16px;
  transition: transform 0.3s ease-out;
}

/* Dynamic Card Width Variables per Chapter */
.story-card-wrapper[data-card="0"],
.story-card-wrapper[data-card="1"],
.story-card-wrapper[data-card="2"],
.story-chapter-caption[data-caption-group="0"] {
  --card-width: 389px;
}

.story-card-wrapper[data-card="3"],
.story-card-wrapper[data-card="4"],
.story-card-wrapper[data-card="5"],
.story-chapter-caption[data-caption-group="1"] {
  --card-width: 458px;
}

.story-card-wrapper[data-card="6"],
.story-card-wrapper[data-card="7"],
.story-card-wrapper[data-card="8"],
.story-chapter-caption[data-caption-group="2"] {
  --card-width: 497px;
}

/* Responsive Overrides for Polaroid Story Section */
@media (max-width: 1023px) {
  .story-card-container {
    width: min(85vw, 380px) !important;
    height: auto !important;
    aspect-ratio: 4 / 3;
    margin: 0 !important;
  }
  
  .polaroid-frame {
    width: 100% !important;
    height: 100% !important;
  }
}

@media (min-width: 1024px) {
  /* Desktop Layout: mathematical separation using matching 3-column Grid */
  .story-chapter-caption {
    display: block !important; /* Show side-captions */
  }

  .mobile-chapter-caption {
    display: none !important; /* Hide mobile-captions */
  }

  .chapter-caption-inner {
    display: grid;
    grid-template-columns: 1fr var(--card-width, 389px) 1fr;
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    align-items: flex-start;
  }

  .chapter-text-left {
    width: 100%;
  }

  .chapter-text-right {
    width: 100%;
  }

  .chapter-text-spacer-left,
  .chapter-text-spacer-right,
  .chapter-text-spacer-three {
    width: 100%;
    margin: 0;
  }

  .story-card-wrapper {
    top: 316px !important; /* Lock to top on desktop */
    display: grid !important;
    grid-template-columns: 1fr var(--card-width, 389px) 1fr;
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    justify-items: center;
    align-items: center;
  }

  .story-card-spacer-left {
    width: 100% !important;
    flex-shrink: 1 !important;
  }

  .story-card-container {
    margin: 0 !important;
  }
}

.polaroid-frame {
  position: relative;
  width: 100%;
  height: 100%;
  background: #f8f3e8;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 4.5%;
  padding-bottom: 18%; /* Exact polaroid white spacing bottom */
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.22);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.polaroid-frame:hover {
  transform: translateY(-8px) scale(1.02) !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
}

.polaroid-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

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

.polaroid-caption {
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  text-align: center;
  font-size: clamp(0.7rem, 1.8vw, 0.95rem);
  color: rgba(0, 0, 0, 0.7);
  font-family: var(--font-body);
  white-space: nowrap;
}

/* Logistics and Countdown Section */
#logistics-section {
  position: relative;
  z-index: 20;
  width: 100%;
}

.logistics-track {
  position: relative;
  height: 200vh;
  width: 100%;
}

.logistics-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  text-align: center;
  overflow: hidden;
}

.logistics-kicker {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 0.92;
  color: var(--template-text);
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.logistics-kicker.active {
  opacity: 1;
  transform: translateY(0);
}

.logistics-date-svg {
  width: 100%;
  max-width: 1120px;
  margin-bottom: 32px;
  overflow: visible;
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.1s;
}

.logistics-date-svg.active {
  opacity: 1;
  transform: translateY(0);
}

.logistics-date-svg text {
  font-family: var(--font-display);
  font-size: 150px;
  fill: #3b2716;
}

/* Countdown Elements */
.countdown-container {
  display: flex;
  align-items: start;
  justify-content: center;
  gap: 8px;
  color: #3b2716;
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.2s;
  min-height: 100px;
}

.countdown-container.active {
  opacity: 1;
  transform: translateY(0);
}

.countdown-segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 64px;
}

@media (min-width: 640px) {
  .countdown-segment {
    width: 80px;
  }
}
@media (min-width: 768px) {
  .countdown-segment {
    width: 96px;
  }
}

.countdown-val {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 4px;
  color: #3b2716;
}

.countdown-label {
  font-size: clamp(0.55rem, 1.5vw, 0.85rem);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #5c3e24;
  opacity: 0.9;
}

.countdown-colon {
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 300;
  color: #3b2716;
  opacity: 0.5;
  margin-top: 4px;
}

/* Venue Info Sub-layout */
.logistics-venue-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 18px;
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.3s;
}

.logistics-venue-info.active {
  opacity: 1;
  transform: translateY(0);
}

.venue-name {
  font-weight: 600;
}

.venue-address {
  color: var(--template-muted);
  border-bottom: 1px solid rgba(47, 36, 27, 0.2);
}

.venue-address:hover {
  opacity: 0.8;
}

/* Details Section Grid */
#details-section {
  padding: 96px 16px;
  background-color: var(--template-surface);
}

.details-header {
  max-width: 800px;
  margin: 0 auto 64px auto;
  text-align: center;
}

.details-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 400;
  margin-bottom: 16px;
}

.details-header p {
  font-size: 18px;
  color: var(--template-muted);
}

.details-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .details-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .details-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.detail-card {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background-color: var(--template-card-muted);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.detail-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.detail-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.detail-card:hover .detail-card-bg {
  transform: scale(1.05);
}

.detail-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 12, 9, 0.85) 0%, rgba(17, 12, 9, 0.2) 60%, rgba(17, 12, 9, 0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #fff9f1;
}

.detail-card-overlay h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 4px;
}

.detail-card-overlay p {
  font-size: 14px;
  opacity: 0.85;
}

/* Vision Block (Base Quote) */
#vision-block {
  background-color: var(--template-surface);
  padding: 64px 16px;
  text-align: center;
  border-top: 1px solid var(--template-border);
  border-bottom: 1px solid var(--template-border);
}

.vision-text {
  max-width: 800px;
  margin: 0 auto;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--template-muted);
}

/* Q&A / FAQ Section */
#faq-section {
  padding: 96px 16px;
  background-color: var(--template-surface);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-container h2 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 400;
  text-align: center;
  margin-bottom: 16px;
}

.faq-intro {
  text-align: center;
  font-size: 16px;
  color: var(--template-muted);
  margin-bottom: 48px;
}

.faq-contact-link {
  color: var(--template-accent);
  font-weight: 500;
  border-bottom: 1px solid rgba(138, 90, 43, 0.3);
}

.faq-contact-link:hover {
  border-bottom-color: var(--template-accent);
}

.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  border-bottom: 1px solid var(--template-border);
  padding-bottom: 20px;
}

.faq-question-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  padding: 8px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--template-text);
}

.faq-toggle-icon {
  width: 20px;
  height: 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-toggle-icon::before,
.faq-toggle-icon::after {
  content: '';
  position: absolute;
  background-color: currentColor;
  transition: transform 0.3s ease;
}

/* Horizontal bar */
.faq-toggle-icon::before {
  width: 14px;
  height: 1.5px;
}

/* Vertical bar */
.faq-toggle-icon::after {
  width: 1.5px;
  height: 14px;
}

.faq-item.active .faq-toggle-icon::after {
  transform: rotate(90deg) scaleY(0);
}

.faq-answer-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer-inner {
  padding-top: 12px;
  padding-bottom: 8px;
  font-size: 16px;
  color: var(--template-muted);
  line-height: 1.5;
  white-space: pre-line; /* Renders linebreaks from original JSON correctly */
}

/* Footer Section */
footer.site-footer {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.footer-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.footer-overlay {
  position: absolute;
  inset: 0;
  background-color: var(--template-footer-overlay);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  color: #fff9f1;
  text-align: center;
}

.footer-quote {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-style: italic;
  font-weight: 400;
  max-width: 900px;
  line-height: 1.25;
  margin-bottom: 64px;
}

.footer-credit {
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 4px;
  transition: var(--transition-fast);
}

.footer-credit:hover {
  opacity: 1;
  border-bottom-color: rgba(255, 255, 255, 1);
}

/* Detail Drawers / Side Overlays System */
.details-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: rgba(17, 12, 9, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.details-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.details-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 680px;
  background-color: var(--template-surface);
  box-shadow: -10px 0 50px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.details-drawer.active {
  transform: translateX(0);
}

.drawer-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  border: 1px solid var(--template-border);
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--template-muted);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: var(--transition-smooth);
}

.drawer-close-btn:hover {
  transform: rotate(90deg);
  background-color: #ffffff;
  color: var(--template-text);
  border-color: rgba(47, 36, 27, 0.3);
}

.drawer-content-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 80px 32px 64px 32px;
}

@media (min-width: 768px) {
  .drawer-content-scroll {
    padding: 96px 56px 64px 56px;
  }
}

.drawer-title {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 12px;
  font-weight: 400;
}

.drawer-subtitle {
  font-size: 16px;
  color: var(--template-muted);
  margin-bottom: 48px;
  line-height: 1.5;
}

.drawer-divider {
  height: 1px;
  background-color: var(--template-border);
  margin: 40px 0;
}

/* Modular Drawer Sections styling */
.drawer-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

.drawer-section-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--template-accent);
  font-weight: 600;
}

.drawer-section-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
}

.drawer-section-body {
  font-size: 16px;
  color: var(--template-muted);
  line-height: 1.6;
  white-space: pre-line;
}

/* Bridal Party details page layouts */
.bridal-party-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 16px;
}

.bridal-party-title {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 16px;
  font-weight: 400;
  border-bottom: 1px solid var(--template-border);
  padding-bottom: 8px;
}

/* Journey Photo Gallery Grid */
.journey-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.journey-card {
  background: var(--template-card);
  border: 1px solid var(--template-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.journey-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.journey-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.journey-card-caption {
  padding: 14px 16px;
}

.journey-card-caption h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--template-text);
  margin-bottom: 4px;
}

.journey-card-caption p {
  font-size: 13px;
  color: var(--template-muted);
  line-height: 1.4;
}

.bridal-party-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px;
  background-color: var(--template-card-muted);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.party-avatar {
  width: 80px;
  height: 80px;
  border-radius: 9999px;
  background-color: var(--template-surface-accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--template-muted);
  font-size: 24px;
  font-family: var(--font-display);
  font-style: italic;
}

.party-name {
  font-weight: 600;
  font-size: 15px;
}

.party-role {
  font-size: 12px;
  color: var(--template-muted);
}

/* Spotify Embed Style */
.spotify-embed-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}


/* Floating click-hearts canvas layers overlay */
#click-hearts-canvas {
  position: fixed;
  inset: 0;
  z-index: 99999;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  display: block;
}

/* =========================================
   8. Favorite People Page & Bubble System
   ========================================= */
.party-page-body {
  background: radial-gradient(circle at 50% 0%, rgba(231, 200, 138, 0.22), transparent 55%), var(--template-page-background);
}

.party-page-main {
  padding-top: 110px;
  padding-bottom: 90px;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.party-header-section {
  text-align: center;
  margin-bottom: 60px;
}

.party-hero-badge {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--template-accent);
  background: var(--template-surface-accent);
  padding: 6px 18px;
  border-radius: 99px;
  margin-bottom: 16px;
  border: 1px solid rgba(138, 90, 43, 0.2);
}

.party-title {
  font-size: 4rem;
  font-style: italic;
  line-height: 1.05;
  margin-bottom: 16px;
  color: var(--template-text);
}

.party-subtitle {
  font-size: 18px;
  color: var(--template-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

.party-columns-container {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 900px) {
  .party-columns-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .party-title {
    font-size: 3rem;
  }
}

.party-column {
  background: rgba(255, 250, 241, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--template-border);
  border-radius: 28px;
  padding: 36px 24px;
  box-shadow: 0 8px 32px rgba(47, 36, 27, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.party-column:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(47, 36, 27, 0.08);
}

.party-column.shared-side {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--template-accent-soft);
  box-shadow: 0 12px 36px rgba(138, 90, 43, 0.12);
  position: relative;
}

.party-column.shared-side::before {
  content: '✨ Feature';
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--template-accent);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 4px 12px;
  border-radius: 99px;
}

.column-header {
  text-align: center;
  margin-bottom: 28px;
  border-bottom: 1px dashed var(--template-border);
  padding-bottom: 18px;
}

.column-tag {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--template-muted);
  margin-bottom: 6px;
}

.column-tag.bride-tag {
  color: #be185d;
}

.column-tag.groom-tag {
  color: #1e3a8a;
}

.column-tag.shared-tag {
  color: var(--template-accent);
}

.column-header h2 {
  font-size: 26px;
  font-weight: 400;
}

/* Sub-section headers within column */
.party-group-section {
  margin-bottom: 24px;
}

.group-title {
  font-size: 20px;
  font-style: italic;
  font-weight: 400;
  color: var(--template-accent);
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}

.column-section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--template-border), transparent);
  margin: 28px 0;
}

.bubbles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
  align-items: start;
  gap: 28px 12px;
  width: 100%;
}

@media (max-width: 480px) {
  .bubbles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Person Bubble Item */
.person-bubble-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  width: 90px;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.person-bubble-item:hover {
  transform: translateY(-8px) scale(1.08);
}

.bubble-avatar-frame {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--template-accent-soft), var(--template-surface-accent), #ffffff);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.person-bubble-item:hover .bubble-avatar-frame {
  box-shadow: 0 12px 28px rgba(138, 90, 43, 0.28);
}

.bubble-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.bubble-avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #f6edd7, #e7c88a);
  color: var(--template-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.05em;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.6);
}

.bubble-person-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  color: var(--template-text);
  line-height: 1.2;
}

.bubble-person-role {
  font-size: 11px;
  color: var(--template-muted);
  margin-top: 2px;
}

/* Modal Overlay & Card */
.person-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(20, 15, 11, 0.65);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.person-modal-card {
  background: var(--template-card);
  border-radius: 24px;
  max-width: 540px;
  width: 100%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.person-modal-overlay.active .person-modal-card {
  transform: scale(1);
}

.person-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--template-text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease, transform 0.2s ease;
}

.person-modal-close:hover {
  background: #ffffff;
  transform: scale(1.1);
}

.modal-photo-wrapper {
  position: relative;
  width: 100%;
  height: 320px;
  background-color: var(--template-card-muted);
}

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

.modal-relationship-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  color: var(--template-accent);
}

.modal-info-content {
  padding: 24px 28px 32px;
}

.modal-person-name {
  font-size: 2rem;
  line-height: 1.1;
  margin-bottom: 4px;
}

.modal-person-role {
  font-size: 14px;
  color: var(--template-muted);
  font-weight: 500;
}

.modal-divider {
  height: 1px;
  background-color: var(--template-border);
  margin: 16px 0;
}

.modal-person-note {
  font-size: 15px;
  color: var(--template-text);
  line-height: 1.6;
}

.nav-back-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--template-text);
  margin-right: 12px;
  transition: opacity 0.2s ease;
}

.nav-back-link:hover {
  opacity: 0.7;
}

/* =========================================
   9. 5 cm Diameter Circle Avatar System (Right Drawer)
   ========================================= */
.drawer-bubbles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(5cm, 1fr));
  justify-items: center;
  align-items: start;
  gap: 28px 16px;
  margin-top: 20px;
  margin-bottom: 32px;
}

.drawer-person-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  width: 5cm;
  max-width: 85vw;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-person-bubble:hover {
  transform: translateY(-6px) scale(1.04);
}

.drawer-5cm-avatar {
  width: 5cm;
  height: 5cm;
  max-width: 85vw;
  max-height: 85vw;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--template-accent-soft), var(--template-surface-accent), #ffffff);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.drawer-person-bubble:hover .drawer-5cm-avatar {
  box-shadow: 0 14px 32px rgba(138, 90, 43, 0.3);
}

.drawer-5cm-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.drawer-5cm-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #f6edd7, #e7c88a);
  color: var(--template-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 500;
  letter-spacing: 0.05em;
  box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.6);
}

.drawer-person-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--template-text);
  line-height: 1.2;
}

.drawer-person-role {
  font-size: 13px;
  color: var(--template-muted);
  margin-top: 4px;
}

/* =========================================
   10. Admin Portal & Management System (loginsss.html)
   ========================================= */
.admin-page-body {
  background-color: #f7f3eb;
  min-height: 100vh;
}

.admin-passcode-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 15, 11, 0.75);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.admin-lock-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 40px 32px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.lock-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.lock-subtitle {
  font-size: 14px;
  color: var(--template-muted);
  margin-bottom: 24px;
}

.admin-input, .admin-select, .admin-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--template-border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  background: #fffaf1;
  color: var(--template-text);
  margin-bottom: 12px;
  transition: border-color 0.2s ease;
}

.admin-input:focus, .admin-select:focus, .admin-textarea:focus {
  outline: none;
  border-color: var(--template-accent);
}

.admin-submit-btn, .admin-primary-btn {
  width: 100%;
  background: var(--template-text);
  color: var(--template-button-text);
  padding: 14px;
  border-radius: 99px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.admin-submit-btn:hover, .admin-primary-btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.admin-error-text {
  font-size: 13px;
  color: #dc2626;
  margin-bottom: 12px;
}

.admin-header {
  background: #ffffff;
  border-bottom: 1px solid var(--template-border);
  padding: 20px 32px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.admin-header-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-badge {
  display: inline-block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--template-accent);
  background: var(--template-surface-accent);
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 4px;
}

.admin-nav-link {
  font-size: 14px;
  font-weight: 500;
  margin-right: 16px;
}

.admin-lock-btn, .admin-secondary-btn {
  padding: 8px 16px;
  border-radius: 99px;
  border: 1px solid var(--template-border);
  background: #ffffff;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s ease;
}

.admin-main-container {
  max-width: 1280px;
  margin: 40px auto;
  padding: 0 24px;
}

.admin-grid-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 900px) {
  .admin-grid-layout {
    grid-template-columns: 1fr;
  }
}

.admin-card-panel {
  background: #ffffff;
  border-radius: 20px;
  padding: 28px 24px;
  border: 1px solid var(--template-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.panel-title {
  font-size: 24px;
  margin-bottom: 4px;
}

.panel-subtitle {
  font-size: 14px;
  color: var(--template-muted);
  margin-bottom: 24px;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--template-muted);
  margin-bottom: 6px;
}

.admin-alert-banner {
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
}

.admin-alert-banner.success {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.admin-alert-banner.error {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.admin-person-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--template-border);
  background: #fffaf1;
  margin-bottom: 12px;
}

.admin-person-photo-preview {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--template-accent-soft);
}

.admin-person-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-person-details {
  flex: 1;
}

.admin-person-meta {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}

.admin-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 99px;
  background: #e5e7eb;
}

.admin-tag.bride-badge { background: #fce7f3; color: #be185d; }
.admin-tag.groom-badge { background: #dbeafe; color: #1e40af; }
.admin-tag.shared-badge { background: #fef3c7; color: #92400e; }
.admin-tag.category-badge { background: #f3f4f6; color: #4b5563; }

.admin-person-name {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.2;
}

.admin-person-role {
  font-size: 12px;
  color: var(--template-muted);
}

.admin-person-note {
  font-size: 12px;
  color: var(--template-text);
  font-style: italic;
  margin-top: 4px;
}

.admin-delete-btn {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.admin-delete-btn:hover {
  background: #fca5a5;
}

.panel-header-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

/* =========================================
   11. Slidable Carousel Modal & File Upload UI
   ========================================= */
.modal-photo-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 380px;
  background-color: #1a1614;
  overflow: hidden;
}

.slider-track-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.modal-slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.slider-slide {
  min-width: 100%;
  height: 100%;
  flex-shrink: 0;
}

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

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #1a1614;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: background 0.2s ease, transform 0.2s ease;
}

.slider-arrow:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev-arrow {
  left: 12px;
}

.slider-arrow.next-arrow {
  right: 12px;
}

.modal-slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 99px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.slider-dot.active {
  background: #ffffff;
  transform: scale(1.3);
}

.file-upload-box {
  background: #fffaf1;
  border: 1px dashed var(--template-border);
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 14px;
}

.admin-file-input {
  width: 100%;
  font-size: 13px;
  margin-top: 4px;
}

.file-help-text {
  display: block;
  font-size: 11px;
  color: var(--template-muted);
  margin-top: 2px;
}

.upload-status-bar {
  font-size: 13px;
  font-weight: 600;
  color: var(--template-accent);
  background: #fef3c7;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
  text-align: center;
}

.count-badge {
  background: #e0e7ff;
  color: #3730a3;
}

/* =========================================
   Wedding Invitation Cards Showcase
   ========================================= */
.invitation-section {
  position: relative;
  z-index: 25;
  padding: 100px 20px;
  background: radial-gradient(circle at 50% 15%, #fffbf4 0%, var(--template-surface) 60%, var(--template-background) 100%);
  border-top: 1px solid rgba(138, 90, 43, 0.1);
  border-bottom: 1px solid rgba(138, 90, 43, 0.1);
  overflow: hidden;
}

.invitation-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.invitation-header {
  text-align: center;
  max-width: 760px;
  margin-bottom: 48px;
}

.invitation-eyebrow {
  display: inline-block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--template-accent);
  margin-bottom: 12px;
}

.invitation-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--template-text);
  margin-bottom: 14px;
}

.invitation-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--template-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}

/* Action Controls & Tab Pills */
.invitation-action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
}

.invitation-magic-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #2f241b 0%, #4a382a 100%);
  color: #fff9f1;
  border: 1px solid rgba(231, 200, 138, 0.4);
  padding: 10px 22px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(47, 36, 27, 0.15);
  transition: var(--transition-smooth);
}

.invitation-magic-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(47, 36, 27, 0.28);
  border-color: rgba(231, 200, 138, 0.8);
}

.invitation-magic-btn .magic-icon {
  font-size: 16px;
  transition: transform 0.4s ease;
}

.invitation-magic-btn:hover .magic-icon {
  transform: rotate(20deg) scale(1.15);
}

.invitation-tab-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(47, 36, 27, 0.04);
  padding: 5px;
  border-radius: 9999px;
  border: 1px solid rgba(47, 36, 27, 0.08);
}

.invitation-tab-pill {
  border: none;
  background: transparent;
  color: var(--template-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 9999px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.invitation-tab-pill:hover {
  color: var(--template-text);
}

.invitation-tab-pill.active {
  background: #ffffff;
  color: var(--template-text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  font-weight: 600;
}

/* Invitation Display Stage & Deck */
.invitation-display-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.invitation-deck {
  position: relative;
  width: 100%;
  max-width: 960px;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  margin: 16px 0 24px 0;
  transition: min-height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
  .invitation-deck {
    min-height: 600px;
  }
}

/* Individual Card Item */
.invitation-card-item {
  position: absolute;
  width: 290px;
  aspect-ratio: 1240 / 1748;
  border-radius: 18px;
  cursor: pointer;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease, box-shadow 0.6s ease;
  user-select: none;
}

@media (min-width: 640px) {
  .invitation-card-item {
    width: 340px;
  }
}

@media (min-width: 1024px) {
  .invitation-card-item {
    width: 390px;
  }
}

.invitation-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 
    0 24px 60px rgba(47, 36, 27, 0.16),
    0 6px 18px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(212, 175, 55, 0.25);
  background: #ffffff;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.invitation-card-item:hover .invitation-card-inner {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 32px 75px rgba(47, 36, 27, 0.22),
    0 10px 24px rgba(0, 0, 0, 0.12),
    0 0 0 2px rgba(212, 175, 55, 0.45);
}

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

.card-glass-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.05) 100%);
  pointer-events: none;
}

.card-caption-badge {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  color: #2f241b;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  pointer-events: none;
}

.card-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2563eb;
}

.card-badge-dot.red-dot {
  background: #9d0000;
}

/* =========================================================
   ANIMATION STATES: Stacked (Initial) vs Unfolded (Slid Apart)
   ========================================================= */

/* INITIAL STATE: Stacked (3.png on top, others hidden directly behind) */
.invitation-deck.stacked .card-primary {
  z-index: 10;
  transform: translate(0, 0) rotate(0deg) scale(1);
  opacity: 1;
}

.invitation-deck.stacked .card-secondary {
  z-index: 8;
  transform: translate(0, 0) scale(0.98) rotate(-1.5deg);
  opacity: 0.95;
}

.invitation-deck.stacked .card-std-en {
  z-index: 6;
  transform: translate(0, 0) scale(0.96) rotate(1.2deg);
  opacity: 0.85;
}

.invitation-deck.stacked .card-std-jp {
  z-index: 4;
  transform: translate(0, 0) scale(0.94) rotate(-2.2deg);
  opacity: 0.75;
}

/* UNFOLDED STATE: 
   Secondary card (floral 8.png) slides to the left
   Primary card (red 3.png) shifts to the right and both center symmetrically!
*/
.invitation-deck.unfolded .card-secondary {
  z-index: 9;
  transform: translate(-54%, 0) rotate(-2deg);
  opacity: 1;
}

.invitation-deck.unfolded .card-primary {
  z-index: 10;
  transform: translate(54%, 0) rotate(1.5deg);
  opacity: 1;
}

.invitation-deck.unfolded .card-std-en {
  z-index: 4;
  transform: translate(0, 15px) scale(0.92);
  opacity: 0;
  pointer-events: none;
}

.invitation-deck.unfolded .card-std-jp {
  z-index: 3;
  transform: translate(0, 20px) scale(0.9);
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 767px) {
  .invitation-deck.unfolded .card-secondary {
    transform: translate(-36%, 0) rotate(-2deg);
  }
  .invitation-deck.unfolded .card-primary {
    transform: translate(36%, 0) rotate(1.5deg);
  }
}

/* ALL 4 CARDS EXPANDED GRID VIEW */
.invitation-deck.mode-all {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  position: relative;
  min-height: auto;
  max-width: 860px;
}

@media (min-width: 900px) {
  .invitation-deck.mode-all {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
  }
}

.invitation-deck.mode-all .invitation-card-item {
  position: relative;
  width: 100%;
  transform: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* SINGLE CARD FOCUS VIEW */
.invitation-deck.mode-single .invitation-card-item {
  transform: scale(0.85) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.invitation-deck.mode-single .invitation-card-item.focused-card {
  z-index: 20;
  transform: translate(0, 0) scale(1) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Prompt Hint */
.invitation-hint-prompt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--template-muted);
  margin-top: 14px;
  text-align: center;
}

/* =========================================
   High-Res Invitation Lightbox Modal
   ========================================= */
.invitation-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 13, 9, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.lightbox-container {
  position: relative;
  z-index: 10;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.92);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.invitation-lightbox-overlay.active .lightbox-container {
  transform: scale(1);
}

.lightbox-close-btn {
  position: absolute;
  top: -44px;
  right: 0;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

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

.lightbox-header {
  margin-bottom: 12px;
  text-align: center;
}

.lightbox-header h4 {
  color: #fff9f1;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.lightbox-image-wrapper {
  width: 100%;
  max-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-image-wrapper img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 16px;
}

.lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 14px;
  padding: 0 8px;
}

.lightbox-nav-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff9f1;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lightbox-nav-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-counter {
  color: rgba(255, 249, 241, 0.7);
  font-size: 13px;
  font-weight: 500;
}

/* =========================================
   Story Love Poem Interlude Section
   ========================================= */
.poem-section {
  position: relative;
  z-index: 20;
  padding: 120px 24px;
  background: radial-gradient(circle at 50% 50%, #fffcf6 0%, var(--template-surface) 65%, var(--template-background) 100%);
  overflow: hidden;
}

.poem-container {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.poem-decoration-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--template-accent);
  margin-bottom: 32px;
}

.poem-sparkle {
  font-size: 14px;
  opacity: 0.7;
}

.poem-heart {
  font-size: 22px;
  color: var(--template-accent);
  filter: drop-shadow(0 2px 6px rgba(138, 90, 43, 0.25));
}

.poem-divider-line {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--template-accent-soft), transparent);
}

.poem-card {
  position: relative;
  width: 100%;
  padding: 56px 40px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.28);
  box-shadow: 
    0 24px 60px rgba(47, 36, 27, 0.07),
    0 4px 16px rgba(0, 0, 0, 0.03),
    0 0 0 1px rgba(255, 255, 255, 0.9);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.poem-card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 32px 75px rgba(47, 36, 27, 0.1),
    0 6px 20px rgba(0, 0, 0, 0.05),
    0 0 0 1px rgba(212, 175, 55, 0.4);
}

.poem-quote-mark {
  position: absolute;
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 1;
  color: var(--template-accent-soft);
  opacity: 0.4;
  pointer-events: none;
}

.poem-quote-mark.left-quote {
  top: 16px;
  left: 24px;
}

.poem-quote-mark.right-quote {
  bottom: -10px;
  right: 24px;
}

.poem-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
}

.poem-line {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.2vw, 2.3rem);
  font-style: italic;
  color: var(--template-text);
  line-height: 1.45;
  letter-spacing: 0.015em;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.poem-section.active .poem-line {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--line-idx, 0) * 0.12s);
}

.poem-line-accent {
  color: var(--template-accent);
  font-weight: 500;
  margin-top: 6px;
}

.poem-line-highlight {
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  color: #7b4f24;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(138, 90, 43, 0.12);
}

.poem-footer {
  margin-top: 32px;
}

.poem-names {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--template-muted);
  font-weight: 400;
}

