/* ==========================================================================
   PAPERCUT LOTUS WEDDING INVITATION — DESIGN SYSTEM & STYLES
   ========================================================================== */

:root {
  /* Core Palette (Royal Peacock Teal Default) */
  --bg-teal: #0b4358;
  --bg-teal-deep: #062a38;
  --bg-teal-recess: #073345;
  --cream-cover: #f9ead3;
  --cream-cover-edge: #f1dab8;
  --cream-paper: #fbf8f1;
  --white-paper: #ffffff;

  /* Champagne Metallic Gold */
  --gold-bright: #f2dab0;
  --gold-mid: #c8a269;
  --gold-dark: #876335;

  /* Sage-Slate Ornament Buttons */
  --slate-btn: #7f9192;
  --slate-btn-hover: #6c7f81;

  /* Typography Ink */
  --ink-dark: #153643;
  --ink-body: #2d434c;
  --ink-muted: #65767d;

  /* Editor Accent */
  --editor-violet: #6d28d9;
  --editor-violet-bright: #8b5cf6;
  --editor-violet-soft: rgba(139, 92, 246, 0.12);

  /* Fonts */
  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-devanagari: 'Noto Serif Devanagari', 'Cormorant Garamond', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Geometry */
  --rail-inset: 20px;
  --rail-width: 10px;
  --shadow-paper-lg: 0 22px 46px rgba(3, 18, 26, 0.52);
  --shadow-paper-md: 0 12px 26px rgba(3, 18, 26, 0.36);
}

/* Alternate Themes (Selectable in Studio) */
body.theme-royal-maroon {
  --bg-teal: #521427;
  --bg-teal-deep: #340917;
  --bg-teal-recess: #3f0d1c;
  --ink-dark: #481324;
  --slate-btn: #8f6b6c;
  --slate-btn-hover: #795658;
}

body.theme-emerald-ivory {
  --bg-teal: #114335;
  --bg-teal-deep: #082920;
  --bg-teal-recess: #0c352a;
  --ink-dark: #113d30;
  --slate-btn: #6f8a7d;
  --slate-btn-hover: #5c7669;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-teal-deep);
  color: var(--ink-dark);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   EDITOR CHROME & FLOATING CONTROLS
   ========================================================================== */

body:not(.is-edit-mode) .edit-only {
  display: none !important;
}

body:not(.is-edit-mode) .editor-topbar,
body:not(.is-edit-mode) .floating-studio-btn {
  display: none !important;
}

.editor-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 24px;
  pointer-events: none;
}

.editor-topbar__left,
.editor-topbar__right {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.editor-hint {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  color: var(--editor-violet);
  font-size: 0.84rem;
  font-weight: 500;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.14);
}

.editor-pill {
  appearance: none;
  border: 1px solid rgba(109, 40, 217, 0.22);
  border-radius: 999px;
  padding: 8px 16px;
  font-family: var(--font-sans);
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.editor-pill--ghost {
  background: rgba(255, 255, 255, 0.92);
  color: #3b2874;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14);
}

.editor-pill--soft {
  background: rgba(244, 240, 255, 0.94);
  color: #4c1d95;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.editor-pill--primary {
  border-color: transparent;
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(109, 40, 217, 0.42);
}

.editor-pill:hover {
  transform: translateY(-1px);
}

.floating-studio-btn {
  position: fixed;
  right: 22px;
  bottom: 20px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  box-shadow: 0 10px 26px rgba(91, 33, 182, 0.48);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-studio-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(91, 33, 182, 0.6);
}

.spark-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fde68a;
  box-shadow: 0 0 10px #fde68a;
}

/* Host bar shown in preview mode (hidden for ?guest= invitees) */
.visitor-host-bar {
  position: fixed;
  top: 14px;
  right: 18px;
  z-index: 880;
  display: flex;
  gap: 8px;
}

.host-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(11, 67, 88, 0.85);
  backdrop-filter: blur(10px);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  transition: transform 0.16s ease, background 0.16s ease;
}

.host-pill--violet {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.94), rgba(109, 40, 217, 0.94));
  border-color: rgba(255, 255, 255, 0.35);
}

.host-pill:hover {
  transform: translateY(-1px);
}

.audio-toggle-btn {
  position: fixed;
  left: 22px;
  bottom: 20px;
  z-index: 880;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(242, 218, 176, 0.45);
  background: rgba(7, 42, 56, 0.86);
  backdrop-filter: blur(8px);
  color: #f6e7cb;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  transition: transform 0.16s ease, background 0.16s ease;
}

.audio-toggle-btn.is-playing {
  background: rgba(200, 162, 105, 0.92);
  color: #092c3a;
}

/* Editable Field Indicators in Edit Mode */
body.is-edit-mode .editable-field {
  position: relative;
  display: inline-block;
  border: 1.5px dashed rgba(139, 92, 246, 0.62);
  border-radius: 7px;
  padding: 2px 10px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

body.is-edit-mode .editable-field:hover {
  background-color: var(--editor-violet-soft);
  border-color: var(--editor-violet);
}

body.is-edit-mode .editable-field::after {
  content: '✎';
  position: absolute;
  top: -10px;
  right: -9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--editor-violet);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 10px;
  line-height: 18px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

body.is-edit-mode .editable-field:hover::after {
  opacity: 1;
}

/* ==========================================================================
   MAIN CANVAS & METALLIC GOLD SIDE RAILS
   ========================================================================== */

.invitation-canvas {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-teal);
  overflow: hidden;
}

.gold-rail {
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--rail-width);
  z-index: 40;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    var(--gold-dark) 0%,
    var(--gold-bright) 38%,
    var(--gold-mid) 68%,
    var(--gold-dark) 100%
  );
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.35);
}

.gold-rail--left {
  left: var(--rail-inset);
}

.gold-rail--right {
  right: var(--rail-inset);
}

/* ==========================================================================
   SECTION 1: COVER & INVOCATION
   ========================================================================== */

.section-cover {
  position: relative;
  min-height: 92vh;
  padding: 76px 40px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 44%, #fdf5e8 0%, var(--cream-cover) 58%, var(--cream-cover-edge) 100%);
  box-shadow: inset 36px 0 36px -22px rgba(72, 46, 18, 0.2), inset -36px 0 36px -22px rgba(72, 46, 18, 0.2);
}

.cover-inner {
  position: relative;
  z-index: 5;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Change Invocation Dropdown */
.invocation-picker-wrap {
  position: relative;
  margin-bottom: 4px;
}

.invocation-dropdown-btn {
  border: 1.5px dashed var(--editor-violet);
  background: rgba(255, 255, 255, 0.85);
  color: var(--editor-violet);
  border-radius: 999px;
  padding: 6px 16px;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.invocation-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(109, 40, 217, 0.2);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.22);
  z-index: 60;
  text-align: left;
}

.invocation-menu button {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 9px 12px;
  border-radius: 8px;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--ink-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.invocation-menu button:hover,
.invocation-menu button.is-selected {
  background: #f3e8ff;
  color: var(--editor-violet);
  font-weight: 600;
}

.invocation-emblem {
  width: 138px;
  height: 138px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-dark);
}

.invocation-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 3px rgba(21, 54, 67, 0.08));
}

.invocation-text {
  margin: 0;
  font-family: var(--font-devanagari);
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  font-weight: 700;
  color: var(--ink-dark);
  letter-spacing: 0.02em;
}

.cover-guest-wrap {
  margin-top: 6px;
}

.cover-guest-name {
  margin: 0;
  padding: 8px 20px;
  font-family: var(--font-sans);
  font-size: clamp(1.1rem, 2.3vw, 1.48rem);
  font-weight: 700;
  line-height: 1.38;
  color: var(--ink-dark);
  max-width: 480px;
}

body.is-edit-mode .cover-guest-name {
  border: 1.5px dashed rgba(190, 148, 178, 0.65);
  border-radius: 8px;
  cursor: pointer;
}

.cover-subtitle {
  margin: 0;
  max-width: 490px;
  font-family: var(--font-serif);
  font-size: clamp(1.18rem, 2.2vw, 1.48rem);
  line-height: 1.52;
  color: var(--ink-body);
}

/* Ornate Bracketed Button (Tap to open / Reveal the Date!) */
.cover-cta-wrap {
  margin-top: 12px;
}

.ornate-bracket-btn {
  position: relative;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  filter: drop-shadow(0 8px 16px rgba(15, 38, 44, 0.24));
  transition: transform 0.22s ease, filter 0.22s ease;
}

.ornate-bracket-btn__inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 244px;
  padding: 15px 40px;
  background: linear-gradient(180deg, #8b9d9e 0%, var(--slate-btn) 55%, #6f8082 100%);
  color: #fbf7ef;
  font-family: var(--font-serif);
  font-size: 1.38rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  clip-path: polygon(
    18px 0%, calc(100% - 18px) 0%,
    calc(100% - 8px) 22%, 100% 50%, calc(100% - 8px) 78%,
    calc(100% - 18px) 100%, 18px 100%,
    8px 78%, 0% 50%, 8px 22%
  );
  box-shadow: inset 0 0 0 2px rgba(236, 206, 152, 0.65);
}

.ornate-bracket-btn--compact .ornate-bracket-btn__inner {
  min-width: 205px;
  padding: 11px 30px;
  font-size: 1.18rem;
}

.ornate-bracket-btn:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 12px 22px rgba(15, 38, 44, 0.34));
}

/* Embossed Lotus Row at Bottom of Cover */
.cover-embossed-lotus-bar {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 0;
  height: 76px;
  pointer-events: none;
  opacity: 0.32;
  background-repeat: repeat-x;
  background-position: bottom center;
  background-size: 145px 76px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 80'%3E%3Cg fill='%23caa982'%3E%3Cpath d='M70 12 C80 28 80 54 70 68 C60 54 60 28 70 12 Z'/%3E%3Cpath d='M70 68 C52 56 44 38 48 22 C60 32 66 50 70 68 Z'/%3E%3Cpath d='M70 68 C88 56 96 38 92 22 C80 32 74 50 70 68 Z'/%3E%3Cpath d='M70 68 C42 66 30 52 30 38 C46 42 58 54 70 68 Z'/%3E%3Cpath d='M70 68 C98 66 110 52 110 38 C94 42 82 54 70 68 Z'/%3E%3C/g%3E%3C/svg%3E");
}

/* ==========================================================================
   SECTION 2: HERO COUPLE PAVILION ARCH
   ========================================================================== */

.section-hero {
  position: relative;
  background: var(--bg-teal);
}

.hero-stage {
  position: relative;
  width: 100%;
  min-height: 610px;
  max-height: 780px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--cream-cover);
}

.hero-pavilion-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
  transform: scale(1.015);
  transition: transform 0.6s ease-out;
}

.hero-arch-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 44%;
  z-index: 12;
  pointer-events: none;
}

.hero-arch-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-couple-lockup {
  position: absolute;
  inset: 0;
  z-index: 18;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 2%;
  padding-bottom: 10%;
  text-align: center;
  pointer-events: none;
}

.hero-couple-lockup .editable-field {
  pointer-events: auto;
}

.couple-name {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(3rem, 6.2vw, 5.1rem);
  line-height: 1.04;
  color: var(--ink-dark);
  text-shadow: 0 2px 14px rgba(249, 234, 211, 0.9);
}

.couple-connector {
  display: inline-block;
  margin: 4px 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  color: var(--ink-body);
}

/* ==========================================================================
   REPEATING DEB0SSED 6-PETAL TEAL BACKDROP (SECTIONS 3 - 11)
   ========================================================================== */

.teal-pattern-backdrop {
  position: relative;
  background-color: var(--bg-teal);
  background-size: 168px 148px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='168' height='148' viewBox='0 0 168 148'%3E%3Cg fill='rgba(4,24,34,0.34)' stroke='rgba(255,255,255,0.06)' stroke-width='0.9'%3E%3Cg transform='translate(42,37)'%3E%3Cpath d='M0,-2 C-9,-14 -8,-28 0,-32 C8,-28 9,-14 0,-2 Z'/%3E%3Cpath d='M0,-2 C-9,-14 -8,-28 0,-32 C8,-28 9,-14 0,-2 Z' transform='rotate(60)'/%3E%3Cpath d='M0,-2 C-9,-14 -8,-28 0,-32 C8,-28 9,-14 0,-2 Z' transform='rotate(120)'/%3E%3Cpath d='M0,-2 C-9,-14 -8,-28 0,-32 C8,-28 9,-14 0,-2 Z' transform='rotate(180)'/%3E%3Cpath d='M0,-2 C-9,-14 -8,-28 0,-32 C8,-28 9,-14 0,-2 Z' transform='rotate(240)'/%3E%3Cpath d='M0,-2 C-9,-14 -8,-28 0,-32 C8,-28 9,-14 0,-2 Z' transform='rotate(300)'/%3E%3C/g%3E%3Cg transform='translate(126,111)'%3E%3Cpath d='M0,-2 C-9,-14 -8,-28 0,-32 C8,-28 9,-14 0,-2 Z'/%3E%3Cpath d='M0,-2 C-9,-14 -8,-28 0,-32 C8,-28 9,-14 0,-2 Z' transform='rotate(60)'/%3E%3Cpath d='M0,-2 C-9,-14 -8,-28 0,-32 C8,-28 9,-14 0,-2 Z' transform='rotate(120)'/%3E%3Cpath d='M0,-2 C-9,-14 -8,-28 0,-32 C8,-28 9,-14 0,-2 Z' transform='rotate(180)'/%3E%3Cpath d='M0,-2 C-9,-14 -8,-28 0,-32 C8,-28 9,-14 0,-2 Z' transform='rotate(240)'/%3E%3Cpath d='M0,-2 C-9,-14 -8,-28 0,-32 C8,-28 9,-14 0,-2 Z' transform='rotate(300)'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  padding-top: 76px;
}

/* ==========================================================================
   SECTIONS 3, 4 & 10: GROOM, BRIDE & COMPLIMENTS PAPERCUT CARDS
   ========================================================================== */

.section-family-card {
  padding: 46px 46px;
  display: flex;
  justify-content: center;
}

.papercut-frame-card {
  position: relative;
  width: 100%;
  max-width: 615px;
  padding: 20px;
}

/* Outer notched corner silhouette */
.papercut-frame-card__outer {
  position: absolute;
  inset: 0;
  background: #143949;
  box-shadow: var(--shadow-paper-lg);
}

.papercut-frame-card__bevel {
  position: absolute;
  inset: 14px;
  background: linear-gradient(135deg, #275e67 0%, #15404b 100%);
  border: 1px solid rgba(169, 206, 202, 0.16);
}

.papercut-frame-card__paper {
  position: relative;
  z-index: 4;
  background: var(--cream-paper);
  padding: 58px 40px 56px;
  text-align: center;
  box-shadow:
    inset 0 0 28px rgba(17, 68, 72, 0.24),
    0 8px 22px rgba(4, 24, 34, 0.42);
  /* Scalloped notched corners matching screenshot */
  -webkit-mask-image:
    radial-gradient(circle 28px at 0 0, transparent 27px, #000 28px),
    radial-gradient(circle 28px at 100% 0, transparent 27px, #000 28px),
    radial-gradient(circle 28px at 0 100%, transparent 27px, #000 28px),
    radial-gradient(circle 28px at 100% 100%, transparent 27px, #000 28px);
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(circle 28px at 0 0, transparent 27px, #000 28px),
    radial-gradient(circle 28px at 100% 0, transparent 27px, #000 28px),
    radial-gradient(circle 28px at 0 100%, transparent 27px, #000 28px),
    radial-gradient(circle 28px at 100% 100%, transparent 27px, #000 28px);
  mask-composite: intersect;
}

.card-botanical-left {
  position: absolute;
  left: 6px;
  bottom: 20px;
  width: 56px;
  z-index: 6;
  pointer-events: none;
}

.card-botanical-right {
  position: absolute;
  right: -24px;
  bottom: -24px;
  width: 138px;
  z-index: 6;
  pointer-events: none;
}

.card-bud-left-svg,
.card-bud-right-svg {
  width: 100%;
  height: auto;
  display: block;
}

.family-person-name {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.1rem, 4vw, 2.75rem);
  color: var(--ink-dark);
}

.family-relation-label {
  margin: 22px 0 8px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--ink-muted);
}

.family-elder-name {
  margin: 4px 0;
  font-family: var(--font-serif);
  font-size: clamp(1.22rem, 2.3vw, 1.48rem);
  font-weight: 500;
  color: var(--ink-dark);
}

.family-amp {
  display: block;
  margin: 2px 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-muted);
}

.family-gotra {
  margin: 26px 0 0;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--ink-muted);
  min-height: 24px;
}

body:not(.is-edit-mode) .family-gotra:empty {
  display: none;
}

/* Compliments Card specifics */
.compliments-heading {
  margin: 0 0 28px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 3.6vw, 2.65rem);
  line-height: 1.18;
  color: var(--ink-dark);
}

.compliments-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.compliment-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.compliment-text {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.1vw, 1.32rem);
  color: var(--ink-body);
}

.compliment-del-btn {
  border: 0;
  background: #fee2e2;
  color: #b91c1c;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.78rem;
  line-height: 22px;
  cursor: pointer;
}

.edit-compliments-controls {
  margin-top: 22px;
}

/* ==========================================================================
   SECTION 5: GIANT BLOOMING LOTUS DIVIDER
   ========================================================================== */

.section-lotus-divider {
  padding: 96px 24px 86px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.blooming-lotus-stage {
  width: clamp(260px, 38vw, 410px);
  cursor: pointer;
}

.lotus-divider-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.lotus-ring {
  transform-origin: 0 0;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.lotus-ring--outer {
  transform: scale(0.84) rotate(-14deg);
}

.lotus-ring--mid {
  transform: scale(0.82) rotate(16deg);
}

.lotus-ring--inner {
  transform: scale(0.78) rotate(-12deg);
}

.blooming-lotus-stage.is-in-view .lotus-ring--outer,
.blooming-lotus-stage.is-bloomed .lotus-ring--outer {
  transform: scale(1) rotate(0deg);
}

.blooming-lotus-stage.is-in-view .lotus-ring--mid,
.blooming-lotus-stage.is-bloomed .lotus-ring--mid {
  transform: scale(1) rotate(0deg);
}

.blooming-lotus-stage.is-in-view .lotus-ring--inner,
.blooming-lotus-stage.is-bloomed .lotus-ring--inner {
  transform: scale(1) rotate(0deg);
}

.blooming-lotus-stage:hover .lotus-ring--outer {
  transform: scale(1.04) rotate(5deg);
}

.blooming-lotus-stage:hover .lotus-ring--inner {
  transform: scale(1.06) rotate(-6deg);
}

/* ==========================================================================
   SECTION 6: SAVE THE DATE CARD
   ========================================================================== */

.section-save-date {
  padding: 58px 36px 78px;
  display: flex;
  justify-content: center;
}

.save-date-stage {
  position: relative;
  width: 100%;
  max-width: 780px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.save-date-lotus {
  position: absolute;
  top: 50%;
  width: 215px;
  z-index: 7;
  pointer-events: none;
  transform: translateY(-48%);
}

.save-date-lotus--left {
  left: -34px;
}

.save-date-lotus--right {
  right: -34px;
}

.lotus-cluster-svg {
  width: 100%;
  height: auto;
  display: block;
}

.lotus-cluster-svg.is-mirrored {
  transform: scaleX(-1);
}

.save-date-card {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 600px;
  background: var(--cream-cover);
  border: 2px solid var(--gold-mid);
  border-radius: 8px;
  padding: 50px 58px 42px;
  text-align: center;
  box-shadow: var(--shadow-paper-lg);
}

.save-date-dot {
  width: 6px;
  height: 6px;
  border: 1px solid rgba(101, 118, 125, 0.6);
  margin: 0 auto 14px;
}

.save-date-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 440px;
  margin: 0 auto 24px;
}

.date-col__label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink-dark);
}

.wing {
  width: 12px;
  height: 7px;
  background: var(--ink-dark);
  border-radius: 8px 0 8px 0;
  opacity: 0.85;
}

.wing--r {
  transform: scaleX(-1);
}

.date-tile-btn {
  position: relative;
  width: 100%;
  height: 82px;
  border: 0;
  padding: 0;
  background: transparent;
  perspective: 700px;
  cursor: pointer;
}

.date-tile-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: linear-gradient(180deg, #0d4b61 0%, var(--bg-teal-deep) 100%);
  color: #fdf6ea;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  letter-spacing: 0.03em;
  box-shadow:
    inset 0 0 0 2px #0f566e,
    inset 0 0 0 4px rgba(210, 178, 126, 0.32),
    0 10px 20px rgba(4, 24, 34, 0.44);
  backface-visibility: hidden;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.date-tile-veil {
  background: linear-gradient(135deg, #125870 0%, #073345 100%);
  color: var(--gold-bright);
  transform: rotateY(180deg);
}

/* When veiled in preview before clicking "Reveal the Date!" */
.save-date-card.is-veiled .date-tile-front {
  transform: rotateY(180deg);
}

.save-date-card.is-veiled .date-tile-veil {
  transform: rotateY(0deg);
}

.edit-date-picker-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1.5px dashed rgba(109, 40, 217, 0.45);
  background: rgba(255, 255, 255, 0.72);
}

.edit-date-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--editor-violet);
}

.edit-date-input {
  border: 0;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--ink-dark);
  font-weight: 600;
}

.save-date-actions {
  margin-bottom: 14px;
}

.save-date-caption {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.48rem;
  color: var(--ink-body);
}

.wedding-countdown-pill {
  margin: 10px auto 0;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(11, 67, 88, 0.1);
  color: var(--ink-dark);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   SECTION 7: PULL-STRING BLESSINGS MEDALLION
   ========================================================================== */

.section-pull-notes {
  padding: 56px 28px 80px;
  text-align: center;
}

.pull-notes-prompt {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(251, 245, 232, 0.86);
}

.medallion-stage {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.medallion-arrow {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-size: 2.5rem;
  line-height: 1;
  padding: 12px;
  cursor: pointer;
  transition: transform 0.16s ease, color 0.16s ease;
}

.medallion-arrow:hover {
  color: #fff;
  transform: scale(1.15);
}

.medallion-container {
  position: relative;
  width: min(410px, 84vw);
  aspect-ratio: 420 / 530;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mughal-medallion-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.medallion-frame-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Hanging Beaded String & Tassel */
.pull-string-trigger {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  border: 0;
  background: transparent;
  padding: 0 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: grab;
  transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pull-string-trigger:active {
  cursor: grabbing;
}

.pull-string-trigger.is-pulled {
  transform: translateX(-50%) translateY(20px);
}

.pull-string-beads {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.bead {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff0c2, #b88c4a);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.pull-tassel-cap {
  width: 10px;
  height: 5px;
  margin-top: 2px;
  border-radius: 3px 3px 0 0;
  background: #cfa76a;
}

.pull-tassel-body {
  width: 14px;
  height: 20px;
  clip-path: polygon(25% 0%, 75% 0%, 100% 100%, 0% 100%);
  background: linear-gradient(180deg, #196b64 0%, #0d4440 100%);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
}

.medallion-note-content {
  position: relative;
  z-index: 8;
  width: 62%;
  padding: 18px 10px;
  margin-top: 10px;
}

.active-pull-note {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.22rem, 2.3vw, 1.65rem);
  line-height: 1.5;
  color: var(--ink-dark);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.active-pull-note.is-swapping {
  opacity: 0;
  transform: translateY(6px);
}

.note-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}

.note-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(21, 54, 67, 0.22);
  transition: transform 0.2s ease, background 0.2s ease;
}

.note-dot.is-active {
  background: var(--gold-mid);
  transform: scale(1.25);
}

.edit-notes-controls {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

/* ==========================================================================
   SECTIONS 8 & 9: CEREMONIES GRID
   ========================================================================== */

.section-ceremonies {
  padding: 58px 46px 76px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-display-heading {
  margin: 0 auto 44px;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.4rem, 4.5vw, 3.25rem);
  color: #f9f3e7;
  display: block !important;
  width: fit-content;
}

.ceremonies-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.ceremony-card {
  position: relative;
  background: var(--white-paper);
  border-radius: 175px 175px 4px 4px;
  padding: 14px 14px 20px;
  box-shadow: var(--shadow-paper-lg);
  transition: transform 0.26s ease, box-shadow 0.26s ease, opacity 0.26s ease;
}

.ceremony-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 54px rgba(3, 18, 26, 0.62);
}

.ceremony-card.is-excluded {
  opacity: 0.48;
  filter: grayscale(0.45);
}

.ceremony-included-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 15;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #374151;
  font-size: 0.76rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
  cursor: pointer;
}

.ceremony-remove-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 15;
  border: 0;
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(254, 226, 226, 0.95);
  color: #b91c1c;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
}

.ceremony-arch-window {
  width: 100%;
  aspect-ratio: 4 / 4.35;
  border-radius: 220px 220px 0 0;
  overflow: hidden;
  background: #f5efe6;
}

.ceremony-arch-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.ceremony-card:hover .ceremony-arch-img {
  transform: scale(1.035);
}

.ceremony-card__body {
  padding: 18px 6px 2px;
}

.ceremony-title {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.95rem;
  line-height: 1.15;
  color: var(--ink-dark);
}

.ceremony-meta-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.ceremony-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #fafafa;
  color: var(--ink-dark);
  font-family: var(--font-serif);
  font-size: 0.92rem;
}

.ceremony-chip input {
  border: 0;
  background: transparent;
  font-family: var(--font-serif);
  font-size: 0.92rem;
  color: var(--ink-dark);
  width: 90px;
  padding: 0;
}

.ceremony-venue-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-serif);
  font-size: 1.06rem;
  color: var(--ink-dark);
}

.ceremony-venue-btn {
  border: 0;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-dark);
  font-family: var(--font-serif);
  font-size: 1.06rem;
  text-align: left;
  cursor: pointer;
}

.ceremony-venue-btn:hover {
  text-decoration: underline;
}

.ceremonies-edit-actions {
  margin-top: 26px;
  text-align: center;
}

/* ==========================================================================
   SECTION 11: ACTION ICONS, GUEST GREETING, WORKING RSVP & BOTTOM LOTUSES
   ========================================================================== */

.section-rsvp {
  position: relative;
  padding: 64px 40px 140px;
  text-align: center;
  overflow: hidden;
}

.floral-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 38px;
  margin-bottom: 42px;
}

.floral-action-btn {
  position: relative;
  border: 0;
  background: transparent;
  padding: 0;
  width: 68px;
  height: 68px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.floral-action-btn:hover {
  transform: translateY(-3px) scale(1.06);
}

.floral-action-svg {
  width: 68px;
  height: 68px;
  display: block;
}

.floral-action-tip {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(248, 240, 224, 0.78);
  white-space: nowrap;
}

.rsvp-guest-greeting {
  max-width: 780px;
  margin: 0 auto 38px;
}

.rsvp-guest-name {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.9rem, 3.8vw, 2.85rem);
  color: #f8f1e4;
}

body.is-edit-mode .rsvp-guest-name {
  border-top: 1px dashed rgba(255, 255, 255, 0.22);
  border-bottom: 1.5px dashed rgba(167, 139, 250, 0.7);
  padding: 8px 16px;
  display: inline-block;
}

.rsvp-subtitle {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  color: #f4ebd8;
}

/* White Rounded RSVP Card */
.rsvp-card-wrap {
  position: relative;
  z-index: 8;
  max-width: 720px;
  margin: 0 auto;
}

.rsvp-card {
  background: var(--white-paper);
  border-radius: 22px;
  padding: 40px 42px 38px;
  box-shadow: var(--shadow-paper-lg);
  text-align: left;
}

.rsvp-card__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.rsvp-flourish {
  flex: 1;
  max-width: 110px;
  height: 10px;
  opacity: 0.45;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 12'%3E%3Cpath d='M2 6 Q25 1 50 6 T98 6' fill='none' stroke='%238c84a8' stroke-width='1.5'/%3E%3C/svg%3E") center/contain no-repeat;
}

.rsvp-card__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: #5b5575;
  text-align: center;
}

.rsvp-heart-divider {
  text-align: center;
  color: #b7afc9;
  font-size: 0.85rem;
  margin: 6px 0 14px;
}

.rsvp-card__intro {
  display: block !important;
  text-align: center;
  margin: 0 0 22px;
  color: #6b7280;
  font-size: 0.94rem;
}

.rsvp-host-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 20px;
  border-radius: 10px;
  background: #f5f3ff;
  border: 1px dashed #c4b5fd;
  font-size: 0.82rem;
  color: #5b21b6;
}

.rsvp-manage-link {
  border: 0;
  background: #6d28d9;
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

/* RSVP Form Controls */
.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rsvp-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.rsvp-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rsvp-field label,
.rsvp-field-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-dark);
}

.req {
  color: #be123c;
}

.rsvp-field input[type="text"],
.rsvp-field select,
.rsvp-field textarea {
  width: 100%;
  border: 1.5px solid #d7dfe3;
  border-radius: 10px;
  padding: 10px 13px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--ink-dark);
  background: #fdfcfa;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.rsvp-field input:focus,
.rsvp-field select:focus,
.rsvp-field textarea:focus {
  outline: none;
  border-color: var(--bg-teal);
  box-shadow: 0 0 0 3px rgba(11, 67, 88, 0.12);
}

.rsvp-attendance-toggle {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.att-pill {
  position: relative;
  cursor: pointer;
}

.att-pill input {
  position: absolute;
  opacity: 0;
}

.att-pill span {
  display: block;
  text-align: center;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1.5px solid #d7dfe3;
  background: #faf9f6;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-body);
  transition: all 0.16s ease;
}

.att-pill input:checked + span {
  border-color: var(--bg-teal);
  background: var(--bg-teal);
  color: #fff;
  box-shadow: 0 6px 14px rgba(11, 67, 88, 0.24);
}

.rsvp-attending-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rsvp-events-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.text-action-btn {
  border: 0;
  background: transparent;
  color: var(--bg-teal);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.rsvp-events-checkboxes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.rsvp-event-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  background: #faf9f6;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.rsvp-event-option:has(input:checked) {
  border-color: var(--bg-teal);
  background: rgba(11, 67, 88, 0.06);
}

.rsvp-event-option input {
  accent-color: var(--bg-teal);
  width: 16px;
  height: 16px;
}

.rsvp-event-option__meta {
  display: flex;
  flex-direction: column;
}

.rsvp-event-option__title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-dark);
}

.rsvp-event-option__date {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.rsvp-form-error {
  margin: 0;
  padding: 9px 12px;
  border-radius: 8px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.84rem;
  font-weight: 500;
}

.rsvp-submit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 4px;
}

.rsvp-submit-btn {
  border: 0;
  border-radius: 999px;
  padding: 13px 32px;
  background: linear-gradient(135deg, var(--bg-teal) 0%, var(--bg-teal-deep) 100%);
  color: #fdf6ea;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(7, 42, 56, 0.28);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.rsvp-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(7, 42, 56, 0.36);
}

.rsvp-deadline {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* Confirmation View */
.rsvp-confirmation {
  text-align: center;
  padding: 18px 8px;
}

.rsvp-confirm-badge {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--bg-teal);
  color: #fdf6ea;
  font-size: 1.6rem;
  line-height: 54px;
  box-shadow: 0 8px 20px rgba(11, 67, 88, 0.28);
}

.rsvp-confirmation h4 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--ink-dark);
}

.rsvp-confirm-summary {
  margin: 0 0 22px;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--ink-body);
}

.rsvp-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.rsvp-secondary-btn,
.rsvp-primary-outline-btn {
  border-radius: 999px;
  padding: 9px 18px;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.rsvp-secondary-btn {
  border: 1.5px solid #cbd5e1;
  background: #fff;
  color: var(--ink-dark);
}

.rsvp-primary-outline-btn {
  border: 1.5px solid var(--bg-teal);
  background: var(--bg-teal);
  color: #fff;
}

/* Bottom Corner Blooming Lotuses */
.bottom-lotus {
  position: absolute;
  bottom: -10px;
  width: clamp(160px, 22vw, 250px);
  z-index: 6;
  pointer-events: none;
}

.bottom-lotus--left {
  left: 14px;
}

.bottom-lotus--right {
  right: 14px;
}

.bottom-lotus-svg {
  width: 100%;
  height: auto;
  display: block;
}

.bottom-lotus-svg.is-mirrored {
  transform: scaleX(-1);
}

.invitation-footer {
  position: relative;
  z-index: 10;
  margin-top: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(248, 241, 228, 0.82);
}

.footer-monogram {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.15rem;
}

.footer-hashtag {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
}

.footer-top-btn {
  margin-top: 8px;
  border: 1px solid rgba(242, 218, 176, 0.4);
  background: rgba(6, 42, 56, 0.5);
  color: #f8f1e4;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.76rem;
  cursor: pointer;
}

/* ==========================================================================
   SMALL EDIT PILLS, MODALS & STUDIO DRAWER
   ========================================================================== */

.mini-edit-pill {
  border: 1.5px dashed var(--editor-violet);
  background: #f5f3ff;
  color: var(--editor-violet);
  border-radius: 999px;
  padding: 7px 14px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.mini-edit-pill--light {
  background: rgba(255, 255, 255, 0.94);
}

.mini-edit-pill--danger {
  border-color: #ef4444;
  background: #fef2f2;
  color: #b91c1c;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(4, 21, 30, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-sheet {
  width: 100%;
  max-width: 640px;
  max-height: 88vh;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-sheet--wide {
  max-width: 880px;
}

.modal-sheet--narrow {
  max-width: 480px;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: var(--ink-dark);
}

.modal-subtitle {
  margin: 0;
  font-size: 0.84rem;
  color: #6b7280;
}

.modal-close-btn {
  border: 0;
  background: #f3f4f6;
  color: #374151;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.35rem;
  line-height: 34px;
  cursor: pointer;
  flex-shrink: 0;
}

.modal-body {
  padding: 20px 24px 24px;
  overflow-y: auto;
}

/* Studio Tabs */
.studio-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 24px 0;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  overflow-x: auto;
}

.studio-tab {
  border: 0;
  background: transparent;
  padding: 10px 16px;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  color: #64748b;
  border-bottom: 2.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.studio-tab.is-active {
  color: var(--editor-violet);
  border-bottom-color: var(--editor-violet);
}

.studio-panel {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.studio-panel.is-active {
  display: flex;
}

.studio-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.stat-box {
  padding: 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.stat-box__num {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink-dark);
}

.stat-box__label {
  font-size: 0.76rem;
  color: #64748b;
  margin-top: 2px;
}

.studio-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  background: #fff;
}

.studio-card h4 {
  margin: 0 0 4px;
  font-size: 1rem;
  color: var(--ink-dark);
}

.studio-muted {
  margin: 0 0 12px;
  font-size: 0.8rem;
  color: #64748b;
}

.studio-card__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.studio-card__actions {
  display: flex;
  gap: 8px;
}

.studio-event-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.studio-event-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.studio-rsvp-list,
.studio-guest-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rsvp-entry-row,
.guest-entry-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.badge--yes {
  background: #dcfce7;
  color: #166534;
}

.badge--no {
  background: #fee2e2;
  color: #991b1b;
}

.inline-form-grid {
  display: grid;
  grid-template-columns: 2fr 1.4fr 1fr auto;
  gap: 8px;
}

.inline-form-grid input,
.inline-form-grid select,
.settings-form-grid input,
.inline-edit-form textarea {
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 11px;
  font-family: var(--font-sans);
  font-size: 0.86rem;
}

.settings-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.settings-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
}

.col-span-2 {
  grid-column: span 2;
}

.theme-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.theme-swatch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  background: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.theme-swatch.is-active {
  border-color: var(--editor-violet);
  background: #f5f3ff;
  color: var(--editor-violet);
}

.swatch-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.btn-primary-sm,
.btn-sm {
  border-radius: 8px;
  padding: 8px 14px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary-sm {
  border: 0;
  background: var(--editor-violet);
  color: #fff;
}

.btn-sm {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
}

.btn-sm--danger {
  border-color: #fca5a5;
  color: #b91c1c;
}

.export-buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inline-edit-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inline-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Modal Lists (Map / Calendar / Social) */
.logistics-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.logistics-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.logistics-item h4 {
  margin: 0 0 3px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--ink-dark);
}

.logistics-item p {
  margin: 0;
  font-size: 0.82rem;
  color: #475569;
}

/* ==========================================================================
   TOASTS, PETAL CONFETTI & SCROLL REVEAL
   ========================================================================== */

.toast-region {
  position: fixed;
  bottom: 74px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 500;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
}

.petal-burst-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1100;
  overflow: hidden;
}

.burst-petal {
  position: absolute;
  width: 14px;
  height: 20px;
  border-radius: 80% 10% 80% 10%;
  opacity: 0;
  animation: petalFall 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes petalFall {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(0.7);
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(1.1);
  }
}

.reveal-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-up.is-in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (MOBILE & TABLET)
   ========================================================================== */

@media (max-width: 980px) {
  .ceremonies-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .save-date-lotus {
    width: 155px;
  }

  .save-date-lotus--left {
    left: -14px;
  }

  .save-date-lotus--right {
    right: -14px;
  }
}

@media (max-width: 680px) {
  :root {
    --rail-inset: 8px;
    --rail-width: 6px;
  }

  .editor-topbar {
    padding: 10px 12px;
  }

  .editor-hint {
    display: none;
  }

  .section-cover {
    padding: 80px 24px 86px;
    min-height: 88vh;
  }

  .hero-stage {
    min-height: 410px;
    aspect-ratio: 4 / 3.4;
  }

  .hero-arch-overlay {
    height: 38%;
  }

  .section-family-card {
    padding: 34px 22px;
  }

  .papercut-frame-card {
    padding: 14px;
  }

  .papercut-frame-card__paper {
    padding: 40px 22px 42px;
  }

  .card-botanical-left {
    width: 40px;
    left: 2px;
  }

  .card-botanical-right {
    width: 94px;
    right: -12px;
    bottom: -14px;
  }

  .section-save-date {
    padding: 36px 20px 58px;
  }

  .save-date-card {
    padding: 36px 22px 32px;
  }

  .save-date-lotus {
    width: 98px;
    top: auto;
    bottom: -24px;
    transform: none;
  }

  .save-date-lotus--left {
    left: -10px;
  }

  .save-date-lotus--right {
    right: -10px;
  }

  .date-tile-btn {
    height: 66px;
  }

  .medallion-arrow {
    padding: 4px;
    font-size: 2rem;
  }

  .medallion-stage {
    gap: 6px;
  }

  .section-ceremonies {
    padding: 42px 22px 58px;
  }

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

  .section-rsvp {
    padding: 44px 20px 136px;
  }

  .rsvp-card {
    padding: 28px 20px 26px;
  }

  .rsvp-form__grid,
  .rsvp-events-checkboxes,
  .rsvp-attendance-toggle,
  .studio-stats-grid,
  .inline-form-grid,
  .settings-form-grid {
    grid-template-columns: 1fr;
  }

  .col-span-2 {
    grid-column: span 1;
  }

  .floating-studio-btn {
    right: 14px;
    bottom: 14px;
    padding: 10px 16px;
    font-size: 0.82rem;
  }

  .audio-toggle-btn {
    left: 14px;
    bottom: 14px;
  }

  .audio-toggle-label {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal-up,
  .lotus-ring,
  .date-tile-face,
  .pull-string-trigger {
    transition: none !important;
  }
}
