:root {
  --ink: #42392f;
  --soft-ink: #75695f;
  --paper: #f8f4ee;
  --paper-2: #fffaf5;
  --linen: #eee4d8;
  --sage: #727962;
  --moss: #4f5945;
  --deep: #303829;
  --rose: #a86f69;
  --gold: #b6915c;
  --blue: #26456d;
  --aqua: #2fb6c4;
  --white: #fffaf5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #2c2b27;
  font-family: "Segoe UI", Arial, sans-serif;
}

.invite {
  width: min(100%, 520px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.28);
}

.hero {
  position: relative;
  aspect-ratio: 2 / 3;
  display: grid;
  align-items: end;
  isolation: isolate;
}

.hero-photo,
.photo-band img,
.closing img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: auto;
}

.hero .zoom-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(36, 31, 26, 0.02), rgba(31, 29, 25, 0.04) 48%, rgba(31, 29, 25, 0.34) 100%),
    radial-gradient(circle at 50% 16%, rgba(255, 250, 245, 0.08), transparent 42%);
}

.hero-content {
  padding: 34px 18px 30px;
  text-align: center;
}

.hero-names {
  position: absolute;
  top: 28px;
  left: 50%;
  z-index: 1;
  width: calc(100% - 52px);
  padding: 8px 12px 12px;
  transform: translateX(-50%);
  text-align: center;
  background: rgba(255, 250, 245, 0.96);
  box-shadow: 0 10px 28px rgba(42, 34, 27, 0.16);
}

.scripture {
  margin: 0 auto;
  max-width: 420px;
  color: #fffdf9;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
  font: italic 1rem/1.65 Georgia, serif;
}

.scripture strong {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.title-panel {
  display: grid;
  min-height: 72px;
  align-items: center;
  padding: 14px 28px 4px;
  text-align: center;
  background: var(--paper-2);
}

.names {
  color: var(--moss);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 0.92;
}

.names span {
  display: inline-block;
  font-size: clamp(2.35rem, 10vw, 3.75rem);
  font-weight: 400;
}

.names small {
  display: inline-block;
  margin: 0 8px;
  color: var(--gold);
  font-size: 1.45rem;
}

.hero-names span {
  color: var(--moss);
}

.parents-blessing {
  margin: 0 auto;
  color: var(--soft-ink);
  font: italic 1.08rem/1.45 Georgia, serif;
}

.hint,
.eyebrow {
  margin: 18px 0 0;
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.blessing,
.date-section,
.locations,
.actions,
.closing div {
  padding: 38px 28px;
  text-align: center;
}

.blessing {
  padding-top: 8px;
  padding-bottom: 28px;
  background: var(--paper-2);
}

.blessing > p,
.invite-text {
  margin: 0 auto 24px;
  max-width: 430px;
  color: var(--soft-ink);
  font: italic 1.24rem/1.65 Georgia, serif;
}

.parents {
  display: grid;
  gap: 18px;
}

.parents div {
  display: grid;
  gap: 5px;
}

.parents span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

.date-section {
  padding-top: 36px;
  padding-bottom: 42px;
  background: var(--linen);
}

.date-section .invite-text {
  line-height: 1.55;
}

.date-card {
  width: min(310px, 100%);
  margin: 0 auto;
  padding: 22px 18px;
  border: 1px solid rgba(79, 89, 69, 0.28);
  background: rgba(255, 250, 245, 0.56);
}

.date-card strong {
  display: block;
  color: var(--moss);
  font: 5.1rem/0.8 Georgia, serif;
}

.date-card span {
  display: block;
  margin-top: 10px;
  color: var(--rose);
  font: 2.05rem/1 Georgia, serif;
}

.date-card p {
  margin: 12px 0 0;
  color: var(--soft-ink);
}

.photo-band {
  height: 50svh;
  min-height: 340px;
}

.locations {
  display: grid;
  gap: 10px;
  background: var(--paper);
}

.locations .eyebrow {
  margin: 0 0 6px;
}

.locations article {
  padding: 20px 20px;
  border-top: 1px solid rgba(66, 57, 47, 0.16);
}

.locations article:first-of-type {
  border-top: 0;
}

.locations h2 {
  margin: 0 0 8px;
  color: var(--moss);
  font: 1.45rem/1.15 Georgia, serif;
}

.locations p,
.locations address {
  margin: 0;
  color: var(--soft-ink);
  font-style: normal;
  line-height: 1.55;
}

.locations address {
  margin-top: 6px;
}

.location-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.location-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid rgba(38, 69, 109, 0.2);
  border-radius: 6px;
  color: var(--blue);
  background: rgba(255, 250, 245, 0.8);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.location-link:hover,
.location-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(47, 182, 196, 0.6);
  background: #fff;
}

.location-link svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.actions {
  padding-top: 34px;
  padding-bottom: 34px;
  background:
    linear-gradient(160deg, rgba(47, 182, 196, 0.15), transparent 38%),
    var(--deep);
  color: var(--white);
}

.actions > p {
  margin: 0 0 24px;
  font: italic 1.28rem/1.35 Georgia, serif;
}

.button-grid {
  display: grid;
  gap: 12px;
}

.action-button {
  width: 100%;
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  min-height: 58px;
  padding: 10px 18px 10px 10px;
  border: 1px solid rgba(255, 250, 245, 0.18);
  border-radius: 8px;
  color: var(--white);
  text-decoration: none;
  text-align: left;
  font-weight: 700;
  font: inherit;
  background: rgba(255, 250, 245, 0.1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.action-button:hover,
.action-button:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 250, 245, 0.18);
  border-color: rgba(255, 250, 245, 0.34);
}

.action-button .icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #e0c487);
  color: #30291f;
}

.action-button .icon.location {
  background: linear-gradient(160deg, var(--blue), var(--aqua));
  color: #fff;
}

.action-button .icon.pix-icon {
  background: linear-gradient(160deg, #26b99a, #8be0c8);
  color: #17382f;
}

.action-button svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.action-button strong {
  font: 700 0.98rem/1.25 "Segoe UI", Arial, sans-serif;
}

.rsvp-button-text {
  min-width: 0;
}

.rsvp-button-text small time {
  color: var(--gold);
}

.pix-button {
  grid-template-columns: 58px 1fr 38px;
}

.pix-text {
  min-width: 0;
}

.action-button small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 250, 245, 0.78);
  font-size: 0.76rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.action-button.is-copied {
  border-color: rgba(139, 224, 200, 0.7);
  background: rgba(139, 224, 200, 0.16);
}

.copy-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  justify-self: end;
  border: 1px solid rgba(255, 250, 245, 0.28);
  border-radius: 8px;
  color: rgba(255, 250, 245, 0.9);
  background: rgba(255, 250, 245, 0.1);
}

.copy-icon svg {
  width: 19px;
  height: 19px;
}

.action-button.placeholder {
  opacity: 0.72;
}

.rsvp-panel {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 250, 245, 0.18);
  border-radius: 8px;
  background: rgba(255, 250, 245, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 250, 245, 0.08);
}

.rsvp-panel[hidden],
.rsvp-form[hidden] {
  display: none;
}

.rsvp-options {
  display: grid;
  gap: 10px;
}

.rsvp-choice {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  min-height: 50px;
  padding: 8px 14px 8px 8px;
  border: 1px solid rgba(255, 250, 245, 0.2);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 250, 245, 0.11);
  text-align: left;
  text-decoration: none;
  font: 700 0.92rem/1.25 "Segoe UI", Arial, sans-serif;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.rsvp-choice:hover,
.rsvp-choice:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(224, 196, 135, 0.55);
  background: rgba(255, 250, 245, 0.18);
}

.choice-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #30291f;
  background: linear-gradient(135deg, var(--gold), #e0c487);
}

.choice-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rsvp-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 250, 245, 0.18);
  text-align: left;
}

.rsvp-method {
  padding: 10px 12px;
  border: 1px solid rgba(224, 196, 135, 0.36);
  border-radius: 6px;
  color: #30291f;
  background: linear-gradient(135deg, var(--gold), #e0c487);
  font: 700 0.92rem/1.2 "Segoe UI", Arial, sans-serif;
  text-align: center;
}

.rsvp-form p {
  margin: 0;
  color: rgba(255, 250, 245, 0.84);
  font-size: 0.92rem;
  line-height: 1.45;
}

.rsvp-form .rsvp-deadline {
  padding: 8px 10px;
  border-left: 3px solid var(--gold);
  color: var(--white);
  background: rgba(224, 196, 135, 0.1);
}

.rsvp-deadline strong {
  color: var(--gold);
}

.guest-list {
  display: grid;
  gap: 10px;
}

.guest-counts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.guest-counts label {
  display: grid;
  gap: 6px;
}

.guest-counts span {
  color: rgba(255, 250, 245, 0.76);
  font-size: 0.78rem;
  font-weight: 700;
}

.guest-counts input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 250, 245, 0.26);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  background: rgba(255, 250, 245, 0.95);
  font: 1rem/1.2 "Segoe UI", Arial, sans-serif;
}

.guest-field {
  display: grid;
  gap: 6px;
}

.guest-field > span:first-child {
  color: rgba(255, 250, 245, 0.76);
  font-size: 0.78rem;
  font-weight: 700;
}

.guest-input-row {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 8px;
  align-items: center;
}

.guest-list input[type="text"],
.guest-list input[type="number"] {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 250, 245, 0.26);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  background: rgba(255, 250, 245, 0.95);
  font: 1rem/1.2 "Segoe UI", Arial, sans-serif;
}

.child-input-row {
  display: grid;
  grid-template-columns: 1fr 92px;
  gap: 8px;
  align-items: center;
}

.guest-type-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.guest-type-row label {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 38px;
  border: 1px solid rgba(255, 250, 245, 0.22);
  border-radius: 6px;
  color: rgba(255, 250, 245, 0.82);
  background: rgba(255, 250, 245, 0.1);
  cursor: pointer;
  font: 700 0.82rem/1 "Segoe UI", Arial, sans-serif;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.guest-type-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.guest-type-row label:has(input:checked) {
  border-color: rgba(224, 196, 135, 0.74);
  color: #30291f;
  background: linear-gradient(135deg, var(--gold), #e0c487);
}

.remove-guest {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 250, 245, 0.24);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 250, 245, 0.1);
  cursor: pointer;
  font: 1.45rem/1 Arial, sans-serif;
  transition: background 180ms ease, transform 180ms ease;
}

.remove-guest:hover,
.remove-guest:focus-visible {
  transform: scale(1.04);
  background: rgba(255, 250, 245, 0.2);
}

.add-guest,
.send-rsvp {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font: 700 0.92rem/1.2 "Segoe UI", Arial, sans-serif;
}

.add-guest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--white);
  background: rgba(255, 250, 245, 0.12);
  border: 1px solid rgba(255, 250, 245, 0.22);
}

.add-guest span {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  color: #30291f;
  background: #e0c487;
  font-size: 1.25rem;
  line-height: 1;
}

.send-rsvp {
  color: #30291f;
  background: linear-gradient(135deg, var(--gold), #e0c487);
}

.send-rsvp:disabled {
  cursor: wait;
  opacity: 0.72;
}

.rsvp-status {
  min-height: 20px;
  margin: 0;
  color: rgba(255, 250, 245, 0.82);
  font-size: 0.88rem;
  line-height: 1.4;
  text-align: center;
}

.rsvp-status.is-success {
  color: #e0c487;
}

.rsvp-status.is-error {
  color: #ffd2ca;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 3px;
  background: var(--paper);
}

.gallery img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
}

.zoom-photo {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.gallery .zoom-photo {
  aspect-ratio: 2 / 3;
}

.zoom-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 250, 245, 0.65);
  border-radius: 50%;
  color: #fffaf5;
  background: rgba(36, 33, 28, 0.56);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
  pointer-events: none;
}

.zoom-badge svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gallery .zoom-badge {
  right: 7px;
  bottom: 7px;
  width: 28px;
  height: 28px;
}

.gallery .zoom-badge svg {
  width: 15px;
  height: 15px;
}

.message-wall {
  padding: 38px 28px;
  background: var(--paper-2);
  text-align: center;
}

.message-wall h2 {
  margin: 0 0 8px;
  color: var(--moss);
  font: 1.65rem/1.2 Georgia, serif;
}

.message-wall > p {
  margin: 0 auto 20px;
  max-width: 390px;
  color: var(--soft-ink);
  font: italic 1rem/1.45 Georgia, serif;
}

.message-form {
  display: grid;
  gap: 10px;
  text-align: left;
}

.message-form label {
  display: grid;
  gap: 6px;
}

.message-form span {
  color: var(--soft-ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.message-form input,
.message-form textarea {
  width: 100%;
  border: 1px solid rgba(66, 57, 47, 0.18);
  border-radius: 6px;
  padding: 11px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  font: 0.95rem/1.35 "Segoe UI", Arial, sans-serif;
}

.message-form textarea {
  resize: vertical;
}

.message-editor {
  overflow: hidden;
  border: 1px solid rgba(66, 57, 47, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
}

.message-editor .message-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 9px;
  border-bottom: 1px solid rgba(66, 57, 47, 0.12);
  background: rgba(238, 230, 220, 0.55);
}

.message-editor textarea {
  min-height: 120px;
  border: 0;
  border-radius: 0;
  background: transparent;
  outline: none;
}

.message-font-picker {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 6px !important;
}

.message-font-picker select {
  min-height: 34px;
  padding: 5px 28px 5px 8px;
  border: 1px solid rgba(66, 57, 47, 0.18);
  border-radius: 5px;
  color: var(--ink);
  background: #fff;
  font: 0.8rem/1.2 "Segoe UI", Arial, sans-serif;
}

.message-format-group,
.message-color-group,
.message-emoji-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.message-tool-button,
.message-emoji-group button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(66, 57, 47, 0.16);
  border-radius: 5px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
}

.message-tool-button:hover,
.message-tool-button.is-active,
.message-emoji-group button:hover {
  border-color: rgba(93, 118, 82, 0.55);
  background: rgba(93, 118, 82, 0.13);
}

.message-tool-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.message-color-swatch {
  width: 25px;
  height: 25px;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 50%;
  outline: 1px solid rgba(66, 57, 47, 0.2);
  background: #43382f;
  cursor: pointer;
}

.message-custom-color {
  display: grid !important;
  width: 30px;
  height: 30px;
  margin: 0;
  cursor: pointer;
}

.message-custom-color input[type="color"] {
  width: 30px;
  height: 30px;
  padding: 2px;
  border: 1px solid rgba(66, 57, 47, 0.22);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.message-color-swatch.is-active {
  outline: 3px solid rgba(93, 118, 82, 0.55);
  outline-offset: 1px;
}

.message-color-swatch.color-rose { background: #a65163; }
.message-color-swatch.color-green { background: #4f704f; }
.message-color-swatch.color-blue { background: #337184; }
.message-color-swatch.color-purple { background: #79598b; }
.message-color-swatch.color-gold { background: #a16d20; }

.message-font-modern { font-family: "Segoe UI", Arial, sans-serif !important; }
.message-font-classic { font-family: Georgia, "Times New Roman", serif !important; }
.message-font-romantic { font-family: "Segoe Script", "Brush Script MT", cursive !important; }
.message-font-delicate { font-family: "Trebuchet MS", Arial, sans-serif !important; }
.message-color-ink { color: #43382f !important; }
.message-color-rose { color: #a65163 !important; }
.message-color-green { color: #4f704f !important; }
.message-color-blue { color: #337184 !important; }
.message-color-purple { color: #79598b !important; }
.message-color-gold { color: #a16d20 !important; }
.message-style-bold { font-weight: 700 !important; }
.message-style-italic { font-style: italic !important; }
.message-align-left { text-align: left !important; }
.message-align-center { text-align: center !important; }
.message-align-right { text-align: right !important; }

.message-submit {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  color: #30291f;
  background: linear-gradient(135deg, var(--gold), #e0c487);
  cursor: pointer;
  font: 700 0.95rem/1.2 "Segoe UI", Arial, sans-serif;
}

.message-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.message-status {
  min-height: 20px;
  margin: 0;
  color: var(--soft-ink);
  font-size: 0.86rem;
  text-align: center;
}

.message-status.is-success {
  color: var(--moss);
}

.message-status.is-error {
  color: #a64d43;
}

.message-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  text-align: left;
}

.message-card {
  position: relative;
  padding: 14px;
  border: 1px solid rgba(66, 57, 47, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
}

.message-card p {
  margin: 0 0 10px;
  color: var(--ink);
  font: 0.95rem/1.5 "Segoe UI", Arial, sans-serif;
  white-space: pre-wrap;
}

.message-card footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--soft-ink);
  font-size: 0.78rem;
}

.message-card strong {
  color: var(--moss);
}

.message-card-admin-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(66, 57, 47, 0.1);
}

.message-admin-action {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(66, 57, 47, 0.16);
  border-radius: 6px;
  color: var(--moss);
  background: rgba(255, 255, 255, 0.76);
  cursor: pointer;
}

.message-admin-action[data-action="delete"] {
  color: #a64d43;
}

.message-admin-action svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.message-admin-open {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  padding: 8px 10px;
  border: 0;
  color: var(--soft-ink);
  background: transparent;
  cursor: pointer;
  font: 600 0.78rem/1.2 "Segoe UI", Arial, sans-serif;
}

.message-admin-open:hover {
  color: var(--moss);
}

.message-admin-open svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.message-admin-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(32, 37, 28, 0.76);
  opacity: 0;
  transition: opacity 180ms ease;
}

.message-admin-modal[hidden] {
  display: none;
}

.message-admin-modal.is-open {
  opacity: 1;
}

.message-admin-dialog {
  position: relative;
  width: min(100%, 430px);
  padding: 24px;
  border-radius: 8px;
  background: var(--paper-2);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
  transform: translateY(10px);
  transition: transform 180ms ease;
}

.message-admin-modal.is-open .message-admin-dialog {
  transform: translateY(0);
}

.message-admin-dialog h3 {
  margin: 0 0 18px;
  color: var(--moss);
  font: 1.45rem/1.2 Georgia, serif;
  text-align: center;
}

.message-admin-dialog form {
  display: grid;
  gap: 9px;
  text-align: left;
}

.message-admin-dialog label {
  color: var(--soft-ink);
  font: 700 0.8rem/1.2 "Segoe UI", Arial, sans-serif;
}

.message-admin-dialog input,
.message-admin-dialog textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(66, 57, 47, 0.2);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  font: 0.95rem/1.4 "Segoe UI", Arial, sans-serif;
}

.message-admin-dialog textarea {
  resize: vertical;
}

.message-admin-dialog form > button {
  min-height: 42px;
  margin-top: 4px;
  border: 0;
  border-radius: 6px;
  color: #30291f;
  background: linear-gradient(135deg, var(--gold), #e0c487);
  cursor: pointer;
  font: 700 0.9rem/1.2 "Segoe UI", Arial, sans-serif;
}

.message-modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: var(--soft-ink);
  background: transparent;
  cursor: pointer;
  font-size: 1.45rem;
}

.message-admin-status {
  min-height: 19px;
  margin: 0;
  color: #a64d43;
  font-size: 0.82rem;
  text-align: center;
}

.message-empty {
  margin: 0;
  color: var(--soft-ink);
  font-size: 0.9rem;
  text-align: center;
}

.is-clickable {
  cursor: zoom-in;
}

.is-clickable:focus-visible {
  outline: 3px solid var(--aqua);
  outline-offset: -3px;
}

.closing {
  position: relative;
  min-height: 62svh;
  display: grid;
  align-items: end;
  isolation: isolate;
}

.closing img {
  position: absolute;
  inset: 0;
  z-index: auto;
}

.closing .zoom-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.closing .zoom-photo img {
  z-index: auto;
}

.closing::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(37, 34, 29, 0.08), rgba(37, 34, 29, 0.16) 42%, rgba(248, 244, 238, 0.95));
  pointer-events: none;
}

.closing div {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.closing p {
  margin: 0 0 12px;
  color: var(--rose);
  font: italic 1.35rem/1.3 Georgia, serif;
}

.closing strong {
  color: var(--moss);
  font: 2.7rem/1 Georgia, serif;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px 64px;
  background: rgba(24, 26, 22, 0.94);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-frame {
  display: grid;
  justify-items: center;
  max-width: min(92vw, 760px);
  max-height: 92vh;
  margin: 0;
}

.lightbox-image {
  display: block;
  width: auto;
  max-width: 92vw;
  height: auto;
  max-height: 84vh;
  object-fit: contain;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.38);
}

.lightbox-counter {
  margin-top: 12px;
  color: var(--white);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.lightbox-close,
.lightbox-arrow {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 250, 245, 0.28);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 250, 245, 0.1);
  cursor: pointer;
  font: 1.7rem/1 Arial, sans-serif;
  transition: background 180ms ease, transform 180ms ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible,
.lightbox-arrow:hover,
.lightbox-arrow:focus-visible {
  background: rgba(255, 250, 245, 0.24);
  transform: scale(1.05);
}

.lightbox-close {
  top: 20px;
  right: 20px;
  font-size: 2rem;
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

.lightbox-open {
  overflow: hidden;
}

.music-button {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 48px;
  height: 48px;
  padding: 0 15px;
  border: 1px solid rgba(255, 250, 245, 0.52);
  border-radius: 999px;
  color: #30291f;
  background: linear-gradient(135deg, var(--gold), #e0c487);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  font: 700 0.82rem/1 "Segoe UI", Arial, sans-serif;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.music-button:hover,
.music-button:focus-visible {
  transform: translateY(-2px);
}

.music-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.music-icon-play {
  fill: currentColor;
  stroke: none;
  transform: translateX(1px);
}

.music-icon-muted {
  display: none;
}

.music-button.is-playing {
  width: 48px;
  padding: 0;
  color: var(--white);
  background: rgba(48, 56, 41, 0.92);
}

.music-button.is-playing .music-icon-play {
  display: none;
}

.music-button.is-playing .music-icon-muted {
  display: block;
}

.music-button.is-playing span {
  display: none;
}

@media (min-width: 760px) {
  body {
    padding: 34px 0;
  }

  .invite {
    border-radius: 4px;
  }
}

@media (max-width: 420px) {
  .hero-names {
    width: calc(100% - 28px);
    padding-inline: 6px;
  }

  .names span {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .names small {
    margin-inline: 4px;
    font-size: 1.15rem;
  }

  .location-links {
    align-items: stretch;
    flex-direction: column;
  }

  .location-link {
    justify-content: center;
  }

  .lightbox {
    padding: 52px 12px 24px;
    height: 100dvh;
    box-sizing: border-box;
  }

  .lightbox-image {
    max-width: 86vw;
    max-height: 78vh;
  }

  .lightbox-arrow {
    top: auto;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  }

  .lightbox-prev {
    left: calc(50% - 54px);
  }

  .lightbox-next {
    right: calc(50% - 54px);
  }
}

/* Modal de Aviso de Idade RSVP */
.rsvp-notice-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(24, 26, 22, 0.85);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.rsvp-notice-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.rsvp-notice-content {
  width: 100%;
  max-width: 400px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  text-align: center;
  transform: translateY(20px);
  transition: transform 240ms ease;
  border: 1px solid rgba(48, 41, 31, 0.15);
}

.rsvp-notice-modal.is-open .rsvp-notice-content {
  transform: translateY(0);
}

.rsvp-notice-header h3 {
  margin: 0 0 16px;
  color: var(--moss);
  font: italic 1.45rem/1.3 Georgia, serif;
}

.rsvp-notice-body {
  margin-bottom: 24px;
}

.rsvp-notice-body p {
  margin: 8px 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555;
  font-weight: 500;
}

.rsvp-notice-body p:first-child {
  font-weight: 600;
  color: #333;
}

.rsvp-notice-close {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  color: #30291f;
  background: linear-gradient(135deg, var(--gold), #e0c487);
  font: 700 0.95rem/1.2 "Segoe UI", Arial, sans-serif;
  transition: transform 150ms ease;
}

.rsvp-notice-close:hover {
  transform: translateY(-1px);
}

/* Modal de PIX */
.pix-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(24, 26, 22, 0.85);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

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

.pix-modal-content {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  text-align: center;
  transform: translateY(20px);
  transition: transform 240ms ease;
  border: 1px solid rgba(48, 41, 31, 0.15);
}

.pix-modal.is-open .pix-modal-content {
  transform: translateY(0);
}

.pix-modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 0;
  background: transparent;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 150ms ease;
}

.pix-modal-close-btn:hover {
  opacity: 1;
}

.pix-modal-content h3 {
  margin: 0 0 12px;
  color: var(--moss);
  font: italic 1.55rem/1.3 Georgia, serif;
}

.pix-instructions {
  margin: 0 0 20px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #666;
}

.pix-qrcode-container {
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: #fff;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  width: fit-content;
  margin-inline: auto;
}

.pix-qrcode-container img {
  width: 180px;
  height: 180px;
  display: block;
}

.pix-copia-cola-box {
  display: grid;
  gap: 10px;
}

.pix-copia-cola-box textarea {
  width: 100%;
  height: 64px;
  padding: 8px 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.78rem;
  background: #fafafa;
  resize: none;
  color: #333;
}

#pix-copy-payload-btn {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  color: #30291f;
  background: linear-gradient(135deg, var(--gold), #e0c487);
  font: 700 0.95rem/1.2 "Segoe UI", Arial, sans-serif;
  transition: transform 150ms ease, background 150ms ease;
}

#pix-copy-payload-btn:hover {
  transform: translateY(-1px);
}

#pix-copy-payload-btn.is-copied {
  background: #8be0c8;
  color: #17382f;
}

/* Seção de Fotos e Vídeos (Google Drive Privado) */
.upload-section {
  padding: 44px 20px;
  background: var(--paper);
  text-align: center;
  border-top: 1px solid rgba(48, 41, 31, 0.08);
}

.upload-section h2 {
  margin: 0 0 8px;
  color: var(--moss);
  font: italic 2.1rem/1.2 Georgia, serif;
}

.upload-form {
  max-width: 440px;
  margin: 24px auto 0;
  padding: 24px;
  border: 1px solid rgba(48, 41, 31, 0.08);
  border-radius: 12px;
  background: var(--paper-2);
  display: grid;
  gap: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  text-align: left;
}

.upload-form label {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.upload-form input[type="text"] {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  font: 0.95rem/1.3 "Segoe UI", Arial, sans-serif;
}

.upload-dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  border: 2px dashed rgba(182, 145, 92, 0.4);
  border-radius: 8px;
  background: rgba(255, 250, 245, 0.5);
  cursor: pointer;
  padding: 20px;
  text-align: center;
  transition: background 180ms ease, border-color 180ms ease;
}

.upload-dropzone:hover {
  background: rgba(255, 250, 245, 0.9);
  border-color: var(--gold);
}

.upload-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.dropzone-icon {
  color: var(--gold);
  margin-bottom: 8px;
}

.dropzone-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dropzone-text {
  font-size: 0.88rem;
  color: var(--soft-ink);
  margin-bottom: 4px;
}

.selected-files-count {
  font-size: 0.76rem;
  color: var(--moss);
  font-weight: 600;
}

.upload-progress-container {
  display: grid;
  gap: 6px;
  margin-top: 4px;
}

.upload-progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(48, 41, 31, 0.08);
  border-radius: 99px;
  overflow: hidden;
}

.upload-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--aqua));
  border-radius: 99px;
  transition: width 200ms ease;
}

.upload-progress-text {
  font-size: 0.74rem;
  color: var(--soft-ink);
  text-align: center;
  font-weight: 600;
}

.upload-btn {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--aqua));
  font: 700 0.95rem/1.2 "Segoe UI", Arial, sans-serif;
  box-shadow: 0 8px 20px rgba(38, 69, 109, 0.18);
  transition: transform 150ms ease, opacity 150ms ease;
}

.upload-btn:hover {
  transform: translateY(-1px);
}

.upload-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.upload-status {
  margin: 0;
  font-size: 0.84rem;
  text-align: center;
  min-height: 18px;
}

.upload-status.is-success {
  color: #2b704c;
}

.upload-status.is-error {
  color: #a86f69;
}


