/* ============ RESET & VARIABLES ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #D4849A;
  --gold-soft: #E09AAE;
  --gold-light: #F4CED8;
  --gold-glow: rgba(212, 132, 154, 0.15);
  --cream: #FFF5F7;
  --cream-rich: #FDE8ED;
  --blush: #F8B4C8;
  --blush-soft: #FCDEE8;
  --blush-deep: #E890A8;
  --rose: #C97B8E;
  --sage: #D4A8B5;
  --sage-soft: #F2DDE4;
  --text: #5A3545;
  --text-soft: #8B6475;
  --text-faint: #B0909E;
  --white: #FFFFFF;
  --shadow: 0 4px 24px rgba(90, 53, 69, 0.07);
  --shadow-lg: 0 8px 40px rgba(90, 53, 69, 0.10);
  --radius: 20px;
  --radius-sm: 12px;
  --font-script: 'Great Vibes', cursive;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Nunito', 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('/images/lion-lamb.png');
  background-repeat: repeat;
  background-size: 180px;
  background-position: center top;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

body > * { position: relative; z-index: 1; }

@media (max-width: 600px) {
  body::before { background-size: 120px; }
}

h1, h2, h3 { font-family: var(--font-display); color: var(--text); font-weight: 400; }
p { line-height: 1.75; color: var(--text-soft); font-size: 0.95rem; }

.script-text { font-family: var(--font-script); color: var(--gold); }
.ornament { text-align: center; color: var(--gold-light); letter-spacing: 0.5em; font-size: 1rem; }
.divider { width: 50px; height: 1px; background: var(--gold-light); margin: 16px auto; }

.verse {
  font-style: italic;
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.7;
  max-width: 380px;
  margin: 0 auto;
}
.verse cite {
  display: block;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--gold-soft);
  margin-top: 6px;
  font-weight: 600;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 34px;
  border: none;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(212, 132, 154, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(212, 132, 154, 0.35); }

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold-light);
}
.btn-secondary:hover { background: var(--gold); color: var(--white); border-color: var(--gold); }

.btn-blush {
  background: var(--blush);
  color: var(--text);
}
.btn-blush:hover { background: var(--blush-deep); }

.btn-small { padding: 10px 22px; font-size: 0.82rem; }

/* ============ MUSIC GATE ============ */
.gate-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  text-align: center;
  padding: 40px 24px;
  transition: opacity 0.8s, visibility 0.8s;
}

.gate-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gate-content { max-width: 400px; }

.gate-icon {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow), 0 0 30px var(--gold-glow);
}
.gate-icon svg { width: 32px; height: 32px; fill: var(--gold); }

.gate-title {
  font-family: var(--font-script);
  color: var(--gold);
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 400;
  margin-bottom: 8px;
}

.gate-subtitle {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin-bottom: 24px;
}

.gate-content .verse { margin-bottom: 36px; }

.play-btn {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  transition: all 0.4s var(--ease);
  box-shadow: 0 6px 30px rgba(212, 132, 154, 0.3);
  animation: pulse 3s ease-in-out infinite;
  position: relative;
}
.play-btn::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--gold-light);
  opacity: 0.5;
}
.play-btn:hover { transform: scale(1.08); }
.play-btn svg { width: 40px; height: 40px; fill: white; margin-left: 5px; }

.play-hint { font-size: 0.8rem; color: var(--text-faint); }

.skip-btn {
  margin-top: 30px;
  font-size: 0.78rem;
  color: var(--text-faint);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 6px 30px rgba(212, 132, 154, 0.3); }
  50% { box-shadow: 0 6px 50px rgba(212, 132, 154, 0.5); }
}

/* ============ FLOATING MUSIC PLAYER ============ */
.music-player {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: none;
}
.music-player button {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(212, 132, 154, 0.3);
  transition: all 0.3s;
}
.music-player button:hover { transform: scale(1.1); }
.music-player button svg { width: 18px; height: 18px; fill: white; }

/* ============ LANDING PAGE ============ */
.landing { animation: fadeIn 0.8s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Hero */
.hero {
  text-align: center;
  padding: 80px 24px 40px;
}

.hero-label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 700;
  margin-bottom: 8px;
}

.hero-name {
  font-family: var(--font-script);
  color: var(--gold);
  font-size: clamp(3.5rem, 12vw, 6rem);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 8px;
}

.hero-event {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 600;
}

/* Countdown */
.section-countdown {
  text-align: center;
  padding: 20px 24px 40px;
}

.countdown {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 12px;
}

.cd-item {
  background: var(--white);
  border-radius: 14px;
  padding: 16px 12px;
  min-width: 68px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(212, 132, 154, 0.06);
}

.cd-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
  font-weight: 600;
  line-height: 1;
}

.cd-label {
  display: block;
  font-size: 0.6rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 5px;
  font-weight: 700;
}

.cd-date {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text-soft);
  font-weight: 500;
}

/* Photos Grid */
.section-photos {
  padding: 20px 24px 40px;
  display: flex;
  justify-content: center;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  max-width: 440px;
}

.photo-item {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--shadow);
  border: 3px solid var(--white);
}

/* Video */
.section-video {
  padding: 0 24px 40px;
  display: flex;
  justify-content: center;
}

.video-wrap {
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--white);
}

.video-wrap video {
  width: 100%;
  display: block;
  background: #000;
}

/* Verse Section */
.section-verse {
  padding: 20px 24px 40px;
  display: flex;
  justify-content: center;
}

.verse-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  max-width: 440px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gold-light);
  text-align: center;
  position: relative;
}

.verse-card::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--gold-light);
  position: absolute;
  top: 8px;
  left: 20px;
  line-height: 1;
  opacity: 0.5;
}

/* Action Cards */
.section-actions {
  padding: 20px 24px 50px;
  text-align: center;
}

.section-actions h2 {
  color: var(--gold);
  font-size: 1.6rem;
  margin-bottom: 24px;
}

.action-cards {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 680px;
  margin: 0 auto;
}

.action-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 20px;
  flex: 1;
  min-width: 180px;
  max-width: 220px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  border: 1px solid rgba(212, 132, 154, 0.06);
  text-align: center;
}

.action-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-light);
}

.action-icon {
  font-size: 2.5rem;
  margin-bottom: 14px;
}

.action-card h3 {
  font-size: 0.95rem;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-weight: 600;
}

.action-card p {
  font-size: 0.8rem;
  color: var(--text-faint);
  line-height: 1.5;
}

/* Event Details */
.section-event {
  padding: 20px 24px 50px;
  display: flex;
  justify-content: center;
}

.event-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 44px 32px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gold-light);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.event-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-light));
}

.event-card h2 {
  font-family: var(--font-script);
  color: var(--gold);
  font-size: 2.2rem;
  margin-bottom: 4px;
}

.event-type {
  font-size: 0.88rem;
  color: var(--text-soft);
  font-style: italic;
  margin-bottom: 16px;
}

.event-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--cream-rich);
  text-align: left;
}
.event-detail:last-of-type { border-bottom: none; }

.ev-icon {
  font-size: 1.2rem;
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border-radius: 50%;
  border: 1px solid var(--gold-light);
}

.event-detail div {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}
.event-detail div strong {
  display: block;
  font-size: 0.65rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 2px;
}
.event-detail div em {
  font-size: 0.8rem;
  color: var(--text-faint);
}

.event-note {
  margin-top: 24px;
  padding: 16px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-soft);
  font-style: italic;
  border: 1px solid var(--gold-light);
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 40px 24px 30px;
  background: transparent;
}

.admin-link {
  font-size: 0.7rem;
  color: var(--text-faint);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.4;
  transition: opacity 0.3s;
}
.admin-link:hover { opacity: 0.8; }

/* ============ OVERLAYS (POPUPS) ============ */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  background: rgba(90, 53, 69, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.overlay.active { display: flex; }

.overlay-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 24px;
  margin: 40px 0;
  box-shadow: var(--shadow-lg);
  position: relative;
  border: 1px solid var(--gold-light);
  animation: overlayIn 0.4s var(--ease);
  width: 100%;
}

.overlay-wide { max-width: 820px; }
.overlay-narrow { max-width: 480px; }

@keyframes overlayIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.overlay-close {
  position: sticky;
  top: 0;
  float: right;
  background: var(--cream);
  border: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  transition: all 0.3s;
  z-index: 10;
  margin: -8px -4px 0 0;
}
.overlay-close:hover { background: var(--cream-rich); color: var(--text); }

.overlay-header {
  text-align: center;
  margin-bottom: 24px;
}
.overlay-header h2 { color: var(--gold); margin-bottom: 4px; }
.overlay-header p { font-size: 0.88rem; }

.overlay-bottom {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--cream-rich);
}
.overlay-bottom p { margin-bottom: 4px; }

/* Progress bar in overlay */
.progress-bar-wrap {
  background: var(--cream);
  border-radius: 50px;
  height: 8px;
  max-width: 340px;
  margin: 12px auto 4px;
  overflow: hidden;
  border: 1px solid var(--gold-light);
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  border-radius: 50px;
  transition: width 1s var(--ease);
}

.progress-text {
  font-size: 0.78rem;
  color: var(--text-faint);
  font-weight: 600;
}

/* ============ GIFT GRID ============ */
.gift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.gift-card {
  background: var(--cream);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s var(--ease);
  position: relative;
  border: 1px solid rgba(212, 132, 154, 0.06);
}
.gift-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.gift-card.claimed { opacity: 0.6; }

.gift-image {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--cream-rich), var(--blush-soft));
  display: flex;
  align-items: center;
  justify-content: center;
}
.gift-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gift-image .placeholder-icon { font-size: 3rem; }

.gift-info { padding: 14px 16px 4px; }

.gift-info h3 {
  font-size: 0.88rem;
  margin-bottom: 2px;
  font-family: var(--font-display);
  font-weight: 600;
}

.gift-info .brand {
  font-size: 0.7rem;
  color: var(--text-faint);
  margin-bottom: 6px;
  line-height: 1.3;
}

.gift-info .price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 6px;
}

.gift-info .qty-info {
  font-size: 0.7rem;
  color: var(--text-faint);
  margin-bottom: 6px;
  font-weight: 600;
}

.gift-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.gift-status.available { background: var(--sage-soft); color: var(--rose); }
.gift-status.claimed-status { background: var(--blush-soft); color: var(--rose); }
.gift-status.confirmed { background: var(--blush); color: var(--text); }

.gift-actions { padding: 10px 16px 16px; }
.gift-actions .btn { width: 100%; font-size: 0.8rem; padding: 10px 16px; }

/* ============ QR CARDS ============ */
.qr-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.qr-card {
  background: var(--cream);
  border-radius: 16px;
  padding: 16px;
  flex: 1;
  min-width: 160px;
  max-width: 210px;
  border: 1px solid rgba(212, 132, 154, 0.08);
}

.qr-card h4 {
  font-size: 0.78rem;
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.qr-card img { width: 100%; border-radius: 8px; }

/* ============ FORMS ============ */
.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--cream-rich);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  transition: all 0.3s;
  background: var(--cream);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold-light);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--gold-glow);
}

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

.form-group .hint {
  font-size: 0.72rem;
  color: var(--text-faint);
  margin-top: 5px;
  font-style: italic;
}

.error {
  color: #C62828;
  font-size: 0.8rem;
  background: #FFEBEE;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}

/* ============ HEARTS ANIMATION ============ */
.hearts-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  border-radius: var(--radius);
}

.floating-heart {
  position: absolute;
  bottom: -40px;
  opacity: 0;
  animation: floatUp 5s ease-out forwards;
}

@keyframes floatUp {
  0% { opacity: 0; transform: translateY(0) scale(0.5); }
  15% { opacity: 0.8; transform: translateY(-10vh) scale(1); }
  100% { opacity: 0; transform: translateY(-80vh) scale(0.6) rotate(30deg); }
}

/* Thank You Invitation Card */
.thankyou-invitation {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  margin-top: 24px;
  border: 1px solid var(--gold-light);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.thankyou-invitation::before {
  content: '';
  position: absolute;
  top: 6px; left: 6px; right: 6px; bottom: 6px;
  border: 1px solid var(--gold-light);
  border-radius: 14px;
  pointer-events: none;
  opacity: 0.4;
}

.thankyou-invitation::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-light));
}

/* ============ ADMIN PAGES ============ */
.admin-page {
  padding: 24px 20px;
  max-width: 1000px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--cream);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.admin-header h2 { color: var(--gold); }

.admin-nav { display: flex; gap: 8px; flex-wrap: wrap; }

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--white);
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(212, 132, 154, 0.06);
}

.stat-card .stat-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--gold);
  font-weight: 700;
}

.stat-card .stat-label {
  font-size: 0.65rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-top: 4px;
}

.admin-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.admin-section h3 {
  color: var(--gold);
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-weight: 600;
}

.admin-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }

.admin-table th {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 2px solid var(--cream-rich);
  font-size: 0.68rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.admin-table td { padding: 8px 10px; border-bottom: 1px solid var(--cream); vertical-align: middle; }

.admin-table .action-btns { display: flex; gap: 5px; }

.admin-table .action-btns button {
  padding: 5px 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.72rem;
  font-family: var(--font-body);
  font-weight: 700;
  transition: all 0.2s;
}

.btn-confirm { background: var(--sage-soft); color: var(--rose); }
.btn-confirm:hover { background: var(--blush); color: var(--text); }
.btn-remove { background: #FFEBEE; color: #C62828; }
.btn-remove:hover { background: #FFCDD2; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  background: none;
  border: none;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  font-weight: 600;
}
.back-btn:hover { transform: translateX(-2px); }

/* Messages Wall */
.messages-wall-wrap { max-width: 620px; margin: 0 auto; }

.messages-wall { display: flex; flex-direction: column; gap: 14px; }

.message-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
}

.message-card .msg-author {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 3px;
}

.message-card .msg-meta {
  font-size: 0.7rem;
  color: var(--text-faint);
  margin-bottom: 12px;
  font-weight: 600;
}

.message-card .msg-text {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.7;
  font-style: italic;
}

.message-card.type-gift { border-left-color: var(--gold); }
.message-card.type-contribution { border-left-color: var(--blush-deep); }
.message-card.type-guestbook { border-left-color: var(--sage); }

/* Loading */
.loading {
  text-align: center;
  padding: 40px;
  color: var(--text-faint);
  font-size: 0.85rem;
}
.loading::after {
  content: '';
  display: block;
  width: 28px; height: 28px;
  border: 3px solid var(--cream-rich);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 12px auto 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ RESPONSIVE ============ */
@media (max-width: 600px) {
  .gift-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gift-info { padding: 10px 12px 2px; }
  .gift-info h3 { font-size: 0.8rem; }
  .gift-info .brand { font-size: 0.65rem; }
  .gift-info .price { font-size: 1rem; }
  .gift-actions { padding: 8px 12px 12px; }
  .overlay-content { padding: 28px 18px; margin: 20px 0; }
  .action-cards { gap: 12px; }
  .action-card { min-width: 140px; padding: 24px 14px; }
  .action-icon { font-size: 2rem; }
  .qr-row { flex-direction: column; align-items: center; }
  .qr-card { max-width: 240px; width: 100%; }
  .event-card { padding: 32px 22px; }
  .admin-table { font-size: 0.72rem; }
  .admin-table th, .admin-table td { padding: 6px 5px; }
}

@media (max-width: 380px) {
  .gift-grid { grid-template-columns: 1fr; }
}
