/**
 * Integrate Edge Digital Invitations - Platform Styles (UI/UX Pro Max)
 * Modern Luxury, Editorial Elegance & Mobile-First Precision
 */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800;900&family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,400;1,600&family=Playfair+Display:ital,wght@0,600;0,700;1,500;1,600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --font-title: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-accent: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Primary Platform Palette */
  --color-dark: #0f172a;
  --color-dark-soft: #1e293b;
  --color-gray-dark: #334155;
  --color-gray-muted: #64748b;
  --color-gray-light: #f1f5f9;
  --color-border-subtle: #e2e8f0;
  --color-white: #ffffff;

  /* Luxury Accents */
  --color-gold: #c59b27;
  --color-gold-hover: #b0891d;
  --color-gold-light: #fef9ed;
  --color-gold-glow: rgba(197, 155, 39, 0.18);
  --color-maroon: #80182c;
  --color-emerald: #105638;

  /* Elevation & Shadows */
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.08);
  --shadow-luxury: 0 24px 60px -12px rgba(128, 24, 44, 0.12), 0 0 0 1px rgba(197, 155, 39, 0.2);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* Transitions */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.18s ease;
  --transition-smooth: 0.28s var(--ease-spring);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: #fcfbfa;
  color: var(--color-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Background Ambient Orbs */
.bg-ambient-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
  background: 
    radial-gradient(circle at 15% 15%, rgba(197, 155, 39, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(128, 24, 44, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(16, 86, 56, 0.03) 0%, transparent 60%);
}

.platform-container {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .platform-container {
    padding: 0 0.85rem 3rem;
  }
}

/* =========================================================
   TOP PLATFORM NAVIGATION (Frosted Glassmorphism)
   ========================================================= */
.platform-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  margin: 1rem 0 2rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(197, 155, 39, 0.22);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 1rem;
  z-index: 100;
  transition: all var(--transition-smooth);
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
}

.brand-logo-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(197, 155, 39, 0.3);
  transition: transform 0.5s var(--ease-spring);
  flex-shrink: 0;
}

.brand-badge:hover .brand-logo-badge {
  transform: rotate(90deg) scale(1.05);
}

.brand-company {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: #0f172a;
  white-space: nowrap;
}

.nav-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-gray-muted);
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}

.nav-back-link:hover {
  color: var(--color-dark);
  background: rgba(0, 0, 0, 0.04);
}

/* =========================================================
   HERO SECTION (Luxury Editorial Presentation)
   ========================================================= */
.landing-hero {
  text-align: center;
  padding: 2.25rem 1rem 3rem;
  position: relative;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.25rem;
  background: linear-gradient(135deg, rgba(254, 249, 237, 0.9) 0%, rgba(255, 255, 255, 0.9) 100%);
  border: 1px solid rgba(197, 155, 39, 0.35);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a7213;
  box-shadow: 0 4px 16px rgba(197, 155, 39, 0.1);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  color: #1a1a24;
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin-bottom: 0.65rem;
}

.hero-tagline {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(1.2rem, 2.8vw, 1.55rem);
  color: var(--color-gold);
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-subtext {
  font-size: 1.05rem;
  color: var(--color-gray-muted);
  max-width: 620px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 2.2rem;
  background: linear-gradient(135deg, #80182c 0%, #b8860b 100%);
  color: var(--color-white);
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(128, 24, 44, 0.28);
  transition: all var(--transition-smooth);
  border: none;
  cursor: pointer;
}

.hero-cta-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 36px rgba(128, 24, 44, 0.38);
}

/* =========================================================
   OCCASION SELECTOR
   ========================================================= */
.occasions-section {
  max-width: 680px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-eyebrow {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-gold);
  margin-bottom: 0.35rem;
}

.section-main-title {
  font-family: var(--font-title);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--color-dark);
}

.occasion-dropdown-wrapper {
  max-width: 540px;
  margin: 1.25rem auto 0;
  text-align: left;
}

.occasion-main-dropdown {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.95rem 1.3rem;
  font-size: 1.02rem;
  font-weight: 700;
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-gold);
  background: #ffffff;
  color: var(--color-dark);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(197, 155, 39, 0.12);
  transition: all var(--transition-smooth);
}

@media (max-width: 640px) {
  .occasion-dropdown-wrapper {
    margin: 1rem auto 0;
  }
  .occasion-main-dropdown {
    padding: 0.65rem 0.9rem;
    font-size: 0.9rem;
    border-radius: 10px;
  }
}

.occasion-main-dropdown:focus {
  outline: none;
  box-shadow: 0 0 0 4px var(--color-gold-glow), 0 8px 24px rgba(197, 155, 39, 0.15);
}

/* =========================================================
   MOBILE VIEW SWITCHER TABS (≤ 992px)
   Allows seamless toggling between Form & Live Preview
   ========================================================= */
.mobile-view-tabs {
  display: none;
  position: sticky;
  top: 0.5rem;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 5px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(197, 155, 39, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  margin: 0 auto 1.5rem;
  max-width: 380px;
  width: 100%;
}

.mobile-tab-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-gray-muted);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mobile-tab-btn.active {
  background: linear-gradient(135deg, #80182c 0%, #b8860b 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(128, 24, 44, 0.25);
}

.mobile-tab-btn .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.35);
  animation: pulseDot 2s infinite;
}

@media (max-width: 992px) {
  .platform-nav {
    position: relative;
    top: 0;
    margin: 0.75rem 0 1.25rem;
    padding: 0.75rem 1.15rem;
    z-index: 20;
  }

  .mobile-view-tabs {
    display: flex;
    top: 0.5rem;
    z-index: 1000;
  }

  /* When on mobile and preview tab is active */
  body.mobile-tab-preview-active .form-panel-card {
    display: none !important;
  }
  body.mobile-tab-preview-active .preview-pane-wrap {
    display: block !important;
  }

  /* When on mobile and edit tab is active */
  body:not(.mobile-tab-preview-active) .preview-pane-wrap {
    display: none;
  }
  body:not(.mobile-tab-preview-active) .form-panel-card {
    display: block;
  }

  body.mobile-tab-preview-active .mobile-back-to-edit-bar {
    display: block !important;
  }
}

/* =========================================================
   CREATOR STUDIO LAYOUT (Desktop Split / Mobile Stack)
   ========================================================= */
.creator-studio-section {
  scroll-margin-top: 5rem;
  width: 100%;
  max-width: 100%;
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 2.25rem;
  align-items: start;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 992px) {
  .studio-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
}

.studio-grid > * {
  min-width: 0;
  max-width: 100%;
}

/* =========================================================
   FORM PANEL (Elevated Card System)
   ========================================================= */
.form-panel-card {
  background: #ffffff;
  border: 1px solid rgba(197, 155, 39, 0.22);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2.25rem 2.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .form-panel-card {
    padding: 1.15rem 0.9rem 1.4rem;
    border-radius: var(--radius-md);
  }
}

/* Workflow Steps Bar */
.workflow-steps-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border-subtle);
  margin-bottom: 1.35rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
  scrollbar-width: none;
}

.workflow-steps-bar::-webkit-scrollbar {
  display: none;
}

.workflow-step-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-gray-muted);
  white-space: nowrap;
}

.workflow-step-pill .step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-gold-light);
  color: #9a7213;
  border: 1px solid rgba(197, 155, 39, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
}

/* Form Section Titles */
.form-section-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-dark);
  margin: 1.75rem 0 1.15rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px dashed rgba(197, 155, 39, 0.28);
}

.form-section-title span:first-child {
  font-size: 1.25rem;
}

/* Visual Theme Quick-Select Chips Bar */
.theme-chips-bar {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  scrollbar-width: thin;
  width: 100%;
  max-width: 100%;
}

.theme-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border-subtle);
  background: #fcfcfd;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-dark);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.theme-chip .color-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.theme-chip:hover {
  border-color: var(--color-gold);
  background: #ffffff;
  transform: translateY(-1px);
}

.theme-chip.active {
  border-color: var(--color-gold);
  background: var(--color-gold-light);
  color: #9a7213;
  box-shadow: 0 0 0 1px var(--color-gold);
}

/* Form Grid & Inputs */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  width: 100%;
  max-width: 100%;
}

.form-grid-full {
  grid-column: 1 / -1;
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0.85rem;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.form-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--color-gray-dark);
  flex-wrap: wrap;
  gap: 0.25rem;
}

.required-star {
  color: #b91c1c;
  font-weight: 800;
  margin-left: 2px;
}

.optional-pill {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-gray-muted);
  background: var(--color-gray-light);
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 0.65rem 0.9rem;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  background: #fbfbfe;
  color: var(--color-dark);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
  -webkit-appearance: none;
}

.form-textarea {
  min-height: 72px;
  resize: vertical;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.25rem;
  cursor: pointer;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--color-gold);
  background: #ffffff;
  box-shadow: 0 0 0 3px var(--color-gold-glow), var(--shadow-xs);
}

.form-hint {
  font-size: 0.76rem;
  color: var(--color-gray-muted);
  line-height: 1.4;
  margin-top: 0.15rem;
  word-break: break-word;
}

@media (max-width: 640px) {
  .form-section-title {
    font-size: 1rem;
    margin: 1.35rem 0 0.85rem;
    padding-bottom: 0.35rem;
  }

  .form-section-title span:first-child {
    font-size: 1.15rem;
  }

  .theme-chip {
    padding: 6px 11px;
    font-size: 0.78rem;
  }

  .workflow-step-pill {
    font-size: 0.74rem;
  }

  .form-label {
    font-size: 0.82rem;
  }

  .form-input, .form-textarea, .form-select {
    min-height: 38px;
    padding: 0.48rem 0.75rem;
    font-size: 0.88rem;
    border-radius: 9px;
  }

  .form-textarea {
    min-height: 60px;
    padding: 0.55rem 0.75rem;
  }

  .form-hint {
    font-size: 0.72rem;
    line-height: 1.35;
  }
}

/* Form Action Buttons */
.form-actions-bar {
  display: flex;
  gap: 1rem;
  margin-top: 2.25rem;
}

@media (max-width: 480px) {
  .form-actions-bar {
    flex-direction: column;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: none;
  text-decoration: none;
  line-height: 1.2;
  box-sizing: border-box;
  max-width: 100%;
}

@media (max-width: 640px) {
  .btn {
    min-height: 40px;
    padding: 0.6rem 1.1rem;
    font-size: 0.88rem;
    border-radius: 9px;
  }
}

.btn-primary {
  background: linear-gradient(135deg, #80182c 0%, #b8860b 100%);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(128, 24, 44, 0.22);
  flex: 1.4;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(128, 24, 44, 0.32);
}

.btn-secondary {
  background: #ffffff;
  color: var(--color-dark);
  border: 1.5px solid var(--color-border-subtle);
  flex: 1;
}

.btn-secondary:hover {
  border-color: var(--color-gold);
  background: var(--color-gold-light);
  color: #9a7213;
}

/* Link Generation Result Card */
.link-result-card {
  display: none;
  background: linear-gradient(135deg, #fefbf5 0%, #ffffff 100%);
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-top: 2rem;
  box-shadow: 0 12px 32px rgba(197, 155, 39, 0.16);
  animation: fadeIn 0.3s ease;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.link-result-card.active {
  display: block;
}

.link-result-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-maroon);
  margin-bottom: 0.4rem;
}

.link-input-group {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0 1.25rem;
  width: 100%;
  max-width: 100%;
}

.link-input-group input {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 0.65rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 700;
  border: 1.5px solid var(--color-gold);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--color-dark);
}

.share-action-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
}

.share-action-buttons .btn {
  flex: 1;
  min-width: 130px;
}

.btn-whatsapp-share {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.28);
  font-weight: 800;
}

.btn-whatsapp-share:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.38);
}

@media (max-width: 640px) {
  .link-result-card {
    padding: 1.25rem 0.95rem;
    border-radius: var(--radius-md);
  }
  .link-input-group input {
    min-height: 38px;
    padding: 0.48rem 0.75rem;
    font-size: 0.85rem;
  }
  .share-action-buttons {
    flex-direction: column;
    gap: 0.55rem;
  }
  .share-action-buttons .btn {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* =========================================================
   LIVE PREVIEW SIDEBAR & STICKY HOLDER
   ========================================================= */
.preview-pane-wrap {
  position: sticky;
  top: 5rem;
  width: 100%;
}

.preview-pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  padding: 0 0.5rem;
}

.preview-pill {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-gold);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.35);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.75; }
}

/* =========================================================
   THE LUXURY DIGITAL INVITATION CARD
   The physical luxury stationery centerpiece
   ========================================================= */
.invitation-card-container {
  background: var(--theme-card-bg, #ffffff);
  border: 1.5px solid var(--theme-border, rgba(197, 155, 39, 0.4));
  border-radius: var(--radius-xl);
  box-shadow: var(--theme-shadow, var(--shadow-luxury));
  padding: 2.75rem 2rem 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
}

@media (max-width: 640px) {
  .invitation-card-container {
    padding: 2rem 1.25rem 2rem;
    border-radius: var(--radius-lg);
  }
}

/* Double Inset Gold Hairline Border */
.invitation-card-container::before {
  content: '';
  position: absolute;
  top: 9px;
  left: 9px;
  right: 9px;
  bottom: 9px;
  border: 1px solid var(--theme-border-inner, rgba(197, 155, 39, 0.25));
  border-radius: 17px;
  pointer-events: none;
}

/* Corner Filigree Flourishes */
.invitation-card-container::after {
  content: '❖';
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.7rem;
  color: var(--theme-gold, #c59b27);
  opacity: 0.7;
  pointer-events: none;
}

.inv-motif-svg-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.85rem;
  min-height: 76px;
  filter: drop-shadow(0 4px 12px rgba(197, 155, 39, 0.15));
}

.inv-mantra {
  font-family: var(--theme-font-title, var(--font-title));
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--theme-gold, #b8860b);
  text-align: center;
  margin-bottom: 1.25rem;
  line-height: 1.4;
  padding: 0 1rem;
}

/* Card Hero Typography */
.inv-card-hero {
  text-align: center;
  margin-bottom: 1.5rem;
}

.inv-pretitle {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--theme-text-muted, #6b5c53);
  margin-bottom: 0.35rem;
}

.inv-title {
  font-family: var(--theme-font-title, var(--font-title));
  font-size: clamp(1.9rem, 3.8vw, 2.5rem);
  font-weight: 800;
  color: var(--theme-primary, #80182c);
  line-height: 1.18;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.inv-subtitle {
  font-family: var(--font-accent);
  font-size: 1.18rem;
  color: var(--theme-gold, #b8860b);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Elegant Central Divider */
.inv-card-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 1.25rem auto;
  max-width: 280px;
}

.inv-card-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--theme-gold, #b8860b), transparent);
}

.inv-card-divider-symbol {
  color: var(--theme-gold, #b8860b);
  font-size: 0.9rem;
}

.inv-host-wrap {
  margin: 1.15rem 0;
}

.inv-host-intro {
  font-size: 0.9rem;
  color: var(--theme-text-muted, #6b5c53);
  font-family: var(--font-accent);
  font-style: italic;
}

.inv-host-name {
  font-family: var(--theme-font-title, var(--font-title));
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--theme-text-dark, #2d1810);
  margin-top: 0.35rem;
  letter-spacing: 0.02em;
}

/* Luxury Photo Frame */
.inv-photo-container {
  display: none;
  max-width: 340px;
  margin: 1.5rem auto;
  border-radius: var(--radius-lg);
  padding: 6px;
  background: #ffffff;
  border: 1.5px solid var(--theme-border, rgba(197, 155, 39, 0.3));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.inv-photo-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* Personal Message Quote Box */
.inv-message-box {
  background: var(--theme-detail-bg, rgba(197, 155, 39, 0.05));
  border-left: 3px solid var(--theme-gold, #b8860b);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.1rem 1.35rem;
  margin: 1.75rem 0;
  text-align: center;
}

.inv-message-text {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--theme-text-dark, #2d1810);
  line-height: 1.6;
}

/* Event Details Grid (Strict 2-Column Mobile-Safe Layout) */
.event-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.95rem;
  margin: 1.75rem 0;
}

@media (max-width: 480px) {
  .event-details-grid {
    gap: 0.75rem;
  }
}

.detail-card {
  background: var(--theme-detail-bg, #ffffff);
  border: 1px solid var(--theme-border, rgba(197, 155, 39, 0.25));
  border-radius: var(--radius-md);
  padding: 1rem 0.85rem;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02);
  transition: transform var(--transition-fast);
}

.detail-card:hover {
  transform: translateY(-2px);
}

.detail-icon {
  font-size: 1.45rem;
  margin-bottom: 0.3rem;
  display: block;
}

.detail-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--theme-gold, #b8860b);
  margin-bottom: 0.25rem;
}

.detail-value {
  font-family: var(--theme-font-title, var(--font-title));
  font-weight: 800;
  font-size: 0.96rem;
  color: var(--theme-text-dark, #2d1810);
  line-height: 1.3;
}

.detail-subvalue {
  font-size: 0.8rem;
  color: var(--theme-text-muted, #6b5c53);
  margin-top: 0.25rem;
  line-height: 1.3;
}

/* Card Navigation Action Buttons (Directions & Calendar) */
.card-nav-actions {
  display: flex;
  gap: 0.85rem;
  margin: 1.6rem 0;
}

.btn-directions, .btn-calendar {
  flex: 1;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 0.6rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-directions {
  background: #ffffff;
  color: #1f2937;
  border: 1.5px solid var(--theme-border, rgba(197, 155, 39, 0.4));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.btn-calendar {
  background: var(--theme-gold-light, rgba(197, 155, 39, 0.1));
  color: var(--theme-text-dark, #2d1810);
  border: 1.5px solid var(--theme-border, rgba(197, 155, 39, 0.4));
}

.btn-directions:hover, .btn-calendar:hover {
  background: var(--theme-gold-light, #fef8eb);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(197, 155, 39, 0.18);
}

/* Live Countdown Box (Flip-Tile Digital Display) */
.inv-countdown-box {
  background: var(--theme-detail-bg, rgba(197, 155, 39, 0.08));
  border: 1.5px solid var(--theme-border, rgba(197, 155, 39, 0.35));
  border-radius: var(--radius-lg);
  padding: 1.35rem 1rem;
  text-align: center;
  margin: 1.75rem 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.countdown-title {
  font-family: var(--theme-font-title, var(--font-title));
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--theme-primary, #80182c);
  margin-bottom: 0.85rem;
}

.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

@media (max-width: 420px) {
  .countdown-grid {
    gap: 0.4rem;
  }
}

.countdown-unit {
  min-width: 52px;
  background: #ffffff;
  border: 1px solid var(--theme-border, rgba(197, 155, 39, 0.25));
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.35rem 0.4rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.countdown-number {
  font-family: var(--theme-font-title, var(--font-title));
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--theme-text-dark, #2d1810);
  line-height: 1;
}

.countdown-label {
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--theme-text-muted, #6b5c53);
  margin-top: 0.25rem;
}

/* WhatsApp RSVP Section */
.inv-rsvp-section {
  text-align: center;
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px dashed var(--theme-border, rgba(197, 155, 39, 0.35));
}

.inv-rsvp-title {
  font-family: var(--theme-font-title, var(--font-title));
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--theme-primary, #80182c);
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
}

.inv-rsvp-sub {
  font-size: 0.85rem;
  color: var(--theme-text-muted, #6b5c53);
  margin-bottom: 1.15rem;
}

.rsvp-buttons-group {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-rsvp {
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid #d1d5db;
  background: #ffffff;
  transition: all var(--transition-fast);
}

.btn-rsvp-yes {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border-color: #10b981;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-rsvp-yes:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-rsvp-maybe:hover, .btn-rsvp-no:hover {
  background: #f8fafc;
  border-color: var(--theme-gold, #c59b27);
  transform: translateY(-1px);
}

/* =========================================================
   FLOATING ACTION BUTTONS: DIRECTIONS & MUSIC
   ========================================================= */
.floating-directions-btn {
  position: fixed;
  bottom: 88px;
  right: 24px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff !important;
  border: 2.5px solid #ffffff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none !important;
  z-index: 9999;
  transition: transform 0.25s ease, box-shadow 0.25s ease, bottom 0.25s ease;
}

.floating-directions-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.55);
  color: #ffffff !important;
  text-decoration: none !important;
}

/* When celebration music is not active/available, directions drops smoothly to bottom: 24px */
body:not(.has-music) .floating-directions-btn {
  bottom: 24px;
}

.floating-music-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #80182c 0%, #b8860b 100%);
  color: #ffffff;
  border: 2.5px solid #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.floating-music-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.floating-music-btn.playing {
  animation: pulseRotate 4s linear infinite;
}

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

/* =========================================================
   PREVIEW MODAL
   ========================================================= */
.preview-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
}

.preview-modal-backdrop.active {
  display: flex;
}

.preview-modal-content {
  background: transparent;
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  scrollbar-width: none;
}

.preview-modal-content::-webkit-scrollbar {
  display: none;
}

.btn-close-modal {
  position: sticky;
  top: 0;
  float: right;
  margin-bottom: -40px;
  margin-right: 10px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

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

/* Toast Notifications */
.inv-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease-spring);
}

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

/* =========================================================
   DUAL MODE (WHEN ?data= IS ACTIVE)
   ========================================================= */
body.invitation-view-active #landingView,
body.invitation-view-active #creatorView {
  display: none !important;
}

body.invitation-view-active #invitationView {
  display: block !important;
}

#invitationView {
  display: none;
  max-width: 580px;
  margin: 2rem auto 3.5rem;
}

/* =========================================================
   REFERRAL FOOTER (Strict Center Alignment)
   ========================================================= */
.inv-referral-footer {
  margin-top: 2.25rem !important;
  padding-top: 1.5rem !important;
  border-top: 1px solid var(--theme-gold, var(--color-gold, #c59b27)) !important;
  text-align: center !important;
  font-family: var(--font-sans) !important;
  width: 100% !important;
  display: block !important;
  box-sizing: border-box !important;
}

.inv-referral-footer * {
  text-align: center !important;
}

.inv-referral-footer .referral-heading {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: var(--theme-gold, var(--color-gold, #c59b27)) !important;
  margin: 0 auto 0.35rem auto !important;
  letter-spacing: 0.03em !important;
  text-align: center !important;
  display: block !important;
  width: 100% !important;
}

.inv-referral-footer .referral-desc {
  font-size: 0.84rem !important;
  color: inherit !important;
  opacity: 0.88 !important;
  margin: 0 auto 0.45rem auto !important;
  line-height: 1.55 !important;
  text-align: center !important;
  display: block !important;
  width: 100% !important;
}

.inv-referral-footer .referral-link {
  display: inline-block !important;
  margin: 0 auto !important;
  font-size: 0.94rem !important;
  font-weight: 800 !important;
  color: var(--theme-gold, var(--color-gold, #c59b27)) !important;
  text-decoration: underline !important;
  text-underline-offset: 4px !important;
  text-align: center !important;
  transition: opacity 0.2s ease, transform 0.2s ease !important;
}

.inv-referral-footer .referral-link:hover {
  opacity: 0.8 !important;
  transform: translateY(-1px) !important;
}

/* =========================================================
   FULL-SCREEN WELCOME OVERLAY ("Tap to Open Invitation")
   ========================================================= */
.invitation-welcome-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  box-sizing: border-box;
  overflow-y: auto;
  background: var(--theme-bg, #fdfbf7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1), transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.invitation-welcome-overlay.opening {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}

.welcome-overlay-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: 
    radial-gradient(circle at 50% 30%, rgba(212, 175, 55, 0.14) 0%, transparent 65%),
    radial-gradient(circle at 20% 80%, rgba(128, 24, 44, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(16, 86, 56, 0.06) 0%, transparent 50%);
}

.welcome-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--theme-card-bg, #ffffff);
  border: 1.5px solid var(--theme-border, rgba(184, 134, 11, 0.35));
  border-radius: 24px;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.22), 0 0 0 1px var(--theme-border-inner, rgba(255, 255, 255, 0.1));
  padding: 2.75rem 1.75rem 2.25rem;
  text-align: center;
  box-sizing: border-box;
  animation: welcomeCardFloat 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  cursor: pointer;
}

@keyframes welcomeCardFloat {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.welcome-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--theme-gold, #b8860b);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  line-height: 1;
}

.welcome-sparkle {
  font-size: 1rem;
  display: inline-block;
  animation: welcomeSparkleSpin 4s ease-in-out infinite alternate;
}

@keyframes welcomeSparkleSpin {
  0% { transform: rotate(0deg) scale(0.9); }
  100% { transform: rotate(15deg) scale(1.15); }
}

.welcome-icon-box {
  margin: 0 auto 1.25rem auto;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--theme-gold-light, rgba(184, 134, 11, 0.12)) 0%, transparent 70%);
  border: 1.5px solid var(--theme-border, rgba(184, 134, 11, 0.35));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.welcome-icon {
  font-size: 2.4rem;
  line-height: 1;
  display: inline-block;
  animation: welcomeIconBreathe 3s ease-in-out infinite;
}

@keyframes welcomeIconBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.09); }
}

.welcome-title {
  font-family: var(--theme-font-title, 'Cinzel', serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--theme-primary, #80182c);
  line-height: 1.25;
  margin: 0 0 0.5rem 0;
}

.welcome-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0.75rem auto 1rem auto;
  width: 100%;
}

.welcome-divider-line {
  height: 1px;
  flex: 1;
  max-width: 60px;
  background: var(--theme-border, rgba(184, 134, 11, 0.3));
}

.welcome-divider-symbol {
  color: var(--theme-gold, #b8860b);
  font-size: 0.85rem;
}

.welcome-host-section {
  margin: 0.5rem 0 1rem;
}

.welcome-host-name {
  font-family: var(--theme-font-title, 'Cinzel', serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--theme-text-dark, #2d1810);
  margin-bottom: 0.35rem;
}

.welcome-invite-phrase {
  font-size: 0.95rem;
  color: var(--theme-text-muted, #6b5c53);
  font-style: italic;
  letter-spacing: 0.02em;
}

/* Open Invitation Button */
.btn-open-invitation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  max-width: 320px;
  margin-top: 1.5rem;
  padding: 1.05rem 1.8rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #ffffff !important;
  background: var(--theme-accent-gradient, linear-gradient(135deg, #80182c 0%, #b8860b 100%));
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 9999px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.3);
  animation: pulseOpenBtn 2.2s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.btn-open-invitation:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 30px -4px rgba(0, 0, 0, 0.38);
}

.btn-open-invitation:active {
  transform: scale(0.96);
}

@keyframes pulseOpenBtn {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.28), 0 0 0 0 rgba(184, 134, 11, 0.5);
  }
  50% {
    transform: scale(1.035);
    box-shadow: 0 14px 30px -2px rgba(0, 0, 0, 0.38), 0 0 0 10px rgba(184, 134, 11, 0);
  }
}

.btn-open-envelope {
  font-size: 1.25rem;
  line-height: 1;
}

.welcome-music-note {
  font-size: 0.82rem;
  color: var(--theme-text-muted, #6b5c53);
  margin-top: 0.95rem;
  opacity: 0.85;
}

/* Main Invitation Card Entrance Animation */
.invitation-card-container.inv-card-hidden {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  pointer-events: none;
}

.invitation-card-container.inv-card-enter {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================
   SEO CONTENT & LANDING SECTIONS STYLES
   ========================================================= */
/* Quick Occasion Pills (Below Hero CTA) */
.hero-quick-occasions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.quick-occasions-caption {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8c734b;
}

.quick-occasions-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  max-width: 860px;
  padding: 0 0.5rem;
}

.quick-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: #4a3812 !important;
  background: #ffffff;
  border: 1.5px solid rgba(197, 155, 39, 0.28);
  border-radius: 999px;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.quick-pill:hover {
  background: #fdfaf2;
  border-color: var(--color-gold, #c59b27);
  color: #2b1f07 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(197, 155, 39, 0.16);
  text-decoration: none !important;
}

.quick-pill:focus-visible {
  outline: 2px solid var(--color-gold, #c59b27);
  outline-offset: 2px;
}

/* Step 1 Occasion Interactive Tiles */
.occasion-tiles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 640px) {
  .occasion-tiles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }
}

.occasion-card-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 0.5rem;
  background: #ffffff;
  border: 1.5px solid rgba(197, 155, 39, 0.22);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.occasion-card-btn .occasion-icon {
  font-size: 1.65rem;
  line-height: 1;
  margin-bottom: 0.4rem;
  transition: transform 0.2s ease;
}

.occasion-card-btn .occasion-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #2b2b2b;
  line-height: 1.2;
}

.occasion-card-btn:hover {
  border-color: var(--color-gold, #c59b27);
  background: #fffdf9;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(197, 155, 39, 0.14);
}

.occasion-card-btn:hover .occasion-icon {
  transform: scale(1.15);
}

.occasion-card-btn.active {
  border-color: var(--color-gold, #c59b27);
  background: linear-gradient(135deg, #fff9ee 0%, #fff4db 100%);
  box-shadow: 0 4px 14px rgba(197, 155, 39, 0.24);
  border-width: 2px;
}

.occasion-card-btn.active .occasion-name {
  color: #634509;
  font-weight: 700;
}


/* Crawlable Occasions Grid */
.occasions-seo-section {
  max-width: 1160px;
  margin: 3.5rem auto 3rem;
  padding: 0 1.25rem;
}

.occasions-seo-header {
  text-align: center;
  margin-bottom: 2.25rem;
}

.occasions-seo-header .section-eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold, #c59b27);
  margin-bottom: 0.4rem;
}

.occasions-seo-header h2 {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 1.95rem;
  color: #1a1a1a;
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.occasions-seo-header p {
  font-size: 1rem;
  color: var(--color-gray-muted, #666666);
  max-width: 620px;
  margin: 0 auto;
}

.occasions-seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.35rem;
}

.occasion-seo-card {
  background: #ffffff;
  border: 1px solid rgba(197, 155, 39, 0.2);
  border-radius: 16px;
  padding: 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.occasion-seo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #c59b27, #e5c365);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.occasion-seo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(197, 155, 39, 0.12);
  border-color: rgba(197, 155, 39, 0.45);
}

.occasion-seo-card:hover::before {
  opacity: 1;
}

.occasion-seo-card-icon {
  font-size: 2.1rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.occasion-seo-card h2,
.occasion-seo-card h3 {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 1.25rem;
  color: #1a1a1a;
  margin: 0 0 0.55rem;
  font-weight: 700;
  line-height: 1.3;
}

.occasion-seo-card p {
  font-size: 0.92rem;
  color: #555555;
  line-height: 1.55;
  margin: 0 0 1.1rem;
  flex-grow: 1;
}

.occasion-seo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #926a11;
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
  margin-top: auto;
}

.occasion-seo-link:hover {
  color: #5c4107;
  gap: 0.7rem;
}

/* Why Choose Section */
.why-choose-section {
  max-width: 1160px;
  margin: 4rem auto;
  padding: 3rem 1.75rem;
  background: linear-gradient(145deg, #ffffff, #fdfbf7);
  border: 1px solid rgba(197, 155, 39, 0.2);
  border-radius: 20px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.03);
}

.why-choose-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.why-choose-header h2 {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 1.95rem;
  color: #1a1a1a;
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.why-choose-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 1.15rem;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.why-choose-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.why-choose-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #222222;
  margin: 0 0 0.2rem;
}

.why-choose-item p {
  font-size: 0.88rem;
  color: #666666;
  margin: 0;
  line-height: 1.5;
}

/* FAQ Section */
.faq-section {
  max-width: 900px;
  margin: 4rem auto 4.5rem;
  padding: 0 1.25rem;
}

.faq-header {
  text-align: center;
  margin-bottom: 2.25rem;
}

.faq-header h2 {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 1.95rem;
  color: #1a1a1a;
  margin: 0 0 0.45rem;
  font-weight: 700;
}

.faq-header p {
  font-size: 1rem;
  color: var(--color-gray-muted, #666666);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background: #ffffff;
  border: 1px solid rgba(197, 155, 39, 0.22);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open] {
  border-color: rgba(197, 155, 39, 0.5);
  box-shadow: 0 4px 18px rgba(197, 155, 39, 0.08);
}

.faq-question {
  padding: 1.15rem 1.35rem;
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 1.02rem;
  font-weight: 700;
  color: #1f1f1f;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '＋';
  font-size: 1.25rem;
  color: var(--color-gold, #c59b27);
  font-weight: 700;
  transition: transform 0.2s ease;
  margin-left: 0.75rem;
  flex-shrink: 0;
}

.faq-item[open] .faq-question::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.35rem 1.25rem;
  font-size: 0.94rem;
  line-height: 1.65;
  color: #555555;
  margin: 0;
}

.faq-answer a {
  color: #926a11;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Category Page Specific Internal Link Ribbon / Breadcrumbs */
.occasion-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--color-gray-muted, #777777);
  margin-bottom: 1.25rem;
  justify-content: center;
}

.occasion-breadcrumbs a {
  color: #8c6614;
  text-decoration: none;
  font-weight: 600;
}

.occasion-breadcrumbs a:hover {
  text-decoration: underline;
}

.cross-occasions-bar {
  max-width: 900px;
  margin: 3.5rem auto 1.5rem;
  padding: 1.5rem;
  background: #fdfbf7;
  border: 1px dashed rgba(197, 155, 39, 0.4);
  border-radius: 14px;
  text-align: center;
}

.cross-occasions-bar h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #2b2b2b;
  margin: 0 0 0.75rem;
}

.cross-occasions-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.cross-occasions-link {
  font-size: 0.86rem;
  font-weight: 600;
  color: #5c450c;
  background: #ffffff;
  border: 1px solid rgba(197, 155, 39, 0.25);
  border-radius: 20px;
  padding: 0.35rem 0.85rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cross-occasions-link:hover {
  background: #fdf6e7;
  border-color: rgba(197, 155, 39, 0.5);
  color: #2b2005;
}

@media (max-width: 768px) {
  .occasions-seo-grid {
    grid-template-columns: 1fr;
  }
  .why-choose-grid {
    grid-template-columns: 1fr;
  }
  .occasions-seo-header h2,
  .why-choose-header h2,
  .faq-header h2 {
    font-size: 1.6rem;
  }
}

