/* ============================================
INVITE — Premium Wedding Invitation Platform
Design System & Styles
============================================ */

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

:root {
  /* Primary Palette (Redefined to Charcoal for luxury aesthetic) */
  --plum: #2A2C2B;
  --plum-dark: #1B1C1C;
  --plum-light: #4A4D4C;
  --plum-glow: rgba(42, 44, 43, 0.15);

  /* Botanical Green */
  --green: #449842;
  --green-dark: #2E6A2D;
  --green-light: #6BC469;
  --green-glow: rgba(68, 152, 66, 0.15);

  /* Backgrounds */
  --ivory: #FCFBF7;
  --ivory-dark: #F5F2ED;
  --champagne: #F7F0E6;

  /* Gold / Luxury */
  --gold: #C9A96E;
  --gold-light: #E8D5A8;
  --gold-dark: #A6853E;

  /* Text */
  --charcoal: #2D2D2D;
  --charcoal-soft: #5A5A5A;
  --charcoal-light: #8A8A8A;

  /* Utility */
  --white: #FFFFFF;
  --error: #D32F2F;
  --success: #388E3C;
  --border-light: rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Typography */
  --font-serif: 'Quicksand', sans-serif;
  --font-sans: 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --transition-slow: 0.6s var(--ease-out);
  --transition-med: 0.4s var(--ease-out);
  --transition-fast: 0.2s var(--ease-out);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--charcoal);
  background: var(--ivory);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ============================================
VIEW SYSTEM
============================================ */
.view {
  display: none;
  animation: viewEnter 0.6s var(--ease-out) forwards;
}

.view.active {
  display: block;
}

@keyframes viewEnter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
TYPOGRAPHY
============================================ */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.25;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
}

h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
}

h4 {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
}

p {
  font-size: 1rem;
  color: var(--charcoal-soft);
  line-height: 1.8;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--plum);
  margin-bottom: 0.75rem;
  position: relative;
}

.section-tag::after {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--gold);
  margin-top: 0.5rem;
}

/* ============================================
BUTTONS
============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background var(--transition-fast);
}

.btn:hover::after {
  background: rgba(255, 255, 255, 0.1);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--plum), var(--plum-dark));
  color: var(--white);
  box-shadow: 0 4px 16px var(--plum-glow);
}

.btn-primary:hover {
  box-shadow: 0 8px 28px rgba(86, 0, 125, 0.25);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--plum);
  border: 2px solid var(--plum);
}

.btn-secondary:hover {
  background: var(--plum);
  color: var(--white);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(201, 169, 110, 0.3);
}

.btn-gold:hover {
  box-shadow: 0 8px 28px rgba(201, 169, 110, 0.4);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--charcoal-soft);
  padding: 0.5rem 1rem;
}

.btn-ghost:hover {
  color: var(--plum);
  background: var(--plum-glow);
}

.btn-sm {
  padding: 0.6rem 1.4rem;
  font-size: 0.8rem;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
FORM ELEMENTS
============================================ */
.form-group {
  margin-bottom: 1.25rem;
}

.event-card {
  background: var(--ivory);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  transition: all var(--transition-fast);
}

.event-card:hover {
  border-color: var(--plum-light);
  box-shadow: var(--shadow-sm);
}

.event-card-title {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--plum);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  transition: all var(--transition-fast);
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--plum);
  background: #FCF9FC;
  box-shadow: 0 0 0 4px var(--plum-glow);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--charcoal-light);
}

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

.required-mark {
  color: var(--error);
  font-weight: 700;
  margin-left: 0.15rem;
}

.input-error,
.input-error:focus {
  border-color: var(--error) !important;
  box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15) !important;
  background: #fff7f7;
}

.step-error-banner {
  margin-bottom: 1.25rem;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid var(--error);
  border-radius: 10px;
  background: linear-gradient(135deg, #fff3f3, #ffe6e6);
  color: #8a1f2d;
  font-size: 0.9rem;
  line-height: 1.6;
}

.template-tier-note,
.template-required-note {
  margin-bottom: 1.25rem;
  padding: 0.85rem 1.1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.6;
  border: 1.5px solid var(--gold);
  background: linear-gradient(135deg, #fdf6e9, #f9ecd3);
  color: #6b4a12;
}

.template-tier-note strong {
  color: #4a320a;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235A5A5A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Toggle Switch */
.toggle {
  display: flex;
  background: var(--ivory-dark);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 3px;
}

.toggle-btn {
  flex: 1;
  padding: 0.6rem 1rem;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--charcoal-soft);
  cursor: pointer;
  border-radius: 6px;
  transition: all var(--transition-fast);
}

.toggle-btn.active {
  background: var(--white);
  color: var(--plum);
  box-shadow: var(--shadow-sm);
}

/* ============================================
MODAL
============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-med);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 90%;
  max-width: 440px;
  position: relative;
  transform: scale(0.92) translateY(20px);
  transition: transform var(--transition-med);
  box-shadow: var(--shadow-lg);
}

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

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--charcoal-light);
  cursor: pointer;
  transition: color var(--transition-fast);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close:hover {
  color: var(--charcoal);
  background: var(--ivory-dark);
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 0.3rem;
}

.modal-subtitle {
  text-align: center;
  color: var(--charcoal-soft);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.modal .form-footer {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--charcoal-soft);
}

.modal .form-footer a {
  color: var(--plum);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.modal .form-footer a:hover {
  text-decoration: underline;
}

/* ============================================
LANDING VIEW
============================================ */
#view-landing {
  min-height: 100vh;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition-med);
}

.nav.scrolled {
  background: rgba(252, 251, 247, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border-light);
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--plum);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo .heart {
  color: var(--gold);
  font-size: 1.2rem;
}

.nav-logo-img {
  height: 10.8rem;
  width: auto;
  display: block;
  border-radius: 4px;
}

.dash-logo-img {
  height: 9.2rem;
  width: auto;
  display: block;
  border-radius: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 2rem 3rem;
  background: linear-gradient(160deg, var(--ivory) 0%, var(--champagne) 40%, var(--ivory-dark) 100%);
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-bg-decoration {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: url('hero.jpg') center/cover no-repeat;
  filter: blur(4px) brightness(0.85);
  transform: scale(1.05);
}

.hero-bg-decoration::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(252, 251, 247, 0.85) 0%, rgba(247, 240, 230, 0.8) 40%, rgba(245, 242, 237, 0.85) 100%);
}


.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 2;
}

.hero-text {
  flex: 1;
  max-width: 520px;
}

.hero-typing {
  min-height: 2rem;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--plum);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.hero-typing .cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--plum);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero-text h1 {
  margin-bottom: 0.5rem;
  animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
}

.hero-text h1 .ampersand {
  font-style: italic;
  color: var(--gold);
  margin: 0 0.3rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--charcoal-soft);
  max-width: 520px;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s var(--ease-out) 0.4s both;
}

.hero-cta {
  animation: fadeInUp 0.8s var(--ease-out) 0.5s both;
}

/* --- Floating Dashboard --- */
.hero-dashboard {
  flex: 1;
  max-width: 460px;
  height: 460px;
  position: relative;
  animation: fadeInUp 0.8s var(--ease-out) 0.6s both;
}

.dash-card {
  position: absolute;
  width: 280px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.dash-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.dc-accent {
  height: 4px;
}


.dc-body {
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.dc-names {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.25rem;
}

.dc-names .ampersand {
  color: var(--gold);
  font-style: italic;
}

.dc-divider {
  width: 32px;
  height: 1.5px;
  background: var(--gold);
  margin: 0 auto 0.6rem;
}

.dc-detail {
  font-size: 0.75rem;
  color: var(--charcoal-soft);
  margin-bottom: 0.6rem;
  font-style: italic;
}

.dc-date {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dc-venue {
  font-size: 0.7rem;
  color: var(--charcoal-light);
  margin-top: 0.15rem;
}

/* Card positions */
.dc-1 {
  top: 0;
  right: 10%;
  z-index: 3;
  transform: rotate(3deg);
  animation: cardFloat1 5s ease-in-out infinite;
}

.dc-2 {
  bottom: 5%;
  left: 0;
  z-index: 2;
  transform: rotate(-5deg);
  animation: cardFloat2 6s ease-in-out infinite;
}

.dc-3 {
  top: 30%;
  right: 0;
  z-index: 1;
  transform: rotate(7deg);
  animation: cardFloat3 5.5s ease-in-out infinite;
}

@keyframes cardFloat1 {

  0%,
  100% {
    transform: rotate(3deg) translateY(0);
  }

  50% {
    transform: rotate(3deg) translateY(-10px);
  }
}

@keyframes cardFloat2 {

  0%,
  100% {
    transform: rotate(-5deg) translateY(0);
  }

  50% {
    transform: rotate(-5deg) translateY(-8px);
  }
}

@keyframes cardFloat3 {

  0%,
  100% {
    transform: rotate(7deg) translateY(0);
  }

  50% {
    transform: rotate(7deg) translateY(-12px);
  }
}

@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 4rem 2rem 2rem;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-dashboard {
    display: none;
  }
}

/* --- Features Section --- */
.features {
  padding: 6rem 2rem;
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-med);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 0 0 4px 4px;
  opacity: 0;
  transition: opacity var(--transition-med);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--plum-glow);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, var(--plum-glow), rgba(201, 169, 110, 0.12));
  color: var(--plum);
  transition: all var(--transition-med);
  position: relative;
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--plum), var(--plum-dark));
  color: var(--white);
  transform: scale(1.1) rotate(-6deg);
  box-shadow: 0 4px 16px var(--plum-glow);
}

.feature-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--charcoal-soft);
  line-height: 1.7;
}

/* --- How It Works --- */
.how-it-works {
  padding: 6rem 2rem;
  background: var(--ivory);
}

.how-it-works .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--plum), var(--plum-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 auto 1rem;
}

.step h4 {
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}

.step p {
  font-size: 0.85rem;
}

/* --- Section Header (shared) --- */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-desc {
  max-width: 520px;
  margin: 1rem auto 0;
  color: var(--charcoal-soft);
  font-size: 0.95rem;
}

/* --- Templates Showcase --- */
.templates-showcase {
  padding: 6rem 2rem;
  background: var(--white);
}

.birthday-showcase {
  background: linear-gradient(180deg, #FFF8FA 0%, #FFF0F5 50%, var(--white) 100%);
}

.birthday-showcase .section-tag {
  background: rgba(232, 68, 109, 0.1);
  color: #E8446D;
}

.birthday-showcase .tplate-card:hover {
  box-shadow: 0 12px 40px rgba(232, 68, 109, 0.12);
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.tplate-card {
  background: var(--ivory);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-med);
  cursor: pointer;
}

.tplate-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.tplate-visual {
  display: flex;
  height: 100px;
  overflow: hidden;
}

.tplate-swatch {
  flex: 1;
  transition: flex var(--transition-slow);
}

.tplate-card:hover .tplate-swatch {
  flex: 1.3;
}

.tplate-card h4 {
  padding: 1.25rem 1.25rem 0.25rem;
  font-size: 1.1rem;
}

.tplate-card p {
  padding: 0 1.25rem 1.5rem;
  font-size: 0.85rem;
  color: var(--charcoal-soft);
}

/* --- FAQ --- */
.faq-section {
  padding: 6rem 2rem;
  background: var(--ivory);
}

.faq-list {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.open {
  border-color: var(--plum-glow);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--charcoal);
  cursor: pointer;
  gap: 1rem;
  user-select: none;
}

.faq-arrow {
  font-size: 0.9rem;
  color: var(--plum);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-med), padding var(--transition-med);
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
  font-size: 0.9rem;
  color: var(--charcoal-soft);
  line-height: 1.7;
}

/* --- Partners --- */
.partners {
  padding: 4rem 2rem;
  background: var(--ivory);
  text-align: center;
}

.partners-inner {
  max-width: 800px;
  margin: 0 auto;
}

.partners-inner h2 {
  margin-bottom: 0.75rem;
}

.partners-inner > p {
  color: var(--charcoal-soft);
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

.partners-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.partner-logo {
  width: 120px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(1) opacity(0.6);
  transition: filter var(--transition-med);
}

.partner-logo:hover {
  filter: grayscale(0) opacity(1);
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* --- Partners Page --- */
.partners-page {
  min-height: 100vh;
}

.partners-hero {
  padding: 8rem 2rem 4rem;
  background: linear-gradient(160deg, var(--ivory) 0%, var(--champagne) 40%, var(--ivory-dark) 100%);
  text-align: center;
  position: relative;
}

.partners-hero-content {
  max-width: 640px;
  margin: 0 auto;
}

.partners-hero-content h1 {
  margin-bottom: 0.75rem;
}

.partners-hero-content p {
  color: var(--charcoal-soft);
  font-size: 1.1rem;
}

.partners-body {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.partner-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform var(--transition-med), box-shadow var(--transition-med);
  flex: 1 1 280px;
  max-width: 320px;
}

.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.partner-card-logo {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.partner-card-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.partner-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.partner-card p {
  font-size: 0.9rem;
  color: var(--charcoal-light);
}

.partner-card-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.partner-card-link:hover {
  color: var(--gold-dark);
  text-decoration: underline;
}

.partners-inner {
  max-width: 800px;
  margin: 0 auto;
}

.partners-inner h2 {
  margin-bottom: 0.75rem;
}

.partners-inner>p {
  color: var(--charcoal-soft);
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

.partners-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.partner-logo {
  width: 120px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(1) opacity(0.6);
  transition: filter var(--transition-med);
}

.partner-logo:hover {
  filter: grayscale(0) opacity(1);
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* --- CTA Banner --- */
.cta-banner {
  padding: 5rem 2rem;
  background: linear-gradient(135deg, var(--plum), var(--plum-dark));
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(201, 169, 110, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(201, 169, 110, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* --- Footer --- */
.footer {
  padding: 2.5rem 2rem;
  background: var(--charcoal);
  border-top: 2px solid rgba(201, 169, 110, 0.15);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: #B8B8B8;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-copy {
  font-size: 0.8rem;
  color: #9A9A9A;
}

.footer-copy .heart {
  color: var(--gold);
}

/* ============================================
DASHBOARD VIEW
============================================ */
#view-dashboard {
  min-height: 100vh;
  background: var(--ivory);
}

.dash-header {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.dash-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dash-back {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--charcoal-soft);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.dash-back:hover {
  background: var(--ivory-dark);
  color: var(--charcoal);
}

.dash-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--plum);
}

.dash-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dash-user {
  font-size: 0.85rem;
  color: var(--charcoal-soft);
}

.dash-user strong {
  color: var(--charcoal);
}

/* --- Dashboard Layout --- */
.dash-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: calc(100vh - 64px);
}

.dash-sidebar {
  background: var(--white);
  border-right: 1px solid var(--border-light);
  padding: 2rem 1.5rem;
}

.dash-steps {
  list-style: none;
}

.dash-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  color: var(--charcoal-soft);
}

.dash-step:hover {
  background: var(--ivory);
}

.dash-step.active {
  background: var(--plum-glow);
  color: var(--plum);
  font-weight: 600;
}

.dash-step.completed .step-indicator {
  background: var(--green);
  color: var(--white);
}

.dash-step.completed {
  color: var(--green);
}

.step-indicator {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--ivory-dark);
  color: var(--charcoal-light);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.dash-step.active .step-indicator {
  background: var(--plum);
  color: var(--white);
}

/* --- Dashboard Main Content --- */
.dash-main {
  padding: 2.5rem 3rem;
  max-width: 720px;
}

.step-panel {
  display: none;
}

.step-panel.active {
  display: block;
  animation: viewEnter 0.4s var(--ease-out);
}

.step-panel h2 {
  margin-bottom: 0.3rem;
}

.step-panel .step-desc {
  color: var(--charcoal-soft);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* URL Preview */
.url-preview {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--ivory);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: monospace;
  color: var(--charcoal-soft);
  margin-top: 0.5rem;
}

.url-preview .url-path {
  color: var(--plum);
  font-weight: 600;
}

/* Dress Code Picker */
.dress-code-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.75rem;
}

.dress-option {
  padding: 0.75rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 0.8rem;
  color: var(--charcoal-soft);
  background: var(--white);
}

.dress-option:hover {
  border-color: var(--plum-light);
}

.dress-option.selected {
  border-color: var(--plum);
  background: var(--plum-glow);
  color: var(--plum);
  font-weight: 600;
}

.dress-option .dress-icon {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 0.3rem;
}

/* Theme Customization */
.theme-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: 0.75rem;
}

.theme-option:hover {
  border-color: var(--plum-light);
}

.theme-option.selected {
  border-color: var(--plum);
  background: var(--plum-glow);
}

.theme-swatch {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid rgba(0, 0, 0, 0.06);
}

.theme-info h4 {
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.theme-info p {
  font-size: 0.8rem;
}

/* Color Pickers */
.color-pickers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.color-picker-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.color-picker-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--charcoal);
}

.color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid var(--border-light);
}

.color-picker-input {
  width: 100%;
  height: 40px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 2px;
  cursor: pointer;
  background: none;
}

.color-picker-input::-webkit-color-swatch-wrapper {
  padding: 2px;
}

.color-picker-input::-webkit-color-swatch {
  border: none;
  border-radius: 4px;
}

.color-picker-input::-moz-color-swatch {
  border: none;
  border-radius: 4px;
}

/* Photo Uploads */
.photo-uploads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.photo-upload-box {
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

.photo-upload-box:hover {
  border-color: var(--plum);
  background-color: var(--plum-glow);
}

.photo-upload-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--charcoal-light);
}

.photo-upload-box p {
  font-size: 0.82rem;
  color: var(--charcoal-soft);
}

/* Couple Photo on Invitation */
.couple-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--plum-glow), var(--gold-light));
}

.couple-photo .couple-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--plum);
}

.couple-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
PER-TEMPLATE DESIGNS
Each template transforms the same HTML into
a completely distinct invitation layout.
============================================ */

/* --- MIDNIGHT VELVET: Classic Luxe ---
Dark opulent hero, ornate typography,
card-based sections with gold accents,
star particles, layered depth.
--------------------------------------- */
.template-midnight-velvet .inv-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.template-midnight-velvet .inv-hero-content {
  text-align: center;
  max-width: 800px;
  padding-bottom: 18rem;
}

.template-midnight-velvet .inv-hero-names {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
}

.template-midnight-velvet .inv-hero-names .ampersand {
  display: block;
  font-style: italic;
  color: var(--tpl-accent);
  margin: 0.2rem 0;
}

.template-midnight-velvet .inv-hero-invite {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 1;
  font-weight: 300;
  color: var(--white);
}

.template-midnight-velvet .inv-hero-date {
  color: var(--white);
  opacity: 1;
}

.template-midnight-velvet .inv-hero-photos {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1.5rem;
  z-index: 3;
}

.template-midnight-velvet .inv-hero-photo {
  width: 140px;
  height: 200px;
  border-radius: 6px;
  background: var(--tpl-primary-light);
  background-size: cover;
  background-position: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 2px var(--tpl-accent-light), 0 0 20px rgba(232, 168, 124, 0.2);
}

.template-midnight-velvet #invHeroPhoto1 {
  transform: rotate(-3deg);
}

.template-midnight-velvet #invHeroPhoto2 {
  transform: rotate(4deg);
  margin-top: 1.5rem;
}

.template-midnight-velvet .inv-section {
  padding: 5rem 2rem;
  max-width: 720px;
  margin: 0 auto;
}

.template-midnight-velvet .inv-section-header .ornament {
  color: var(--tpl-accent);
  letter-spacing: 0.4em;
  font-size: 1.2rem;
}

.template-midnight-velvet .couple-card {
  background: var(--tpl-bg);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  padding: 2.5rem 1.5rem;
}

.template-midnight-velvet .timeline-content {
  background: var(--tpl-bg);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
}

.template-midnight-velvet .countdown-value {
  color: var(--tpl-accent);
  font-weight: 700;
}

/* --- SUNKISSED: Warm Editorial ---
   Centered hero with photo gallery below names,
   bordered couple cards, clean section dividers,
   warm earthy tones, modern & spacious.
   --------------------------------------- */
.template-sunkissed .inv-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.template-sunkissed .inv-hero-bg {
  background: var(--tpl-bg) !important;
}

.template-sunkissed .inv-hero::before {
  display: none;
}

.template-sunkissed .inv-hero-content {
  text-align: center;
  max-width: 680px;
  padding: 2rem;
  color: var(--tpl-text) !important;
  z-index: 2;
}

.template-sunkissed .inv-hero-ornament {
  display: none;
}

.template-sunkissed .inv-hero-names {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--tpl-primary);
  margin-bottom: 0.75rem;
}

.template-sunkissed .inv-hero-names .ampersand {
  display: inline;
  font-size: 1em;
  color: var(--tpl-accent);
  margin: 0 0.35rem;
  font-style: italic;
}

.template-sunkissed .inv-hero-invite {
  font-size: 0.95rem;
  color: var(--tpl-text-soft);
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 400;
  opacity: 1;
  margin-bottom: 0.75rem;
}

.template-sunkissed .inv-hero-date {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--tpl-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Photo gallery above hero text */
.template-sunkissed .inv-hero-photos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
  order: -1;
}

.template-sunkissed .inv-hero-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 3px solid var(--tpl-accent-light);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.template-sunkissed #invHeroPhoto2 {
  width: 120px;
  height: 120px;
  margin-left: -40px;
  border-color: var(--tpl-accent);
}

/* Countdown */
.template-sunkissed .countdown {
  gap: 0.5rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.template-sunkissed .countdown-item {
  min-width: 0;
  flex: 0 0 auto;
  padding: 0 0.6rem;
  text-align: center;
}

.template-sunkissed .countdown-value {
  color: var(--tpl-primary);
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.template-sunkissed .countdown-label {
  color: var(--tpl-text-soft);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  margin-top: 0.15rem;
  text-transform: uppercase;
  display: block;
}

/* Content sections */
.template-sunkissed .inv-section {
  padding: 4.5rem 2rem;
  max-width: 720px;
  margin: 0 auto;
  border-bottom: 1px solid var(--tpl-primary-light);
}

.template-sunkissed .inv-section:last-of-type {
  border-bottom: none;
  padding-bottom: 5rem;
}

.template-sunkissed .inv-section-header {
  text-align: left;
  margin-bottom: 2.5rem;
}

.template-sunkissed .inv-section-header .ornament {
  display: block;
  font-size: 1.1rem;
  letter-spacing: 0.5em;
  color: var(--tpl-accent);
  margin-bottom: 0.5rem;
  opacity: 0.45;
  text-align: center;
}

.template-sunkissed .inv-section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--tpl-primary);
  position: relative;
  display: inline-block;
}

.template-sunkissed .inv-section-header h2::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 36px;
  height: 2px;
  background: var(--tpl-accent);
}

.template-sunkissed .inv-section-header p {
  text-align: left;
  margin: 0.7rem 0 0;
  font-size: 0.9rem;
  color: var(--tpl-text-soft);
  max-width: 520px;
}

/* Couple cards */
.template-sunkissed .couple-story {
  gap: 1.5rem;
}

.template-sunkissed .couple-card {
  background: var(--tpl-bg);
  box-shadow: none;
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--tpl-primary-light);
  border-radius: var(--radius-md);
}

.template-sunkissed .couple-photo {
  width: 90px;
  height: 90px;
  margin: 0 0 1rem;
  flex-shrink: 0;
}

.template-sunkissed .couple-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: var(--tpl-primary);
}

.template-sunkissed .couple-card p {
  font-size: 0.85rem;
  color: var(--tpl-text-soft);
}

/* Timeline */
.template-sunkissed .timeline {
  padding-left: 1.5rem;
}

.template-sunkissed .timeline::before {
  left: 5px;
  width: 2px;
  background: var(--tpl-accent);
}

.template-sunkissed .timeline-dot {
  width: 12px;
  height: 12px;
  left: -1.5rem;
  top: 5px;
  background: var(--tpl-accent);
  border: 2px solid var(--tpl-bg-alt);
}

.template-sunkissed .timeline-content {
  background: transparent;
  box-shadow: none;
  padding: 0.5rem 0;
}

.template-sunkissed .timeline-time {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--tpl-accent);
  letter-spacing: 0.08em;
}

/* Dress code */
.template-sunkissed .dress-code-display {
  background: var(--tpl-bg);
  box-shadow: none;
  border: 1px solid var(--tpl-primary-light);
  border-radius: var(--radius-md);
  max-width: 460px;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
}

.template-sunkissed .dress-code-display .dress-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  margin: 0;
}

.template-sunkissed .dress-code-display h4 {
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.template-sunkissed .dress-code-display p {
  font-size: 0.82rem;
}

.template-sunkissed .dress-sample-images {
  gap: 1rem;
  margin-top: 1rem;
}

/* RSVP */
.template-sunkissed .inv-rsvp .inv-section-header {
  text-align: center;
}

.template-sunkissed .inv-rsvp .inv-section-header h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.template-sunkissed .inv-rsvp .inv-section-header p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.template-sunkissed .rsvp-form {
  box-shadow: none;
  border: 1px solid var(--tpl-primary-light);
  border-radius: var(--radius-md);
  max-width: 500px;
  margin: 0 auto;
}

.template-sunkissed .inv-rsvp {
  max-width: 720px;
}

/* --- OCEAN & PINES: Coastal Serenity ---
   Immersive dark teal hero with floating photo frame,
   alternating light sections with coral accents,
   natural textures & organic whitespace.
   --------------------------------------- */
.template-ocean-pines .inv-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.template-ocean-pines .inv-hero-bg {
  background: var(--tpl-primary) !important;
}

.template-ocean-pines .inv-hero::before {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.template-ocean-pines .inv-hero-content {
  text-align: center;
  padding: 2rem;
  max-width: 680px;
}

.template-ocean-pines .inv-hero-ornament {
  display: none;
}

.template-ocean-pines .inv-hero-names {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1.15;
  color: var(--white);
}

.template-ocean-pines .inv-hero-names .ampersand {
  display: block;
  color: var(--tpl-accent);
  font-weight: 200;
  font-size: 0.6em;
  line-height: 1;
  margin: 0.15rem 0;
}

.template-ocean-pines .inv-hero-invite {
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  opacity: 0.85;
  color: var(--white);
  text-transform: uppercase;
}

.template-ocean-pines .inv-hero-date {
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  opacity: 0.8;
  color: var(--white);
}

.template-ocean-pines .countdown {
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.template-ocean-pines .countdown-item {
  min-width: 52px;
}

.template-ocean-pines .countdown-value {
  font-weight: 300;
  color: var(--tpl-accent);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.template-ocean-pines .countdown-label {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  opacity: 0.6;
  text-transform: uppercase;
}

/* Photos — overlapping circles with coral accent */
.template-ocean-pines .inv-hero-photos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-bottom: 2rem;
  z-index: 3;
  order: -1;
}

.template-ocean-pines .inv-hero-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--tpl-primary-light);
  background-size: cover;
  background-position: center;
  border: 3px solid var(--tpl-accent);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.template-ocean-pines #invHeroPhoto2 {
  margin-left: -40px;
  border-color: var(--tpl-accent-light);
  width: 100px;
  height: 100px;
}

/* Sections — alternating backgrounds with subtle wave */
.template-ocean-pines .inv-section {
  padding: 5rem 2rem;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

.template-ocean-pines #invStory {
  background: var(--tpl-bg);
  max-width: 100%;
}

.template-ocean-pines #invStory .inv-section-header,
.template-ocean-pines #invStory .couple-story {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.template-ocean-pines #invSchedule {
  background: var(--tpl-bg-alt);
  max-width: 100%;
}

.template-ocean-pines #invSchedule .inv-section-header,
.template-ocean-pines #invSchedule .timeline {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.template-ocean-pines #invDressCode {
  background: var(--tpl-bg);
  max-width: 100%;
}

.template-ocean-pines #invDressCode .inv-section-header,
.template-ocean-pines #invDressCode .dress-code-display,
.template-ocean-pines #invDressCode .dress-sample-images {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.template-ocean-pines #invRsvp {
  background: var(--tpl-bg-alt) !important;
  max-width: 100%;
}

.template-ocean-pines #invRsvp .inv-section-header,
.template-ocean-pines #invRsvp .rsvp-form {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.template-ocean-pines .inv-section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.template-ocean-pines .inv-section-header .ornament {
  color: var(--tpl-accent);
  opacity: 0.5;
  font-size: 1.3rem;
  letter-spacing: 0.5em;
}

.template-ocean-pines .inv-section-header h2 {
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--tpl-text);
}

.template-ocean-pines .inv-section-header p {
  color: var(--tpl-text-soft);
  font-size: 0.9rem;
  max-width: 480px;
  margin: 0.5rem auto 0;
}

/* Couple — horizontal cards with photo left */
.template-ocean-pines .couple-story {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.template-ocean-pines .couple-card {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  display: flex;
  gap: 1.25rem;
  align-items: center;
  text-align: left;
  border: none;
}

.template-ocean-pines .couple-card:last-child {
  border-bottom: none;
}

.template-ocean-pines .couple-photo {
  width: 90px;
  height: 90px;
  margin: 0;
  flex-shrink: 0;
  border: 2px solid var(--tpl-accent-light);
  box-shadow: 0 0 0 3px var(--tpl-bg-alt);
}

.template-ocean-pines .couple-card h3 {
  font-weight: 500;
  color: var(--tpl-primary);
  margin-bottom: 0.15rem;
}

.template-ocean-pines .couple-card p {
  font-size: 0.85rem;
  color: var(--tpl-text-soft);
}

/* Timeline */
.template-ocean-pines .timeline {
  max-width: 500px;
  margin: 0 auto;
  padding-left: 2rem;
}

.template-ocean-pines .timeline::before {
  background: var(--tpl-accent);
  opacity: 0.3;
  width: 2px;
}

.template-ocean-pines .timeline-dot {
  border-color: var(--tpl-accent);
  background: var(--tpl-bg-alt);
  width: 14px;
  height: 14px;
  left: -2rem;
  top: 4px;
  border-width: 2px;
}

.template-ocean-pines .timeline-content {
  background: transparent;
  box-shadow: none;
  padding: 0.5rem 1rem;
}

.template-ocean-pines .timeline-content h4 {
  font-weight: 500;
  color: var(--tpl-text);
}

.template-ocean-pines .timeline-content p {
  color: var(--tpl-text-soft);
}

.template-ocean-pines .timeline-time {
  font-weight: 500;
  color: var(--tpl-accent);
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

/* Dress code */
.template-ocean-pines .dress-code-display {
  box-shadow: none;
  border: none;
  background: transparent;
  text-align: center;
  max-width: 400px;
}

.template-ocean-pines .dress-code-display .dress-icon {
  font-size: 2.8rem;
  margin-bottom: 0.75rem;
}

.template-ocean-pines .dress-code-display h4 {
  font-size: 1.1rem;
  color: var(--tpl-primary);
}

.template-ocean-pines .dress-code-display p {
  font-size: 0.85rem;
  color: var(--tpl-text-soft);
}

.template-ocean-pines .dress-sample-images {
  gap: 1rem;
  margin-top: 1.5rem;
  max-width: 400px;
}

/* RSVP */
.template-ocean-pines .rsvp-form {
  box-shadow: none;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-md);
  max-width: 500px;
  background: var(--white);
}

/* --- PEARL: Ultra-Minimal ---
White space, thin borders, no ornaments,
editorial typography, monochrome palette
with gold as the only accent, airy layouts,
maximum simplicity.
--------------------------------------- */
.template-pearl .inv-hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.template-pearl .inv-hero-bg {
  background: var(--tpl-bg) !important;
}

.template-pearl .inv-hero::before {
  display: none;
}

.template-pearl .inv-hero-content {
  text-align: center;
  max-width: 600px;
  color: var(--tpl-text-soft) !important;
  padding: 2rem;
  padding-bottom: 14rem;
}

.template-pearl .inv-hero-ornament {
  display: none;
}

.template-pearl .inv-hero-names {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 200;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--tpl-accent);
}

.template-pearl .inv-hero-names .ampersand {
  display: block;
  color: var(--tpl-accent);
  font-style: normal;
  font-weight: 300;
  margin: 0.15rem 0;
}

.template-pearl .inv-hero-invite {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 300;
  color: var(--tpl-text-soft);
  opacity: 1;
}

.template-pearl .inv-hero-date {
  font-family: var(--font-sans);
  font-weight: 300;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--tpl-text-soft);
}

/* Floating roses */
.template-pearl .particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.template-pearl .petal {
  position: absolute;
  width: 14px;
  height: 14px;
  background: radial-gradient(circle at 40% 40%, var(--tpl-accent-light) 0%, var(--tpl-accent) 70%, transparent 100%);
  border-radius: 50% 0 50% 0;
  opacity: 0;
  animation: pearlRoseRise linear infinite;
  top: -20px;
}

.template-pearl .petal::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50% 0 50% 0;
  background: radial-gradient(circle at 60% 60%, transparent 0%, rgba(255, 255, 255, 0.2) 100%);
}

@keyframes pearlRoseRise {
  0% {
    opacity: 0;
    transform: translateY(0) rotate(0deg) scale(0.5);
  }

  10% {
    opacity: 0.5;
  }

  80% {
    opacity: 0.35;
  }

  100% {
    opacity: 0;
    transform: translateY(-100vh) rotate(720deg) scale(0.8);
  }
}

.template-pearl .inv-hero-photos {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 3;
}

.template-pearl .inv-hero-photo {
  width: 120px;
  height: 160px;
  background: var(--tpl-accent-light);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--tpl-accent);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.template-pearl .inv-section {
  padding: 4rem 2rem;
  max-width: 560px;
  margin: 0 auto;
}

.template-pearl .inv-section-header {
  margin-bottom: 2rem;
}

.template-pearl .inv-section-header .ornament {
  display: none;
}

.template-pearl .inv-section-header h2 {
  font-weight: 200;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--tpl-primary);
}

.template-pearl .inv-section-header p {
  font-weight: 300;
  font-size: 0.8rem;
  color: var(--tpl-text-soft);
  letter-spacing: 0.05em;
}

.template-pearl .couple-card {
  background: transparent;
  box-shadow: none;
  padding: 1.5rem 0.5rem;
  border-bottom: 1px solid var(--tpl-bg-alt);
}

.template-pearl .couple-card:last-child {
  border-bottom: none;
}

.template-pearl .couple-photo {
  width: 90px;
  height: 90px;
  border: 1px solid var(--tpl-accent);
  padding: 3px;
}

.template-pearl .couple-card h3 {
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.template-pearl .couple-card p {
  font-size: 0.8rem;
  font-weight: 300;
}

.template-pearl .timeline {
  padding-left: 1.5rem;
}

.template-pearl .timeline::before {
  width: 1px;
  background: var(--tpl-bg-alt);
  left: 4px;
}

.template-pearl .timeline-dot {
  width: 10px;
  height: 10px;
  left: -1.5rem;
  top: 5px;
  border: 1px solid var(--tpl-accent);
  background: var(--tpl-bg);
}

.template-pearl .timeline-content {
  background: transparent;
  box-shadow: none;
  padding: 0.25rem 0.75rem;
}

.template-pearl .timeline-time {
  font-weight: 400;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.template-pearl .timeline-content h4 {
  font-weight: 400;
  letter-spacing: 0.05em;
}

.template-pearl .dress-code-display {
  background: transparent;
  box-shadow: none;
  border: 1px solid var(--tpl-bg-alt);
  border-radius: 0;
}

.template-pearl .dress-code-display h4 {
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.template-pearl .countdown-value {
  font-weight: 200;
  color: var(--tpl-primary);
  letter-spacing: 0.05em;
}

.template-pearl .countdown-label {
  font-weight: 300;
  letter-spacing: 0.1em;
}

.template-pearl .rsvp-form {
  box-shadow: none;
  border: none;
  padding: 0;
}

.template-pearl .rsvp-form .form-input {
  border-radius: 0;
  border-width: 1px;
}

.template-pearl .btn-primary {
  background: var(--tpl-primary);
  box-shadow: none;
  border-radius: 0;
}

.template-pearl .hero-scroll-indicator {
  opacity: 0.3;
}

/* ============================================
TEMPLATE: ROSE NOIR
Ultra-premium — cinematic black, dusty rose,
and champagne gold.
============================================ */

.template-rose-noir {
  background: #0D0D0D;
}

/* --- Hero --- */
.template-rose-noir .inv-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 60% 40%, #2a0a0a 0%, #0D0D0D 60%, #000000 100%);
  overflow: hidden;
  position: relative;
}

/* Cinematic vignette */
.template-rose-noir .inv-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.7) 100%);
  pointer-events: none;
  z-index: 1;
}

.template-rose-noir .inv-hero-bg {
  background: transparent !important;
}

/* Rose petal particle effect */
.template-rose-noir .particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.template-rose-noir .petal {
  position: absolute;
  width: 8px;
  height: 10px;
  background: radial-gradient(ellipse, #D4A5A5 0%, #B87878 60%, transparent 100%);
  border-radius: 50% 50% 30% 30%;
  opacity: 0;
  animation: petalFall linear infinite;
  top: -20px;
}

@keyframes petalFall {
  0% {
    opacity: 0;
    transform: translateY(0) rotate(0deg) scale(0.6);
  }

  10% {
    opacity: 0.6;
  }

  90% {
    opacity: 0.3;
  }

  100% {
    opacity: 0;
    transform: translateY(110vh) rotate(720deg) scale(1);
  }
}

.template-rose-noir .inv-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  padding: 2rem;
  padding-bottom: 16rem;
}

.template-rose-noir .inv-hero-ornament {
  color: #C9A96E;
  letter-spacing: 1rem;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  opacity: 0.8;
  animation: goldPulse 3s ease-in-out infinite;
}

@keyframes goldPulse {

  0%,
  100% {
    opacity: 0.8;
    text-shadow: 0 0 8px rgba(201, 169, 110, 0.3);
  }

  50% {
    opacity: 1;
    text-shadow: 0 0 20px rgba(201, 169, 110, 0.6);
  }
}

.template-rose-noir .inv-hero-names {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  color: #F5F0EB;
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  text-shadow: 0 4px 40px rgba(212, 165, 165, 0.25);
}

.template-rose-noir .inv-hero-names .ampersand {
  display: block;
  font-size: 0.55em;
  color: #D4A5A5;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.2em;
  margin: 0.3rem 0;
}

.template-rose-noir .inv-hero-invite {
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #D4C5B5;
  opacity: 1;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.template-rose-noir .inv-hero-date {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: #D4A5A5;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  margin-bottom: 2.5rem;
}

.template-rose-noir .inv-hero-photos {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1.25rem;
  z-index: 3;
}

.template-rose-noir .inv-hero-photo {
  width: 130px;
  height: 175px;
  background: #1A1A1A;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(201, 169, 110, 0.4);
  box-shadow: 0 0 30px rgba(212, 165, 165, 0.1), 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: all 0.4s ease;
}

.template-rose-noir .inv-hero-photo:hover {
  border-color: rgba(201, 169, 110, 0.8);
  box-shadow: 0 0 50px rgba(212, 165, 165, 0.2), 0 16px 40px rgba(0, 0, 0, 0.6);
  transform: translateY(-4px);
}

/* Countdown */
.template-rose-noir .countdown {
  gap: 1.5rem;
}

.template-rose-noir .countdown-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 169, 110, 0.2);
  backdrop-filter: blur(12px);
  border-radius: 4px;
  padding: 0.75rem 1.25rem;
}

.template-rose-noir .countdown-value {
  font-size: 2.2rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  color: #D4A5A5;
  text-shadow: 0 0 20px rgba(212, 165, 165, 0.4);
}

.template-rose-noir .countdown-label {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #A89B8C;
}

/* --- Sections --- */
.template-rose-noir .inv-section {
  background: #0D0D0D !important;
  padding: 5rem 2rem;
}

.template-rose-noir .inv-section:nth-child(even) {
  background: #111111 !important;
}

.template-rose-noir .inv-section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.template-rose-noir .inv-section-header .ornament {
  color: #C9A96E;
  letter-spacing: 0.8rem;
  font-size: 0.9rem;
  opacity: 0.7;
}

.template-rose-noir .inv-section-header h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: #F5F0EB;
  letter-spacing: 0.05em;
}

.template-rose-noir .inv-section-header p {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: #A89B8C;
  text-transform: uppercase;
  font-weight: 300;
}

/* Couple Cards */
.template-rose-noir .couple-story {
  max-width: 900px;
  margin: 0 auto;
}

.template-rose-noir .couple-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 165, 165, 0.15);
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  transition: border-color 0.4s, box-shadow 0.4s;
}

.template-rose-noir .couple-card:hover {
  border-color: rgba(212, 165, 165, 0.4);
  box-shadow: 0 8px 50px rgba(212, 165, 165, 0.08), 0 20px 60px rgba(0, 0, 0, 0.5);
}

.template-rose-noir .couple-photo {
  border: 1px solid rgba(201, 169, 110, 0.4);
  background: #1A1A1A;
}

.template-rose-noir .couple-card h3 {
  font-family: 'Playfair Display', serif;
  color: #F5F0EB;
  font-size: 1.5rem;
  font-weight: 600;
}

.template-rose-noir .couple-card p {
  color: #A89B8C;
  font-size: 0.88rem;
}

/* Timeline */
.template-rose-noir .timeline::before {
  background: linear-gradient(to bottom, transparent, rgba(201, 169, 110, 0.5), transparent);
}

.template-rose-noir .timeline-dot {
  background: #C9A96E;
  border-color: #C9A96E;
  box-shadow: 0 0 12px rgba(201, 169, 110, 0.6);
  width: 12px;
  height: 12px;
}

.template-rose-noir .timeline-content {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(201, 169, 110, 0.15);
  border-radius: 4px;
}

.template-rose-noir .timeline-content h4 {
  font-family: 'Playfair Display', serif;
  color: #F5F0EB;
  font-weight: 600;
}

.template-rose-noir .timeline-content p {
  color: #A89B8C;
}

.template-rose-noir .timeline-time {
  color: #D4A5A5;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Dress Code */
.template-rose-noir .dress-code-display {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 165, 165, 0.2);
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.template-rose-noir .dress-code-display h4 {
  color: #F5F0EB;
  font-family: 'Playfair Display', serif;
}

.template-rose-noir .dress-code-display p {
  color: #A89B8C;
}

.template-rose-noir .dress-icon {
  filter: grayscale(1) brightness(2);
}

/* RSVP */
.template-rose-noir .inv-rsvp {
  background: #111111 !important;
}

.template-rose-noir .rsvp-form {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 165, 165, 0.15);
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.template-rose-noir .rsvp-form .form-input {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #F5F0EB;
  border-radius: 2px;
}

.template-rose-noir .rsvp-form .form-input:focus {
  border-color: #D4A5A5;
  box-shadow: 0 0 0 3px rgba(212, 165, 165, 0.12);
}

.template-rose-noir .rsvp-form .form-input::placeholder {
  color: #5A5050;
}

.template-rose-noir .form-label {
  color: #A89B8C;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.template-rose-noir .toggle {
  background: rgba(255, 255, 255, 0.05);
}

.template-rose-noir .toggle-btn {
  color: #A89B8C;
}

.template-rose-noir .toggle-btn.active {
  background: #D4A5A5;
  color: #0D0D0D;
}

.template-rose-noir .btn-primary {
  background: linear-gradient(135deg, #D4A5A5, #B87878);
  color: #0D0D0D;
  font-weight: 700;
  border-radius: 2px;
  box-shadow: 0 4px 20px rgba(212, 165, 165, 0.3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.template-rose-noir .btn-primary:hover {
  box-shadow: 0 8px 30px rgba(212, 165, 165, 0.5);
  transform: translateY(-2px);
}

.template-rose-noir .rsvp-success {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 165, 165, 0.2);
  border-radius: 4px;
  color: #F5F0EB;
}

.template-rose-noir .rsvp-success h3 {
  color: #D4A5A5;
}

/* Music toggle */
.template-rose-noir .music-toggle {
  background: rgba(201, 169, 110, 0.15);
  color: #C9A96E;
  border: 1px solid rgba(201, 169, 110, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.template-rose-noir .music-toggle:hover {
  background: rgba(201, 169, 110, 0.3);
}

/* Scroll indicator */
.template-rose-noir .hero-scroll-indicator {
  color: #D4A5A5;
  opacity: 0.5;
}

/* ---- Premium badge styles (landing + dashboard) ---- */
.tplate-card.tplate-premium {
  position: relative;
  border: 1px solid rgba(201, 169, 110, 0.4);
  background: linear-gradient(135deg, #0D0D0D 0%, #1A1010 100%);
  overflow: hidden;
}

.tplate-card.tplate-premium h3,
.tplate-card.tplate-premium h4 {
  color: #F5F0EB;
}

.tplate-card.tplate-premium p {
  color: #A89B8C;
}

.tplate-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: linear-gradient(135deg, #C9A96E, #A6853E);
  color: #0D0D0D;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
}

.tplate-visual-dark {
  background: #0D0D0D !important;
  border: 1px solid rgba(201, 169, 110, 0.3);
}

/* Dashboard gallery premium card */
.template-card.template-card-custom {
  position: relative;
  border: 1.5px solid rgba(201, 169, 110, 0.45);
  background: linear-gradient(135deg, #111 0%, #1a1020 100%);
  overflow: hidden;
}

.template-card.template-card-custom .template-info h4 {
  color: #F5F0EB;
}

.template-card.template-card-custom .template-info p {
  color: #A89B8C;
}

.template-card.template-card-custom.selected {
  border-color: #C9A96E;
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.2);
}

.template-card.template-card-custom.selected::after {
  border-top-color: #C9A96E;
}

.template-premium-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: linear-gradient(135deg, #C9A96E, #A6853E);
  color: #0D0D0D;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  z-index: 2;
}

.template-card.template-card-gold {
  position: relative;
  border: 1.5px solid rgba(198,161,91,0.35);
}

.template-card.template-card-gold.selected {
  border-color: #C6A15B;
  box-shadow: 0 0 0 3px rgba(198,161,91,0.2);
}

.template-card.template-card-silver {
  position: relative;
  border: 1.5px solid rgba(160,160,160,0.35);
}

.template-card.template-card-silver.selected {
  border-color: #A0A0A0;
  box-shadow: 0 0 0 3px rgba(160,160,160,0.2);
}

.template-preview-dark {
  background: #0D0D0D !important;
}

/* ============================================
TEMPLATE: ETHEREAL GARDEN
Premium Whimsical — Sage green, lavender blush,
and delicate botanical motifs.
============================================ */

.template-ethereal-garden {
  background: #F3F6F5;
  color: #2E3A35;
}

/* --- Hero --- */
.template-ethereal-garden .inv-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #F3F6F5 0%, #E2ECE9 60%, #E8E0ED 100%);
  overflow: hidden;
  position: relative;
}

/* Soft botanical vignette */
.template-ethereal-garden .inv-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 40%, rgba(226, 236, 233, 0.4) 100%);
  pointer-events: none;
  z-index: 1;
}

.template-ethereal-garden .inv-hero-bg {
  background: transparent !important;
}

/* Leaf falling animation */
.template-ethereal-garden .particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.template-ethereal-garden .leaf {
  position: absolute;
  background: linear-gradient(135deg, rgba(143, 188, 143, 0.4) 0%, rgba(46, 80, 67, 0.3) 100%);
  border-radius: 0 100% 0 100%;
  animation: leafFall linear infinite;
  top: -20px;
}

@keyframes leafFall {
  0% {
    opacity: 0;
    transform: translateY(0) rotate(0deg) scale(0.6) rotateY(0deg);
  }

  10% {
    opacity: 0.7;
  }

  90% {
    opacity: 0.5;
  }

  100% {
    opacity: 0;
    transform: translateY(110vh) rotate(360deg) scale(1) rotateY(180deg);
  }
}

.template-ethereal-garden .inv-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  padding: 2.5rem;
  padding-bottom: 12rem;
}

.template-ethereal-garden .inv-hero-ornament {
  color: #BFA6C7;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.template-ethereal-garden .inv-hero-names {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  font-weight: 400;
  color: #2E5043;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.template-ethereal-garden .inv-hero-names .ampersand {
  display: block;
  font-size: 0.5em;
  color: #BFA6C7;
  font-style: italic;
  font-weight: 300;
  margin: 0.2rem 0;
}

.template-ethereal-garden .inv-hero-invite {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #3A5248;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.template-ethereal-garden .inv-hero-date {
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  color: #BFA6C7;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  margin-bottom: 2rem;
}

.template-ethereal-garden .inv-hero-photos {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 3;
}

.template-ethereal-garden .inv-hero-photo {
  width: 120px;
  height: 160px;
  background: #E5ECE9;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(226, 236, 233, 0.8);
  border-radius: 50px 50px 0 0;
  box-shadow: 0 8px 24px rgba(46, 80, 70, 0.08);
  transition: all 0.4s ease;
}

.template-ethereal-garden .inv-hero-photo:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(46, 80, 70, 0.15);
}

/* Countdown */
.template-ethereal-garden .countdown-item {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  border: 1px solid rgba(226, 236, 233, 0.5);
  padding: 0.6rem 1.1rem;
}

.template-ethereal-garden .countdown-value {
  color: #2E5043;
}

.template-ethereal-garden .countdown-label {
  color: #5F736A;
}

/* --- Sections --- */
.template-ethereal-garden .inv-section {
  background: #F3F6F5 !important;
  padding: 5rem 2rem;
}

.template-ethereal-garden .inv-section:nth-child(even) {
  background: #EBF1EF !important;
}

.template-ethereal-garden .inv-section-header .ornament {
  color: #BFA6C7;
  font-size: 1.2rem;
}

.template-ethereal-garden .inv-section-header h2 {
  font-family: 'Playfair Display', serif;
  color: #2E5043;
}

.template-ethereal-garden .inv-section-header p {
  color: #5F736A;
}

/* Couple Cards */
.template-ethereal-garden .couple-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(226, 236, 233, 0.8);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(46, 80, 70, 0.04);
}

.template-ethereal-garden .couple-photo {
  border-radius: 50%;
  border: 2px solid #E2ECE9;
  overflow: hidden;
}

.template-ethereal-garden .couple-card h3 {
  font-family: 'Playfair Display', serif;
  color: #2E5043;
}

.template-ethereal-garden .couple-card p {
  color: #5F736A;
}

/* Timeline */
.template-ethereal-garden .timeline::before {
  background: #E2ECE9;
}

.template-ethereal-garden .timeline-dot {
  background: #BFA6C7;
  border-color: #BFA6C7;
}

.template-ethereal-garden .timeline-content {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(226, 236, 233, 0.6);
  border-radius: 12px;
}

.template-ethereal-garden .timeline-content h4 {
  font-family: 'Playfair Display', serif;
  color: #2E5043;
}

.template-ethereal-garden .timeline-content p {
  color: #5F736A;
}

.template-ethereal-garden .timeline-time {
  color: #BFA6C7;
}

/* Dress Code Display */
.template-ethereal-garden .dress-code-display {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(226, 236, 233, 0.6);
  border-radius: 12px;
}

.template-ethereal-garden .dress-code-display h4 {
  color: #2E5043;
}

.template-ethereal-garden .dress-code-display p {
  color: #5F736A;
}

/* RSVP */
.template-ethereal-garden .rsvp-form {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(226, 236, 233, 0.8);
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(46, 80, 70, 0.06);
}

.template-ethereal-garden .rsvp-form .form-input {
  border-color: #E2ECE9;
}

.template-ethereal-garden .rsvp-form .form-input:focus {
  border-color: #2E5043;
  box-shadow: 0 0 0 3px rgba(46, 80, 67, 0.1);
}

.template-ethereal-garden .toggle-btn.active {
  background: #2E5043;
  color: #FFFFFF;
}

.template-ethereal-garden .btn-primary {
  background: linear-gradient(135deg, #2E5043, #4A7263);
  color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(46, 80, 67, 0.15);
}

.template-ethereal-garden .rsvp-success {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(226, 236, 233, 0.8);
  border-radius: 16px;
}

/* Music toggle */
.template-ethereal-garden .music-toggle {
  background: #E2ECE9;
  color: #2E5043;
  border-color: rgba(46, 80, 67, 0.2);
}

/* Responsive overrides for templates */
@media (max-width: 768px) {
  .template-sunkissed .inv-hero-photos {
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .template-sunkissed .inv-hero-photo {
    width: 100px;
    height: 100px;
  }

  .template-sunkissed #invHeroPhoto2 {
    width: 90px;
    height: 90px;
    margin-left: -30px;
  }

  .template-sunkissed .inv-hero-content {
    padding: 2rem 1rem;
  }

  .template-sunkissed .countdown {
    flex-wrap: wrap;
  }

  .template-sunkissed .inv-section-header {
    text-align: center;
  }

  .template-sunkissed .inv-section-header h2::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .template-sunkissed .inv-section-header p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .template-sunkissed .couple-story {
    grid-template-columns: 1fr;
  }

  .template-sunkissed .dress-code-display {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .template-ocean-pines .inv-hero {
    min-height: 90vh;
  }

  .template-ocean-pines .inv-hero-content {
    padding: 1.5rem;
  }

  .template-ocean-pines .inv-hero-photo {
    width: 90px;
    height: 90px;
  }

  .template-ocean-pines #invHeroPhoto2 {
    width: 80px;
    height: 80px;
    margin-left: -30px;
  }

  .template-ocean-pines .couple-card {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem;
  }

  .template-ocean-pines .couple-photo {
    width: 80px;
    height: 80px;
  }

  .template-midnight-velvet .inv-hero-content {
    padding-bottom: 10rem;
  }

  .template-midnight-velvet .countdown {
    flex-wrap: wrap;
    justify-content: center;
  }

  .template-midnight-velvet .inv-hero-photo {
    width: 90px;
    height: 130px;
  }

  .template-pearl .inv-hero-content {
    padding-bottom: 10rem;
  }

  .template-pearl .inv-hero-photo {
    width: 80px;
    height: 110px;
  }

  .template-rose-noir .inv-hero-content {
    padding-bottom: 12rem;
  }

  .template-rose-noir .inv-hero-photo {
    width: 90px;
    height: 120px;
  }
}

/* Template Gallery */
/* Occasion Toggle */
.occasion-toggle {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.occasion-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-sans);
  color: var(--charcoal-soft);
}

.occasion-btn:hover {
  border-color: var(--plum-light);
}

.occasion-btn.selected {
  border-color: var(--plum);
  background: var(--plum);
  color: var(--white);
  box-shadow: 0 0 0 3px var(--plum-glow);
}

.template-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
}

.template-card {
  background: var(--white);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  overflow: hidden;
  position: relative;
}

.template-card:hover {
  border-color: var(--plum-light);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.template-card.selected {
  border-color: var(--plum);
  box-shadow: 0 0 0 3px var(--plum-glow);
}

.template-card.selected::after {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--plum);
  color: var(--white);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
  z-index: 10;
  box-shadow: var(--shadow-sm);
}

.template-preview {
  display: flex;
  height: 60px;
  overflow: hidden;
}

.tp-swatch {
  flex: 1;
  height: 100%;
}

.template-info {
  padding: 0.65rem 0.75rem;
}

.template-info h4 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.1rem;
}

.template-info p {
  font-size: 0.75rem;
  color: var(--charcoal-light);
  margin: 0;
}

/* Music Upload */
.music-upload {
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.music-upload:hover {
  border-color: var(--plum);
  background: var(--plum-glow);
}

.music-upload .upload-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.music-upload p {
  font-size: 0.85rem;
}

/* Step Actions */
.step-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

/* Dashboard Invitation List (RSVPs) */
.dash-rsvps {
  margin-top: 1.5rem;
}

.rsvp-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.rsvp-card-info h4 {
  font-size: 0.95rem;
  font-family: var(--font-sans);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.rsvp-card-info p {
  font-size: 0.8rem;
  color: var(--charcoal-light);
}

.rsvp-status {
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.rsvp-status.attending {
  background: var(--green-glow);
  color: var(--green);
}

.rsvp-status.declining {
  background: rgba(211, 47, 47, 0.1);
  color: var(--error);
}

.rsvp-empty {
  text-align: center;
  padding: 2rem;
  color: var(--charcoal-light);
  font-size: 0.9rem;
}

/* Completed View */
.invite-complete {
  text-align: center;
  padding: 3rem 0;
}

.invite-complete .check-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.invite-complete h2 {
  margin-bottom: 0.5rem;
}

.invite-complete p {
  margin-bottom: 1.5rem;
}

.invite-url-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--ivory);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  max-width: 480px;
  margin: 0 auto;
  border: 1px solid var(--border-light);
}

.invite-url-box code {
  flex: 1;
  font-family: monospace;
  color: var(--plum);
}

.copy-btn {
  background: none;
  border: none;
  color: var(--charcoal-light);
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.copy-btn:hover {
  background: var(--ivory-dark);
  color: var(--charcoal);
}

/* ============================================
DASHBOARD v2 — Enhanced Layout & Sections
============================================ */

/* Updated Header */
.dash-logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--plum);
  font-weight: 600;
}

.dash-notif-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--charcoal-soft);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 50%;
  transition: all var(--transition-fast);
  line-height: 1;
}

.dash-notif-btn:hover {
  background: var(--ivory-dark);
  color: var(--plum);
}

/* --- New Layout --- */
.dash-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: calc(100vh - 60px);
}

/* --- Sidebar --- */
.dash-sidebar {
  background: var(--white);
  border-right: 1px solid var(--border-light);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
}

.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 0.88rem;
  color: var(--charcoal-soft);
  text-decoration: none;
  user-select: none;
}

.dash-nav-item:hover {
  background: var(--ivory);
  color: var(--charcoal);
}

.dash-nav-item.active {
  background: var(--plum-glow);
  color: var(--plum);
  font-weight: 600;
}

.nav-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.dash-sidebar-rsvp {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}

.dash-sidebar-rsvp-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--charcoal-light);
  margin-bottom: 0.5rem;
}

.sidebar-rsvp-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--border-light);
}

.sidebar-rsvp-item:last-child {
  border-bottom: none;
}

.sidebar-rsvp-name {
  font-weight: 500;
  color: var(--charcoal);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- Main Content --- */
.dash-content {
  padding: 2rem 2.5rem;
  min-width: 0;
}

.dash-content-inner {
  animation: viewEnter 0.4s var(--ease-out);
}

.dash-section {
  display: none;
}

.dash-section.active {
  display: block;
  animation: viewEnter 0.4s var(--ease-out);
}

.dash-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
}

.dash-section-header h2 {
  margin-bottom: 0;
}

/* --- Stats Grid --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.stat-icon-plum {
  background: var(--plum-glow);
  color: var(--plum);
}

.stat-icon-gold {
  background: rgba(201, 169, 110, 0.15);
  color: var(--gold-dark);
}

.stat-icon-green {
  background: var(--green-glow);
  color: var(--green);
}

.stat-icon-rose {
  background: rgba(211, 47, 47, 0.08);
  color: var(--error);
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--charcoal-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Quick Actions --- */
.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.quick-action-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-light);
}

.quick-action-card:hover {
  border-color: var(--plum-light);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.qa-icon {
  font-size: 1.3rem;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quick-action-card div {
  flex: 1;
}

.quick-action-card h4 {
  font-size: 0.92rem;
  margin-bottom: 0.1rem;
}

.quick-action-card p {
  font-size: 0.8rem;
  margin: 0;
}

.qa-arrow {
  color: var(--charcoal-light);
  font-size: 1.1rem;
  transition: transform var(--transition-fast);
}

.quick-action-card:hover .qa-arrow {
  transform: translateX(4px);
  color: var(--plum);
}

/* --- Wizard Tabs --- */
.wizard-tabs {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  position: relative;
  background: transparent;
  padding: 0;
  overflow: visible;
}

.wizard-tabs::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--border-light);
  z-index: 0;
}

.wizard-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 1;
}

.wizard-tab:hover .wizard-num {
  border-color: var(--plum-light);
  color: var(--plum);
}

.wizard-tab.active .wizard-label {
  color: var(--plum);
  font-weight: 700;
}

.wizard-tab.completed .wizard-num {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.wizard-tab.completed .wizard-label {
  color: var(--green);
}

.wizard-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--white);
  color: var(--charcoal-light);
  border: 2px solid var(--border-light);
  transition: all var(--transition-fast);
}

.wizard-tab.active .wizard-num {
  background: var(--plum);
  color: var(--white);
  border-color: var(--plum);
  box-shadow: 0 0 0 4px var(--plum-glow);
}

.wizard-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--charcoal-light);
  text-align: center;
}

/* ===== PAYMENT STEP ===== */
#step4 {
  position: relative;
}

#step4::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 120%;
  height: 140%;
  background: radial-gradient(ellipse at 30% 40%, rgba(86, 0, 125, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 60%, rgba(201, 169, 110, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

#step4>* {
  position: relative;
  z-index: 1;
}

.pricing-tiers {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}

.pricing-card {
  flex: 1;
  min-width: 230px;
  max-width: 310px;
  background: var(--white);
  border: 2px solid var(--charcoal-soft);
  border-radius: 24px;
  padding: 2rem 1.5rem 1.75rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.pricing-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.pricing-card:hover {
  transform: translateY(-6px);
  border-color: var(--plum-light);
}

.pricing-card:hover::after {
  opacity: 1;
}

.pricing-card.recommended {
  border-width: 2px;
  border-color: var(--gold);
  background: linear-gradient(135deg, #FFFCF5, var(--white));
  box-shadow: 0 8px 32px rgba(201, 169, 110, 0.15), var(--shadow-sm);
  transform: scale(1.03);
  z-index: 1;
}

.pricing-card.recommended:hover {
  transform: scale(1.03) translateY(-4px);
  border-color: var(--gold-dark);
  box-shadow: 0 12px 40px rgba(201, 169, 110, 0.25), var(--shadow-md);
}

.pricing-card.selected {
  border-color: var(--plum);
  background: linear-gradient(135deg, #FBF5FF, var(--white));
  box-shadow: 0 0 0 3px rgba(86, 0, 125, 0.15), var(--shadow-sm);
}

.pricing-card.selected.recommended {
  border-color: var(--plum);
  background: linear-gradient(135deg, #FFF8EA, #FBF5FF);
  box-shadow: 0 0 0 3px rgba(86, 0, 125, 0.15), 0 8px 32px rgba(201, 169, 110, 0.15), var(--shadow-sm);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 1.2rem;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(201, 169, 110, 0.4);
}

.pricing-header {
  text-align: center;
  margin-bottom: 1.25rem;
  padding-top: 0.35rem;
}

.pricing-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--charcoal);
  margin: 0 0 0.15rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.pricing-card[data-tier="silver"] .pricing-name {
  color: #6B7B8D;
}

.pricing-card[data-tier="gold"] .pricing-name {
  color: var(--gold-dark);
}

.pricing-card[data-tier="platinum"] .pricing-name {
  color: var(--plum);
}

.pricing-price {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--charcoal);
  line-height: 1.1;
  margin: 0.25rem 0 0.1rem;
}

.pricing-card[data-tier="silver"] .pricing-price {
  color: #6B7B8D;
}

.pricing-card[data-tier="gold"] .pricing-price {
  color: var(--gold-dark);
}

.pricing-card[data-tier="platinum"] .pricing-price {
  color: var(--plum);
}

.pricing-currency {
  font-size: 1.1rem;
  vertical-align: super;
  font-weight: 600;
}

.pricing-desc {
  font-size: 0.78rem;
  color: var(--charcoal-light);
  margin-top: 0.15rem;
  line-height: 1.4;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  flex: 1;
}

.pricing-features li {
  padding: 0.5rem 0;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  line-height: 1.4;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li::before {
  content: '✓';
  color: var(--green, #2e7d32);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(46, 125, 50, 0.1);
  border-radius: 50%;
}

.pricing-features li.na {
  color: var(--charcoal-light);
  opacity: 0.55;
}

.pricing-features li.na::before {
  content: '—';
  color: var(--charcoal-light);
  background: rgba(0, 0, 0, 0.04);
  font-weight: 400;
}

#paymentDetails {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--ivory-dark);
  border-radius: var(--radius-sm);
  text-align: center;
}

/* ===== SUBSCRIPTION STATUS BANNER ===== */
.sub-status {
  margin: 1.5rem 0 0;
}

.sub-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.sub-banner-warning {
  background: rgba(255, 193, 7, 0.12);
  border: 1px solid rgba(255, 193, 7, 0.3);
  color: var(--charcoal);
}

.sub-banner-active {
  background: rgba(46, 125, 50, 0.08);
  border: 1px solid rgba(46, 125, 50, 0.25);
  color: var(--charcoal);
}

.sub-banner-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.sub-banner-text {
  flex: 1;
  line-height: 1.5;
}

.sub-banner-link {
  color: var(--plum);
  font-weight: 600;
  text-decoration: underline;
  white-space: nowrap;
}

.sub-banner-link:hover {
  color: var(--plum-dark);
}

.tpl-lock-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: var(--font-sans);
  background: linear-gradient(135deg, var(--plum), #8B00C9);
  color: #fff;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 3px;
  line-height: 1;
  letter-spacing: 0.03em;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(86, 0, 125, 0.35);
}

.tpl-lock-badge::before {
  content: '✦';
  font-size: 0.6rem;
}

.guest-upgrade-banner {
  margin-bottom: 0.5rem;
}

/* ===== PREMIUM TEMPLATE PREVIEW BANNER ===== */
#inv-preview-banner {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(90deg, var(--plum), #8B00C9);
  color: #fff;
  padding: 0.6rem 1.5rem;
}

.inv-preview-banner-inner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 900px;
  margin: 0 auto;
  font-size: 0.88rem;
  font-family: var(--font-sans);
  font-weight: 500;
}

.inv-preview-banner-icon {
  font-size: 0.85rem;
  opacity: 0.85;
}

.inv-preview-banner-link {
  color: #FFD6FF;
  font-weight: 700;
  text-decoration: underline;
  margin-left: 0.3rem;
}

.inv-preview-banner-link:hover {
  color: #fff;
}


/* ===== INVITATION NOT PUBLISHED ===== */
.inv-not-published {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ivory);
  padding: 2rem;
}

.inv-not-published-inner {
  text-align: center;
  max-width: 400px;
}

.inv-not-published-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

.inv-not-published-inner h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--charcoal);
}

.inv-not-published-inner p {
  color: var(--charcoal-soft);
  line-height: 1.6;
}

.payment-methods {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.payment-option {
  width: 120px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--charcoal-soft);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--white);
  padding: 0.5rem;
  overflow: hidden;
}

.payment-option:hover {
  border-color: var(--plum);
  box-shadow: var(--shadow-sm);
}

.payment-option.selected {
  border-color: var(--plum);
  box-shadow: 0 0 0 2px var(--plum-light, rgba(86, 0, 125, 0.2));
}

.payment-option img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.couple-input-group {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
}

.couple-ampersand {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--gold);
  text-align: center;
  font-style: italic;
}

.wizard-rsvp-summary {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.wizard-rsvp-summary h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

/* --- Guest Table --- */
.guest-header-actions {
  display: flex;
  gap: 0.5rem;
}

.guest-search {
  width: 220px;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
}

.guest-table-wrap {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.guest-table {
  width: 100%;
  border-collapse: collapse;
}

.guest-table thead {
  background: var(--ivory);
}

.guest-table th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--charcoal-light);
  border-bottom: 1px solid var(--border-light);
}

.guest-table td {
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  color: var(--charcoal);
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.guest-table tr:last-child td {
  border-bottom: none;
}

.guest-table tr:hover td {
  background: var(--ivory);
}

.guest-table .guest-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.guest-status.attending {
  background: var(--green-glow);
  color: var(--green);
}

.guest-status.declining {
  background: rgba(211, 47, 47, 0.08);
  color: var(--error);
}

.guest-status.pending {
  background: rgba(201, 169, 110, 0.15);
  color: var(--gold-dark);
}

.guest-table .guest-dietary {
  font-size: 0.82rem;
  color: var(--charcoal-soft);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guest-table .guest-song {
  font-size: 0.82rem;
  color: var(--charcoal-soft);
  font-style: italic;
}

.guest-table .guest-date {
  font-size: 0.78rem;
  color: var(--charcoal-light);
}

/* --- Analytics --- */
.analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.analytics-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.analytics-card-wide {
  grid-column: 1 / -1;
}

.analytics-card h3 {
  font-size: 1rem;
  font-family: var(--font-sans);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

/* Donut Ring */
.analytics-ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: conic-gradient(var(--green) 0deg, var(--charcoal-light) 0deg);
  margin: 0 auto 1rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.analytics-ring::before {
  content: '';
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--white);
}

.ring-stats {
  position: relative;
  z-index: 2;
  text-align: center;
}

.ring-value {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1;
}

.ring-label {
  font-size: 0.72rem;
  color: var(--charcoal-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.analytics-legend {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.82rem;
  color: var(--charcoal-soft);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Bars */
.analytics-bars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.analytics-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--charcoal-soft);
  margin-bottom: 0.3rem;
}

.analytics-bar-track {
  height: 10px;
  background: var(--ivory-dark);
  border-radius: 50px;
  overflow: hidden;
}

.analytics-bar-fill {
  height: 100%;
  border-radius: 50px;
  transition: width 0.8s var(--ease-out);
}

.attending-bar {
  background: linear-gradient(90deg, var(--green), var(--green-light));
}

.declining-bar {
  background: linear-gradient(90deg, var(--charcoal-light), #B0B0B0);
}

.analytics-total {
  text-align: center;
  font-size: 0.85rem;
  color: var(--charcoal-soft);
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
}

/* Song Requests */
.song-request-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.88rem;
}

.song-request-item:last-child {
  border-bottom: none;
}

.song-request-item .song-icon {
  color: var(--gold);
  font-size: 1rem;
}

.song-request-item .song-name {
  flex: 1;
  color: var(--charcoal);
}

.song-request-item .song-guest {
  font-size: 0.78rem;
  color: var(--charcoal-light);
}

/* --- Settings --- */
.settings-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
}

.settings-card h3 {
  font-size: 1rem;
  font-family: var(--font-sans);
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

/* --- Responsive Dashboard --- */
@media (max-width: 768px) {
  .dash-body {
    grid-template-columns: 1fr;
  }

  .dash-sidebar {
    display: none;
  }

  .dash-content {
    padding: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .analytics-grid {
    grid-template-columns: 1fr;
  }

  .wizard-tab .wizard-label {
    display: none;
  }

  .guest-table th:nth-child(3),
  .guest-table th:nth-child(4),
  .guest-table td:nth-child(3),
  .guest-table td:nth-child(4) {
    display: none;
  }

  .guest-search {
    width: 140px;
  }

  .couple-input-group {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .couple-ampersand {
    display: none;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-value {
    font-size: 1.3rem;
  }

  .dash-section-header {
    flex-direction: column;
  }
}

/* ============================================
INVITATION VIEW (Guest-facing)
============================================ */
#view-invitation {
  min-height: 100vh;
  background: var(--ivory);
}

#view-invitation.active {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow-y: auto;
}

/* --- Invitation Hero --- */
.inv-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.inv-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0.25) 0%,
      rgba(0, 0, 0, 0.5) 50%,
      rgba(0, 0, 0, 0.7) 100%);
  z-index: 1;
}

.inv-hero-bg {
  position: absolute;
  inset: -10%;
  background: linear-gradient(135deg, #1a0027 0%, #3a0055 30%, #56007d 60%, #2d1b00 100%);
  z-index: 0;
}

.inv-hero-bg .particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.inv-hero-bg .particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  animation: particleFloat 8s ease-in-out infinite;
}

.inv-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 800px;
  color: var(--white);
}

.inv-hero-ornament {
  font-size: 2rem;
  margin-bottom: 1rem;
  opacity: 0.6;
  letter-spacing: 0.5em;
  animation: fadeInDown 1s var(--ease-out) 0.2s both;
}

.inv-hero-names {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 0.5rem;
  animation: fadeInUp 1s var(--ease-out) 0.4s both;
}

.inv-hero-names .ampersand {
  display: block;
  font-style: italic;
  color: var(--gold);
  margin: 0.2rem 0;
  line-height: 1;
}

.inv-hero-invite {
  font-size: 1rem;
  opacity: 0.8;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  font-weight: 300;
  animation: fadeInUp 1s var(--ease-out) 0.6s both;
}

.inv-hero-date {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  opacity: 0.9;
  margin-bottom: 2.5rem;
  animation: fadeInUp 1s var(--ease-out) 0.8s both;
}

/* --- Countdown --- */
.countdown {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  animation: fadeInUp 1s var(--ease-out) 1s both;
}

.countdown-item {
  text-align: center;
  min-width: 70px;
}

.countdown-value {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1;
  color: var(--white);
}

.countdown-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.6;
  margin-top: 0.3rem;
  display: block;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounceDown 2s ease-in-out infinite;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.2rem;
  cursor: pointer;
}

/* --- Invitation Sections --- */
.inv-section {
  padding: 5rem 2rem;
  max-width: 720px;
  margin: 0 auto;
}

.inv-section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.inv-section-header .ornament {
  font-size: 1.5rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.inv-section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  margin-bottom: 0.5rem;
}

.inv-section-header p {
  font-size: 0.95rem;
  max-width: 500px;
  margin: 0 auto;
}

/* --- Couple Story --- */
.couple-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.couple-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.couple-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.couple-card p {
  font-size: 0.85rem;
  color: var(--charcoal-soft);
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--plum), var(--gold), var(--green));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
  animation: fadeInUp 0.6s var(--ease-out) both;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--plum);
  z-index: 2;
}

.timeline-item:nth-child(2) .timeline-dot {
  border-color: var(--gold);
}

.timeline-item:nth-child(3) .timeline-dot {
  border-color: var(--green);
}

.timeline-time {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--plum);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.timeline-content {
  background: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.timeline-content h4 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.timeline-content p {
  font-size: 0.85rem;
  color: var(--charcoal-soft);
}

.timeline-content .location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--charcoal-light);
  margin-top: 0.3rem;
}

/* --- Dress Code Display --- */
.dress-code-display {
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  max-width: 400px;
  margin: 0 auto;
}

.dress-code-display .dress-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  display: block;
}

.dress-code-display h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.dress-code-display p {
  font-size: 0.85rem;
  color: var(--charcoal-soft);
}

/* --- Dress Code Sample Images --- */
.dress-sample-images {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.dress-sample {
  width: 140px;
  height: 180px;
  border-radius: var(--radius-sm);
  background: var(--ivory-dark);
  border: 2px dashed var(--border-light);
  transition: all var(--transition-med);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dress-sample-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--charcoal-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.dress-sample.has-image .dress-sample-label {
  opacity: 0;
}

.dress-sample.has-image {
  border: 2px solid var(--gold-light);
  box-shadow: var(--shadow-sm);
}

.inv-section .dress-sample-images {
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Dress Code Sample Uploads (Dashboard) --- */
.dress-sample-uploads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.dress-sample-box {
  min-height: 100px;
}

.gallery-upload-box {
  min-height: 110px;
}

.dress-swatch-editor {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.swatch-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--ivory);
  border: 1.5px solid var(--champagne);
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
}

.swatch-row input[type="color"] {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  background: none;
}

.swatch-row input[type="text"] {
  border: none;
  background: transparent;
  font-size: 0.8rem;
  width: 90px;
  padding: 0.2rem;
  color: var(--charcoal);
  font-family: inherit;
}

.swatch-row input[type="text"]:focus {
  outline: none;
}

.swatch-row .remove-swatch {
  background: none;
  border: none;
  color: #c0392b;
  cursor: pointer;
  font-size: 1rem;
  padding: 0 0.15rem;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.15s;
}

.swatch-row .remove-swatch:hover {
  opacity: 1;
}

.timeline-editor {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.timeline-row {
  display: grid;
  grid-template-columns: 100px 1fr 1fr auto;
  gap: 0.4rem;
  align-items: start;
  background: var(--ivory);
  border: 1.5px solid var(--champagne);
  border-radius: 8px;
  padding: 0.5rem;
}

.timeline-row input,
.timeline-row textarea {
  border: 1.5px solid var(--champagne);
  border-radius: 6px;
  padding: 0.35rem 0.5rem;
  font-size: 0.8rem;
  font-family: inherit;
  background: var(--white);
  color: var(--charcoal);
  resize: none;
}

.timeline-row input:focus,
.timeline-row textarea:focus {
  outline: none;
  border-color: var(--plum);
}

.timeline-row .remove-timeline {
  background: none;
  border: none;
  color: #c0392b;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.3rem;
  opacity: 0.6;
  transition: opacity 0.15s;
  align-self: center;
}

.timeline-row .remove-timeline:hover {
  opacity: 1;
}

.story-row {
  display: grid;
  grid-template-columns: 90px 1fr 1.4fr auto;
  gap: 0.4rem;
  align-items: start;
  background: var(--ivory);
  border: 1.5px solid var(--champagne);
  border-radius: 8px;
  padding: 0.5rem;
}

.story-row input,
.story-row textarea {
  border: 1.5px solid var(--champagne);
  border-radius: 6px;
  padding: 0.35rem 0.5rem;
  font-size: 0.8rem;
  font-family: inherit;
  background: var(--white);
  color: var(--charcoal);
  resize: none;
}

.story-row input:focus,
.story-row textarea:focus {
  outline: none;
  border-color: var(--plum);
}

.story-row .remove-story {
  background: none;
  border: none;
  color: #c0392b;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.3rem;
  opacity: 0.6;
  transition: opacity 0.15s;
  align-self: center;
}

.story-row .remove-story:hover {
  opacity: 1;
}

.info-cards-editor {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.info-card-row {
  background: var(--ivory);
  border: 1.5px solid var(--champagne);
  border-radius: 8px;
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.info-card-row .info-card-header {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.info-card-row .info-card-header input {
  border: 1.5px solid var(--champagne);
  border-radius: 6px;
  padding: 0.35rem 0.5rem;
  font-size: 0.8rem;
  font-family: inherit;
  background: var(--white);
  color: var(--charcoal);
  flex: 1;
}

.info-card-row .info-card-header input:focus {
  outline: none;
  border-color: var(--plum);
}

.info-card-row textarea {
  border: 1.5px solid var(--champagne);
  border-radius: 6px;
  padding: 0.35rem 0.5rem;
  font-size: 0.8rem;
  font-family: inherit;
  background: var(--white);
  color: var(--charcoal);
  resize: none;
}

.info-card-row textarea:focus {
  outline: none;
  border-color: var(--plum);
}

.info-card-row .info-card-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.info-card-row .info-card-links input {
  border: 1.5px solid var(--champagne);
  border-radius: 6px;
  padding: 0.35rem 0.5rem;
  font-size: 0.8rem;
  font-family: inherit;
  background: var(--white);
  color: var(--charcoal);
}

.info-card-row .info-card-links input:focus {
  outline: none;
  border-color: var(--plum);
}

.info-card-row .remove-info-card {
  background: none;
  border: none;
  color: #c0392b;
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  opacity: 0.6;
  transition: opacity 0.15s;
  align-self: flex-start;
}

.info-card-row .remove-info-card:hover {
  opacity: 1;
}

/* --- Custom Text Editor --- */
.ct-group {
  border: 1px solid var(--champagne);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.9rem;
  background: #fbfaf7;
}

.ct-group-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--plum);
  margin-bottom: 0.6rem;
}

.ct-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.6rem;
}

.ct-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--charcoal);
}

.ct-field input,
.ct-field textarea {
  border: 1.5px solid var(--champagne);
  border-radius: 6px;
  padding: 0.4rem 0.55rem;
  font-size: 0.82rem;
  font-family: inherit;
  background: var(--white);
  color: var(--charcoal);
  resize: vertical;
}

.ct-field input:focus,
.ct-field textarea:focus {
  outline: none;
  border-color: var(--plum);
}

.section-toggle {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--charcoal);
  padding: 0.45rem 0.65rem;
  border: 1.5px solid var(--champagne);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  user-select: none;
}

.section-toggle input {
  accent-color: var(--plum);
}

.section-toggle:has(input:not(:checked)) {
  opacity: 0.55;
  background: #f5f2ec;
  text-decoration: line-through;
}

/* --- RSVP Section --- */
.inv-rsvp {
  background: linear-gradient(160deg, var(--ivory) 0%, var(--champagne) 100%);
}

.rsvp-form {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  max-width: 520px;
  margin: 0 auto;
}

.rsvp-success {
  display: none;
  text-align: center;
  padding: 2rem;
  max-width: 520px;
  margin: 0 auto;
}

.rsvp-success.show {
  display: block;
  animation: viewEnter 0.6s var(--ease-out);
}

.rsvp-success .success-icon {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 1rem;
}

.rsvp-success h3 {
  margin-bottom: 0.3rem;
}

.rsvp-success p {
  font-size: 0.9rem;
  color: var(--charcoal-soft);
}

/* --- Music Note (floating) --- */
.music-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--plum);
  color: var(--white);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 50;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.music-toggle.playing {
  animation: musicPulse 2s ease-in-out infinite;
}

@keyframes musicPulse {
  0%, 100% { transform: scale(1); box-shadow: var(--shadow-md); }
  50% { transform: scale(1.08); box-shadow: 0 0 20px rgba(255,255,255,0.3); }
}

/* ============================================
ANIMATIONS
============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceDown {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

@keyframes particleFloat {

  0%,
  100% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 0.3;
  }

  50% {
    transform: translateY(-120px) translateX(30px);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

/* Stagger children */
.stagger>* {
  animation: fadeInUp 0.6s var(--ease-out) both;
}

.stagger>*:nth-child(1) {
  animation-delay: 0s;
}

.stagger>*:nth-child(2) {
  animation-delay: 0.1s;
}

.stagger>*:nth-child(3) {
  animation-delay: 0.2s;
}

.stagger>*:nth-child(4) {
  animation-delay: 0.3s;
}

.stagger>*:nth-child(5) {
  animation-delay: 0.4s;
}

.stagger>*:nth-child(6) {
  animation-delay: 0.5s;
}

/* ============================================
PARALLAX
============================================ */
.parallax-section {
  will-change: transform;
}

/* ============================================
RESPONSIVE
============================================ */
@media (max-width: 768px) {
  .nav {
    padding: 0.75rem 1rem;
  }

  .nav-links {
    gap: 0.35rem;
    justify-content: flex-end;
  }

  .nav-links .btn {
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
  }

  .nav-links .btn span {
    display: none;
  }

  .dash-layout {
    grid-template-columns: 1fr;
  }

  .dash-sidebar {
    display: none;
  }

  .dash-main {
    padding: 1.5rem;
  }

  .couple-story {
    grid-template-columns: 1fr;
  }

  .countdown {
    gap: 1rem;
  }

  .countdown-item {
    min-width: 55px;
  }

  .inv-section {
    padding: 3rem 1.25rem;
  }

  .modal {
    padding: 1.5rem;
  }

}

@media (max-width: 480px) {
  h1 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .inv-hero-names {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .countdown {
    gap: 0.75rem;
  }

  .countdown-item {
    min-width: 45px;
  }

  .countdown-value {
    font-size: 1.8rem;
  }
}

/* ============================================
HEARTS TRAIL — Cursor follower
============================================ */
.hearts-trail {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

.heart-particle {
  position: absolute;
  font-family: serif;
  will-change: transform, opacity;
  line-height: 1;
  animation: heartFloat 1.2s ease-out forwards;
  pointer-events: none;
  user-select: none;
}

@keyframes heartFloat {
  0% {
    transform: translateY(0) translateX(0) scale(0.3);
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  100% {
    transform: translateY(-80px) translateX(20px) scale(1);
    opacity: 0;
  }
}

/* ============================================
BULK IMPORT
============================================ */
.bulk-import-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.bulk-import-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.bulk-import-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.bulk-import-header h4 {
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.bulk-import-header p {
  font-size: 0.82rem;
  color: var(--charcoal-soft);
}

.bulk-import-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.bulk-guest-list {
  margin-top: 1rem;
}

.bulk-count {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--plum);
  margin-bottom: 0.5rem;
}

.bulk-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.bulk-chip {
  background: var(--plum-glow);
  color: var(--plum);
  font-size: 0.78rem;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  font-weight: 500;
}

.bulk-status {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.bulk-status.success {
  background: var(--green-glow);
  color: var(--green);
}

.bulk-status.error {
  background: rgba(211, 47, 47, 0.08);
  color: var(--error);
}

/* ============================================
MOBILE IMPROVEMENTS
============================================ */

/* --- Hamburger --- */
.dash-menu-btn {
  display: none;
}

.dash-sidebar-overlay {
  display: none;
}

/* Mobile sidebar overlay */
@media (max-width: 768px) {
  .dash-menu-btn {
    display: inline-flex;
  }

  .dash-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 260px;
    height: 100vh;
    z-index: 200;
    transition: left var(--transition-med);
    box-shadow: var(--shadow-lg);
    display: flex !important;
  }

  .dash-sidebar.open {
    left: 0;
  }

  .dash-sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 199;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-med);
  }

  .dash-sidebar-overlay.open {
    opacity: 1;
    pointer-events: all;
  }

  .dash-header {
    padding: 0.75rem 1rem;
  }

  .dash-header-left {
    gap: 0.5rem;
  }

  .dash-header-right .dash-user {
    display: none;
  }

  .dash-header-right .btn-ghost {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
  }

  .dash-logo {
    font-size: 1rem;
  }

  .dash-main {
    padding: 1rem;
  }

  .dash-section {
    padding: 0;
  }

  .dash-nav-item {
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
  }

  /* Wizard tabs */
  .wizard-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .wizard-tabs::-webkit-scrollbar {
    display: none;
  }

  .wizard-tab {
    min-width: 60px;
    flex: 0 0 auto;
    padding: 0.5rem;
    font-size: 0.75rem;
  }

  .wizard-tab .wizard-label {
    display: none;
  }

  /* Step panels */
  .step-panel h2 {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
  }

  .step-panel .step-desc {
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
  }

  /* Photo uploads */
  .photo-uploads {
    grid-template-columns: 1fr;
  }

  .photo-upload-box {
    min-height: 90px;
  }

  /* Dress code picker */
  .dress-code-picker {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Color pickers */
  .color-pickers {
    grid-template-columns: 1fr;
  }

  /* Guest table horizontal scroll */
  .guest-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -0.5rem;
    padding: 0 0.5rem;
  }

  /* Pricing toggle row */
  .pricing-toggle-row {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .pricing-toggle-row .btn {
    flex: 1;
    min-width: 80px;
  }

  /* Subscription cards on mobile */
  .pricing-plans {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .pricing-card {
    padding: 1.5rem;
  }

  .pricing-card.featured {
    transform: none;
  }

  /* Step actions */
  .step-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .step-actions .btn {
    width: 100%;
  }

  /* Settings card */
  .settings-card {
    padding: 1rem;
  }

  /* Stats grid */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .stat-card {
    padding: 0.75rem;
  }

  .stat-value {
    font-size: 1.2rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  /* RSVP list */
  .rsvp-item {
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.75rem;
  }

  .rsvp-actions {
    width: 100%;
    justify-content: flex-end;
  }

  /* Analytics */
  .analytics-grid {
    grid-template-columns: 1fr;
  }

  .analytics-card {
    padding: 1rem;
  }

  /* Guest list */
  .guest-actions-top {
    flex-direction: column;
    gap: 0.5rem;
  }

  .guest-search {
    width: 100%;
  }

  /* Overview */
  .quick-actions {
    grid-template-columns: 1fr;
  }

  /* Invitation view hero photos */
  .inv-hero-photos {
    gap: 0.75rem;
  }

  .template-midnight-velvet .inv-hero-photo {
    width: 70px;
    height: 100px;
  }

  .template-midnight-velvet #invHeroPhoto2 {
    margin-top: 0.75rem;
  }

  /* Landing nav */
  .nav {
    padding: 0.6rem 1rem;
  }

  .nav-links {
    gap: 0.35rem;
    justify-content: flex-end;
  }

  .nav-links .btn {
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
  }

  .nav-links .btn span {
    display: none;
  }

  .hero-inner {
    padding: 5rem 1.25rem 2rem;
    gap: 2rem;
  }

  .hero-dashboard {
    height: 260px;
  }

  .dash-card {
    width: 180px;
  }

  .dc-1 {
    right: 2%;
    top: 5%;
  }

  .dc-2 {
    left: 2%;
    bottom: 5%;
  }

  .dc-3 {
    display: none;
  }

  /* Features, steps, templates */
  .features,
  .how-it-works,
  .templates-showcase,
  .faq-section {
    padding: 3rem 1rem;
  }

  .features-grid,
  .templates-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    padding: 3rem 1rem;
  }

  .cta-content h2 {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
  }

  /* Footer */
  .footer {
    padding: 2rem 1rem;
  }

  /* Modal */
  .modal {
    width: 95%;
    padding: 1.25rem;
  }

  .modal-title {
    font-size: 1.3rem;
  }

  /* Payment form */
  .payment-methods {
    flex-direction: column;
  }

  .ecocash-input-group {
    flex-direction: column;
    gap: 0.5rem;
  }

  .ecocash-input-group input {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .hero-typing {
    font-size: 0.85rem;
    min-height: 1.5rem;
  }

  .dash-card {
    width: 140px;
  }

  .dc-body {
    padding: 0.6rem 0.75rem;
  }

  .dc-names {
    font-size: 0.75rem;
  }

  .hero-dashboard {
    height: 200px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dress-code-picker {
    grid-template-columns: 1fr 1fr;
  }

  .template-picker {
    grid-template-columns: 1fr;
  }

  .bulk-import-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .bulk-import-actions .btn {
    width: 100%;
  }

  .form-input,
  .form-textarea {
    font-size: 16px;
    /* prevents iOS zoom */
  }
}

@media (max-width: 600px) {
  .hero-inner {
    padding: 4rem 1.5rem 2rem;
    gap: 1.5rem;
  }

  .hero-text h1 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .hero-subtitle {
    font-size: clamp(0.95rem, 3.5vw, 1.05rem);
    max-width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 320px;
    padding: 0.9rem 1.5rem;
    font-size: 0.95rem;
  }
}

/* --- Admin Dashboard --- */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.75rem;
}

.admin-tab.active {
  background: var(--plum);
  color: #fff;
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
}

.admin-toolbar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.admin-search {
  flex: 1;
  min-width: 200px;
}

.admin-filter {
  width: auto;
  min-width: 120px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.admin-table th {
  text-align: left;
  padding: 0.6rem 0.75rem;
  background: var(--ivory-dark);
  border-bottom: 1px solid var(--border-light);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}

.admin-table th:hover {
  background: var(--champagne);
}

.admin-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: rgba(212, 175, 55, 0.04);
}

.admin-table code {
  font-size: 0.8rem;
  background: var(--ivory);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
}

.admin-table td small {
  color: var(--charcoal-soft);
  font-size: 0.75rem;
}

.admin-actions {
  white-space: nowrap;
  text-align: right;
}

.admin-actions .btn-xs {
  padding: 0.2rem 0.4rem;
  font-size: 0.8rem;
}

.admin-pagination {
  display: flex;
  gap: 0.25rem;
  justify-content: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.admin-pagination .btn-xs.active {
  background: var(--plum);
  color: #fff;
}

/* ============================================
SCROLL ANIMATIONS
============================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  will-change: opacity, transform;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 {
  transition-delay: 0.1s;
}

.stagger-2 {
  transition-delay: 0.2s;
}

.stagger-3 {
  transition-delay: 0.3s;
}

.stagger-4 {
  transition-delay: 0.4s;
}

/* ============================================
   TEMPLATE: FOREST ENVELOPE
   ============================================ */
.template-forest-envelope {
  --fe-ink: #2B2B26;
  --fe-ivory: #FAF6EC;
  --fe-forest: #233324;
  --fe-forest-deep: #161F17;
  --fe-gold: #B8933F;
  --fe-rose: #B4707A;
  --fe-line: rgba(184, 147, 63, 0.35);
}

.template-forest-envelope .inv-section,
.template-forest-envelope .inv-hero,
.template-forest-envelope .inv-rsvp,
.template-forest-envelope .inv-hero-bg,
.template-forest-envelope .hero-scroll-indicator,
.template-forest-envelope .inv-hero-photos,
.template-forest-envelope .inv-hero-content,
.template-forest-envelope .inv-hero-names,
.template-forest-envelope .inv-hero-invite,
.template-forest-envelope .inv-hero-date,
.template-forest-envelope .inv-hero-ornament,
.template-forest-envelope .countdown,
.template-forest-envelope .couple-story,
.template-forest-envelope .timeline,
.template-forest-envelope .dress-code-display,
.template-forest-envelope .dress-sample-images,
.template-forest-envelope .rsvp-form,
.template-forest-envelope .rsvp-success,
.template-forest-envelope .music-toggle {
  display: none !important;
}

/* gate/envelope */
/* Hide Forest Envelope elements by default (only show when template is active) */
#fe-gate,
.fe-hero,
.fe-story,
.fe-timeline,
.fe-dress,
.fe-rsvp {
  display: none;
}

.template-forest-envelope #fe-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
  background: radial-gradient(circle at 50% 30%, #2c3f2c 0%, var(--fe-forest-deep) 70%);
  transition: opacity 1s ease, visibility 1s ease;
}

.template-forest-envelope #fe-gate.fe-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.template-forest-envelope .fe-scene {
  perspective: 1800px;
  width: min(360px, 80vw);
  height: min(500px, 70vh);
}

.template-forest-envelope .fe-env-body {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #f3ecdb, var(--fe-ivory));
  border: 1px solid var(--fe-line);
  border-radius: 2px;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  opacity: 0;
  transition: opacity 0.6s ease 0.8s;
}

.template-forest-envelope .fe-env-body p.fe-eyebrow {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--fe-rose);
  letter-spacing: 0.08em;
  font-size: 13px;
  margin: 0 0 10px;
}

.template-forest-envelope .fe-env-body h1 {
  font-size: clamp(28px, 6vw, 38px);
  margin: 0 0 6px;
  color: var(--fe-forest);
}

.template-forest-envelope .fe-env-body .fe-sub {
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--fe-ink);
  opacity: 0.65;
  text-transform: uppercase;
}

.template-forest-envelope .fe-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 55%;
  transform-origin: top center;
  transform-style: preserve-3d;
  transition: transform 1.4s cubic-bezier(.65, 0, .35, 1);
  z-index: 5;
}

.template-forest-envelope .fe-flap-face {
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: linear-gradient(200deg, #2b3d2c, var(--fe-forest));
  border-bottom: 1px solid var(--fe-line);
}

.template-forest-envelope .fe-flap-face.fe-back {
  transform: rotateX(180deg);
  background: linear-gradient(200deg, #eee6d3, var(--fe-ivory));
}

.template-forest-envelope .fe-seal {
  position: absolute;
  left: 50%;
  top: 38%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #c98a6b, var(--fe-rose) 60%, #8f4d58 100%);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4), inset 0 2px 6px rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fbeee6;
  font-family: 'Fraunces', serif;
  font-size: 20px;
  letter-spacing: 0.02em;
  cursor: pointer;
  z-index: 20;
  transition: transform .3s ease;
}

.template-forest-envelope .fe-seal:hover {
  transform: scale(1.06);
}

.template-forest-envelope .fe-seal:active {
  transform: scale(0.96);
}

.template-forest-envelope .fe-prompt {
  position: absolute;
  bottom: -46px;
  left: 0;
  width: 100%;
  text-align: center;
  color: #e7dcc4;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
}

.template-forest-envelope .fe-scene.fe-open .fe-flap {
  transform: rotateX(180deg);
}

.template-forest-envelope .fe-scene.fe-open .fe-env-body {
  opacity: 1;
}

.template-forest-envelope .fe-scene.fe-open .fe-seal {
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

/* hero section */
.template-forest-envelope .fe-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #F4EEDD;
  min-height: 100vh;
  padding: 80px 24px;
  position: relative;
}

.template-forest-envelope .fe-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, #2c3f2c 0%, var(--fe-forest-deep) 70%);
  z-index: -1;
}

.template-forest-envelope .fe-hero-eyebrow {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--fe-rose);
  letter-spacing: 0.1em;
  font-size: 15px;
  margin-bottom: 18px;
}

.template-forest-envelope .fe-hero-heading {
  font-size: clamp(48px, 10vw, 110px);
  line-height: 0.98;
  margin: 0;
  color: #F8F3E4;
  font-family: 'Fraunces', serif;
  font-weight: 500;
}

.template-forest-envelope .fe-hero-amp {
  display: block;
  color: var(--fe-gold);
  font-style: italic;
  font-weight: 300;
  font-size: 0.5em;
  margin: 10px 0;
}

.template-forest-envelope .fe-divider {
  width: 60px;
  height: 1px;
  background: var(--fe-gold);
  opacity: 0.6;
  margin: 26px auto;
}

.template-forest-envelope .fe-hero-date {
  margin-top: 34px;
  font-size: 15px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #cbb98a;
}

.template-forest-envelope .fe-hero-place {
  margin-top: 8px;
  font-size: 14px;
  color: #a9b39a;
  letter-spacing: 0.05em;
}

/* story */
.template-forest-envelope .fe-story {
  display: block;
  padding: 120px 24px;
  max-width: 1000px;
  margin: 0 auto;
  background: var(--fe-ivory);
  border-radius: 2px;
}

.template-forest-envelope .fe-eyebrow {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--fe-rose);
  letter-spacing: 0.1em;
  font-size: 14px;
  margin-bottom: 10px;
  display: block;
}

.template-forest-envelope .fe-story h2 {
  font-size: clamp(30px, 5vw, 44px);
  color: var(--fe-forest);
  margin: 0 0 26px;
  font-family: 'Fraunces', serif;
  font-weight: 500;
}

.template-forest-envelope .fe-story p {
  font-size: 17px;
  line-height: 1.85;
  max-width: 620px;
  color: #3c3c34;
}

.template-forest-envelope .fe-story-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

.template-forest-envelope .fe-frame {
  aspect-ratio: 4/5;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #c9ceb8, #8fa07d 60%, #5d6e4c);
  box-shadow: 0 30px 60px -20px rgba(30, 40, 20, 0.35);
  transform: perspective(900px) rotateY(-4deg) rotateX(2deg);
}

.template-forest-envelope .fe-frame-two {
  transform: perspective(900px) rotateY(4deg) rotateX(-1deg) translateY(30px);
  background: linear-gradient(150deg, #e7d9c4, #c7a06e 60%, #8a6a3c);
}

.template-forest-envelope .fe-frame .fe-frame-mono {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 64px;
  color: rgba(255, 255, 255, 0.55);
  font-style: italic;
}

.template-forest-envelope .fe-frame .fe-frame-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.template-forest-envelope .fe-frame .fe-frame-cap {
  position: absolute;
  bottom: 14px;
  left: 16px;
  right: 16px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.template-forest-envelope .fe-frames {
  position: relative;
}

/* timeline */
.template-forest-envelope .fe-timeline {
  display: block;
  padding: 120px 24px;
  max-width: 1000px;
  margin: 0 auto;
  background: var(--fe-forest);
  color: #F4EEDD;
}

.template-forest-envelope .fe-tl-head {
  text-align: center;
  margin-bottom: 70px;
}

.template-forest-envelope .fe-tl-head h2 {
  font-size: clamp(30px, 5vw, 44px);
  color: #F8F3E4;
  margin: 0 0 10px;
  font-family: 'Fraunces', serif;
  font-weight: 500;
}

.template-forest-envelope .fe-tl {
  position: relative;
  padding-left: 0;
}

.template-forest-envelope .fe-tl::before {
  content: "";
  position: absolute;
  left: 110px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--fe-gold) 6%, var(--fe-gold) 94%, transparent);
  opacity: 0.5;
}

.template-forest-envelope .fe-tl-item {
  display: grid;
  grid-template-columns: 110px 40px 1fr;
  gap: 0 22px;
  padding: 26px 0;
  align-items: start;
}

.template-forest-envelope .fe-tl-time {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  color: var(--fe-gold);
  text-align: right;
  padding-top: 2px;
}

.template-forest-envelope .fe-tl-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--fe-rose);
  margin: 8px auto 0;
  box-shadow: 0 0 0 4px rgba(180, 112, 122, 0.18);
}

.template-forest-envelope .fe-tl-body h3 {
  margin: 0 0 6px;
  font-size: 20px;
  color: #F8F3E4;
  font-weight: 500;
  font-family: 'Fraunces', serif;
}

.template-forest-envelope .fe-tl-body p {
  margin: 0;
  color: #c9c2a9;
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 480px;
}

/* dress code */
.template-forest-envelope .fe-dress {
  display: block;
  padding: 120px 24px;
  max-width: 1000px;
  margin: 0 auto;
  background: var(--fe-ivory);
  border-radius: 2px;
}

.template-forest-envelope .fe-dress h2 {
  font-size: clamp(30px, 5vw, 44px);
  color: var(--fe-forest);
  margin: 0 0 14px;
  font-family: 'Fraunces', serif;
  font-weight: 500;
}

.template-forest-envelope .fe-dress .fe-dress-lead {
  font-size: 17px;
  color: #3c3c34;
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: 40px;
}

.template-forest-envelope .fe-dress-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.template-forest-envelope .fe-dress-notes div {
  border-top: 1px solid var(--fe-line);
  padding-top: 16px;
}

.template-forest-envelope .fe-dress-notes h4 {
  margin: 0 0 8px;
  font-family: 'Fraunces', serif;
  font-size: 17px;
  color: var(--fe-forest);
  font-weight: 500;
}

.template-forest-envelope .fe-dress-notes p {
  margin: 0;
  font-size: 14.5px;
  color: #4a4a3e;
  line-height: 1.7;
}

/* rsvp */
.template-forest-envelope .fe-rsvp {
  display: block;
  padding: 120px 24px;
  max-width: 1000px;
  margin: 0 auto;
  background: var(--fe-forest);
  color: #F4EEDD;
}

.template-forest-envelope .fe-rsvp-head {
  text-align: center;
  margin-bottom: 44px;
}

.template-forest-envelope .fe-rsvp-head h2 {
  font-size: clamp(30px, 5vw, 44px);
  color: #F8F3E4;
  font-family: 'Fraunces', serif;
  font-weight: 500;
}

.template-forest-envelope .fe-rsvp-head p {
  color: #c9c2a9;
  margin-top: 10px;
}

.template-forest-envelope .fe-rsvp-form {
  background: rgba(250, 246, 236, 0.04);
  border: 1px solid var(--fe-line);
  border-radius: 3px;
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 28px;
  backdrop-filter: blur(2px);
}

.template-forest-envelope .fe-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.template-forest-envelope .fe-field:last-of-type {
  grid-column: 1 / -1;
}

.template-forest-envelope .fe-rsvp-form .fe-field:nth-last-child(2) {
  grid-column: 1 / -1;
}

.template-forest-envelope .fe-field label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #cbb98a;
}

.template-forest-envelope .fe-field input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--fe-line);
  color: #F8F3E4;
  font-family: 'Work Sans', sans-serif;
  font-size: 15px;
  padding: 8px 2px;
  outline: none;
}

.template-forest-envelope .fe-field input::placeholder {
  color: #7f8570;
}

.template-forest-envelope .fe-field input:focus {
  border-bottom: 1px solid var(--fe-gold);
}

.template-forest-envelope .fe-radio-row {
  display: flex;
  gap: 22px;
  margin-top: 4px;
}

.template-forest-envelope .fe-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  color: #e7dcc4;
  cursor: pointer;
}

.template-forest-envelope .fe-radio input[type=radio] {
  width: 16px;
  height: 16px;
  accent-color: var(--fe-gold);
}

.template-forest-envelope .fe-submit {
  grid-column: 1 / -1;
  background: var(--fe-gold);
  color: #1c2417;
  border: none;
  padding: 15px 20px;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 15px;
  cursor: pointer;
  border-radius: 2px;
  transition: transform .2s ease, background .2s ease;
  margin-top: 6px;
}

.template-forest-envelope .fe-submit:hover {
  background: #cba648;
  transform: translateY(-2px);
}

/* Three.js petal canvas */
.template-forest-envelope #petal-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* font imports for this template */
.template-forest-envelope {
  font-family: 'Work Sans', sans-serif;
}

.template-forest-envelope h1,
.template-forest-envelope h2,
.template-forest-envelope h3,
.template-forest-envelope .fe-display {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* reveal animations */
.template-forest-envelope .fe-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s ease, transform .9s ease;
}

.template-forest-envelope .fe-reveal.fe-in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 700px) {
  .template-forest-envelope .fe-story-grid {
    grid-template-columns: 1fr;
  }

  .template-forest-envelope .fe-dress-notes {
    grid-template-columns: 1fr;
  }

  .template-forest-envelope .fe-rsvp-form {
    grid-template-columns: 1fr;
    padding: 28px;
  }
}

@media (max-width: 640px) {
  .template-forest-envelope .fe-tl-item {
    grid-template-columns: 70px 30px 1fr;
  }

  .template-forest-envelope .fe-tl::before {
    left: 70px;
  }
}

/* --- Motion Template --- */
.template-motion {
  --tpl-primary: #2D1B4E;
  --tpl-primary-dark: #1D1132;
  --tpl-primary-light: #4A2D7A;
  --tpl-accent: #FF6B4A;
  --tpl-accent-light: #FF9A80;
  --tpl-bg: #FFF8F0;
  --tpl-bg-alt: #F5EDE0;
  --tpl-text: #211533;
  --tpl-text-soft: #5A4A6A;
}

.template-motion .inv-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.template-motion .inv-hero-content {
  text-align: center;
  max-width: 800px;
}

.template-motion .inv-hero-names {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.template-motion .inv-hero-names .ampersand {
  color: var(--tpl-accent);
  font-style: normal;
  margin: 0 0.2rem;
}

.template-motion .inv-hero-invite {
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--tpl-text-soft);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.template-motion .inv-hero-date {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tpl-accent);
  font-weight: 600;
}

.template-motion .inv-hero-bg {
  background: linear-gradient(160deg, #1D1132 0%, #2D1B4E 30%, #4A2D7A 60%, #2D1B4E 100%);
}

.template-motion .inv-hero-ornament {
  font-size: 1.2rem;
  letter-spacing: 0.6em;
  color: var(--tpl-accent);
  margin-bottom: 1.25rem;
}

.template-motion .inv-section {
  background: var(--tpl-bg);
  color: var(--tpl-text);
}

.template-motion .inv-section:nth-child(even) {
  background: var(--tpl-bg-alt);
}

.template-motion .inv-section-header .ornament {
  color: var(--tpl-accent);
  font-size: 1rem;
  letter-spacing: 0.8em;
  margin-bottom: 0.75rem;
}

.template-motion .inv-section-header h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--tpl-primary);
}

.template-motion .couple-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 14px 30px -18px rgba(45, 27, 78, 0.3);
}

.template-motion .couple-photo {
  border-radius: 16px;
  margin-bottom: 1rem;
}

.template-motion .timeline::before {
  background: linear-gradient(to bottom, var(--tpl-accent), var(--tpl-primary));
}

.template-motion .timeline-dot {
  background: var(--tpl-accent);
  border: 3px solid var(--tpl-bg);
}

.template-motion .countdown-value {
  color: var(--tpl-accent);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
}

.template-motion .inv-rsvp {
  background: var(--tpl-primary);
  color: var(--tpl-bg);
}

.template-motion .rsvp-form .form-input:focus {
  border-bottom: 2px solid var(--tpl-accent);
}

.template-motion .btn-primary {
  background: var(--tpl-accent);
  color: #fff;
}

.template-motion .btn-primary:hover {
  background: #e85a3a;
}

.template-motion .music-toggle {
  color: var(--tpl-accent);
}

/* --- WEDDING-INVITATION-STANDARD: Timeless Elegance ---
   Burgundy, champagne, and cream palette with
   monogram seal, classic typography, and refined details.
   --------------------------------------- */
.template-wedding-invitation-standard .inv-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.template-wedding-invitation-standard .inv-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% -10%, rgba(203,164,103,0.20), transparent 55%),
    radial-gradient(ellipse at 85% 10%, rgba(201,143,138,0.18), transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(92,27,42,0.12), transparent 60%);
  z-index: 1;
}

.template-wedding-invitation-standard .inv-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.template-wedding-invitation-standard .inv-hero-content {
  text-align: center;
  max-width: 800px;
  padding-bottom: 18rem;
  position: relative;
  z-index: 2;
}

.template-wedding-invitation-standard .inv-hero-names {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #FBF5EA;
  line-height: 1.1;
}

.template-wedding-invitation-standard .inv-hero-names .ampersand {
  display: block;
  font-style: italic;
  color: var(--tpl-accent);
  margin: 0.3rem 0;
  font-size: 0.7em;
}

.template-wedding-invitation-standard .inv-hero-invite {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 1;
  font-weight: 500;
  color: var(--tpl-accent);
  margin-top: 1.5rem;
}

.template-wedding-invitation-standard .inv-hero-date {
  color: rgba(251, 245, 234, 0.85);
  opacity: 1;
  font-size: 1rem;
  margin-top: 0.5rem;
}

.template-wedding-invitation-standard .inv-hero-photos {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1.5rem;
  z-index: 3;
}

.template-wedding-invitation-standard .inv-hero-photo {
  width: 130px;
  height: 190px;
  border-radius: 4px;
  background: var(--tpl-primary-light);
  background-size: cover;
  background-position: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 0 1px var(--tpl-accent-light);
}

.template-wedding-invitation-standard #invHeroPhoto1 {
  transform: rotate(-2deg);
}

.template-wedding-invitation-standard #invHeroPhoto2 {
  transform: rotate(3deg);
  margin-top: 1.5rem;
}

.template-wedding-invitation-standard .inv-section {
  padding: 5rem 2rem;
  max-width: 720px;
  margin: 0 auto;
}

.template-wedding-invitation-standard .inv-section-header .ornament {
  color: var(--tpl-accent);
  letter-spacing: 0.4em;
  font-size: 1.1rem;
}

.template-wedding-invitation-standard .inv-section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--tpl-primary-dark);
  margin-bottom: 0.5rem;
}

.template-wedding-invitation-standard .inv-section-header p {
  color: var(--tpl-text-soft);
}

.template-wedding-invitation-standard .couple-card {
  background: var(--tpl-bg);
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  padding: 2.5rem 1.5rem;
  border: 1px solid rgba(203,164,103,0.25);
}

.template-wedding-invitation-standard .couple-photo {
  border: 2px solid var(--tpl-accent-light);
}

.template-wedding-invitation-standard .couple-card h3 {
  color: var(--tpl-primary-dark);
}

.template-wedding-invitation-standard .couple-card p {
  color: var(--tpl-text);
}

.template-wedding-invitation-standard .timeline-content {
  background: var(--tpl-bg);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--tpl-accent);
}

.template-wedding-invitation-standard .timeline-content h4 {
  color: var(--tpl-primary-dark);
}

.template-wedding-invitation-standard .timeline-time {
  color: var(--tpl-accent);
  font-weight: 600;
}

.template-wedding-invitation-standard .timeline-dot {
  background: var(--tpl-accent);
  border: 3px solid var(--tpl-bg);
  box-shadow: 0 0 0 2px var(--tpl-accent);
}

.template-wedding-invitation-standard .countdown-value {
  color: var(--tpl-accent);
  font-weight: 700;
}

.template-wedding-invitation-standard .dress-code-display {
  background: var(--tpl-bg);
  border: 1px solid rgba(203,164,103,0.3);
  border-radius: 6px;
  padding: 2rem;
}

.template-wedding-invitation-standard .dress-code-display h4 {
  color: var(--tpl-primary-dark);
}

.template-wedding-invitation-standard .inv-rsvp {
  background: var(--tpl-primary);
  color: var(--tpl-bg);
}

.template-wedding-invitation-standard .inv-rsvp .inv-section-header h2 {
  color: var(--tpl-bg);
}

.template-wedding-invitation-standard .inv-rsvp .inv-section-header p {
  color: var(--tpl-accent-light);
}

.template-wedding-invitation-standard .rsvp-form .form-input {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(203,164,103,0.4);
  color: var(--tpl-bg);
}

.template-wedding-invitation-standard .rsvp-form .form-input::placeholder {
  color: rgba(251,245,234,0.5);
}

.template-wedding-invitation-standard .rsvp-form .form-input:focus {
  border-bottom: 2px solid var(--tpl-accent);
}

.template-wedding-invitation-standard .form-label {
  color: var(--tpl-accent-light);
}

.template-wedding-invitation-standard .btn-primary {
  background: var(--tpl-accent);
  color: var(--tpl-primary-dark);
}

.template-wedding-invitation-standard .btn-primary:hover {
  background: var(--tpl-accent-light);
}

.template-wedding-invitation-standard .hero-scroll-indicator {
  color: var(--tpl-accent);
}

.template-wedding-invitation-standard .music-toggle {
  color: var(--tpl-accent);
}

/* --- WEDDING-INVITATION-2: Elegant Multi-Section ---
   Burgundy, gold, and cream with Cinzel display,
   timeline, program, and refined card layout.
   --------------------------------------- */
.template-wedding-invitation-2 .inv-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.template-wedding-invitation-2 .inv-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 12%, rgba(217,175,174,0.35), transparent 60%),
    radial-gradient(ellipse 90% 70% at 50% 100%, rgba(110,31,43,0.16), transparent 65%);
  z-index: 1;
}

.template-wedding-invitation-2 .inv-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.template-wedding-invitation-2 .inv-hero-content {
  text-align: center;
  max-width: 900px;
  padding: clamp(2.5rem,6vw,4.5rem) clamp(1.25rem,4vw,3rem);
  padding-bottom: 16rem;
  position: relative;
  z-index: 2;
}

.template-wedding-invitation-2 .inv-hero-names {
  font-family: var(--tpl-heading);
  font-size: clamp(3rem, 11vw, 7.5rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #FAF3E8;
  line-height: 1.05;
}

.template-wedding-invitation-2 .inv-hero-names .ampersand {
  display: block;
  font-family: var(--tpl-body);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  color: var(--tpl-accent);
  margin: 0.1rem 0;
}

.template-wedding-invitation-2 .inv-hero-invite {
  font-size: 1rem;
  letter-spacing: 0.05em;
  opacity: 1;
  font-style: italic;
  color: var(--tpl-accent);
  margin-bottom: 0.75rem;
}

.template-wedding-invitation-2 .inv-hero-date {
  color: rgba(250, 243, 232, 0.85);
  opacity: 1;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}

.template-wedding-invitation-2 .inv-hero-photos {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1.5rem;
  z-index: 3;
}

.template-wedding-invitation-2 .inv-hero-photo {
  width: 140px;
  height: 200px;
  border-radius: 4px;
  background: var(--tpl-primary-light);
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 40px -20px rgba(62,17,25,0.35);
}

.template-wedding-invitation-2 #invHeroPhoto1 {
  transform: rotate(-2deg);
}

.template-wedding-invitation-2 #invHeroPhoto2 {
  transform: rotate(3deg);
  margin-top: 1.5rem;
}

.template-wedding-invitation-2 .inv-section {
  padding: clamp(4rem, 10vw, 8rem) 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.template-wedding-invitation-2 .inv-section-header .ornament {
  color: var(--tpl-accent);
  letter-spacing: 0.4em;
  font-size: 1.1rem;
}

.template-wedding-invitation-2 .inv-section-header h2 {
  font-family: var(--tpl-heading);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  color: var(--tpl-text);
  margin-bottom: 1.25rem;
}

.template-wedding-invitation-2 .inv-section-header p {
  color: var(--tpl-text-soft);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.template-wedding-invitation-2 .couple-card {
  background: var(--tpl-bg-alt);
  border: 1px solid rgba(198,161,91,0.35);
  border-radius: 6px;
  padding: clamp(1.75rem,4vw,2.5rem);
  text-align: center;
  transition: transform .5s cubic-bezier(.22,.61,.36,1), box-shadow .5s cubic-bezier(.22,.61,.36,1);
}

.template-wedding-invitation-2 .couple-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px -20px rgba(110,31,43,0.35);
}

.template-wedding-invitation-2 .couple-photo {
  border: 2px solid var(--tpl-accent-light);
}

.template-wedding-invitation-2 .couple-card h3 {
  font-family: var(--tpl-heading);
  color: var(--tpl-primary-dark);
}

.template-wedding-invitation-2 .couple-card p {
  color: var(--tpl-text-soft);
}

.template-wedding-invitation-2 .timeline-content {
  background: var(--tpl-bg);
  box-shadow: 0 6px 20px -10px rgba(62,17,25,0.2);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--tpl-accent);
}

.template-wedding-invitation-2 .timeline-content h4 {
  font-family: var(--tpl-heading);
  color: var(--tpl-primary-dark);
}

.template-wedding-invitation-2 .timeline-time {
  font-family: var(--tpl-body);
  font-style: italic;
  color: var(--tpl-accent);
  font-size: 1.15rem;
}

.template-wedding-invitation-2 .timeline-dot {
  background: var(--tpl-paper, var(--tpl-bg));
  border: 2px solid var(--tpl-primary);
}

.template-wedding-invitation-2 .countdown-value {
  color: var(--tpl-accent);
  font-weight: 700;
}

.template-wedding-invitation-2 .countdown-label {
  color: var(--tpl-text-soft);
}

.template-wedding-invitation-2 .dress-code-display {
  background: var(--tpl-bg-alt);
  border: 1px solid rgba(198,161,91,0.35);
  border-radius: 6px;
  padding: 2rem;
}

.template-wedding-invitation-2 .dress-code-display h4 {
  font-family: var(--tpl-heading);
  color: var(--tpl-primary-dark);
}

.template-wedding-invitation-2 .dress-code-display p {
  color: var(--tpl-text-soft);
}

.template-wedding-invitation-2 .inv-rsvp {
  background: var(--tpl-primary-dark);
  color: var(--tpl-bg);
}

.template-wedding-invitation-2 .inv-rsvp .inv-section-header h2 {
  color: var(--tpl-bg);
}

.template-wedding-invitation-2 .inv-rsvp .inv-section-header p {
  color: rgba(250,243,232,0.75);
}

.template-wedding-invitation-2 .rsvp-form .form-input {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(198,161,91,0.4);
  color: var(--tpl-bg);
}

.template-wedding-invitation-2 .rsvp-form .form-input::placeholder {
  color: rgba(250,243,232,0.5);
}

.template-wedding-invitation-2 .rsvp-form .form-input:focus {
  border-color: var(--tpl-accent);
  box-shadow: 0 0 0 4px rgba(198,161,91,0.2);
}

.template-wedding-invitation-2 .form-label {
  color: var(--tpl-accent-light);
}

.template-wedding-invitation-2 .btn-primary {
  background: linear-gradient(160deg, var(--tpl-primary), var(--tpl-primary-dark));
  color: var(--tpl-bg);
}

.template-wedding-invitation-2 .btn-primary:hover {
  box-shadow: 0 10px 30px -6px rgba(198,161,91,0.55);
}

.template-wedding-invitation-2 .hero-scroll-indicator {
  color: var(--tpl-primary);
}

.template-wedding-invitation-2 .music-toggle {
  color: var(--tpl-accent);
}

/* --- INVITATION-G: Garden Formal ---
   Cream, burgundy, dusty rose with Cinzel display,
   monogram hero, scroll reveal, and romantic garden palette.
   --------------------------------------- */
.template-invitation-g .inv-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.template-invitation-g .inv-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 12%, rgba(216,162,172,0.35), transparent 60%),
    radial-gradient(ellipse 90% 70% at 50% 100%, rgba(107,30,46,0.16), transparent 65%);
  z-index: 1;
}

.template-invitation-g .inv-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.template-invitation-g .inv-hero-content {
  text-align: center;
  max-width: 900px;
  padding: clamp(2.5rem,6vw,4.5rem) clamp(1.25rem,4vw,3rem);
  padding-bottom: 16rem;
  position: relative;
  z-index: 2;
}

.template-invitation-g .inv-hero-names {
  font-family: var(--tpl-heading);
  font-size: clamp(3rem, 11vw, 7.5rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #FBF6EC;
  line-height: 1.05;
}

.template-invitation-g .inv-hero-names .ampersand {
  display: block;
  font-family: var(--tpl-body);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  color: var(--tpl-accent);
  margin: 0.1rem 0;
}

.template-invitation-g .inv-hero-invite {
  font-size: 1rem;
  font-style: italic;
  opacity: 1;
  color: var(--tpl-accent);
  margin-bottom: 0.75rem;
}

.template-invitation-g .inv-hero-date {
  color: rgba(251, 246, 236, 0.85);
  opacity: 1;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}

.template-invitation-g .inv-hero-photos {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1.5rem;
  z-index: 3;
}

.template-invitation-g .inv-hero-photo {
  width: 140px;
  height: 200px;
  border-radius: 4px;
  background: var(--tpl-primary-light);
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 40px -20px rgba(62,17,25,0.35);
}

.template-invitation-g #invHeroPhoto1 {
  transform: rotate(-2deg);
}

.template-invitation-g #invHeroPhoto2 {
  transform: rotate(3deg);
  margin-top: 1.5rem;
}

.template-invitation-g .inv-section {
  padding: clamp(4rem, 10vw, 8rem) 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.template-invitation-g .inv-section-header .ornament {
  color: var(--tpl-accent);
  letter-spacing: 0.4em;
  font-size: 1.1rem;
}

.template-invitation-g .inv-section-header h2 {
  font-family: var(--tpl-heading);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  color: var(--tpl-primary);
  margin-bottom: 1.25rem;
}

.template-invitation-g .inv-section-header p {
  color: var(--tpl-text-soft);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.template-invitation-g .couple-card {
  background: var(--tpl-bg-alt);
  border: 1px solid rgba(107,30,46,0.16);
  padding: 30px 34px;
  max-width: 420px;
}

.template-invitation-g .couple-photo {
  border: 2px solid var(--tpl-accent-light);
}

.template-invitation-g .couple-card h3 {
  font-family: var(--tpl-heading);
  color: var(--tpl-primary);
}

.template-invitation-g .couple-card p {
  color: var(--tpl-text-soft);
}

.template-invitation-g .timeline-content {
  background: var(--tpl-bg);
  border: 1px solid rgba(107,30,46,0.16);
  padding: 30px 34px;
  max-width: 420px;
  border-left: 3px solid var(--tpl-accent);
}

.template-invitation-g .timeline-content h4 {
  font-family: var(--tpl-heading);
  color: var(--tpl-primary);
}

.template-invitation-g .timeline-time {
  font-family: var(--tpl-body);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--tpl-accent);
  text-transform: uppercase;
}

.template-invitation-g .timeline-dot {
  background: var(--tpl-bg);
  border: 2px solid var(--tpl-accent);
}

.template-invitation-g .timeline-dot::after {
  inset: -9px;
  border-radius: 50%;
  border: 1px solid var(--tpl-accent);
  opacity: 0.35;
}

.template-invitation-g .countdown-value {
  color: var(--tpl-accent);
  font-weight: 700;
}

.template-invitation-g .countdown-label {
  color: var(--tpl-text-soft);
}

.template-invitation-g .dress-code-display {
  background: var(--tpl-bg-alt);
  border: 1px solid rgba(107,30,46,0.16);
  padding: 30px 34px;
}

.template-invitation-g .dress-code-display h4 {
  font-family: var(--tpl-heading);
  color: var(--tpl-primary);
}

.template-invitation-g .dress-code-display p {
  color: var(--tpl-text-soft);
}

.template-invitation-g .inv-rsvp {
  background: var(--tpl-primary);
  color: var(--tpl-bg);
}

.template-invitation-g .inv-rsvp .inv-section-header h2 {
  color: var(--tpl-bg);
}

.template-invitation-g .inv-rsvp .inv-section-header p {
  color: rgba(251,246,236,0.75);
}

.template-invitation-g .rsvp-form .form-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(251,246,236,0.3);
  color: var(--tpl-bg);
}

.template-invitation-g .rsvp-form .form-input::placeholder {
  color: rgba(251,246,236,0.5);
}

.template-invitation-g .rsvp-form .form-input:focus {
  border-bottom-color: var(--tpl-accent);
}

.template-invitation-g .form-label {
  color: var(--tpl-accent-light);
}

.template-invitation-g .btn-primary {
  background: var(--tpl-accent);
  color: var(--tpl-primary-dark);
}

.template-invitation-g .btn-primary:hover {
  box-shadow: 0 0 0 1px var(--tpl-accent), 0 8px 30px -6px rgba(201,169,97,0.65);
}

.template-invitation-g .hero-scroll-indicator {
  color: var(--tpl-accent);
}

.template-invitation-g .music-toggle {
  color: var(--tpl-accent);
}

/* ========== GOLDEN HOUR TEMPLATE ========== */
.template-golden-hour .inv-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.template-golden-hour .inv-hero-bg {
  background: linear-gradient(180deg, #EFAE6B 0%, #C1633B 48%, #5F3438 78%, #2B2620 100%) !important;
}

.template-golden-hour .inv-hero::before {
  display: none;
}

.template-golden-hour .inv-hero-bg::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%) translateY(var(--sun-y, 0));
  width: min(380px, 70vw);
  height: min(380px, 70vw);
  border-radius: 50%;
  background: radial-gradient(circle, #F7E3C4 0%, #C1633B 100%);
  opacity: calc(0.85 * var(--sun-opacity, 1));
  pointer-events: none;
  transition: transform 0.05s linear;
}

.template-golden-hour .inv-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 90%, rgba(239,174,107,0.15), transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 95%, rgba(193,99,59,0.1), transparent 50%);
  z-index: 1;
}

.template-golden-hour .inv-hero-content {
  text-align: center;
  max-width: 750px;
  padding: 2rem;
  padding-bottom: 10rem;
  position: relative;
  z-index: 2;
}

.template-golden-hour .inv-hero-ornament {
  display: none;
}

.template-golden-hour .inv-hero-names {
  font-family: var(--tpl-heading);
  font-size: clamp(2.8rem, 9vw, 6.5rem);
  font-weight: 300;
  line-height: 0.95;
  color: #F7F1E6;
}

.template-golden-hour .inv-hero-names .ampersand {
  display: inline;
  font-size: 0.55em;
  font-style: italic;
  color: var(--tpl-accent-light);
  margin: 0 0.2em;
}

.template-golden-hour .inv-hero-invite {
  font-family: var(--tpl-body);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(247,241,230,0.6);
  margin-top: 1.5rem;
}

.template-golden-hour .inv-hero-date {
  font-family: var(--tpl-body);
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  color: rgba(247,241,230,0.75);
  margin-top: 0.6rem;
}

.template-golden-hour .inv-hero .countdown {
  margin-top: 2rem;
}

.template-golden-hour .inv-hero .countdown-item {
  background: rgba(247,241,230,0.08);
  border: 1px solid rgba(247,241,230,0.2);
  border-radius: 12px;
  backdrop-filter: blur(6px);
}

.template-golden-hour .inv-hero .countdown-value {
  font-family: var(--tpl-heading);
  color: #F7F1E6;
}

.template-golden-hour .inv-hero .countdown-label {
  font-family: var(--tpl-body);
  color: rgba(247,241,230,0.55);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.template-golden-hour .inv-hero-photos {
  display: none;
}

.template-golden-hour .hero-scroll-indicator {
  color: rgba(247,241,230,0.5);
  bottom: 2rem;
  z-index: 3;
}

/* Story section */
.template-golden-hour .inv-section {
  background: var(--tpl-bg);
  padding: 5rem 1.5rem;
}

.template-golden-hour .inv-section-header .ornament {
  color: var(--tpl-primary);
  letter-spacing: 0.4em;
  font-size: 0.85rem;
}

.template-golden-hour .inv-section-header h2 {
  font-family: var(--tpl-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
  color: var(--tpl-primary);
}

.template-golden-hour .inv-section-header p {
  font-family: var(--tpl-body);
  color: var(--tpl-text-soft);
}

/* Couple cards */
.template-golden-hour .couple-card {
  background: var(--tpl-bg-alt);
  border: 1px solid rgba(193,99,59,0.15);
  border-radius: 12px;
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.template-golden-hour .couple-card:hover {
  transform: translateY(-4px);
  border-color: var(--tpl-accent);
}

.template-golden-hour .couple-card h3 {
  font-family: var(--tpl-heading);
  color: var(--tpl-primary-dark);
  font-weight: 400;
}

.template-golden-hour .couple-card p {
  font-family: var(--tpl-body);
  color: var(--tpl-text-soft);
  font-weight: 300;
}

.template-golden-hour .couple-photo {
  border: 2px solid var(--tpl-accent-light);
  border-radius: 8px;
}

/* Timeline */
.template-golden-hour .timeline-dot {
  background: var(--tpl-bg);
  border: 2px solid var(--tpl-primary);
}

.template-golden-hour .timeline-content h4 {
  font-family: var(--tpl-heading);
  color: var(--tpl-primary-dark);
  font-weight: 400;
}

.template-golden-hour .timeline-content p {
  font-family: var(--tpl-body);
  color: var(--tpl-text-soft);
  font-weight: 300;
}

.template-golden-hour .timeline-time {
  font-family: var(--tpl-heading);
  color: var(--tpl-primary);
  font-weight: 400;
}

/* Details section (ceremony/reception) - dark olive bg */
.template-golden-hour .inv-section + .inv-section,
.template-golden-hour #invSchedule {
  background: #333823;
}

.template-golden-hour #invSchedule .inv-section-header h2 {
  color: var(--tpl-accent-light);
}

.template-golden-hour #invSchedule .inv-section-header p {
  color: rgba(247,241,230,0.5);
}

.template-golden-hour #invSchedule .inv-section-header .ornament {
  color: var(--tpl-accent);
}

.template-golden-hour #invSchedule .timeline-dot {
  background: #333823;
  border: 2px solid var(--tpl-accent);
}

.template-golden-hour #invSchedule .timeline-content h4 {
  color: #F7F1E6;
}

.template-golden-hour #invSchedule .timeline-content p {
  color: rgba(247,241,230,0.6);
}

.template-golden-hour #invSchedule .timeline-time {
  color: var(--tpl-accent);
}

/* Dress code */
.template-golden-hour #invDressCode {
  background: var(--tpl-bg);
}

.template-golden-hour .dress-code-display {
  background: var(--tpl-bg-alt);
  border: 1px solid rgba(193,99,59,0.15);
  border-radius: 12px;
}

.template-golden-hour .dress-code-display h4 {
  font-family: var(--tpl-heading);
  color: var(--tpl-primary-dark);
  font-weight: 400;
}

.template-golden-hour .dress-code-display p {
  font-family: var(--tpl-body);
  color: var(--tpl-text-soft);
  font-weight: 300;
}

/* RSVP */
.template-golden-hour .inv-rsvp {
  background: var(--tpl-bg);
}

.template-golden-hour .inv-rsvp .inv-section-header h2 {
  color: var(--tpl-primary);
}

.template-golden-hour .inv-rsvp .inv-section-header p {
  color: var(--tpl-text-soft);
}

.template-golden-hour .rsvp-form .form-input {
  border-bottom: 1px solid rgba(43,38,32,0.25);
  transition: border-color 0.3s ease;
}

.template-golden-hour .rsvp-form .form-input:focus {
  border-color: var(--tpl-primary);
}

.template-golden-hour .rsvp-form .form-input::placeholder {
  color: var(--tpl-text-soft);
  opacity: 0.5;
}

.template-golden-hour .form-label {
  font-family: var(--tpl-body);
  color: var(--tpl-text-soft);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.65rem;
}

.template-golden-hour .btn-primary {
  background: var(--tpl-accent);
  color: var(--tpl-text);
  border-radius: 999px;
  font-family: var(--tpl-body);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.template-golden-hour .btn-primary:hover {
  background: var(--tpl-accent-light);
  box-shadow: 0 8px 24px -8px rgba(201,166,103,0.5);
  transform: translateY(-2px);
}

/* Music toggle */
.template-golden-hour .music-toggle {
  color: var(--tpl-primary);
}

/* Mudcloth divider between sections */
.template-golden-hour .inv-section + .inv-section::before {
  content: '';
  display: block;
  width: 100%;
  max-width: 300px;
  height: 14px;
  margin: 0 auto 3rem;
  background-repeat: repeat-x;
  background-size: 28px 14px;
  background-image:
    linear-gradient(45deg, transparent 45%, var(--tpl-primary) 45%, var(--tpl-primary) 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, var(--tpl-text-soft) 45%, var(--tpl-text-soft) 55%, transparent 55%);
  opacity: 0.35;
}

@media (max-width: 768px) {
  .template-golden-hour .inv-hero-content {
    padding-bottom: 8rem;
  }
  .template-golden-hour .inv-hero-bg::after {
    width: 60vw;
    height: 60vw;
    bottom: -40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .template-forest-envelope * {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  .template-wedding-invitation-standard * {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  .template-wedding-invitation-2 * {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  .template-invitation-g * {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* ============================================
   SUPPORT CHAT WIDGET
   ============================================ */
.support-launcher {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.4rem;
  background: var(--plum);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s var(--ease-out), background 0.3s ease;
}

.support-launcher:hover {
  transform: translateY(-3px);
  background: var(--plum-light);
}

.support-launcher.active {
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

.support-launcher-icon {
  font-size: 1.2rem;
}

.support-launcher-label {
  line-height: 1;
}

.support-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--error);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.support-panel {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1001;
  width: 360px;
  max-width: calc(100vw - 2rem);
  height: 520px;
  max-height: calc(100vh - 3rem);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px) scale(0.96);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0.3s;
}

.support-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.support-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--plum);
  color: #fff;
}

.support-header-title {
  font-weight: 700;
  font-size: 1rem;
}

.support-header-sub {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2px;
}

.support-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.2rem;
  opacity: 0.85;
}

.support-close:hover {
  opacity: 1;
}

.support-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--ivory);
}

.support-auth {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.75rem;
  gap: 0.6rem;
}

.support-auth-icon {
  font-size: 2.6rem;
}

.support-auth-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--charcoal);
  margin: 0;
}

.support-auth-text {
  font-size: 0.85rem;
  color: var(--charcoal-soft);
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.support-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.support-msg-list {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.support-loading {
  text-align: center;
  color: var(--charcoal-light);
  font-size: 0.85rem;
  padding: 1rem;
}

.support-msg-welcome {
  text-align: center;
  padding: 1.25rem 0.5rem;
}

.support-msg-welcome-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.support-msg-welcome p {
  font-size: 0.85rem;
  color: var(--charcoal-soft);
  margin: 0;
  line-height: 1.5;
}

.support-msg {
  display: flex;
  flex-direction: column;
  max-width: 82%;
}

.support-msg.mine {
  align-self: flex-end;
  align-items: flex-end;
}

.support-msg.theirs {
  align-self: flex-start;
  align-items: flex-start;
}

.support-bubble {
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  line-height: 1.45;
  word-break: break-word;
  white-space: pre-wrap;
}

.support-msg.mine .support-bubble {
  background: var(--plum);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.support-msg.theirs .support-bubble {
  background: #fff;
  color: var(--charcoal);
  border: 1px solid var(--border-light);
  border-bottom-left-radius: 4px;
}

.support-msg-time {
  font-size: 0.68rem;
  color: var(--charcoal-light);
  margin-top: 3px;
  padding: 0 4px;
}

.support-quick {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0 1rem 0.75rem;
}

.support-quick-chip {
  background: var(--champagne);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.75rem;
  color: var(--charcoal-soft);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.2s ease;
}

.support-quick-chip:hover {
  background: var(--gold-light);
  color: var(--charcoal);
}

.support-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem;
  border-top: 1px solid var(--border-light);
  background: #fff;
}

.support-input {
  flex: 1;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  font-family: var(--font-sans);
  outline: none;
  background: var(--ivory);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.support-input:focus {
  border-color: var(--gold);
  background: #fff;
}

.support-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--gold);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.support-send:hover {
  background: var(--gold-dark);
  transform: translateX(2px);
}

/* Badges on admin UI */
.admin-tab-badge,
.dash-nav-badge {
  display: inline-block;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--error);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  vertical-align: middle;
}

.dash-nav-badge {
  margin-left: auto;
}

/* ============================================
   ADMIN SUPPORT
   ============================================ */
.admin-support {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1rem;
  height: 560px;
  max-height: calc(100vh - 320px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
}

.admin-support-list {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border-light);
  background: var(--ivory);
  min-height: 0;
}

.admin-support-list-head {
  padding: 0.85rem 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-light);
  background: #fff;
}

.admin-support-convos {
  flex: 1;
  overflow-y: auto;
}

.admin-support-convo {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 0.2s ease;
}

.admin-support-convo:hover {
  background: var(--champagne);
}

.admin-support-convo.active {
  background: var(--gold-light);
}

.admin-support-convo.unread .admin-support-convo-last {
  font-weight: 600;
}

.admin-support-convo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.88rem;
}

.admin-support-unread {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--error);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.admin-support-convo-meta {
  font-size: 0.72rem;
  color: var(--charcoal-light);
  margin-top: 2px;
}

.admin-support-convo-last {
  font-size: 0.78rem;
  color: var(--charcoal-soft);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-support-convo-time {
  font-size: 0.68rem;
  color: var(--charcoal-light);
  margin-top: 3px;
}

.admin-support-none {
  padding: 1rem;
  text-align: center;
  color: var(--charcoal-light);
  font-size: 0.85rem;
}

.admin-support-thread {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.admin-support-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--charcoal-light);
  padding: 2rem;
}

.admin-support-empty-icon {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.admin-support-empty p {
  margin: 0.2rem 0;
  font-size: 0.9rem;
}

.admin-support-empty-sub {
  font-size: 0.78rem;
}

.admin-support-thread-head {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-light);
  background: #fff;
  font-size: 0.9rem;
}

.admin-support-thread-meta {
  font-size: 0.72rem;
  color: var(--charcoal-light);
  margin-top: 2px;
}

.admin-support-thread-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--ivory);
}

.admin-thread-msg {
  display: flex;
  flex-direction: column;
  max-width: 80%;
}

.admin-thread-msg.mine {
  align-self: flex-end;
  align-items: flex-end;
}

.admin-thread-msg.theirs {
  align-self: flex-start;
  align-items: flex-start;
}

.admin-thread-bubble {
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  line-height: 1.45;
  word-break: break-word;
  white-space: pre-wrap;
}

.admin-thread-msg.mine .admin-thread-bubble {
  background: var(--plum);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.admin-thread-msg.theirs .admin-thread-bubble {
  background: #fff;
  color: var(--charcoal);
  border: 1px solid var(--border-light);
  border-bottom-left-radius: 4px;
}

.admin-thread-time {
  font-size: 0.68rem;
  color: var(--charcoal-light);
  margin-top: 3px;
  padding: 0 4px;
}

.admin-support-thread-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem;
  border-top: 1px solid var(--border-light);
  background: #fff;
}

.admin-support-input {
  flex: 1;
  min-width: 0;
}

@media (max-width: 760px) {
  .support-launcher {
    right: 1rem;
    bottom: 1rem;
    padding: 0.75rem 1rem;
  }

  .support-launcher-label {
    display: none;
  }

  .support-panel {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }

  .admin-support {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
  }

  .admin-support-list {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    max-height: 260px;
  }
}