/* ═══════════════════════════════════════════════════════════════
   AQUA FIESTA ☀️ — Summer Party 2026
   Tropical · Bright · Festive · Full-Colour Pool Party Vibes
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Nunito:ital,wght@0,300;0,400;0,600;0,700;0,800;0,900;1,400&display=swap');

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --bg:           #D9F7F3;
  --bg-2:         #C2F0EA;
  --surface:      rgba(255, 255, 255, 0.88);
  --surface-2:    rgba(255, 255, 255, 0.60);
  --border:       rgba(0, 178, 160, 0.18);
  --border-2:     rgba(0, 178, 160, 0.38);
  --accent:       #FF5C38;
  --accent-dim:   rgba(255, 92, 56, 0.12);
  --accent-glow:  rgba(255, 92, 56, 0.40);
  --ice:          #00B2A0;
  --ice-dim:      rgba(0, 178, 160, 0.14);
  --glow:         #FFB627;
  --glow-dim:     rgba(255, 182, 39, 0.20);
  --pink:         #FF6B9D;
  --pink-dim:     rgba(255, 107, 157, 0.14);
  --text:         #0B1E38;
  --text-muted:   #2F6080;
  --text-dim:     #7AB4CC;
  --error:        #FF3860;
  --error-dim:    rgba(255, 56, 96, 0.12);
  --font:         'Nunito', system-ui, sans-serif;
  --font-display: 'Pacifico', cursive;
  --radius:       10px;
  --radius-lg:    22px;
  --radius-xl:    40px;
}

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

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  background-image:
    radial-gradient(ellipse 80% 60% at 15% 90%, rgba(255, 182, 39, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 10%, rgba(255, 92, 56, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 60% 70% at 50% 50%, rgba(0, 178, 160, 0.09) 0%, transparent 60%);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Animated Tropical Blob Background ─────────────────────── */
.pool-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.pool-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0;
}

.pool-blob:nth-child(1) {
  width: 80vw; height: 80vw;
  max-width: 820px; max-height: 820px;
  background: radial-gradient(circle, rgba(0, 210, 188, 0.52) 0%, transparent 68%);
  top: -25%; left: -18%;
  animation: fiesta-rise 1.8s ease 0.1s forwards, fiesta-float-1 24s ease-in-out 2s infinite alternate;
}
.pool-blob:nth-child(2) {
  width: 65vw; height: 65vw;
  max-width: 660px; max-height: 660px;
  background: radial-gradient(circle, rgba(255, 92, 56, 0.38) 0%, transparent 68%);
  bottom: -22%; right: -12%;
  animation: fiesta-rise 1.8s ease 0.35s forwards, fiesta-float-2 30s ease-in-out 2s infinite alternate;
}
.pool-blob:nth-child(3) {
  width: 55vw; height: 55vw;
  max-width: 540px; max-height: 540px;
  background: radial-gradient(circle, rgba(255, 182, 39, 0.34) 0%, transparent 68%);
  top: 38%; left: 44%;
  animation: fiesta-rise 1.8s ease 0.6s forwards, fiesta-float-3 20s ease-in-out 2s infinite alternate;
}

@keyframes fiesta-rise {
  to { opacity: 1; }
}
@keyframes fiesta-float-1 {
  0%   { transform: translate(0,   0)   scale(1);    opacity: 0.60; }
  35%  { transform: translate(4%, -7%)  scale(1.08); opacity: 0.48; }
  70%  { transform: translate(-3%, 6%)  scale(0.97); opacity: 0.55; }
  100% { transform: translate(2%,  3%)  scale(1.03); opacity: 0.62; }
}
@keyframes fiesta-float-2 {
  0%   { transform: translate(0,   0)   scale(1);    opacity: 0.45; }
  40%  { transform: translate(-5%, 4%)  scale(1.09); opacity: 0.55; }
  100% { transform: translate(3%, -4%)  scale(0.95); opacity: 0.40; }
}
@keyframes fiesta-float-3 {
  0%   { transform: translate(0,   0)   scale(1);    opacity: 0.38; }
  55%  { transform: translate(-4%, 9%)  scale(1.13); opacity: 0.48; }
  100% { transform: translate(6%, -3%)  scale(0.91); opacity: 0.32; }
}

/* Diagonal tile shimmer */
.pool-shimmer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    repeating-linear-gradient(
      48deg,
      transparent 0px,
      transparent 22px,
      rgba(0, 178, 160, 0.028) 22px,
      rgba(0, 178, 160, 0.028) 23px
    ),
    repeating-linear-gradient(
      -48deg,
      transparent 0px,
      transparent 22px,
      rgba(255, 182, 39, 0.018) 22px,
      rgba(255, 182, 39, 0.018) 23px
    );
}

/* ── Dual-layer animated water waves at page bottom ─────── */
body::after {
  content: '';
  position: fixed;
  bottom: -2px;
  left: -50%;
  width: 300%;
  height: 88px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 88'%3E%3Cpath fill='rgba(0%2C178%2C160%2C0.20)' d='M0%2C44 C240%2C74 480%2C14 720%2C44 C960%2C74 1200%2C14 1440%2C44 L1440%2C88 L0%2C88 Z'/%3E%3C/svg%3E") center/50% 100% repeat-x;
  animation: wave-slide 9s linear infinite;
  pointer-events: none;
  z-index: 0;
}
body::before {
  content: '';
  position: fixed;
  bottom: -2px;
  left: -50%;
  width: 300%;
  height: 64px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64'%3E%3Cpath fill='rgba(255%2C92%2C56%2C0.13)' d='M0%2C32 C360%2C56 720%2C8 1080%2C32 C1260%2C44 1350%2C20 1440%2C32 L1440%2C64 L0%2C64 Z'/%3E%3C/svg%3E") center/50% 100% repeat-x;
  animation: wave-slide 14s linear infinite reverse;
  pointer-events: none;
  z-index: 0;
}
@keyframes wave-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(33.33%); }
}

/* ── Navigation ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1.5px solid var(--border);
}

.nav-lang { display: flex; gap: 0.3rem; align-items: center; }

.lang-btn {
  background: none;
  border: 2px solid var(--border-2);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.28rem 0.65rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.22s;
}
.lang-btn:hover,
.lang-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.nav-logout {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.nav-logout:hover { color: var(--text-muted); text-decoration: none; }

/* ── Spell / Login Page ─────────────────────────────────────── */
.spell-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  /* Rich tropical gradient — covers the pool-bg blobs behind it */
  background:
    linear-gradient(160deg, #00C9B5 0%, #008FA8 38%, #2055A8 65%, #6B35D4 100%);
  overflow: hidden;
}

/* Ripple rings behind the form */
.spell-page::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.12);
  animation: ripple-expand 6s ease-in-out infinite;
  pointer-events: none;
}
.spell-page::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 400px; height: 400px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.08);
  animation: ripple-expand 6s ease-in-out 2s infinite;
  pointer-events: none;
}
@keyframes ripple-expand {
  0%   { transform: translate(-50%,-50%) scale(0.5);  opacity: 0.5; }
  100% { transform: translate(-50%,-50%) scale(1.8);  opacity: 0; }
}

/* Floating bubbles on spell page */
.spell-page .pool-bg {
  position: absolute !important;
  inset: 0;
  z-index: 0;
}
.spell-page .pool-blob:nth-child(1) {
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  width: 300px; height: 300px;
  top: 5%; left: 5%;
  animation: fiesta-rise 2s ease forwards, bubble-drift-a 18s ease-in-out 2s infinite alternate;
}
.spell-page .pool-blob:nth-child(2) {
  background: radial-gradient(circle, rgba(255,182,39,0.25) 0%, transparent 70%);
  width: 200px; height: 200px;
  bottom: 12%; right: 8%;
  animation: fiesta-rise 2s ease 0.3s forwards, bubble-drift-b 22s ease-in-out 2s infinite alternate;
}
.spell-page .pool-blob:nth-child(3) {
  background: radial-gradient(circle, rgba(255,92,56,0.20) 0%, transparent 70%);
  width: 160px; height: 160px;
  top: 30%; right: 15%;
  animation: fiesta-rise 2s ease 0.6s forwards, bubble-drift-c 15s ease-in-out 2s infinite alternate;
}
@keyframes bubble-drift-a {
  0%   { transform: translate(0, 0)    scale(1);   }
  100% { transform: translate(30px, -40px) scale(1.1); }
}
@keyframes bubble-drift-b {
  0%   { transform: translate(0, 0)    scale(1);   }
  100% { transform: translate(-25px, 30px) scale(0.9); }
}
@keyframes bubble-drift-c {
  0%   { transform: translate(0, 0)    scale(1);   }
  100% { transform: translate(20px, -20px) scale(1.15); }
}

/* Party emoji / sun icon area */
.spell-icon {
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fiesta-in 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
  position: relative;
  z-index: 1;
}
.spell-icon svg {
  width: 54px; height: 54px;
  color: rgba(255, 255, 255, 0.85);
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.25));
}

/* Party title above the form (injected by theme.js) */
.aqua-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 8vw, 4.5rem);
  color: white;
  text-shadow: 0 4px 24px rgba(0,0,0,0.3), 0 1px 0 rgba(255,255,255,0.2);
  text-align: center;
  margin-bottom: 0.25rem;
  line-height: 1.1;
  opacity: 0;
  animation: fiesta-in 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
  position: relative;
  z-index: 1;
}
.aqua-subtitle {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  text-align: center;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fiesta-in 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
  position: relative;
  z-index: 1;
}

.spell-form {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1.5px solid rgba(255, 255, 255, 0.30);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  opacity: 0;
  animation: fiesta-in 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
  box-shadow:
    0 24px 64px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.25);
  position: relative;
  z-index: 1;
}

.spell-input-wrap { position: relative; }

.spell-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-radius: 50px;
  color: white;
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  padding: 1rem 1.5rem;
  outline: none;
  text-align: center;
  text-transform: uppercase;
  transition: all 0.3s;
  caret-color: white;
}
.spell-input::placeholder {
  color: rgba(255, 255, 255, 0.50);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: none;
}
.spell-input:focus {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.12);
}
.spell-input.has-error {
  border-color: var(--glow);
  background: rgba(255, 182, 39, 0.15);
}
.spell-input-glow { display: none; }

.spell-error {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--glow);
  opacity: 0;
  animation: fiesta-in 0.4s ease forwards;
  height: 1.2rem;
}

.spell-submit {
  align-self: stretch;
  background: white;
  border: none;
  color: var(--accent);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  padding: 1rem 2rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  text-transform: uppercase;
  box-shadow: 0 6px 24px rgba(0,0,0,0.22);
}
.spell-submit:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 36px rgba(0,0,0,0.28);
  background: var(--glow);
  color: white;
}

.spell-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.50);
  letter-spacing: 0.10em;
  text-align: center;
  opacity: 0;
  animation: fiesta-in 1.2s ease 1.8s forwards;
  white-space: nowrap;
  text-transform: uppercase;
}

@keyframes fiesta-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Me Page — Personal Invite Hero ────────────────────────── */
.me-page { padding-top: 4.5rem; }

.me-hero {
  position: relative;
  min-height: 64vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 5rem 2rem 6rem;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  /* Pool party hero image + gradient overlay */
  background-color: #00897B;
  background-image:
    linear-gradient(
      to bottom,
      rgba(0, 20, 50, 0.15) 0%,
      rgba(0, 20, 50, 0.55) 70%,
      rgba(0, 10, 30, 0.80) 100%
    ),
    url('https://images.unsplash.com/photo-1530541930197-ff16ac917b0e?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center 35%;
}

/* Wave cutout at bottom of hero */
.me-hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 100px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%23D9F7F3' d='M0%2C50 C180%2C85 360%2C15 540%2C50 C720%2C85 900%2C15 1080%2C50 C1260%2C85 1350%2C45 1440%2C50 L1440%2C100 L0%2C100 Z'/%3E%3C/svg%3E") center bottom/100% auto no-repeat;
  pointer-events: none;
}

/* Hero content constrained width */
.me-hero > * { max-width: 1100px; margin-left: auto; margin-right: auto; width: 100%; }

.me-greeting {
  font-size: clamp(0.68rem, 1.8vw, 0.82rem);
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--glow);
  margin-bottom: 0.6rem;
  opacity: 0;
  animation: fiesta-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.me-name {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 11vw, 9rem);
  font-weight: 400;
  line-height: 1.0;
  color: white;
  letter-spacing: -0.01em;
  text-shadow: 0 6px 40px rgba(0,0,0,0.45);
  opacity: 0;
  animation: fiesta-in 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
}

.me-name-accent { color: var(--glow); }

.me-hero-line {
  margin-top: 1.5rem;
  height: 3px;
  background: linear-gradient(90deg, var(--glow) 0%, var(--accent) 45%, var(--pink) 75%, transparent 100%);
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 2px;
  opacity: 0;
  animation: hero-line-grow 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}
@keyframes hero-line-grow {
  from { opacity: 0; transform: scaleX(0); transform-origin: left; }
  to   { opacity: 1; transform: scaleX(1); transform-origin: left; }
}

.me-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding: 0.6rem 1.5rem;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  border-radius: 100px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  opacity: 0;
  animation: fiesta-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.95s forwards;
}

.me-date-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 8px var(--glow);
  animation: pulse-dot 2.2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 5px var(--glow); transform: scale(1); }
  50%       { box-shadow: 0 0 18px rgba(255,182,39,0.9); transform: scale(1.4); }
}

/* ── Content Cards ──────────────────────────────────────────── */
.me-content {
  padding: 3rem 2rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.content-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(28px);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  box-shadow: 0 4px 24px rgba(0, 178, 160, 0.09);
}
.content-card.revealed {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s, box-shadow 0.3s;
}
.content-card:hover {
  border-color: var(--border-2);
  box-shadow: 0 14px 44px rgba(0, 178, 160, 0.16);
  transform: translateY(-3px);
}

.content-card-label {
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.content-card h2, .content-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.content-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.78;
  font-weight: 500;
}

.content-body h1,
.content-body h2,
.content-body h3,
.content-body h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin: 1.75rem 0 0.75rem;
}

.content-body h1:first-child,
.content-body h2:first-child,
.content-body h3:first-child,
.content-body h4:first-child {
  margin-top: 0;
}

.content-body p,
.content-body li {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.78;
  font-weight: 500;
}

.content-body ul,
.content-body ol {
  margin: 0.75rem 0 0.75rem 1.25rem;
  padding: 0;
}

.content-body li + li {
  margin-top: 0.35rem;
}

.content-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.content-body strong {
  color: var(--text);
  font-weight: 800;
}

.content-body blockquote {
  margin: 1rem 0;
  padding-left: 1rem;
  border-left: 2px solid var(--border-2);
  color: var(--text-muted);
}

.content-card.full-width { grid-column: 1 / -1; }

.rsvp-note {
  max-width: 560px;
  margin: 0 auto 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.78;
  text-align: center;
}

.rsvp-note p {
  margin: 0 0 0.75rem;
}

.rsvp-note p:last-child {
  margin-bottom: 0;
}

.rsvp-note a {
  color: var(--accent);
}

.content-card.kids-card {
  border-color: rgba(255, 107, 157, 0.28);
  background: rgba(255, 107, 157, 0.04);
}
.content-card.kids-card .content-card-label { color: var(--pink); }

.content-card.charity-card {
  border-color: rgba(255, 182, 39, 0.28);
  background: rgba(255, 182, 39, 0.04);
}
.content-card.charity-card .content-card-label { color: #C58000; }

/* ── RSVP Section ───────────────────────────────────────────── */
.rsvp-section {
  padding: 3rem 2rem 9rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  opacity: 0;
  transform: translateY(22px);
}
.rsvp-section.revealed {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.rsvp-label {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.rsvp-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.rsvp-status-badge {
  display: inline-block;
  padding: 0.45rem 1.3rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.rsvp-status-badge.accepted { background: var(--ice-dim); color: var(--ice); border: 1.5px solid rgba(0,178,160,0.32); }
.rsvp-status-badge.declined { background: var(--error-dim); color: var(--error); border: 1.5px solid rgba(255,56,96,0.25); }
.rsvp-status-badge.invited  { background: var(--glow-dim); color: #B86900; border: 1.5px solid rgba(255,182,39,0.32); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 0.92rem 2rem;
  border-radius: 50px;
  cursor: pointer;
  border: none;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(130deg, var(--accent) 0%, #FF7B5C 50%, var(--pink) 100%);
  color: white;
  box-shadow: 0 5px 22px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 34px var(--accent-glow);
  text-decoration: none;
  color: white;
}

.btn-outline {
  background: var(--surface);
  color: var(--accent);
  border: 2px solid var(--border-2);
}
.btn-outline:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  padding: 0.6rem 1rem;
  font-size: 0.76rem;
}
.btn-ghost:hover { color: var(--text-muted); text-decoration: none; }

.btn-danger {
  background: transparent;
  color: var(--error);
  border: 2px solid rgba(255, 56, 96, 0.28);
  border-radius: 50px;
}
.btn-danger:hover {
  background: var(--error-dim);
  border-color: var(--error);
  text-decoration: none;
}

/* ── RSVP Form Page ─────────────────────────────────────────── */
.rsvp-page { padding-top: 5rem; min-height: 100vh; }

.rsvp-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem 2rem 8rem;
}

.rsvp-page-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 7vw, 3.8rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.4rem;
  opacity: 0;
  animation: fiesta-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.rsvp-page-subtitle {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fiesta-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
}

.form-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  box-shadow: 0 8px 44px rgba(0, 178, 160, 0.11);
  opacity: 0;
  animation: fiesta-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.form-field { display: flex; flex-direction: column; gap: 0.5rem; }

.form-label {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-input,
.form-select,
.form-textarea {
  background: rgba(0, 178, 160, 0.045);
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.22s, box-shadow 0.22s;
  width: 100%;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-textarea { resize: vertical; min-height: 90px; }
.form-select option { background: white; color: var(--text); }

.form-hint {
  font-size: 0.70rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.radio-group { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.radio-tile { position: relative; }
.radio-tile input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 100%; height: 100%;
  cursor: pointer; z-index: 1;
}
.radio-tile-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem;
  border: 2px solid var(--border-2);
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.22s;
  color: var(--text-muted);
  background: transparent;
  user-select: none;
}
.radio-tile input[type="radio"]:checked + .radio-tile-label {
  border-color: var(--ice);
  color: var(--ice);
  background: var(--ice-dim);
}
.radio-tile input[type="radio"]:focus-visible + .radio-tile-label {
  box-shadow: 0 0 0 3px var(--ice-dim);
}
.radio-tile.decline input[type="radio"]:checked + .radio-tile-label {
  border-color: var(--error);
  color: var(--error);
  background: var(--error-dim);
}

.checkbox-wrap {
  display: flex; align-items: flex-start; gap: 0.75rem;
  cursor: pointer; padding: 0.5rem 0;
}
.checkbox-wrap input[type="checkbox"] {
  width: 16px; height: 16px; flex-shrink: 0;
  margin-top: 2px; accent-color: var(--accent); cursor: pointer;
}
.checkbox-text { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); line-height: 1.5; }
.form-divider { height: 1.5px; background: var(--border); border-radius: 1px; }
.hidden { display: none; }
.form-footer { display: flex; justify-content: flex-end; padding-top: 0.5rem; }

/* ── Confirmed Page ─────────────────────────────────────────── */
.confirmed-page { padding-top: 5rem; min-height: 100vh; }
.confirmed-container { max-width: 600px; margin: 0 auto; padding: 4rem 2rem 8rem; }

.confirmed-icon {
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fiesta-in 0.9s ease 0.1s forwards;
}
.confirmed-icon svg { color: var(--ice); }

.confirmed-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.75rem;
  opacity: 0;
  animation: fiesta-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
}

.confirmed-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fiesta-in 0.9s ease 0.4s forwards;
}

.confirmed-recap {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 4px 24px rgba(0, 178, 160, 0.09);
  opacity: 0;
  animation: fiesta-in 0.9s ease 0.55s forwards;
}

.recap-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}
.recap-label { color: var(--text-dim); font-size: 0.70rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.recap-value { color: var(--text); font-weight: 700; }

.confirmed-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  opacity: 0; animation: fiesta-in 0.9s ease 0.7s forwards;
}

/* ── Splash animation for RSVP confirm (added by theme.js) ── */
.confetti-piece {
  position: fixed;
  width: 10px; height: 10px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 9999;
  animation: confetti-fall var(--duration, 2.5s) ease-in forwards;
  transform-origin: center;
}
@keyframes confetti-fall {
  0%   { transform: translateY(0) rotate(0deg) scale(1); opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg) scale(0.5); opacity: 0; }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav { padding: 0.85rem 1.25rem; }
  .me-hero { min-height: 52vh; padding: 3.5rem 1.25rem 5rem; }
  .me-content { padding: 2rem 1.25rem 3rem; }
  .rsvp-container,
  .confirmed-container { padding: 2rem 1.25rem 6rem; }
  .rsvp-actions { flex-direction: column; align-items: stretch; }
  .rsvp-actions .btn { justify-content: center; }
  .confirmed-actions { flex-direction: column; }
  .confirmed-actions .btn { justify-content: center; }
  .spell-form { padding: 1.75rem 1.5rem; border-radius: 28px; }
  .spell-page::before,
  .spell-page::after { display: none; }
}

@media (max-width: 400px) {
  .me-name { font-size: 3rem; }
}

/* ── Print ──────────────────────────────────────────────────── */
@media print {
  .pool-bg, .nav, body::before, body::after { display: none; }
}
