/* ─────────────────────────────────────────
   THEO'S CHRISTENING · RSVP PAGE STYLES
   ───────────────────────────────────────── */

:root {
  --blue-50:  #eff8ff;
  --blue-100: #dbeffe;
  --blue-200: #bde0fd;
  --blue-300: #93c9fb;
  --blue-400: #60adf8;
  --blue-500: #3b90f4;
  --blue-600: #2270e9;
  --blue-700: #1a57d6;

  --gold-light:  #f5e9c8;
  --gold:        #c9a84c;
  --gold-dark:   #a07830;

  --white:   #ffffff;
  --gray-50: #f8fafc;
  --gray-100:#f1f5f9;
  --gray-200:#e2e8f0;
  --gray-400:#94a3b8;
  --gray-500:#64748b;
  --gray-700:#334155;
  --gray-900:#0f172a;

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  22px;
  --radius-xl:  32px;
  --radius-full: 9999px;

  --shadow-sm:  0 1px 4px rgba(60,100,170,.08);
  --shadow-md:  0 4px 20px rgba(60,100,170,.12);
  --shadow-lg:  0 12px 40px rgba(60,100,170,.16);

  --transition: .22s cubic-bezier(.4,0,.2,1);
  --font-body: 'Nunito', sans-serif;
  --font-display: 'Playfair Display', serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; overflow: hidden; }
body {
  font-family: var(--font-body);
  background: var(--blue-50);
  color: var(--gray-700);
  height: 100%;
  overflow: hidden;
  line-height: 1.6;
}

/* ── PAGE SCROLL CONTAINER ── */
.page-wrap {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  position: relative;
  z-index: 1;
  /* slim scrollbar */
  scrollbar-width: thin;
  scrollbar-color: rgba(60,100,170,.15) transparent;
}
.page-wrap::-webkit-scrollbar { width: 4px; }
.page-wrap::-webkit-scrollbar-track { background: transparent; }
.page-wrap::-webkit-scrollbar-thumb {
  background: rgba(60,100,170,.2);
  border-radius: 4px;
}

/* ── SECTION NAVIGATION DOTS ── */
.section-dots {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: none;
  border: none;
  padding: 0;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-200);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .3s ease, transform .3s ease, height .3s ease;
}
.dot--active {
  background: var(--blue-500);
  height: 22px;
  border-radius: 4px;
  transform: none;
}
.dot:hover:not(.dot--active) {
  background: var(--blue-300);
  transform: scale(1.2);
}

/* ── BACKGROUND MESH ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 10%, rgba(191,218,253,.5) 0%, transparent 60%),
    radial-gradient(ellipse 60% 70% at 90% 90%, rgba(167,210,253,.4) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(255,255,255,.6) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── FLOATING SHAPES ── */
.bg-shapes { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: .35;
  filter: blur(2px);
  animation: floatShape 12s ease-in-out infinite;
}
.shape-1 { width: 90px; height: 90px; background: var(--blue-200); top: 8%; left: 5%; animation-delay: 0s; }
.shape-2 { width: 55px; height: 55px; background: var(--gold-light); top: 20%; right: 8%; animation-delay: -3s; }
.shape-3 { width: 70px; height: 70px; background: var(--blue-100); bottom: 30%; left: 10%; animation-delay: -6s; }
.shape-4 { width: 40px; height: 40px; background: var(--gold-light); bottom: 15%; right: 12%; animation-delay: -9s; }
.shape-5 { width: 120px; height: 120px; background: var(--blue-200); top: 55%; right: 3%; animation-delay: -4s; opacity: .2; }

@keyframes floatShape {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33%       { transform: translateY(-18px) rotate(6deg); }
  66%       { transform: translateY(10px) rotate(-4deg); }
}

/* ── PARTICLES ── */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.particles span {
  position: absolute;
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue-300);
  opacity: 0;
  animation: particle 8s ease-in-out infinite;
}
.particles span:nth-child(1)  { top: 15%; left: 25%; animation-delay: 0s; }
.particles span:nth-child(2)  { top: 35%; left: 75%; animation-delay: 1.2s; }
.particles span:nth-child(3)  { top: 60%; left: 15%; animation-delay: 2.4s; }
.particles span:nth-child(4)  { top: 80%; left: 60%; animation-delay: 3.6s; }
.particles span:nth-child(5)  { top: 45%; left: 45%; animation-delay: 4.8s; }
.particles span:nth-child(6)  { top: 20%; left: 55%; animation-delay: 0.6s; }
.particles span:nth-child(7)  { top: 70%; left: 35%; animation-delay: 1.8s; }
.particles span:nth-child(8)  { top: 50%; left: 85%; animation-delay: 3s; }
.particles span:nth-child(9)  { top: 90%; left: 20%; animation-delay: 5.4s; }
.particles span:nth-child(10) { top: 10%; left: 80%; animation-delay: 6s; }

@keyframes particle {
  0%   { opacity: 0; transform: translateY(0) scale(1); }
  20%  { opacity: .6; }
  80%  { opacity: .3; }
  100% { opacity: 0; transform: translateY(-40px) scale(.5); }
}

/* ── MAIN ── */
main {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── FADE-IN ANIMATIONS ── */
.fade-in { opacity: 0; transform: translateY(20px); animation: fadeUp .7s ease forwards; }
.delay-1 { animation-delay: .15s; }
.delay-2 { animation-delay: .3s; }
.delay-3 { animation-delay: .45s; }
.delay-4 { animation-delay: .6s; }
.delay-5 { animation-delay: .8s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── HERO ── */
.hero {
  text-align: center;
  padding: 56px 0 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  /* snap */
  min-height: 100vh;
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  box-sizing: border-box;
}

/* ── HERO PHOTO PORTRAIT ── */
.hero-photo {
  position: relative;
  width: 168px;
  height: 168px;
  margin: 4px 0 2px;
}

/* Rotating gradient ring */
.hero-photo-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(
    var(--gold-light) 0deg,
    var(--blue-300) 90deg,
    var(--gold-light) 180deg,
    var(--blue-300) 270deg,
    var(--gold-light) 360deg
  );
  animation: ringRotate 8s linear infinite;
  opacity: .75;
}
@keyframes ringRotate { to { transform: rotate(360deg); } }

/* Photo frame with float */
.hero-photo-frame {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--blue-100);
  border: 3px solid var(--white);
  box-shadow:
    0 0 0 1px var(--blue-100),
    0 10px 32px rgba(60,100,170,.2);
  animation: photoFloat 5s ease-in-out infinite;
}
@keyframes photoFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

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

/* Placeholder when no image yet */
.hero-photo-placeholder {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 100%;
  color: var(--blue-300);
  font-size: .7rem;
  font-weight: 600;
  text-align: center;
  padding: 16px;
  line-height: 1.5;
}
.hero-photo-img.img-error { display: none; }
.hero-photo-img.img-error ~ .hero-photo-placeholder { display: flex; }

/* Dove badge */
.hero-photo-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 34px;
  height: 34px;
  background: var(--white);
  border: 2px solid var(--blue-100);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--gold-light);
  color: var(--gold-dark);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.hero-cross {
  font-size: 2.2rem;
  color: var(--blue-400);
  opacity: .6;
  line-height: 1;
  letter-spacing: 0;
}

h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.title-small {
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 500;
  color: var(--blue-500);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.title-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(3.2rem, 14vw, 5.5rem);
  line-height: 1;
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-400) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -.01em;
}

.hero-verse {
  max-width: 320px;
  font-size: .92rem;
  color: var(--gray-500);
  line-height: 1.8;
}
.hero-verse em {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gray-700);
}

/* Event detail cards */
.event-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 400px;
}

.detail-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: box-shadow var(--transition), transform var(--transition);
}
.detail-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.detail-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-500);
  margin-top: 2px;
}

.detail-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--blue-400);
  margin-bottom: 2px;
}
.detail-value {
  font-size: .9rem;
  font-weight: 600;
  color: var(--gray-700);
  line-height: 1.4;
}
.detail-sub {
  font-size: .78rem;
  color: var(--gray-400);
  margin-top: 2px;
}

.scroll-cue {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .75rem;
  color: var(--gray-400);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  animation: bounceCue 2s ease-in-out infinite 1.5s;
  /* reset button styles */
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  padding: 4px 8px;
  border-radius: var(--radius-full);
  transition: color var(--transition), background var(--transition);
}
.scroll-cue:hover {
  color: var(--blue-500);
  background: rgba(59,144,244,.07);
  animation-play-state: paused;
}
@keyframes bounceCue {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(4px); }
}

/* ── RSVP SECTION ── */
.rsvp-section {
  padding: 40px 0 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* snap */
  min-height: 100vh;
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  box-sizing: border-box;
}

.rsvp-card {
  background: var(--white);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.rsvp-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-400), var(--gold), var(--blue-400));
  background-size: 200%;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.rsvp-header {
  text-align: center;
  margin-bottom: 32px;
}
.rsvp-deco {
  font-size: 2.4rem;
  display: block;
  margin-bottom: 10px;
  animation: doveFloat 3s ease-in-out infinite;
}
@keyframes doveFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%       { transform: translateY(-6px) rotate(3deg); }
}
.rsvp-header h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gray-900);
  font-style: italic;
  margin-bottom: 8px;
}
.rsvp-header p {
  font-size: .88rem;
  color: var(--gray-500);
  max-width: 320px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── SUCCESS STATE ── */
.success-state {
  text-align: center;
  padding: 20px 0 10px;
}
.success-icon {
  font-size: 3rem;
  margin-bottom: 14px;
  animation: popIn .5s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.success-state h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.success-state p {
  color: var(--gray-500);
  font-size: .9rem;
  margin-bottom: 20px;
}
.btn-secondary {
  background: none;
  border: 1.5px solid var(--blue-300);
  color: var(--blue-600);
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.btn-secondary:hover {
  background: var(--blue-50);
}

/* ── FORM ── */
form { display: flex; flex-direction: column; gap: 22px; }

.field-group { display: flex; flex-direction: column; gap: 7px; }

label {
  font-size: .84rem;
  font-weight: 700;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 6px;
}
.required { color: var(--blue-400); }
.optional-label {
  font-size: .72rem;
  font-weight: 500;
  color: var(--gray-400);
  background: var(--gray-100);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

input[type="text"],
input[type="number"],
textarea {
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--gray-900);
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  outline: none;
}
input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus {
  border-color: var(--blue-400);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(59,144,244,.12);
}
input.error, textarea.error {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248,113,113,.12);
}
textarea { resize: vertical; min-height: 90px; }
::placeholder { color: var(--gray-400); }

/* Attendance toggle */
.attendance-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.toggle-option {
  display: block;
  position: relative;
}
.toggle-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.toggle-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 16px 12px;
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray-500);
  transition: all var(--transition);
  user-select: none;
  text-align: center;
  line-height: 1.3;
}
.toggle-emoji {
  font-size: 1.5rem;
  line-height: 1;
  display: block;
}
.toggle-btn:hover {
  border-color: var(--blue-300);
  background: var(--blue-50);
  color: var(--blue-600);
  transform: translateY(-1px);
  box-shadow: 0 1px 4px rgba(60,100,170,.08);
}
.toggle-option input[type="radio"]:checked + .toggle-btn {
  background: var(--blue-50);
  border-color: var(--blue-500);
  color: var(--blue-700);
  box-shadow: 0 0 0 3px rgba(59,144,244,.15);
}
.toggle-option input[type="radio"]:focus-visible + .toggle-btn {
  outline: 2px solid var(--blue-400);
  outline-offset: 2px;
}

/* Number input */
.number-input {
  display: flex;
  align-items: center;
  gap: 0;
  width: fit-content;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--gray-50);
}
.num-btn {
  background: none;
  border: none;
  padding: 11px 18px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-500);
  cursor: pointer;
  transition: background var(--transition);
  line-height: 1;
}
.num-btn:hover { background: var(--blue-50); }
.num-btn:active { background: var(--blue-100); }
.number-input input[type="number"] {
  border: none;
  border-left: 1.5px solid var(--gray-200);
  border-right: 1.5px solid var(--gray-200);
  border-radius: 0;
  width: 58px;
  text-align: center;
  background: var(--white);
  padding: 12px 8px;
  font-weight: 700;
  -moz-appearance: textfield;
}
.number-input input[type="number"]::-webkit-outer-spin-button,
.number-input input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }
.number-input input[type="number"]:focus {
  box-shadow: none;
  border-color: var(--gray-200);
}

.field-hint {
  font-size: .75rem;
  color: var(--gray-400);
  margin-top: -2px;
}
.field-error {
  font-size: .78rem;
  color: #ef4444;
  font-weight: 600;
  display: none;
}
.field-error.visible { display: block; }

/* Submit button */
.btn-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--blue-500) 0%, var(--blue-600) 100%);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
  box-shadow: 0 4px 16px rgba(34,112,233,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  position: relative;
  overflow: hidden;
}
.btn-submit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.15) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition);
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(34,112,233,.45);
}
.btn-submit:hover::after { opacity: 1; }
.btn-submit:active { transform: translateY(0); }
.btn-submit:disabled {
  filter: saturate(.6);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Spinner */
.spinner { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-note {
  text-align: center;
  font-size: .78rem;
  color: var(--gray-400);
  margin-top: -8px;
}

/* ── FOOTER ── */
.site-footer {
  text-align: center;
  padding: 32px 0 8px;
  font-size: .8rem;
  color: var(--gray-400);
  line-height: 2;
}
.heart {
  color: #f87171;
  display: inline-block;
  animation: heartbeat 1.4s ease-in-out infinite;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.2); }
}
.footer-date { font-weight: 700; color: var(--blue-400); }

/* ── UTILITIES ── */
.hidden { display: none !important; }

/* ── ADMIN PANEL ── */
.admin-panel {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15,23,42,.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
}
.admin-inner {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 860px;
  box-shadow: var(--shadow-lg);
}
.admin-inner h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gray-900);
  margin-bottom: 20px;
}
.admin-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
#adminCount {
  font-size: .85rem;
  font-weight: 700;
  color: var(--gray-500);
  flex: 1;
}
.admin-btn {
  font-family: var(--font-body);
  font-size: .83rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--blue-300);
  background: var(--blue-50);
  color: var(--blue-700);
  cursor: pointer;
  transition: background var(--transition);
}
.admin-btn:hover { background: var(--blue-100); }
.admin-btn-close {
  border-color: var(--gray-200);
  background: var(--gray-100);
  color: var(--gray-700);
}
.admin-table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .83rem;
}
th {
  text-align: left;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--gray-400);
  font-weight: 700;
  padding: 10px 12px;
  border-bottom: 2px solid var(--gray-100);
}
td {
  padding: 12px 12px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
  vertical-align: top;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--blue-50); }
.admin-empty {
  text-align: center;
  padding: 40px;
  color: var(--gray-400);
  font-size: .85rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
  .rsvp-card { padding: 28px 20px; }
  .title-name { font-size: clamp(3rem, 18vw, 4.5rem); }
  .hero { padding: 40px 0 36px; gap: 14px; }
  .section-dots { right: 10px; }
}

/* ── GUEST NAMES ── */
.guest-names-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guest-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(8px);
  animation: guestRowIn .25s ease forwards;
}
@keyframes guestRowIn {
  to { opacity: 1; transform: translateY(0); }
}

.guest-name-number {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background: var(--blue-100);
  color: var(--blue-600);
  border-radius: 50%;
  font-size: .72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guest-name-row input[type="text"] {
  flex: 1;
  margin: 0;
}

/* ── ERROR MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn .2s ease;
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 36px 32px 28px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(15,23,42,.25);
  animation: modalSlideUp .25s cubic-bezier(.34,1.56,.64,1);
}
@keyframes modalSlideUp {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.modal-icon {
  font-size: 2.6rem;
  margin-bottom: 14px;
  display: block;
  animation: modalIconPop .35s cubic-bezier(.34,1.56,.64,1) .1s both;
}
@keyframes modalIconPop {
  from { transform: scale(.5); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}

.modal-card h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.modal-card p {
  font-size: .86rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-modal-retry {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(34,112,233,.3);
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-modal-retry:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(34,112,233,.4);
}

.btn-modal-dismiss {
  width: 100%;
  padding: 11px;
  background: none;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: .86rem;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.btn-modal-dismiss:hover {
  background: var(--gray-100);
  border-color: var(--gray-300);
}
