/*
 *= require_self
 */

:root {
  --primary:      #4f86b8;   /* Brighter blue */
  --primary-mid:  #8fb8d3;
  --primary-light:#d9eaf3;
  --primary-pale: #eef7fb;
  --primary-ultra:#f8fbfd;
  --black:        #1a1a1a;   /* Black */
  --nude:         #E8C9A0;   /* Nude */
  --charcoal:     #2c2c2c;
  --muted:        #7a6a60;
  --white:        #ffffff;
}

html {
  color-scheme: light dark;
  background: var(--white);
}

body {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  color: var(--charcoal);
  background: var(--white);
  color-scheme: light dark;
}

h1, h2, h3, .display-1, .display-2, .serif {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  color: var(--black);
}

/* ── Navbar ─────────────────────────────── */
.bloom-nav {
  background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
  border-bottom: 1px solid rgba(173,216,230,0.2);
  padding: 0.85rem 0;
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

.bloom-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--primary-light) !important;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.bloom-nav .text-muted {
  color: rgba(173, 216, 230, 0.65) !important;
}

.bloom-nav .btn-outline-secondary {
  color: rgba(173, 216, 230, 0.8);
  border-color: rgba(173, 216, 230, 0.35);
  font-size: 0.78rem;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  transition: all 0.2s;
}

.bloom-nav .btn-outline-secondary:hover {
  background: rgba(173, 216, 230, 0.12);
  color: var(--primary-light);
  border-color: var(--primary-light);
}

.bloom-user-dropdown {
  position: relative;
}

.bloom-user-dropdown .bloom-user-toggle {
  color: var(--primary-light);
  border: 1px solid rgba(173,216,230,0.35);
  background: rgba(255,255,255,0.03);
  border-radius: 999px;
  padding: 0.28rem 0.85rem;
  font-size: 0.8rem;
  line-height: 1.2;
  box-shadow: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.bloom-user-dropdown .bloom-user-toggle::after {
  margin-left: 0.45rem;
  vertical-align: 0.15em;
  transition: transform 180ms ease;
}

.bloom-user-dropdown .bloom-user-toggle:hover,
.bloom-user-dropdown .bloom-user-toggle:focus {
  color: #fff;
  border-color: var(--primary-light);
  background: rgba(173,216,230,0.12);
  box-shadow: none;
}

.bloom-user-dropdown .dropdown-menu {
  display: block;
  background: #1f1f1f;
  border: 1px solid rgba(173,216,230,0.18);
  box-shadow: 0 16px 36px rgba(0,0,0,0.32);
  margin-top: 0.45rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  will-change: opacity, transform;
  transition:
    opacity 180ms ease,
    transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 0s linear 180ms;
}

.bloom-user-dropdown .dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition:
    opacity 180ms ease,
    transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 0s;
}

.bloom-user-dropdown .bloom-user-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg) translateY(-0.08em);
}

.bloom-user-dropdown .dropdown-item {
  color: var(--primary-light);
  font-size: 0.9rem;
}

.bloom-user-dropdown .dropdown-item:hover,
.bloom-user-dropdown .dropdown-item:focus {
  background: rgba(173,216,230,0.12);
  color: #fff;
}

.bloom-user-dropdown .dropdown-item.text-danger {
  color: #ffb3b3 !important;
}

.bloom-user-dropdown .dropdown-item.text-danger:hover,
.bloom-user-dropdown .dropdown-item.text-danger:focus {
  background: rgba(220,53,69,0.18);
  color: #ffd0d0 !important;
}

.bloom-user-dropdown .dropdown-divider {
  border-top-color: rgba(173,216,230,0.18);
}

/* ── Auth pages ─────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-ultra) 0%, #fff 60%, var(--primary-ultra) 100%);
}

.auth-card {
  background: white;
  border: 1px solid var(--primary-light);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 8px 40px rgba(58,159,192,0.10);
}

/* ── Dashboard stats ────────────────────── */
.stat-card {
  background: white;
  border: 1px solid var(--primary-light);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(58,159,192,0.08);
}

.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.3rem;
}

/* ── Buttons ────────────────────────────── */
.btn-bloom {
  background: linear-gradient(135deg, #1a1a1a, #2c2c2c);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 0.6rem 2rem;
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  letter-spacing: 0.06em;
  transition: all 0.25s;
}
.btn-bloom:hover {
  background: linear-gradient(135deg, #2c2c2c, #1a1a1a);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.btn-bloom-outline {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--black);
  border-radius: 50px;
  padding: 0.6rem 2rem;
  transition: all 0.25s;
}
.btn-bloom-outline:hover {
  background: var(--black);
  color: white;
}

/* ── Forms ──────────────────────────────── */
.form-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 0.2rem rgba(58,159,192,0.18);
}

.wedding-date-selects {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.wedding-date-selects .form-select {
  width: auto;
  flex: 1 1 7rem;
  min-width: 0;
}

/* ── Guest table ────────────────────────── */
.guest-table th {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--primary-light);
  font-weight: 400;
}

.badge-accepted { background: #d4edda; color: #276749; }
.badge-declined { background: #f8d7da; color: #721c24; }
.badge-pending  { background: var(--primary-pale); color: var(--primary); }

.status-badge {
  font-size: 0.7rem;
  padding: 0.3em 0.8em;
  border-radius: 50px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── QR pass ────────────────────────────── */
.qr-pass {
  border: 2px solid var(--primary-light);
  border-radius: 20px;
  padding: 2rem;
  background: white;
  max-width: 340px;
  margin: 0 auto;
}

/* ── Check-in screen ────────────────────── */
.checkin-result {
  border-radius: 16px;
  padding: 2rem;
  margin-top: 1.5rem;
}

/* ── Message cards ── */
.message-card {
  background: white;
  border: 1px solid var(--primary-light);
  border-radius: 16px;
  padding: 1.2rem 1.4rem;
  box-shadow: 0 2px 12px rgba(58,159,192,0.07);
  height: 100%;
}
.message-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.7rem;
  gap: 0.5rem;
}
.message-guest-name {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--black);
}
.message-time {
  font-size: 0.72rem;
  color: #bbb;
  white-space: nowrap;
  flex-shrink: 0;
}
.message-body {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* ── Shared link warning banner ── */
.alert-shared {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #fff8e6;
  border: 1px solid #ffe08a;
  border-left: 4px solid #f0a500;
  border-radius: 12px;
  padding: 1rem 1.2rem;
  font-size: 0.88rem;
  color: #5a3e00;
}

/* ── Colour utils ── */
.text-gold  { color: var(--primary); }
.bg-gold-pale { background: var(--primary-pale); }

/* ══════════════════════════════════════════════
   INVITATION PAGE
   ══════════════════════════════════════════════ */

.inv-body {
  background: linear-gradient(160deg, var(--primary-ultra) 0%, #f0f8fc 50%, var(--primary-pale) 100%);
  min-height: 100vh;
  color-scheme: light;
}

.inv-page {
  padding: 3rem 0 4rem;
  position: relative;
  z-index: 1;
}

/* Card */
.inv-card {
  background: rgba(255,255,255,0.97);
  border: 1px solid var(--primary-light);
  border-radius: 24px;
  padding: 0 2rem 2.8rem; /* no top padding — hero bleeds to top edge */
  box-shadow: 0 16px 64px rgba(58,159,192,0.13), 0 2px 8px rgba(0,0,0,0.04);
  backdrop-filter: blur(4px);
  overflow: hidden;
}

/* Brand label */
.inv-brand {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

/* Divider */
.inv-divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--primary);
  font-size: 1rem;
  margin: 1.4rem 0;
}
.inv-divider::before,
.inv-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--primary-light), transparent);
}

/* Couple names */
.inv-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--black);
  letter-spacing: 0.02em;
}
.inv-amp {
  display: block;
  color: var(--primary);
  font-style: italic;
  font-size: 0.7em;
  line-height: 1.4;
}

/* Date / venue */
.inv-detail {
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 0.3rem;
  letter-spacing: 0.02em;
}
.inv-detail--muted { color: #666; }

/* Couple photo */
.inv-photo-wrap {
  margin: 1.4rem auto;
  width: 150px; height: 150px;
}
.inv-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--primary-light);
  box-shadow: 0 4px 20px rgba(58,159,192,0.2);
}

/* Welcome quote */
.inv-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: #555;
  line-height: 1.6;
  margin: 0.5rem auto 1rem;
  max-width: 340px;
}

/* Countdown */
.inv-countdown {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: nowrap;
  width: 100%;
  margin: 0.5rem 0;
}
.inv-cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
  background: var(--primary-pale);
  border: 1px solid var(--primary-light);
  border-radius: 10px;
  padding: 0.5rem 0.25rem 0.35rem;
}
.inv-cd-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.2rem, 5vw, 2rem);
  font-weight: 600;
  color: var(--primary);
  line-height: 1;
}
.inv-cd-label {
  font-size: clamp(0.45rem, 1.8vw, 0.6rem);
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
}

/* Verify section */
.inv-verify-section { padding: 0.5rem 0 0.25rem; }

/* RSVP section */
.inv-rsvp-section { padding-top: 0.25rem; }
.inv-welcome {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: var(--black);
  margin-bottom: 0.1rem;
}
.inv-form-group { margin-bottom: 1.2rem; }
.inv-form-label {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.5rem;
  display: block;
}

/* Confirmed / QR pass */
.inv-confirmed { padding: 0.5rem 0; }
.inv-thank {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  color: var(--black);
  margin-bottom: 0.25rem;
}
.inv-qr-wrap {
  display: inline-block;
  padding: 1rem;
  background: white;
  border: 1.5px solid var(--primary-light);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(58,159,192,0.12);
}
.inv-qr-wrap svg { display: block; max-width: 200px; height: auto; }
.inv-token-label {
  margin-top: 0.6rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  letter-spacing: 0.3em;
  color: var(--primary);
}

/* Small buttons for invitation page */
.btn-bloom-sm {
  background: linear-gradient(135deg, #1a1a1a, #2c2c2c);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 0.45rem 1.4rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-bloom-sm:hover {
  background: linear-gradient(135deg, #2c2c2c, #1a1a1a);
  color: white;
  transform: translateY(-1px);
}
.btn-bloom-outline-sm {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--black);
  border-radius: 50px;
  padding: 0.45rem 1.4rem;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-bloom-outline-sm:hover {
  background: var(--primary-pale);
  border-color: var(--black);
}

/* Footer */
.inv-footer {
  text-align: center;
  color: var(--primary-mid);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  margin-top: 1.5rem;
}

/* Flash toast */
.inv-flash {
  position: fixed;
  top: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 0.7rem 1.6rem;
  border-radius: 50px;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  white-space: nowrap;
  pointer-events: none;
}
.inv-flash--ok    { background: var(--primary-pale); color: var(--primary); border: 1px solid var(--primary-light); }
.inv-flash--error { background: #fff0f0; color: #b02a2a; border: 1px solid #f5c2c7; }

/* Petals */
.petals-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.petal {
  position: absolute;
  top: -24px;
  animation: petal-fall linear infinite;
}
.petal--icon {
  height: auto;
  object-fit: contain;
}
@keyframes petal-fall {
  0%   { transform: translateY(0)     rotate(0deg)   translateX(0); }
  50%  { transform: translateY(50vh)  rotate(180deg) translateX(30px); }
  100% { transform: translateY(105vh) rotate(360deg) translateX(-20px); }
}

/* ── RSVP attend choice cards ── */
.inv-rsvp-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 120px;
  padding: 1.2rem 0.8rem;
  border: 2px solid #ddd;
  border-radius: 16px;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.82rem;
  color: #888;
  letter-spacing: 0.02em;
  user-select: none;
}
.inv-rsvp-card:hover {
  border-color: var(--primary-light);
  color: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(58,159,192,0.12);
}
.inv-rsvp-card-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.btn-check:checked + .inv-rsvp-card {
  border-color: var(--primary);
  background: var(--primary-pale);
  color: var(--black);
  box-shadow: 0 6px 24px rgba(58,159,192,0.25);
  transform: translateY(-2px);
}
#rsvp_no:checked + .inv-rsvp-card {
  border-color: #e0a0a8;
  background: #fff5f5;
  color: #721c24;
  box-shadow: 0 6px 20px rgba(220,53,69,0.1);
}

/* Spouse toggle buttons */
.inv-rsvp-btn {
  border: 2px solid #ddd;
  background: white;
  color: #666;
  border-radius: 50px;
  font-size: 0.9rem;
  padding: 0.55rem 1.4rem;
  transition: all 0.2s;
  cursor: pointer;
}
.inv-rsvp-btn:hover { border-color: var(--primary-light); color: var(--primary); }
.btn-check:checked + .inv-rsvp-btn {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 4px 16px rgba(58,159,192,0.3);
  transform: translateY(-1px);
}

/* ── Locked hint ── */
.inv-locked-hint {
  margin: 1.6rem auto;
  max-width: 300px;
  padding: 1.2rem 1.4rem;
  background: var(--primary-ultra);
  border: 1px dashed var(--primary-light);
  border-radius: 14px;
  text-align: center;
}
.inv-locked-icon { font-size: 1.6rem; display: block; margin-bottom: 0.5rem; }
.inv-locked-text { font-size: 0.82rem; color: var(--muted); margin: 0; line-height: 1.55; }

/* ── View Map button ── */
.inv-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 8px;
  background: white;
  border: 1px solid var(--primary-light);
  border-radius: 50px;
  color: var(--primary);
  font-size: 0.75rem;
  font-family: 'Lato', sans-serif;
  padding: 0.2rem 0.75rem;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: all 0.2s;
  vertical-align: middle;
  box-shadow: 0 1px 4px rgba(58,159,192,0.12);
}
.inv-map-btn:hover {
  background: var(--primary-pale);
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(58,159,192,0.2);
}

/* ── Map modal ── */
.map-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.map-modal.open { display: flex; animation: modal-in 0.25s ease; }
@keyframes modal-in { from { opacity: 0; } to { opacity: 1; } }
.map-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(3px);
}
.map-modal-box {
  position: relative;
  z-index: 1;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  width: 520px;
}
.map-modal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--primary-light);
  background: var(--primary-pale);
  gap: 0.5rem;
  flex-shrink: 0;
}
.map-modal-title { font-size: 0.82rem; color: #555; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-map-action {
  background: white;
  border: 1px solid var(--primary-light);
  border-radius: 50px;
  color: var(--primary);
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-map-action:hover { background: var(--primary-pale); color: var(--primary); }
.btn-map-close { color: #999; border-color: #e0e0e0; }
.btn-map-close:hover { background: #f5f5f5; color: #333; }
.map-modal-img-wrap { overflow: auto; flex: 1; }
.map-modal-img { width: 100%; height: auto; display: block; }

/* ── Map fullscreen ── */
.map-fullscreen {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.95);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.map-fullscreen.open { display: flex; animation: modal-in 0.2s ease; }
.map-fullscreen-close {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(255,255,255,0.15); border: none; border-radius: 50%;
  color: white; font-size: 1.1rem; width: 40px; height: 40px;
  cursor: pointer; transition: background 0.2s; z-index: 1;
}
.map-fullscreen-close:hover { background: rgba(255,255,255,0.3); }
.map-fullscreen-save {
  position: absolute; top: 1rem; left: 1rem;
  background: rgba(255,255,255,0.15); border-radius: 50px;
  color: white; font-size: 0.78rem; padding: 0.3rem 0.9rem;
  text-decoration: none; transition: background 0.2s; z-index: 1;
}
.map-fullscreen-save:hover { background: rgba(255,255,255,0.3); color: white; }
.map-fullscreen-img-wrap {
  width: 100%; height: 100%; overflow: auto;
  display: flex; align-items: center; justify-content: center;
  padding: 3.5rem 1rem 1rem;
}
.map-fullscreen-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }

/* ── Gift note ── */
.inv-gift-note {
  margin: 1.4rem auto;
  max-width: 360px;
  background: var(--primary-pale);
  border: 1px solid var(--primary-light);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
}
.inv-gift-icon { font-size: 1.4rem; margin-bottom: 0.4rem; }
.inv-gift-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.65;
  margin: 0;
}

/* ── Time badge (shown next to venue lines) ── */
.inv-time-badge {
  display: inline-block;
  margin-left: 6px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 50px;
  color: #ffffff;
  font-size: 0.72rem;
  padding: 0.15rem 0.6rem;
  letter-spacing: 0.03em;
  vertical-align: middle;
  white-space: nowrap;
}

/* ── Strictly by invite notice ── */
.inv-strict-note {
  margin: 0.8rem auto 0.5rem;
  max-width: 320px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 50px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 1.2rem;
  display: inline-block;
}

/* ── Theme colour swatches ── */
.inv-theme-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(98px, 1fr));
  gap: 0.75rem;
  margin: 0.9rem auto 0.4rem;
  max-width: 360px;
}
.inv-theme-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  padding: 0.58rem 0.55rem 0.5rem;
  min-width: 0;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(79,134,184,0.16);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}
.inv-theme-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 0.25rem;
}
.inv-color-swatch {
  display: inline-block;
  width: 100%;
  height: 24px;
  border-radius: 999px;
  vertical-align: middle;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
  flex-shrink: 0;
  background-clip: padding-box;
  forced-color-adjust: none;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.inv-color-swatch--light-blue {
  background: #ADD8E6;
  border-color: rgba(0,0,0,0.24);
}
.inv-color-swatch--black {
  background: #1a1a1a;
  border-color: rgba(255,255,255,0.12);
}
.inv-color-swatch--white {
  background: #ffffff;
  border-color: #9c9c9c;
}
.inv-color-swatch--nude {
  background: #E8C9A0;
  border-color: rgba(0,0,0,0.24);
}
@media (prefers-color-scheme: dark) {
  .inv-color-swatch--light-blue {
    background: #93bfd7;
  }
  .inv-color-swatch--nude {
    background: #d9b486;
  }
}
.inv-color-name {
  font-size: 0.68rem;
  color: #333;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
  font-weight: 600;
  word-break: break-word;
}

/* ── Guest row slide-in ── */
@keyframes guest-row-in {
  from { opacity: 0; transform: translateY(-8px); background: var(--primary-pale); }
  to   { opacity: 1; transform: translateY(0);    background: transparent; }
}
.guest-row-new { animation: guest-row-in 0.4s ease forwards; }

/* ── Guest stat cards ── */
.guest-stat-card {
  background: white;
  border: 1px solid var(--primary-light);
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(58,159,192,0.07);
}
.guest-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1;
}
.guest-stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.2rem;
}
.guest-stat-card--green .guest-stat-num { color: #276749; }
.guest-stat-card--green { border-color: #c3e6cb; }
.guest-stat-card--yellow .guest-stat-num { color: #856404; }
.guest-stat-card--yellow { border-color: #ffeeba; }
.guest-stat-card--red .guest-stat-num { color: #721c24; }
.guest-stat-card--red { border-color: #f5c6cb; }

/* ── WhatsApp button ── */
.btn-whatsapp-icon {
  background: #25d366;
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 0.8rem;
  padding: 0.35rem 0.85rem;
  line-height: 1.4;
  transition: background 0.2s;
}
.btn-whatsapp-icon:hover { background: #1ebe5d; color: white; }
.btn-whatsapp-icon--sent {
  background: transparent;
  color: #25d366;
  border: 1.5px solid #25d366;
  padding: 0.35rem 0.85rem;
}
.btn-whatsapp-icon--sent:hover { background: #f0fff5; color: #1ebe5d; }

/* ── Added-by badge ── */
.added-by-badge {
  display: inline-block;
  font-size: 0.68rem;
  padding: 0.18em 0.65em;
  border-radius: 50px;
  letter-spacing: 0.04em;
  font-weight: 400;
}
.added-by-badge--owner {
  background: var(--primary-pale);
  color: var(--primary);
  border: 1px solid var(--primary-light);
}
.added-by-badge--partner {
  background: #f3eafa;
  color: #7b2fbe;
  border: 1px solid #d8b4fe;
}

/* ── Partner split panel ── */
.partner-panel {
  background: white;
  border: 1px solid var(--primary-light);
  border-radius: 16px;
  padding: 1.2rem 1.4rem;
  box-shadow: 0 2px 12px rgba(58,159,192,0.07);
  height: 100%;
}
.partner-panel--partner {
  border-color: #d8b4fe;
}
.partner-panel-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.partner-panel-stats {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.partner-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.partner-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1;
}
.partner-stat-num--green { color: #276749; }
.partner-stat-num--muted { color: var(--muted); }
.partner-stat-label {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

/* ── Connect partner nudge card ── */
.partner-connect-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--primary-ultra);
  border: 1px dashed var(--primary-light);
  border-radius: 16px;
  padding: 1.2rem 1.4rem;
  flex-wrap: wrap;
}

/* ── Guest filter tab active state ── */
#guest-filter-tabs .btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ══════════════════════════════════════════════
   SPLIT AUTH LAYOUT (login / signup)
   ══════════════════════════════════════════════ */

.auth-split-page {
  display: flex;
  min-height: 100vh;
}

/* Photo side */
.auth-split-photo {
  display: none;
  position: relative;
  flex: 1;
  overflow: hidden;
}
@media (min-width: 992px) {
  .auth-split-photo { display: block; }
}

.auth-split-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.auth-split-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26,42,53,0.25) 0%, rgba(26,42,53,0.65) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 2.5rem;
  text-align: center;
}

.auth-split-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: #fff;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.auth-split-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin: 0;
}

/* Form side */
.auth-split-form {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 100%;
  background: linear-gradient(135deg, var(--primary-ultra) 0%, #fff 60%, var(--primary-ultra) 100%);
  padding: 2rem 1rem;
}
@media (min-width: 992px) {
  .auth-split-form { flex: 0 0 440px; }
}

.auth-split-inner {
  width: 100%;
  max-width: 380px;
}

@media (max-width: 991.98px) {
  .auth-split-page {
    flex-direction: column;
  }

  .auth-split-photo {
    display: block;
    flex: 0 0 auto;
    min-height: 240px;
    height: 38vh;
    max-height: 320px;
  }

  .auth-split-img {
    filter: saturate(1.06) contrast(1.04);
  }

  .auth-split-photo-overlay {
    background: linear-gradient(
      to top,
      rgba(15,25,32,0.62) 0%,
      rgba(15,25,32,0.18) 55%,
      rgba(15,25,32,0.02) 100%
    );
    justify-content: flex-end;
    padding: 1.5rem 1.25rem;
  }

  .auth-split-brand {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.35);
  }

  .auth-split-tagline {
    color: rgba(255,255,255,0.88);
    text-shadow: 0 1px 3px rgba(0,0,0,0.28);
  }

  .auth-split-form {
    flex: 1 1 auto;
    width: 100%;
    padding: 1.5rem 1rem 2rem;
  }

  .auth-split-inner {
    max-width: 430px;
  }

  .auth-split-inner .text-gold,
  .auth-split-inner .text-muted,
  .auth-split-inner .form-label,
  .auth-split-inner .form-text {
    color: var(--black) !important;
  }
}

/* ══════════════════════════════════════════════
   DASHBOARD WEDDING HERO BANNER
   ══════════════════════════════════════════════ */

.wedding-hero {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  height: 420px;
  box-shadow: 0 16px 48px rgba(58,159,192,0.18);
}

@media (min-width: 768px) {
  .wedding-hero { height: 480px; }
}

.wedding-hero-photos {
  display: flex;
  height: 100%;
  gap: 3px;
}

.wedding-hero-img {
  flex: 1;
  width: 50%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.wedding-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,25,32,0.88) 0%, rgba(15,25,32,0.35) 38%, transparent 58%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 2rem;
  text-align: center;
}

.wedding-hero-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  color: #fff;
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.wedding-hero-date {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 0;
  letter-spacing: 0.03em;
}

.wedding-hero .btn-bloom-outline {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.5);
  backdrop-filter: blur(4px);
}
.wedding-hero .btn-bloom-outline:hover {
  background: rgba(255,255,255,0.22);
  border-color: #fff;
  color: #fff;
}
.wedding-hero .btn-bloom {
  backdrop-filter: blur(4px);
}

/* ══════════════════════════════════════════════
   INVITATION — PHOTO HERO BANNER
   ══════════════════════════════════════════════ */

.inv-hero {
  position: relative;
  width: calc(100% + 4rem);
  margin: -2.8rem -2rem 0;
  height: 480px;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
}

@media (max-width: 480px) {
  .inv-hero { height: 380px; }
}

.inv-hero-photos {
  display: flex;
  height: 100%;
  gap: 0;
}

.inv-hero-img {
  flex: 1;
  width: 50%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

/* thin decorative centre divider */
.inv-hero-divider {
  width: 3px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.6);
  position: relative;
  z-index: 1;
}

.inv-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15,25,32,0.85) 0%,
    rgba(15,25,32,0.30) 38%,
    transparent 58%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 1.8rem 1.5rem;
  text-align: center;
}

.inv-hero-brand {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.4rem;
}

.inv-hero-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.9rem, 7vw, 2.8rem);
  font-weight: 300;
  color: #fff;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
  margin-bottom: 0.3rem;
}

.inv-hero-amp {
  display: block;
  font-style: italic;
  font-size: 0.65em;
  color: var(--primary-light);
  line-height: 1.3;
}

.inv-hero-date {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.78);
  letter-spacing: 0.06em;
  margin: 0;
}

/* card body padding below the hero */
.inv-card-body {
  padding-top: 1.6rem;
}



/* ==============================================
   WEDDING CARD PREVIEW & DOWNLOAD
   ============================================== */

.wcard-preview-wrap {
  display: flex;
  justify-content: center;
}

.wcard {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 902 / 1281;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,0,0.18);
  background-color: #fff;
  color: #1b1b1b;
  color-scheme: light;
  isolation: isolate;
  forced-color-adjust: none;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.wcard--export {
  background-color: #fff !important;
  color: #000 !important;
  color-scheme: light !important;
  forced-color-adjust: none;
}

.wcard--export .wcard-line,
.wcard--export .wcard-line--script,
.wcard--export .wcard-line--italic,
.wcard--export .wcard-line--detail {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  text-shadow: none !important;
}

@media (prefers-color-scheme: dark) {
  .wcard .wcard-line,
  .wcard .wcard-line--script,
  .wcard .wcard-line--italic,
  .wcard .wcard-line--detail {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
    text-shadow: none !important;
  }
}

.wcard-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wcard-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

/* Every line is absolute + centred */

/* Every line is absolute + centred */
.wcard-line {
  position: absolute;
  left: 4%; right: 4%;
  margin: 0;
  text-align: center;
  line-height: 1.2;
  color: #ADD8E6;
  -webkit-text-fill-color: #ADD8E6;
  text-shadow: 0 0 10px rgba(0,0,0,0.8), 0 0 15px rgba(0,0,0,0.6), 0 2px 4px rgba(0,0,0,0.9);
}

/* Script font — names */
.wcard-line--script {
  font-family: 'Great Vibes', cursive;
  font-size: 1.8rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  text-shadow: 0 0 12px rgba(0,0,0,0.7), 0 2px 4px rgba(0,0,0,0.9);
}

@media (max-width: 480px) {
  .wcard-line--script {
    font-size: 1.5rem;
    letter-spacing: 0;
  }
}

/* Small spaced caps — section headings */
.wcard-line--sm {
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Extra-small spaced caps */
.wcard-line--xs {
  font-family: 'Lato', sans-serif;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

/* Compact line spacing for grouped card text */
.wcard-line--compact {
  line-height: 1.05;
}

/* Date block */
.wcard-line--date {
  font-family: 'Lato', sans-serif;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  line-height: 1.05;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .wcard-line--date {
    font-size: 0.58rem;
    letter-spacing: 0.09em;
  }
}

/* Italic modifier (and / labels) */
.wcard-line--italic {
  font-style: italic;
  color: #ffffff;
  letter-spacing: 0.18em;
}

/* Venue / detail — Cormorant italic */
.wcard-line--detail {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  line-height: 1.45;
  color: #ADD8E6;
  -webkit-text-fill-color: #ADD8E6;
  text-shadow: 0 0 8px rgba(0,0,0,0.6), 0 1px 3px rgba(0,0,0,0.8);
  white-space: normal !important;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 70% !important;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.wcard-line--compact-detail {
  line-height: 1.12;
}

.wcard-flow-stack {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 60.8%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  text-align: center;
}

.wcard-flow-stack--ceremony {
  top: 59.5%;
}

.wcard-flow-stack--reception-only {
  top: 59.5%;
}

.wcard-flow-line {
  position: static;
  left: auto;
  right: auto;
  width: 100%;
  margin: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.wcard-flow-line.wcard-line--detail {
  line-height: 1.25;
  width: 50% !important;
  max-width: 50% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

@media (max-width: 480px) {
  .wcard-flow-line.wcard-line--detail {
    width: 60% !important;
    max-width: 60% !important;
    font-size: 0.65rem !important;
  }
}
}

.wcard-flow-section-gap {
  height: 0.45rem;
  width: 100%;
}

.wcard-flow-section-gap--between-venues {
  height: 0.8rem;
}

.wcard-palette {
  forced-color-adjust: none;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.wcard-palette-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.wcard-palette-chip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--primary-light);
  background: rgba(255,255,255,0.96);
  box-shadow: 0 3px 10px rgba(0,0,0,0.04);
}

.wcard-palette-chip-label {
  font-family: 'Lato', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #333;
  line-height: 1.1;
}

.wcard-palette-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 2px;
  vertical-align: middle;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  border: 1px solid transparent;
  flex-shrink: 0;
  forced-color-adjust: none;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.wcard-palette-dot--light-blue {
  background: #ADD8E6;
  border-color: rgba(0,0,0,0.24);
}

.wcard-palette-dot--black {
  background: #1a1a1a;
  border-color: rgba(255,255,255,0.12);
}

.wcard-palette-dot--white {
  background: #ffffff;
  border-color: #9c9c9c;
}

.wcard-palette-dot--nude {
  background: #E8C9A0;
  border-color: rgba(0,0,0,0.24);
}

@media (prefers-color-scheme: dark) {
  .wcard-palette-dot--light-blue {
    background: #93bfd7;
  }

  .wcard-palette-dot--nude {
    background: #d9b486;
  }
}

/* ── Invitation policy notice (adults-only / no extra guests) ── */
.inv-policy-note {
  margin: 0 auto;
  max-width: 340px;
  background: #1a1a1a;
  border-radius: 12px;
  padding: 1rem 1.3rem;
  text-align: center;
}

.inv-policy-text {
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.65;
  margin: 0;
  letter-spacing: 0.01em;
}

.inv-policy-text strong {
  color: #fff;
  font-weight: 400;
  letter-spacing: 0.06em;
}

/* ── Wedding colour swatches (invitation page) ── */
.inv-colors-section {
  margin: 1.2rem auto 0.6rem;
  text-align: center;
}

.inv-colors-heading {
  font-family: 'Lato', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.inv-colors-grid {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.inv-color-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.inv-color-dot {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.inv-color-label {
  font-family: 'Lato', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Push right hero image down so head isn't cropped */
.inv-hero-img--right {
  object-position: center 30%;
}
.wedding-hero-img--right {
  object-position: center 20%;
}

/* ── Table number badge ── */
.table-badge {
  display: inline-block;
  background: var(--primary-pale);
  color: var(--primary);
  border: 1px solid var(--primary-light);
  border-radius: 50px;
  font-size: 0.72rem;
  padding: 0.2em 0.75em;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ── Wedding colour swatches — elegant strip style ── */
.inv-swatch-row {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}

.inv-swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.inv-swatch-block {
  width: 32px;
  height: 42px;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  transition: transform 0.2s;
}

.inv-swatch-block:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

.inv-swatch-name {
  font-family: 'Lato', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  max-width: 56px;
  line-height: 1.3;
}

/* ── Wedding card stays high-contrast on a light card background ── */

/* ── Venue rows on invitation page ── */
.inv-venues {
  margin: 0.8rem auto;
  max-width: 320px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.inv-venue-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.inv-venue-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.inv-venue-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.inv-venue-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.3;
}
