:root {
  --cream: #f6f0e8;
  --cream-2: #eee4d7;
  --paper: #fffdf9;
  --ink: #3b302a;
  --muted: #817268;
  --line: #ded1c2;
  --sage: #8d9b82;
  --sage-dark: #68755f;
  --rose: #aa776f;
  --rose-light: #edd9d4;
  --gold: #b28d57;
  --danger: #a84e4e;
  --success: #51775f;
  --shadow: 0 22px 60px rgba(69, 53, 43, 0.13);
  --shadow-soft: 0 14px 35px rgba(69, 53, 43, 0.08);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --nav-height: 74px;
}

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

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

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
}

body.modal-open,
body.invitation-closed {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--rose-light);
  color: var(--ink);
}

.container {
  width: min(1100px, calc(100% - 36px));
  margin-inline: auto;
}

.narrow {
  width: min(720px, 100%);
}

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

.kicker {
  margin: 0 0 0.8rem;
  color: var(--sage-dark);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.serif-heading {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.5rem, 8vw, 4.8rem);
  line-height: 0.98;
  font-weight: 600;
}

.body-copy,
.section-lead {
  color: var(--muted);
}

.section-lead {
  width: min(600px, 100%);
  margin: 1rem auto 0;
}

.main-content {
  padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px));
}

.content-section {
  padding: clamp(76px, 11vw, 120px) 0;
}

.section-title-wrap {
  margin-bottom: clamp(32px, 6vw, 58px);
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, opacity 180ms ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.btn-primary {
  color: white;
  background: var(--sage-dark);
  box-shadow: 0 10px 28px rgba(104, 117, 95, 0.22);
}

.btn-primary:hover {
  background: #596650;
}

.btn-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
}

.btn-danger {
  color: var(--danger);
  background: #f8e8e5;
  border: 1px solid #efd1cc;
}

.btn-full {
  width: 100%;
}

.btn-compact {
  min-height: 42px;
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
}

.center-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 32px;
}

.text-link,
.button-link {
  color: var(--sage-dark);
  text-decoration: none;
  font-weight: 700;
}

.button-link {
  padding: 0;
  background: transparent;
  cursor: pointer;
}

/* =========================================================
   OPENING COVER
   ========================================================= */

.opening-screen {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding:
    max(22px, env(safe-area-inset-top))
    18px
    max(22px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 15% 20%, rgba(170, 119, 111, 0.18), transparent 28%),
    radial-gradient(circle at 88% 82%, rgba(141, 155, 130, 0.2), transparent 32%),
    var(--cream);
  overflow: auto;
  transition: opacity 600ms ease, visibility 600ms ease;
}

.opening-screen.is-open {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.opening-card {
  width: min(580px, 100%);
  min-height: min(760px, calc(100svh - 44px));
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(48px, 9vw, 88px) clamp(26px, 7vw, 72px);
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid rgba(178, 141, 87, 0.28);
  border-radius: 40px 10px 40px 10px;
  box-shadow: var(--shadow);
}

.opening-card::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(178, 141, 87, 0.2);
  border-radius: 30px 8px 30px 8px;
  pointer-events: none;
}

.opening-floral {
  position: absolute;
  width: clamp(190px, 42vw, 310px);
  opacity: 0.72;
  pointer-events: none;
}

.opening-floral-top {
  top: -70px;
  left: -75px;
}

.opening-floral-bottom {
  right: -75px;
  bottom: -70px;
  transform: rotate(180deg);
}

.opening-title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: clamp(3.25rem, 11vw, 6.2rem);
  line-height: 0.88;
}

.opening-divider {
  width: 70px;
  height: 1px;
  margin: 30px auto;
  background: var(--gold);
}

.opening-recipient-label {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.opening-recipient {
  margin: 0 0 2rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  font-weight: 600;
}

.opening-button {
  position: relative;
  z-index: 2;
  min-width: 180px;
}

/* =========================================================
   HERO
   ========================================================= */

.section-shell {
  position: relative;
  overflow: hidden;
}

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(70px, env(safe-area-inset-top)) 18px 70px;
  background:
    linear-gradient(rgba(255, 253, 249, 0.64), rgba(246, 240, 232, 0.93)),
    url("../assets/images/hero-placeholder.svg") center/cover no-repeat;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(880px, 100%);
  text-align: center;
}

.hero-small {
  margin: 0 0 0.5rem;
  color: var(--muted);
}

.couple-names {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(4rem, 14vw, 9rem);
  font-weight: 600;
  line-height: 0.74;
  letter-spacing: -0.04em;
}

.ampersand {
  margin: 0.28em 0;
  color: var(--rose);
  font-size: 0.52em;
  font-style: italic;
}

.hero-date {
  margin: 2.3rem 0 1.5rem;
  color: var(--sage-dark);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scroll-button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 1.2rem;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-floral {
  position: absolute;
  z-index: 1;
  width: min(440px, 44vw);
  opacity: 0.42;
  pointer-events: none;
}

.hero-floral-left {
  left: -120px;
  bottom: -120px;
  transform: rotate(-10deg);
}

.hero-floral-right {
  top: -100px;
  right: -110px;
  transform: rotate(170deg);
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(20px);
  opacity: 0.32;
}

.hero-glow-one {
  width: 230px;
  height: 230px;
  top: 12%;
  left: 8%;
  background: var(--rose-light);
}

.hero-glow-two {
  width: 300px;
  height: 300px;
  right: 5%;
  bottom: 7%;
  background: #dce3d8;
}

/* =========================================================
   SECTIONS
   ========================================================= */

.hosts-section {
  background: var(--paper);
}

.hosts-names {
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 7vw, 3.6rem);
  line-height: 1.1;
}

.countdown-section {
  color: white;
  background: var(--sage-dark);
}

.countdown-section .kicker {
  color: #dce6d8;
}

.date-heading {
  font-size: clamp(2.2rem, 7vw, 4.2rem);
}

.countdown-grid {
  width: min(700px, 100%);
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.countdown-item {
  padding: 26px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
}

.countdown-item strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.6rem, 8vw, 4.2rem);
  line-height: 1;
}

.countdown-item span {
  display: block;
  margin-top: 0.45rem;
  color: #e6ece3;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.countdown-ended {
  margin: 28px 0 0;
}

.details-section {
  background: var(--cream);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.detail-card {
  min-height: 320px;
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 48px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.detail-card::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -60px;
  bottom: -60px;
  border-radius: 999px;
  background: var(--rose-light);
  opacity: 0.55;
}

.detail-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 55px;
  border-radius: 999px;
  color: white;
  background: var(--sage-dark);
  font-size: 1.3rem;
}

.detail-label {
  margin: 0 0 0.6rem;
  color: var(--sage-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.72rem;
}

.detail-card h3,
.location-card h3 {
  margin: 0 0 0.6rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
}

.detail-card p {
  color: var(--muted);
}

.prayer-section {
  background: var(--paper);
}

.divider-art {
  width: min(320px, 72vw);
  opacity: 0.8;
}

.divider-art-bottom {
  transform: rotate(180deg);
}

.prayer-text {
  margin: 1.5rem 0 1rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.55rem, 5vw, 2.25rem);
  line-height: 1.5;
}

.prayer-amen {
  margin-bottom: 1.5rem;
  color: var(--sage-dark);
  font-weight: 700;
}

.hashtag-section {
  padding: 80px 0;
  color: white;
  background:
    radial-gradient(circle at 10% 10%, rgba(255,255,255,0.11), transparent 23%),
    var(--rose);
}

.hashtag-section .kicker {
  color: #f8e8e5;
}

.hashtag {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.3rem, 8vw, 5rem);
  overflow-wrap: anywhere;
}

.attendance-section {
  background: var(--cream);
}

.attendance-stats {
  width: min(620px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.attendance-stat {
  display: grid;
  justify-items: center;
  padding: 30px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.attendance-stat strong {
  margin: 0.3rem 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 3.5rem;
  line-height: 1;
}

.attendance-stat > span:last-child {
  color: var(--muted);
  font-size: 0.85rem;
}

.attendance-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.attendance-dot-yes {
  background: var(--success);
}

.attendance-dot-no {
  background: var(--rose);
}

.wishes-section {
  background: var(--paper);
}

.wishes-grid {
  columns: 3 280px;
  column-gap: 18px;
}

.wish-card {
  break-inside: avoid;
  margin-bottom: 18px;
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.wish-photo-wrap {
  background: var(--cream-2);
}

.wish-photo {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.wish-card-content {
  padding: 22px;
}

.wish-name {
  margin: 0 0 0.45rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.7rem;
}

.wish-message {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.wish-date {
  display: block;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.empty-card {
  column-span: all;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  background: var(--cream);
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
}

.contact-section {
  background: var(--cream-2);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.contact-card {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.contact-card h3 {
  margin: 0 0 0.25rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
}

.contact-card p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.contact-actions a {
  text-decoration: none;
  color: var(--sage-dark);
  font-weight: 700;
}

.location-card {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.location-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.closing-section {
  padding: 110px 0 140px;
  color: white;
  background: var(--sage-dark);
}

.closing-section .kicker {
  color: #dce6d8;
}

.closing-names {
  margin-bottom: 1.3rem;
}

/* =========================================================
   BOTTOM NAV
   ========================================================= */

.bottom-nav {
  position: fixed;
  z-index: 800;
  left: 50%;
  bottom: max(10px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(680px, calc(100% - 20px));
  min-height: var(--nav-height);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  overflow: hidden;
  background: rgba(255, 253, 249, 0.94);
  border: 1px solid rgba(222, 209, 194, 0.9);
  border-radius: 22px;
  box-shadow: 0 18px 60px rgba(42, 32, 26, 0.22);
  backdrop-filter: blur(16px);
}

.bottom-nav button,
.bottom-nav a {
  min-width: 0;
  min-height: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 5px;
  color: var(--muted);
  background: transparent;
  text-decoration: none;
  font-size: 0.68rem;
  cursor: pointer;
}

.bottom-nav .nav-primary {
  color: white;
  background: var(--sage-dark);
}

.nav-icon {
  font-size: 1.15rem;
  line-height: 1;
}

/* =========================================================
   MODALS + FORMS
   ========================================================= */

.modal {
  position: fixed;
  z-index: 1100;
  inset: 0;
  display: grid;
  place-items: center;
  padding:
    max(18px, env(safe-area-inset-top))
    14px
    max(18px, env(safe-area-inset-bottom));
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.modal.is-visible {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(34, 27, 23, 0.62);
  backdrop-filter: blur(5px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: calc(100vh - 36px);
  max-height: calc(100svh - 36px);
  overflow-y: auto;
  padding: clamp(24px, 6vw, 42px);
  background: var(--paper);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overscroll-behavior: contain;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--cream);
  cursor: pointer;
  font-size: 1.6rem;
}

.modal-title {
  margin: 0 0 1.5rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.8rem, 8vw, 4rem);
  line-height: 1;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.88rem;
  font-weight: 700;
}

.form-group input,
.form-group textarea,
.form-group select,
.admin-toolbar input,
.admin-toolbar select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  background: white;
  border: 1px solid #d5c8bb;
  border-radius: 13px;
  outline: none;
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.admin-toolbar input:focus,
.admin-toolbar select:focus {
  border-color: var(--sage-dark);
  box-shadow: 0 0 0 3px rgba(104, 117, 95, 0.12);
}

.form-group input[type="file"] {
  padding: 9px;
}

.form-group small {
  color: var(--muted);
}

.input-meta {
  margin-top: 7px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.muted {
  color: var(--muted);
  font-weight: 400;
}

.form-status {
  min-height: 1.3em;
  margin: 14px 0 0;
  font-size: 0.85rem;
}

.form-status.success {
  color: var(--success);
}

.form-status.error {
  color: var(--danger);
}

.image-preview {
  margin-top: 14px;
  padding: 10px;
  background: var(--cream);
  border-radius: 14px;
}

.image-preview img {
  width: 100%;
  max-height: 260px;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

.preview-remove {
  margin-top: 8px;
  padding: 0;
  color: var(--danger);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.toast {
  position: fixed;
  z-index: 1200;
  left: 50%;
  bottom: calc(var(--nav-height) + 28px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px);
  width: min(430px, calc(100% - 28px));
  padding: 13px 16px;
  opacity: 0;
  visibility: hidden;
  text-align: center;
  color: white;
  background: var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* =========================================================
   ADMIN
   ========================================================= */

.admin-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(170, 119, 111, 0.13), transparent 24%),
    var(--cream);
}

.admin-page {
  width: min(1240px, calc(100% - 30px));
  margin-inline: auto;
  padding: 36px 0 70px;
}

.admin-login {
  min-height: calc(100vh - 106px);
  display: grid;
  place-items: center;
}

.admin-login-card {
  width: min(480px, 100%);
  padding: clamp(28px, 6vw, 44px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.admin-login-title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 0.95;
}

.admin-login-copy {
  margin: 1rem 0 2rem;
  color: var(--muted);
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.admin-title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3rem, 7vw, 5.4rem);
  line-height: 0.9;
}

.admin-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.admin-stat-card {
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.admin-stat-card span {
  color: var(--muted);
  font-size: 0.76rem;
}

.admin-stat-card strong {
  display: block;
  margin-top: 4px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.8rem;
  line-height: 1;
}

.admin-panel {
  margin-top: 20px;
  padding: clamp(18px, 4vw, 30px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.admin-panel-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.admin-panel-header h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.4rem;
  line-height: 1;
}

.admin-subcopy {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-toolbar input {
  width: 220px;
}

.admin-toolbar select {
  width: 150px;
}

.responsive-table {
  width: 100%;
  overflow-x: auto;
}

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

.admin-table th,
.admin-table td {
  padding: 13px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.admin-table th {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.table-empty {
  text-align: center !important;
  color: var(--muted);
  padding: 30px !important;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.status-attending {
  color: #3f684b;
  background: #e6f0e7;
}

.status-not-attending {
  color: #8e4b4b;
  background: #f7e8e5;
}

.status-pending {
  color: #8c6c34;
  background: #f8edcf;
}

.admin-delete-button {
  padding: 7px 10px;
  color: var(--danger);
  background: #faefed;
  border-radius: 9px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-wishes-list {
  display: grid;
  gap: 12px;
}

.admin-wish-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 13px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.admin-wish-thumb,
.admin-wish-placeholder {
  width: 110px;
  height: 88px;
  border-radius: 12px;
  background: var(--cream-2);
}

.admin-wish-thumb {
  object-fit: cover;
}

.admin-wish-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.72rem;
}

.admin-wish-content {
  min-width: 0;
}

.admin-wish-content h3 {
  margin: 0 0 0.25rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.65rem;
}

.admin-wish-content p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.admin-wish-content small {
  display: block;
  margin-top: 0.5rem;
  color: var(--muted);
}

.admin-wish-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.admin-global-status {
  text-align: center;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 950px) {
  .admin-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .admin-wish-item {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .admin-wish-thumb,
  .admin-wish-placeholder {
    width: 90px;
    height: 76px;
  }

  .admin-wish-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 1100px);
  }

  .content-section {
    padding: 78px 0;
  }

  .hero-floral {
    width: 68vw;
  }

  .details-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .detail-card {
    min-height: 280px;
  }

  .detail-icon {
    margin-bottom: 36px;
  }

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

  .location-card .btn {
    width: 100%;
  }

  .admin-header,
  .admin-panel-header {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-header-actions .btn {
    flex: 1;
  }

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

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

  .admin-toolbar input,
  .admin-toolbar select {
    width: 100%;
  }

  .admin-toolbar .btn {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  :root {
    --nav-height: 68px;
  }

  .opening-card {
    min-height: calc(100svh - 36px);
    border-radius: 30px 8px 30px 8px;
  }

  .countdown-grid {
    gap: 7px;
  }

  .countdown-item {
    padding: 20px 5px;
    border-radius: 15px;
  }

  .countdown-item strong {
    font-size: 2.3rem;
  }

  .countdown-item span {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

  .attendance-stat {
    padding: 24px 10px;
  }

  .center-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .center-actions .btn {
    width: 100%;
  }

  .bottom-nav {
    width: calc(100% - 12px);
    bottom: max(6px, env(safe-area-inset-bottom));
    border-radius: 17px;
  }

  .bottom-nav button,
  .bottom-nav a {
    min-height: 62px;
    font-size: 0.59rem;
  }

  .nav-icon {
    font-size: 1rem;
  }

  .modal {
    place-items: end center;
    padding: 0;
  }

  .modal-card {
    width: 100%;
    max-height: 88svh;
    border-radius: 24px 24px 0 0;
    padding-bottom: max(28px, env(safe-area-inset-bottom));
  }

  .toast {
    bottom: calc(var(--nav-height) + 20px + env(safe-area-inset-bottom));
  }

  .admin-page {
    width: min(100% - 18px, 1240px);
    padding-top: 20px;
  }

  .admin-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .admin-stat-card {
    padding: 15px;
  }

  .admin-stat-card strong {
    font-size: 2.3rem;
  }

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

  .admin-toolbar .btn {
    grid-column: auto;
  }

  .admin-wish-item {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .admin-wish-thumb,
  .admin-wish-placeholder {
    width: 72px;
    height: 66px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* =========================================================
   MYSQL / PRIVACY VERSION ADDITIONS
   ========================================================= */

.rsvp-private-note {
  width: min(640px, 100%);
  margin: 0 auto;
  padding: 18px 20px;
  color: var(--muted);
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.privacy-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  color: white;
  background: var(--sage-dark);
  border-radius: 50%;
  font-size: 1.15rem;
}

.admin-image-note {
  color: var(--muted);
  font-size: 0.75rem;
}

.setup-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
  background: var(--cream);
}

.setup-card {
  width: min(520px, 100%);
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.setup-card h1 {
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.6rem, 8vw, 4.2rem);
  line-height: 0.95;
}

.setup-card p {
  color: var(--muted);
}

.setup-success {
  padding: 14px;
  color: var(--success);
  background: #e9f2eb;
  border-radius: 12px;
}

.setup-error {
  padding: 14px;
  color: var(--danger);
  background: #f8e8e5;
  border-radius: 12px;
}
