@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --primary: #722F37;
  --primary-light: #9B2335;
  --secondary: #C2185B;
  --accent: #7B1FA2;
  --accent-light: #F3E5F5;
  --gold: #C5A55A;
  --gold-light: #F0E6C8;
  --sage: #7B8D6E;
  --sage-light: #C5D1B8;
  --rose: #C48B7C;
  --rose-light: #F2DDD7;
  --bg: #FAF7F2;
  --bg-card: #FFFFFF;
  --bg-warm: #F5EDE4;
  --text: #3A2E26;
  --text-light: #7A6B5E;
  --text-muted: #A89888;
  --border: #E8DED2;
  --border-light: #F0E8DC;
  --error: #C0392B;
  --success: #27AE60;
  --shadow-sm: 0 1px 3px rgba(92, 64, 51, 0.06);
  --shadow-md: 0 4px 12px rgba(92, 64, 51, 0.08);
  --shadow-lg: 0 8px 32px rgba(92, 64, 51, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

::selection {
  background: var(--accent-light);
  color: var(--primary);
}

/* App Container */
.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navigation */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  gap: 4px;
  padding: 8px 16px;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  justify-content: center;
}

.nav-btn {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 10px 20px;
  border: none;
  border-radius: 100px;
  background: transparent;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.nav-btn:hover {
  background: var(--bg-warm);
  color: var(--primary);
}

.nav-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(92, 64, 51, 0.25);
}

/* Main Content */
.main-content {
  flex: 1;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 16px 80px;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 32px;
}

.section-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* ====================== */
/* HERO SECTION            */
/* ====================== */
.hero-section {
  text-align: center;
}

.hero-overlay {
  background: linear-gradient(135deg, var(--bg-warm) 0%, var(--rose-light) 50%, var(--gold-light) 100%);
  border-radius: var(--radius-lg);
  padding: 56px 24px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.hero-overlay::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(197, 165, 90, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
}

.hero-pretext {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 24px;
}

.hero-names {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.15;
  margin-bottom: 8px;
  animation: fadeInUp 0.8s ease both;
}

.name-first, .name-second {
  display: block;
}

.ampersand {
  display: block;
  font-style: italic;
  font-size: 2rem;
  color: var(--gold);
  margin: 4px 0;
  font-weight: 400;
}

.hero-divider {
  margin: 20px 0;
}

.divider-leaf {
  font-size: 1.6rem;
  opacity: 0.7;
}

.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 16px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-date {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-venue {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-rsvp-btn {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 40px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(92, 64, 51, 0.3);
  animation: fadeInUp 0.8s ease 0.5s both;
}

.hero-rsvp-btn:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(92, 64, 51, 0.35);
}

/* Countdown */
.countdown-section {
  margin-bottom: 32px;
}

.countdown-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 16px;
  font-weight: 400;
  font-style: italic;
}

.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.countdown-unit {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  min-width: 72px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.countdown-number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.countdown-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 500;
}

/* Quote */
.quote-section {
  padding: 28px 24px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
  box-shadow: var(--shadow-sm);
}

.love-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--primary-light);
  line-height: 1.6;
  margin-bottom: 8px;
}

.quote-author {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: normal;
}

/* ====================== */
/* EVENT DETAILS           */
/* ====================== */
.venue-info-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.venue-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.venue-address {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.venue-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.venue-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text);
}

.detail-icon {
  font-size: 1.1rem;
}

/* Timeline */
.timeline-title,
.venue-photos-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 20px;
  text-align: center;
}

.timeline {
  margin-bottom: 36px;
}

.timeline-item {
  display: flex;
  gap: 16px;
  margin-bottom: 0;
  animation: fadeInUp 0.5s ease both;
}

.timeline-item:nth-child(1) { animation-delay: 0s; }
.timeline-item:nth-child(2) { animation-delay: 0.08s; }
.timeline-item:nth-child(3) { animation-delay: 0.16s; }
.timeline-item:nth-child(4) { animation-delay: 0.24s; }

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.timeline-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 2px solid var(--accent-light);
  border-radius: 50%;
  font-size: 1.2rem;
  z-index: 1;
}

.timeline-line {
  width: 2px;
  flex: 1;
  background: var(--border);
  margin: 4px 0;
}

.timeline-content {
  padding: 4px 0 28px;
}

.timeline-time {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.timeline-event-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--primary);
  margin: 4px 0;
}

.timeline-description {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* Venue Gallery */
.venue-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
}

.gallery-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: fadeInUp 0.5s ease both;
}

.gallery-card:nth-child(1) { animation-delay: 0s; }
.gallery-card:nth-child(2) { animation-delay: 0.06s; }
.gallery-card:nth-child(3) { animation-delay: 0.12s; }
.gallery-card:nth-child(4) { animation-delay: 0.18s; }

.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.gallery-placeholder {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-warm), var(--accent-light));
}

.gallery-emoji {
  font-size: 3rem;
}

.gallery-label {
  display: block;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  padding: 10px;
}

/* Travel Card */
.travel-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.travel-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.travel-text {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

.travel-text strong {
  color: var(--primary);
  background: var(--gold-light);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

/* ====================== */
/* RSVP FORM               */
/* ====================== */
.rsvp-section {
  max-width: 600px;
  margin: 0 auto;
}

.rsvp-form {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  transition: all 0.2s ease;
  min-height: 48px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 149, 107, 0.15);
  background: var(--bg-card);
}

.input-error {
  border-color: var(--error) !important;
}

.error-text {
  display: block;
  font-size: 0.8rem;
  color: var(--error);
  margin-top: 4px;
  font-weight: 500;
}

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237A6B5E' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* Radio Cards */
.radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.radio-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 12px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.radio-card input {
  display: none;
}

.radio-card:hover {
  border-color: var(--accent-light);
  background: var(--bg-warm);
}

.radio-card.selected {
  border-color: var(--accent);
  background: var(--accent-light);
}

.radio-emoji {
  font-size: 1.6rem;
}

.radio-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

/* Meal Cards */
.meal-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.meal-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 10px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.meal-card input {
  display: none;
}

.meal-card:hover {
  border-color: var(--accent-light);
}

.meal-card.selected {
  border-color: var(--accent);
  background: var(--accent-light);
}

.meal-emoji {
  font-size: 1.5rem;
}

.meal-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.meal-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Checkbox */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}

/* Plus One Section */
.plus-one-section {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 8px;
  border-left: 3px solid var(--accent);
}

.plus-one-section .form-group:last-child {
  margin-bottom: 0;
}

/* Submit Button */
.submit-btn {
  width: 100%;
  padding: 16px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 16px rgba(92, 64, 51, 0.25);
}

.submit-btn:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(92, 64, 51, 0.3);
}

/* Success State */
.rsvp-success {
  text-align: center;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 48px 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  animation: fadeInUp 0.6s ease both;
}

.success-icon {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 16px;
}

.success-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.success-message {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 20px;
}

.success-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}

.success-detail {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.detail-label {
  color: var(--text-muted);
  font-weight: 500;
}

.detail-value {
  color: var(--primary);
  font-weight: 600;
}

/* ====================== */
/* STATS SECTION           */
/* ====================== */
.stats-section {
  max-width: 640px;
  margin: 0 auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
  animation: fadeInUp 0.5s ease both;
}

.stat-card:nth-child(1) { animation-delay: 0s; }
.stat-card:nth-child(2) { animation-delay: 0.06s; }
.stat-card:nth-child(3) { animation-delay: 0.12s; }
.stat-card:nth-child(4) { animation-delay: 0.18s; }

.stat-card:hover {
  transform: translateY(-2px);
}

.stat-emoji {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 6px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  margin-top: 4px;
  display: block;
}

.stat-attending .stat-number { color: var(--success); }
.stat-declined .stat-number { color: var(--rose); }
.stat-guests .stat-number { color: var(--gold); }

/* Chart */
.chart-container {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.chart-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: 16px;
}

.chart-wrapper {
  height: 220px;
  margin-bottom: 16px;
}

.meal-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meal-summary-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
}

.meal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

.meal-summary-name {
  flex: 1;
  color: var(--text);
}

.meal-summary-count {
  font-weight: 600;
  color: var(--primary);
}

/* Dietary */
.dietary-section {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.dietary-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 14px;
}

.dietary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dietary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.dietary-name {
  font-weight: 600;
  color: var(--text);
}

.dietary-restriction {
  color: var(--rose);
  font-weight: 500;
}

/* Guest List */
.guest-list-section {
  margin-bottom: 24px;
}

.guest-list-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 14px;
}

.guest-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guest-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  animation: fadeInUp 0.4s ease both;
}

.guest-card:nth-child(1) { animation-delay: 0s; }
.guest-card:nth-child(2) { animation-delay: 0.04s; }
.guest-card:nth-child(3) { animation-delay: 0.08s; }
.guest-card:nth-child(4) { animation-delay: 0.12s; }
.guest-card:nth-child(5) { animation-delay: 0.16s; }

.guest-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

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

.guest-meal {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg);
  padding: 3px 10px;
  border-radius: 100px;
}

.guest-plus-one {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.plus-one-badge {
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--accent-light);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 100px;
}

.guest-message {
  margin-top: 8px;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
  padding-left: 12px;
  border-left: 2px solid var(--accent-light);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.empty-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 12px;
}

.empty-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 6px;
}

.empty-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Skeleton Loading */
.skeleton-form {
  padding: 32px;
}

.skeleton-line {
  height: 20px;
  background: linear-gradient(90deg, var(--border-light) 25%, var(--bg) 50%, var(--border-light) 75%);
  background-size: 200% 100%;
  border-radius: 8px;
  margin-bottom: 16px;
  animation: shimmer 1.5s infinite;
}

.skeleton-line.wide {
  width: 70%;
  height: 28px;
  margin: 0 auto 20px;
}

/* ====================== */
/* ANIMATIONS              */
/* ====================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ====================== */
/* RESPONSIVE              */
/* ====================== */
@media (max-width: 640px) {
  .hero-names {
    font-size: 2.4rem;
  }

  .countdown-grid {
    gap: 8px;
  }

  .countdown-unit {
    padding: 12px 10px;
    min-width: 60px;
  }

  .countdown-number {
    font-size: 1.4rem;
  }

  .nav-bar {
    padding: 6px 8px;
    gap: 2px;
  }

  .nav-btn {
    padding: 8px 14px;
    font-size: 0.78rem;
  }

  .main-content {
    padding: 16px 12px 80px;
  }

  .rsvp-form {
    padding: 24px 16px;
  }

  .meal-options {
    grid-template-columns: 1fr;
  }

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

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

  .stat-card {
    padding: 16px 10px;
  }

  .stat-number {
    font-size: 1.6rem;
  }

  .venue-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}
```

<!-- WALKTHROUGH_SCRIPT:
[
  {"step": 1, "narration": "Welcome to Emma & James's wedding RSVP site. The hero section shows the couple's names, wedding date, countdown timer, and a beautiful love quote.", "view": "visitor", "highlight_selector": ".hero-overlay", "wait_for": "tap_to_continue"},
  {"step": 2, "narration": "Navigate using the tabs at the top. Let's check the event details.", "view": "visitor", "highlight_selector": ".nav-bar", "wait_for": "tap_to_continue"},
  {"step": 3, "narration": "The Details tab shows venue information, a timeline of the day's events from ceremony through dancing, a venue gallery, and accommodation information.", "view": "visitor", "highlight_selector": ".timeline", "wait_for": "tap_to_continue"},
  {"step": 4, "narration": "Navigate to the RSVP tab to respond. Fill in your name, email, and whether you can attend.", "view": "visitor", "highlight_selector": ".rsvp-form", "wait_for": "user_interaction"},
  {"step": 5, "narration": "If attending, choose your meal from four options: Filet Mignon, Herb-Crusted Salmon, Wild Mushroom Risotto, or Grilled Chicken. Add dietary restrictions and a plus one if needed.", "view": "visitor", "highlight_selector": ".meal-options", "wait_for": "tap_to_continue"},
  {"step": 6, "narration": "After submitting, you'll see a confirmation. Check the Guests tab to see RSVP stats, meal choice breakdown chart, dietary restrictions, and the confirmed guest list.", "view": "visitor", "highlight_selector": ".stats-grid", "wait_for": "tap_to_continue"}
]
-->

/* Auth / Admin Gate */
.auth-loading,
.auth-gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-gate-card {
  width: 100%;
  max-width: 420px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px 24px;
}

.auth-gate-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 12px;
}

.auth-gate-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.auth-gate-text {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.auth-gate-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.auth-gate-btn {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 18px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(92, 64, 51, 0.25);
}

.auth-gate-btn:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.auth-gate-btn.secondary {
  background: var(--bg-warm);
  color: var(--primary);
  box-shadow: none;
  border: 1px solid var(--border);
}

.auth-gate-btn.secondary:hover {
  background: var(--accent-light);
}

.nav-signout {
  margin-left: 8px;
}

.admin-session-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 20px;
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 640px) {
  .nav-bar {
    flex-wrap: wrap;
  }

  .nav-signout {
    margin-left: 0;
    width: 100%;
  }

  .admin-session-banner {
    font-size: 0.82rem;
    padding: 9px 12px;
  }
}

.admin-seating-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  margin-top: 32px;
}

.admin-seating-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.admin-seating-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.admin-seating-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.admin-seating-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.admin-seating-count {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--gold-light);
  padding: 6px 10px;
  border-radius: 999px;
}

.admin-seating-reset {
  border: 1px solid var(--border);
  background: var(--bg-warm);
  color: var(--primary);
  padding: 8px 12px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
}

.floor-plan {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--bg-warm), var(--gold-light));
  border: 1px dashed var(--border);
  overflow: hidden;
  margin-bottom: 18px;
}

.floor-plan-stage {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  border: 2px solid var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.floor-table {
  position: absolute;
  width: 180px;
  min-height: 120px;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid var(--accent-light);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow-sm);
}

.table-label {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
}

.table-chip-count {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.table-guests {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.guest-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guest-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 999px;
  cursor: grab;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.guest-chip small {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
}

.guest-chip.seated {
  background: var(--accent-light);
  border-color: var(--accent);
}

.unassigned-guest-list {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--bg);
}

.unassigned-header {
  margin-bottom: 12px;
}

.unassigned-header h4 {
  font-family: var(--font-display);
  color: var(--primary);
  margin-bottom: 4px;
}

.unassigned-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .admin-seating-header {
    flex-direction: column;
  }

  .admin-seating-summary {
    align-items: flex-start;
  }

  .floor-plan {
    min-height: 520px;
  }

  .floor-table {
    width: 150px;
  }
}

.map-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  margin-bottom: 32px;
}

.map-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.map-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.map-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.map-coordinates {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 0.85rem;
}

.map-coordinate-label {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.map-coordinate-value {
  color: var(--primary);
  font-weight: 600;
  background: var(--gold-light);
  padding: 6px 10px;
  border-radius: 999px;
}

.venue-map {
  height: 400px;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

@media (max-width: 640px) {
  .map-card-header {
    flex-direction: column;
  }

  .map-coordinates {
    align-items: flex-start;
  }

  .venue-map {
    height: 320px;
  }
}

.rsvp-email-status {
  margin-top: 6px;
  margin-bottom: 14px;
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
}

.rsvp-email-status.pending {
  color: var(--text-light);
}

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

.confirmation-status {
  margin: 0 auto 18px;
}

.confirmation-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.confirmation-pill.success {
  background: rgba(39, 174, 96, 0.12);
  color: var(--success);
  border-color: rgba(39, 174, 96, 0.2);
}

.confirmation-pill.pending {
  background: rgba(122, 107, 94, 0.1);
  color: var(--text-light);
  border-color: rgba(122, 107, 94, 0.14);
}

.confirmation-pill.error {
  background: rgba(192, 57, 43, 0.1);
  color: var(--error);
  border-color: rgba(192, 57, 43, 0.18);
}

.pdf-export-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.pdf-export-btn {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 18px;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(92, 64, 51, 0.25);
  transition: all 0.25s ease;
}

.pdf-export-btn:hover:not(:disabled) {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.pdf-export-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.pdf-report-content {
  background: var(--bg-card);
  border-radius: var(--radius);
}

.pdf-report-header {
  text-align: center;
  margin-bottom: 18px;
  padding: 4px 0 8px;
}

.pdf-report-header h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.pdf-report-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.qr-section {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.qr-card {
  width: 100%;
  max-width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.qr-card-header {
  margin-bottom: 14px;
}

.qr-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.qr-card-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.qr-code-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.qr-code-image {
  width: 100%;
  height: 100%;
  max-width: 220px;
  max-height: 220px;
  object-fit: contain;
  image-rendering: pixelated;
}

.qr-code-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
}

.qr-fallback-icon {
  font-size: 2rem;
  line-height: 1;
}

.qr-fallback-text {
  font-size: 0.85rem;
}

.qr-link-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  word-break: break-all;
}

@media (max-width: 640px) {
  .qr-card {
    max-width: 100%;
  }
}
