/* ── Custom Fonts ─────────────────────────────────────────────── */

@font-face {
  font-family: "Benvolio";
  src: url("/img/scene/benvolio.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "NyghtSerif-Light";
  src: url("/img/scene/NyghtSerif-Light.ttf") format("truetype");
  font-weight: light;
  font-style: normal;
  font-display: swap;
}


@font-face {
  font-family: "celestina";
  src: url("/img/scene/celestina.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "magnolia";
  src: url("/img/scene/magnolia.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ── CSS Variables ────────────────────────────────────────────── */

:root {
  /* New pastel palette */
  --cream: #fdf8f4;
  --blush: #f5ddd6;
  --sage: #a8b5a0;
  --dusty-blue: #8fa3b1;
  --lavender: #c5b8d8;
  --text-dark: #3d2c2c;
  --text-soft: #7a6060;
  --text-soft-2: #9b8a8a;
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.78);
  --glass-shadow: 0 8px 32px rgba(160, 120, 120, 0.13);

  /* Legacy variables — keep for admin page compatibility */
  --bg-main: #fdf8f4;
  --bg-soft: #f5ddd6;
  --card-bg: #fdf8f4;
  --text-main: #3d2c2c;
  --line: rgba(200, 160, 160, 0.35);
  --accent: #c9a0a0;
  --accent-deep: #9a7070;
  --shadow: 0 8px 32px rgba(160, 120, 120, 0.13);
  --card-ornament-line: rgba(200, 160, 160, 0.3);
  --card-ornament-dot: rgba(200, 160, 160, 0.2);
  --card-ornament-petal: rgba(220, 170, 180, 0.3);

  font-family: 'NyghtSerif-Light', 'Playfair Display', Georgia, serif;
}

/* ── Reset ────────────────────────────────────────────────────── */

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

html,
body {
  margin: 0;
  padding: 0;
}

/* ── Base ─────────────────────────────────────────────────────── */

body {
  font-family: 'NyghtSerif-Light', 'Playfair Display', Georgia, serif;
  color: var(--text-dark);
  background: var(--cream);
  min-height: 100vh;
  overflow: hidden;
}

body.is-locked {
  overflow: hidden;
}

h1,
h2 {
  margin-top: 0;
  font-family: 'NyghtSerif-Light', serif;
  line-height: 1.15;
}

p {
  margin-top: 0;
}

/* ── Utilities ────────────────────────────────────────────────── */

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(12px) scale(0.985);
  transition:
    opacity 0.62s ease,
    transform 0.62s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ── Header ───────────────────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  padding: 16px 28px;
  pointer-events: none;
}

.language-switch {
  display: inline-flex;
  gap: 4px;
  pointer-events: all;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 4px;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font-family: 'NyghtSerif-Light', serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.lang-btn.is-active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(200, 140, 140, 0.3);
}

.lang-btn:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-dark);
}

/* ── Floral Background ────────────────────────────────────────── */

#floral-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floral {
  position: absolute;
  opacity: 0.8;
  will-change: transform, translate;
  filter: drop-shadow(0 4px 14px rgba(200, 140, 140, 0.14));
}

/* Positional variants — size + drift animation phase staggered */
/* Top-left corner */
.pos-a {
  top: 3%;
  left: 2%;
  width: clamp(50px, 8vw, 120px);
  animation: floralDrift 11s ease-in-out infinite;
}
/* Top-right corner */
.pos-b {
  top: 3%;
  right: 2%;
  width: clamp(40px, 6.5vw, 95px);
  animation: floralDrift 13s ease-in-out infinite 1.4s;
}
/* Left edge, mid-height — just outside left panel */
.pos-c {
  top: 40%;
  left: 2%;
  width: clamp(35px, 5.5vw, 80px);
  animation: floralDrift 9.5s ease-in-out infinite 3.1s;
}
/* Bottom-left */
.pos-d {
  bottom: 5%;
  left: 14%;
  width: clamp(45px, 7vw, 105px);
  animation: floralDrift 14s ease-in-out infinite 0.6s;
}
/* Right edge, mid-height — just outside right panel */
.pos-e {
  top: 38%;
  right: 2%;
  width: clamp(38px, 6vw, 88px);
  animation: floralDrift 10.5s ease-in-out infinite 2.2s;
}
/* Bottom-right */
.pos-f {
  bottom: 5%;
  right: 14%;
  width: clamp(42px, 6.5vw, 95px);
  animation: floralDrift 12.5s ease-in-out infinite 4s;
}
/* Top strip — above left panel */
.pos-g {
  top: 6%;
  left: 20%;
  width: clamp(32px, 5vw, 72px);
  animation: floralDrift 15s ease-in-out infinite 0.9s;
}
/* Top-right */
.pos-l {
  top: 12%;
  right: 8%;
  width: clamp(32px, 5vw, 72px);
  animation: floralDrift 9s ease-in-out infinite 2.5s;
}
/* Top strip — above right panel */
.pos-i {
  top: 6%;
  right: 20%;
  width: clamp(30px, 4.5vw, 66px);
  animation: floralDrift 12s ease-in-out infinite 2.8s;
}
/* Bottom strip — below left panel */
.pos-h {
  bottom: 6%;
  left: 46%;
  width: clamp(36px, 5.5vw, 80px);
  animation: floralDrift 11.5s ease-in-out infinite 3.6s;
}
/* Bottom strip — below right panel */
.pos-m {
  bottom: 7%;
  right: 20%;
  width: clamp(30px, 4.8vw, 70px);
  animation: floralDrift 14.5s ease-in-out infinite 1.2s;
}
/* Center column upper */
.pos-o {
  top: 28%;
  left: 41%;
  width: clamp(32px, 4.8vw, 70px);
  animation: floralDrift 12.5s ease-in-out infinite 0.7s;
}
/* Center column mid — between countdown and couple */
.pos-p {
  top: 44%;
  left: 53%;
  width: clamp(28px, 4.2vw, 62px);
  animation: floralDrift 10.5s ease-in-out infinite 4.5s;
}
/* Beside heroMarrying text */
.pos-q {
  top: 22%;
  left: 62%;
  width: clamp(24px, 3.8vw, 55px);
  animation: floralDrift 13s ease-in-out infinite 2s;
}
/* Above left panel */
.pos-n {
  top: 14%;
  left: 14%;
  width: clamp(26px, 4vw, 58px);
  animation: floralDrift 11s ease-in-out infinite 3.8s;
}
/* Below right panel */
.pos-j {
  bottom: 14%;
  right: 13%;
  width: clamp(34px, 5.2vw, 76px);
  animation: floralDrift 10s ease-in-out infinite 1.8s;
}
/* Left edge lower */
.pos-k {
  bottom: 20%;
  left: 3%;
  width: clamp(28px, 4.2vw, 60px);
  animation: floralDrift 13.5s ease-in-out infinite 0.4s;
}

@keyframes floralDrift {
  0%   { translate: 0px 0px;    rotate: 0deg; }
  30%  { translate: 0px -13px;  rotate: 1.8deg; }
  65%  { translate: 0px 7px;    rotate: -1.4deg; }
  100% { translate: 0px 0px;    rotate: 0deg; }
}

/* ── Three-Column Page Grid ───────────────────────────────────── */

.page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 100vh;
  position: relative;
  z-index: 1;
  gap: 12px;
  padding: 72px clamp(32px, 7vw, 160px) 18px;
  box-sizing: border-box;
  align-items: center;
}

/* ── Glassmorphism Panel Base ─────────────────────────────────── */

.panel {
  background: var(--glass-bg);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease,
    box-shadow 0.3s ease;
}

.panel.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.panel:nth-child(1) { transition-delay: 0.08s; }
.panel:nth-child(2) { transition-delay: 0.22s; }
.panel:nth-child(3) { transition-delay: 0.38s; }

/* ── Panel wrappers (for overlapping decorations) ─────────────── */

.panel-wrap {
  position: relative;
}

.panel-ribbon {
  position: absolute;
  top: -48px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(140px, 22vw, 280px);
  z-index: 10;
  pointer-events: none;
  filter: drop-shadow(0 4px 10px rgba(160, 100, 100, 0.18));
}

.panel-stamp {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(40px, 5.5vw, 80px);
  z-index: 10;
  pointer-events: none;
  filter: drop-shadow(0 4px 12px rgba(160, 100, 100, 0.2));
}

/* ── RSVP Panel (left) ────────────────────────────────────────── */

.rsvp-panel {
  height: 33vh;
  padding: 28px 24px 24px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--blush) transparent;
  display: flex;
  flex-direction: column;
}

.rsvp-panel::-webkit-scrollbar {
  width: 4px;
}

.rsvp-panel::-webkit-scrollbar-track {
  background: transparent;
}

.rsvp-panel::-webkit-scrollbar-thumb {
  background: var(--blush);
  border-radius: 999px;
}

.rsvp-panel h2 {
  font-family: 'NyghtSerif-Light', serif;
  font-size: clamp(1.1rem, 1.5vw, 1.6rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.rsvp-intro {
  font-size: 0.97rem;
  color: var(--text-soft);
  margin-bottom: 0px;
  letter-spacing: 0.02em;
}

/* Completed state */
#rsvp.is-complete > h2,
#rsvp.is-complete > p {
  display: none;
}

/* ── Center Panel (invitation) ────────────────────────────────── */

.center-panel {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  padding: 28px 20px 0;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
}

.invitation-text {
  flex: 0 0 auto;
  padding-top: 8px;
}

.invite-label {
  font-family: 'NyghtSerif-Light', serif;
  font-size: clamp(0.75rem, 1vw, 1rem);
  color: var(--text-soft);
  letter-spacing: 0.05em;
  margin: 0 0 6px;
}

.hero-name-line {
  font-family: 'magnolia', serif;
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 2.2rem);
  font-weight: 100;
  line-height: 1.1;
  margin: 6px 0 8px;
  color: var(--text-soft-2);
  letter-spacing: 0.01em;
}

.hero-marrying {
  font-family: 'Benvolio', serif;
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 2.5rem);
  font-weight: 500;
  color: var(--lavender);
  margin: 0 0 16px;
  line-height: 1.5;
  text-align: right;
}

.hero-celebrate {
  font-family: 'Playfair Display', serif;
  font-size: clamp(0.6rem, 0.65vw, 0.78rem);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
}

.close {
  margin: 0px;
  line-height: 0.85;
}

.hero-date {
  font-family: 'NyghtSerif-Light', serif;
  /* font-style: italic; */
  font-size: clamp(1.5rem, 1.9vw, 1.75rem);
  color: var(--text-soft);
  margin: 0;
  letter-spacing: 0.02em;
}

.hero-date-details {
  font-family: 'NyghtSerif-Light', serif;
  /* font-style: italic; */
  font-size: clamp(1rem, 1.85vw, 1.2rem);
  color: var(--text-soft);
  margin: 0;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

/* ── Countdown ────────────────────────────────────────────────── */

.countdown-standalone {
  flex: 0 0 auto;
  padding: 10px 0 8px;
  text-align: center;
}

.countdown-grid {
  display: flex;
  gap: clamp(8px, 1.5vw, 18px);
  justify-content: center;
}

.countdown-unit {
  text-align: center;
}

.countdown-value {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 1.8vw, 1.8rem);
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
  line-height: 1;
}

.countdown-label {
  font-family: 'Playfair Display', serif;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 3px 0 0;
}

/* ── Couple Image ─────────────────────────────────────────────── */

.heart-img {
  display: block;
  margin: 10px auto 0;
  width: 18px;
  opacity: 0.75;
}

.couple-wrap {
  flex: 0 0 auto;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.couple-img {
  height: 45vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

/* ── Map Panel (right) ────────────────────────────────────────── */

.map-panel {
  height: 33vh;
  padding: 0;
  border-radius: 24px;
  cursor: pointer;
}

.map-link {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 23px;
  overflow: hidden;
  text-decoration: none;
}

.map-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.map-link:hover .map-img {
  transform: scale(1.04);
  filter: brightness(1.06) saturate(1.05);
}

/* ── Buttons ──────────────────────────────────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  background: linear-gradient(135deg, var(--accent), #d8b4b4);
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.button:hover {
  background: linear-gradient(135deg, var(--accent-deep), #b08080);
  border-color: var(--accent-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(160, 100, 100, 0.22);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.78);
  color: var(--accent-deep);
  border-color: var(--line);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.95);
}

.button:focus-visible {
  outline: 2px solid rgba(200, 140, 140, 0.55);
  outline-offset: 2px;
}

.admin-row-btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .admin-row-btn:hover,
  a[href]:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(160, 120, 120, 0.12);
  }
}

/* ── RSVP Form Internals ──────────────────────────────────────── */

.rsvp-form {
  display: grid;
  gap: 0.6rem;
  justify-items: stretch;
  width: 100%;
  font-family: 'NyghtSerif-Light', serif;
}

.rsvp-form label {
  margin-top: 0.25rem;
  font-size: 0.82rem;
  color: var(--text-dark);
  font-weight: 400;
  /* font-style: italic; */
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  font: inherit;
  font-size: 0.88rem;
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.82);
}

.rsvp-form textarea {
  resize: vertical;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
  outline: 2px solid rgba(200, 140, 140, 0.4);
  border-color: var(--accent);
}

.rsvp-form button {
  margin-top: 0.25rem;
  justify-self: center;
}

.rsvp-code-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.rsvp-code-row .button {
  white-space: nowrap;
  border-radius: 999px;
  width: 100%;
  font-size: 0.82rem;
  padding: 0.6rem 1rem;
}

.rsvp-guests-panel {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  margin-top: 0.2rem;
  width: 100%;
}

.rsvp-party-name {
  margin: 0 0 0.5rem;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.88rem;
}

.rsvp-guests-list {
  display: grid;
  gap: 0.5rem;
  text-align: left;
}

.rsvp-guest-option {
  display: grid;
  grid-template-columns: 1.3rem 1fr;
  align-items: center;
  column-gap: 0.75rem;
  color: var(--text-dark);
  text-align: left;
}

.rsvp-guest-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rsvp-guest-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
}

.rsvp-attend-choice {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.rsvp-guest-option input[type="radio"] {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  width: 4px;
  min-width: 4px;
  flex-shrink: 0;
  aspect-ratio: 1;
  border: 0.2px solid var(--blush);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.rsvp-guest-option input[type="radio"]:checked {
  background: var(--blush);
  border-color: var(--blush);
}

.rsvp-guest-option label,
.rsvp-guest-option span {
  font-size: 0.88rem;
  font-weight: 400;
}

.rsvp-dietary-wrap {
  padding-top: 1.25rem;
}

.rsvp-dietary-wrap.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.rsvp-single-choice {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.rsvp-single-choice label {
  margin: 0;
  font-weight: 500;
  font-size: 0.88rem;
}

.rsvp-status {
  margin: 0.4rem 0 0;
  min-height: 1.2rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent-deep);
}

.rsvp-status.is-success-animated {
  animation: rsvp-success-pop 0.62s ease;
}

.rsvp-status.is-success-animated::before {
  content: "\2713";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  margin-right: 0.4rem;
  border-radius: 999px;
  font-size: 0.72rem;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #d8b4b4);
  box-shadow: 0 4px 10px rgba(160, 100, 100, 0.18);
}

@keyframes rsvp-success-pop {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

.rsvp-form.is-complete > :not(#rsvp-status):not(#rsvp-edit) {
  display: none !important;
}

.rsvp-form.is-complete #rsvp-status {
  margin-top: 0;
  text-align: left;
}

.rsvp-message-separator {
  display: block;
  width: 64px;
  height: 1px;
  margin: 0.65rem 0;
  background: var(--line);
}

.rsvp-contact-note {
  display: inline;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* ── Card (used by admin page) ────────────────────────────────── */

.card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  padding: clamp(1.1rem, 3vw, 2rem);
  position: relative;
  overflow: hidden;
}

.admin-body .card {
  background: #fff;
}

/* ── Admin Styles ─────────────────────────────────────────────── */

.admin-page {
  margin-top: 2rem;
}

.admin-auth-card {
  width: min(460px, 92vw);
  margin: 2.4rem auto 0;
  font-size: 0.92rem;
}

.admin-auth-card h1 {
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  margin-bottom: 0.45rem;
}

.admin-auth-card > p {
  font-size: 0.92rem;
  margin-bottom: 0.8rem;
}

.admin-auth-form {
  display: grid;
  gap: 0.55rem;
}

.admin-auth-form label {
  margin-top: 0.3rem;
  font-size: 0.86rem;
  font-weight: 600;
}

.admin-auth-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.58rem 0.75rem;
  font: inherit;
  font-size: 0.9rem;
  color: var(--text-main);
  background: #fff;
}

.admin-auth-form .button {
  font-size: 0.9rem;
  padding: 0.62rem 1rem;
}

.admin-auth-status {
  margin: 0.5rem 0 0;
  min-height: 1.2rem;
  font-weight: 600;
  color: var(--accent-deep);
}

.admin-header h1 {
  margin-bottom: 0.45rem;
}

.admin-header-actions .button,
.admin-header-actions a.button {
  font-size: 0.95rem;
}

.admin-form {
  display: grid;
  gap: 0.55rem;
}

.admin-form label {
  margin-top: 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.admin-form input:not([type="checkbox"]),
.admin-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.68rem 0.8rem;
  font: inherit;
  color: var(--text-main);
  background: #fff;
}

.admin-form input[readonly] {
  background: #f6f6f4;
  color: #6a726d;
  cursor: not-allowed;
}

.admin-select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.68rem 0.8rem;
  font: inherit;
  color: var(--text-main);
  background: #fff;
}

.event-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.event-badge.is-full      { background: #dbeafe; color: #1e40af; }
.event-badge.is-ceremony  { background: #fef3c7; color: #92400e; }
.event-badge.is-party     { background: #fce7f3; color: #9d174d; }

#single-guest-section,
#group-guest-section {
  display: grid;
  gap: 0.55rem;
}

.guest-fields {
  display: grid;
  gap: 0.45rem;
}

.plus-one-option-row {
  margin-top: 0.25rem;
  width: 100%;
}

.plus-one-option-label {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-weight: 500;
  color: var(--text-main);
  white-space: normal;
  line-height: 1.25;
}

.plus-one-option-label input[type="checkbox"] {
  flex: 0 0 auto;
  margin-top: 0.1rem;
}

.invitation-type-toggle {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.invitation-type-btn {
  flex: 1;
  padding: 0.65rem 1rem;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text-soft);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.invitation-type-btn.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.guest-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
}

.admin-form-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.admin-status {
  margin: 0.75rem 0 0;
  min-height: 1.2rem;
  font-weight: 600;
  color: var(--accent-deep);
}

.admin-duplicate-alert {
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.8rem;
  border: 1px solid #e0b4b4;
  border-radius: 10px;
  background: #fff3f3;
  color: #8a3b3b;
  font-weight: 600;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.metric-card h2 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.metric-card p {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--accent-deep);
}

.admin-table-wrap {
  overflow-x: auto;
}

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

.admin-table th,
.admin-table td {
  padding: 0.7rem;
  text-align: left;
  color: var(--text-main);
}

.admin-table th {
  font-weight: 700;
  color: var(--accent-deep);
  border-bottom: 1px solid var(--line);
}

.admin-table td {
  border-bottom: 0;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.admin-table tr.invitation-start-row td {
  border-top: 1px solid var(--line);
}

.admin-row-btn {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text-main);
  padding: 0.35rem 0.55rem;
  margin-right: 0.25rem;
  cursor: pointer;
}

.admin-row-btn.danger {
  color: #8a3b3b;
  border-color: #deb4b4;
}

.guest-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin: 0.1rem 0.2rem 0.1rem 0;
  background: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  line-height: 1.2;
}

.guest-badge.is-attending {
  border-color: #9ccba7;
  background: #edf8f0;
  color: #2f6a3d;
}

.guest-badge.is-not-attending {
  border-color: #e2b4b4;
  background: #fff1f1;
  color: #8a3b3b;
}

.guest-badge.is-unknown {
  border-color: #e2d49a;
  background: #fff9e8;
  color: #7a6727;
}

/* ── Admin body overrides ─────────────────────────────────────── */

.admin-body {
  overflow: auto;
  background: #f7f4f0;
}

/* ── Site Footer ──────────────────────────────────────────────── */

.site-footer {
  display: none;
}

/* ── Responsive: Collapse to single column ────────────────────── */

@media (max-width: 900px) {
  body {
    overflow: auto;
  }

  .page-grid {
    grid-template-columns: 1fr;
    height: auto;
    align-items: stretch;
    padding: 72px 14px 20px;
    gap: 14px;
  }

  /* Mobile order: hero text → RSVP → couple → map */
  .center-panel {
    display: contents;
  }

  .invitation-block {
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    padding: 24px 20px;
  }

  .page-grid > .panel-wrap:first-child {
    order: 2;
  }

  .couple-wrap {
    order: 3;
    justify-content: center;
  }

  .page-grid > .panel-wrap:last-child {
    order: 4;
  }

  .rsvp-panel {
    height: auto;
    max-height: none;
    overflow-y: visible;
    font-family: 'NyghtSerif-Light', serif;
  }

  .map-panel {
    height: 56vw;
    max-height: 340px;
  }

  .hero-marrying {
    text-align: center;
  }

  .panel-ribbon {
    top: -28px;
  }

  .rsvp-guests-panel {
    max-height: none;
  }

  .couple-img {
    height: 26vh;
  }

  .site-footer {
    display: block;
    text-align: center;
    padding: 24px 16px 32px;
  }

  .site-footer p {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1rem;
    color: var(--text-soft);
    margin: 0;
  }

  .admin-metrics {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .page-grid {
    padding: 68px 10px 20px;
    gap: 10px;
  }

  .hero-name-line {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .admin-metrics {
    grid-template-columns: 1fr;
  }

  .guest-row {
    grid-template-columns: 1fr;
  }
}

/* ── Reduced Motion ───────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .floral {
    animation: none;
  }

  .panel {
    transition: box-shadow 0.3s ease;
    opacity: 1;
    transform: none;
  }

  .reveal-on-scroll {
    transition: none;
    opacity: 1;
    transform: none;
  }

  .map-img {
    transition: none;
  }
}
