:root {
  --primary: #8B1A1A;
  --primary-dark: #6b1010;
  --primary-light: #a52525;
  --accent: #c9a84c;
  --accent-soft: rgba(201, 168, 76, 0.12);
  --accent-mid: rgba(201, 168, 76, 0.25);
  --green: #2d4a2d;
  --green-dark: #1e331e;
  --text: #f0e8dc;
  --text-light: #d4c8b4;
  --text-muted: #a89880;
  --bg: #141210;
  --bg-card: #1e1b16;
  --bg-card-hover: #262218;
  --secondary: #1a1510;
  --border: #3a3428;
  --shadow: 0 2px 16px rgba(0,0,0,0.35);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
  --font-display: 'Playfair Display', serif;
  --font-script: 'Great Vibes', cursive;
  --font-body: 'Lato', sans-serif;
  --radius: 10px;
  --radius-sm: 5px;
  --radius-lg: 16px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  overflow-x: hidden;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; }
.text-muted { color: var(--text-muted); }

/* ============================================
   FLOATING NAV BUTTON
   ============================================ */
.floating-nav-btn {
  position: fixed;
  top: 1.2rem;
  right: 1.5rem;
  z-index: 1100;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(20, 18, 16, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 168, 76, 0.25);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  transition: background 0.3s, border-color 0.3s, transform 0.2s;
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.floating-nav-btn:hover {
  background: rgba(30, 27, 22, 0.95);
  border-color: var(--accent);
  transform: scale(1.05);
}

.floating-nav-btn span {
  display: block;
  width: 20px;
  height: 2.5px;
  background: var(--accent);
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.25s ease;
  transform-origin: center;
}

.floating-nav-btn.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.floating-nav-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.floating-nav-btn.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================
   NAV OVERLAY
   ============================================ */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(12, 10, 8, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.nav-overlay-close {
  position: absolute;
  top: 1.5rem;
  right: 1.8rem;
  font-size: 2.2rem;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s;
  font-weight: 300;
}

.nav-overlay-close:hover { color: var(--accent); }

.nav-overlay-inner {
  text-align: center;
  padding: 2rem;
}

.nav-brand {
  font-family: var(--font-script);
  font-size: 2.4rem;
  color: var(--accent);
  margin-bottom: 2.5rem;
  display: block;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.45s ease 0.05s, transform 0.45s ease 0.05s;
}

.nav-overlay.open .nav-brand {
  opacity: 1;
  transform: translateY(0);
}

.nav-overlay-inner nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nav-overlay-inner nav a {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  color: rgba(240, 232, 220, 0.45);
  text-decoration: none;
  letter-spacing: 1px;
  padding: 0.25rem 0;
  opacity: 0;
  transform: translateY(18px);
  transition: color 0.3s, opacity 0.4s ease, transform 0.4s ease;
  display: block;
}

.nav-overlay.open .nav-overlay-inner nav a { opacity: 1; transform: translateY(0); }
.nav-overlay.open .nav-overlay-inner nav a:nth-child(1) { transition-delay: 0.08s; }
.nav-overlay.open .nav-overlay-inner nav a:nth-child(2) { transition-delay: 0.13s; }
.nav-overlay.open .nav-overlay-inner nav a:nth-child(3) { transition-delay: 0.18s; }
.nav-overlay.open .nav-overlay-inner nav a:nth-child(4) { transition-delay: 0.23s; }
.nav-overlay.open .nav-overlay-inner nav a:nth-child(5) { transition-delay: 0.28s; }
.nav-overlay.open .nav-overlay-inner nav a:nth-child(6) { transition-delay: 0.33s; }

.nav-overlay-inner nav a:hover,
.nav-overlay-inner nav a.active {
  color: var(--accent);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero picture {
  position: absolute;
  inset: 0;
}

.hero picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14, 12, 10, 0.15) 0%,
    rgba(14, 12, 10, 0.42) 35%,
    rgba(14, 12, 10, 0.68) 65%,
    rgba(14, 12, 10, 0.88) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 2rem;
}

.hero-subtitle {
  font-size: 0.78rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
  font-weight: 400;
  text-shadow: 0 1px 6px rgba(0,0,0,0.8);
}

.hero-title {
  font-family: var(--font-script);
  font-weight: 400;
  line-height: 1.05;
  margin: 0.5rem 0 1.8rem;
  margin-left: -2rem;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6), 0 0 40px rgba(0,0,0,0.35);
}

.hero-name {
  display: block;
  font-size: 5rem;
}

.hero-amp {
  display: block;
  font-size: 2.6rem;
  opacity: 0.5;
  margin: 0.15rem 0;
}

.hero-date {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.92);
  margin-bottom: 0.4rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
}

.hero-venue {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}

/* Scroll hint arrow */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll-hint span {
  display: block;
  width: 20px;
  height: 20px;
  border-right: 1.5px solid rgba(201, 168, 76, 0.6);
  border-bottom: 1.5px solid rgba(201, 168, 76, 0.6);
  transform: rotate(45deg);
  animation: scrollHint 2s ease-in-out infinite;
}

@keyframes scrollHint {
  0%, 100% { opacity: 0.3; transform: rotate(45deg) translateY(0); }
  50% { opacity: 0.9; transform: rotate(45deg) translateY(5px); }
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  max-width: 1040px;
  margin: 0 auto;
  padding: 5.5rem 2rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin: 1rem auto 0;
}

/* ---- Countdown ---- */
.countdown-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-width: 100%;
  padding: 5rem 2rem;
}

.countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.countdown-item {
  text-align: center;
  min-width: 90px;
  padding: 0 1.5rem;
}

.countdown-item span {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  line-height: 1;
}

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

.countdown-sep {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
  align-self: flex-start;
  padding-top: 0.1rem;
}

/* ---- Story ---- */
.story-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.story-image {
  position: relative;
}

.story-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}

.story-text {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.9;
  font-weight: 300;
  text-align: center;
}

.story-text p + p { margin-top: 1rem; }

/* ---- Photo Grid ---- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  max-width: 960px;
  margin: 0 auto;
}

.photo-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
  display: block;
}

.photo-grid img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

/* ---- Venue ---- */
.venue-section { text-align: center; }

.venue-card {
  max-width: 660px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  transition: transform 0.3s;
}

.venue-card:hover { transform: translateY(-3px); }

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

.venue-photos img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.venue-photos img:first-child {
  border-right: 2px solid var(--bg-dark);
}

.venue-info { padding: 1.8rem 2rem; }
.venue-info h3 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.venue-info p { color: var(--text-light); font-size: 0.95rem; }
.venue-date { color: var(--accent) !important; font-weight: 600; margin-top: 0.4rem; }
.venue-directions-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(201, 168, 76, 0.35);
  transition: border-color 0.2s, color 0.2s;
}
.venue-directions-link:hover { color: var(--text); border-color: var(--text); }

/* ---- CTA ---- */
.cta-section { text-align: center; }
.cta-section p { color: var(--text-light); font-size: 1.05rem; margin-bottom: 0.5rem; }
.rsvp-deadline-text { color: var(--text-muted); margin-bottom: 1.5rem; }
.cta-welcome { font-size: 1.1rem; color: var(--text-light); margin: 0.5rem 0 1.5rem; }

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ---- Section alternating bg ---- */
.photo-preview-section {
  background: linear-gradient(180deg, transparent 0%, var(--bg-card) 30%, var(--bg-card) 70%, transparent 100%);
  max-width: 100%;
  padding-left: 2rem;
  padding-right: 2rem;
}

.photo-preview-section .section-title,
.photo-preview-section .photo-grid {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Footer ---- */
.footer {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  position: relative;
}

.footer::before {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 1.5rem;
}

.footer p { margin: 0.3rem 0; color: var(--text-muted); font-size: 0.9rem; }
.footer .footer-names {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--accent);
}

/* ============================================
   PAGES
   ============================================ */
.page { display: none; }
.page.active { display: block; }

.page-container {
  max-width: 920px;
  margin: 0 auto;
  padding: 4.5rem 2rem 2rem;
}

.page-container h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

/* ============================================
   GALLERY HEADER
   ============================================ */
.gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.gallery-header h1 { margin-bottom: 0; }

.gallery-header-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: linear-gradient(145deg, var(--bg-card), rgba(30, 28, 22, 0.7));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.card h3 {
  font-family: var(--font-display);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

/* ============================================
   FORMS
   ============================================ */
.form-group { margin-bottom: 1.1rem; }

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

.form-hint {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.lock-notice {
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.lock-notice-open {
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.3);
  color: var(--accent);
}
.lock-notice-locked {
  background: rgba(139, 26, 26, 0.15);
  border: 1px solid rgba(139, 26, 26, 0.4);
  color: #e07070;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="number"],
textarea,
select,
.search-input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(20, 18, 14, 0.8);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus, textarea:focus, select:focus, .search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-error {
  color: #e74c3c;
  margin-top: 0.8rem;
  text-align: center;
  font-size: 0.9rem;
}

.radio-group { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.3rem; }

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-weight: 400;
  color: var(--text-light);
  padding: 0.4rem 0;
}

.radio-label input[type="radio"] { accent-color: var(--accent); }

.divider {
  text-align: center;
  margin: 1.2rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  position: relative;
}

.divider::before,
.divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 38%;
  height: 1px;
  background: var(--border);
}

.divider::before { left: 0; }
.divider::after { right: 0; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.6rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  gap: 0.5rem;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(139, 26, 26, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent-mid);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.btn-danger {
  background: transparent;
  color: #e74c3c;
  border-color: #e74c3c;
}

.btn-danger:hover {
  background: #e74c3c;
  color: #fff;
}

.btn-block { width: 100%; }
.btn-sm { padding: 0.38rem 0.8rem; font-size: 0.72rem; }

.btn:active { transform: scale(0.96); transition: transform 0.1s; }

@media (hover: none) {
  .btn { -webkit-tap-highlight-color: transparent; }
  .btn:active { transform: scale(0.94); opacity: 0.85; }
  .btn-primary:active { background: var(--primary-dark); }
  .btn-outline:active { background: var(--accent-soft); }
  .tab:active { transform: scale(0.97); }
  .gallery-item:active { transform: scale(0.97); }
  .menu-select-option:active { transform: scale(0.98); }
  .upload-area:active { transform: scale(0.98); }
}

/* ============================================
   TABS
   ============================================ */
.tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.tab {
  padding: 0.8rem 1.3rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s, border-color 0.3s;
  white-space: nowrap;
}

.tab:hover { color: var(--text-light); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.tab-content { display: none; }
.tab-content.active { display: block; }

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============================================
   GUEST CHECKLIST
   ============================================ */
.guest-checklist {
  margin-bottom: 1.5rem;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: 8px;
  margin-bottom: 0.55rem;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
  user-select: none;
}

.checklist-item:hover {
  border-left-color: var(--accent);
  background: rgba(139, 26, 26, 0.04);
}

.checklist-item.cl-active {
  border-left-color: var(--accent);
  background: rgba(139, 26, 26, 0.06);
}

.checklist-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: transparent;
  transition: all 0.2s;
}

.checklist-item.done .checklist-check {
  border-color: #4caf50;
  background: #4caf50;
  color: #fff;
}

.checklist-check-optional {
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.checklist-info {
  flex: 1;
  min-width: 0;
}

.checklist-title {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.checklist-desc {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.checklist-badge {
  font-size: 0.75rem;
  padding: 0.22rem 0.65rem;
  border-radius: 20px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.badge-pending {
  background: rgba(139, 26, 26, 0.1);
  color: var(--accent);
}

.badge-done {
  background: rgba(76, 175, 80, 0.15);
  color: #2e7d32;
}

.badge-optional {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-muted);
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.75rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  transition: box-shadow 0.3s;
}

.gallery-item:hover { box-shadow: 0 6px 28px rgba(0,0,0,0.5); }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
  display: block;
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.8rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #fff;
  font-size: 0.78rem;
  opacity: 0;
  transition: opacity 0.3s;
  line-height: 1.4;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

/* Pending photo indicator */
.gallery-item.pending {
  opacity: 0.65;
}

.gallery-item.pending::before {
  content: 'Pending';
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 2;
  background: rgba(255, 183, 77, 0.92);
  color: #1a1510;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
}

/* Admin photo action buttons in gallery */
.photo-actions {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  opacity: 0;
  transition: opacity 0.25s;
}

.gallery-item:hover .photo-actions { opacity: 1; }

.photo-actions .btn {
  padding: 0.28rem 0.55rem;
  font-size: 0.68rem;
  background: rgba(14, 12, 10, 0.88);
  backdrop-filter: blur(6px);
  color: var(--text-light);
  border-color: rgba(255,255,255,0.15);
}

.photo-actions .btn-danger {
  color: #e74c3c;
  border-color: rgba(231, 76, 60, 0.4);
}

.photo-actions .btn:hover {
  background: rgba(30, 27, 22, 0.95);
}

/* ---- Lightbox ---- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.96);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: var(--radius);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  font-size: 2.2rem;
  color: rgba(255,255,255,0.7);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s;
  z-index: 10;
}

.lightbox-close:hover { color: #fff; }

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3.5rem;
  color: rgba(255,255,255,0.5);
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem;
  transition: color 0.3s;
  line-height: 1;
}

.lightbox-prev:hover, .lightbox-next:hover { color: #fff; }
.lightbox-prev { left: 0.5rem; }
.lightbox-next { right: 0.5rem; }

.lightbox-caption {
  color: var(--text-muted);
  margin-top: 1rem;
  font-size: 0.88rem;
  text-align: center;
}

/* ============================================
   UPLOAD
   ============================================ */
.upload-area {
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.upload-area:hover,
.upload-area.dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text-light);
}

.photo-previews {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.photo-previews img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
}

/* ============================================
   MENU DISPLAY
   ============================================ */
.menu-course { margin-bottom: 2.5rem; }

.menu-course h3 {
  font-family: var(--font-display);
  color: var(--accent);
  text-transform: capitalize;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
}

.menu-item {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.menu-item:last-child { border-bottom: none; }
.menu-item h4 { font-family: var(--font-display); font-size: 1rem; margin-bottom: 0.2rem; }
.menu-item p { color: var(--text-muted); font-size: 0.9rem; }
.menu-badges { margin-top: 0.4rem; }

.badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  margin-right: 0.3rem;
  letter-spacing: 0.5px;
}

.badge-veg { background: var(--green-dark); color: #81c784; }
.badge-vegan { background: #1b3d1b; color: #a5d6a7; }
.badge-gf { background: #3d2d1b; color: #ffb74d; }

/* ---- Menu Selection ---- */
.menu-select-course { margin-bottom: 1.5rem; }
.menu-select-course h4 {
  font-family: var(--font-display);
  color: var(--accent);
  text-transform: capitalize;
  margin-bottom: 0.5rem;
}

.menu-select-option {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
}

.menu-select-option:hover { border-color: var(--text-muted); }
.menu-select-option.selected { border-color: var(--accent); background: var(--accent-soft); }
.menu-select-option input[type="radio"] { margin-top: 0.25rem; accent-color: var(--accent); }
.menu-select-info strong { display: block; font-size: 0.95rem; }
.menu-select-info p { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.2rem; }

/* ============================================
   TOAST
   ============================================ */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  padding: 0.85rem 1.3rem;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  animation: toastIn 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  max-width: 320px;
}

.toast-success { background: var(--green); }
.toast-error { background: #c62828; }
.toast-info { background: #37474f; }

@keyframes toastIn {
  from { transform: translateX(110px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 2500;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-overlay.active { display: flex; }

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem 1.6rem;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 { font-family: var(--font-display); font-size: 1.1rem; }

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  transition: color 0.3s;
  line-height: 1;
}

.modal-close:hover { color: var(--text); }
.modal-body { padding: 1.6rem; }

/* QR Code Display */
.qr-display { text-align: center; }
.qr-display img { max-width: 250px; margin: 0 auto 1rem; display: block; }
.qr-url {
  word-break: break-all;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}

/* ============================================
   STATUS BADGES (shared with admin)
   ============================================ */
.status-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  font-size: 0.73rem;
  font-weight: 700;
}

.status-attending { background: #1b3d1b; color: #66bb6a; }
.status-declined { background: #3d1b1b; color: #ef5350; }
.status-pending { background: #3d2d1b; color: #ffb74d; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hero { min-height: 88vh; }
  .hero picture { left: -30px; }
  .hero picture img { object-position: center 20%; }
  .hero-content { width: 100%; text-align: center; }
  .hero-title { margin-left: 0; }
  .hero-name { font-size: 3.5rem; }
  .hero-amp { font-size: 2rem; }

  .section { padding: 3.5rem 1.3rem; }
  .section-title { font-size: 1.7rem; }

  .story-content { grid-template-columns: 1fr; gap: 1.8rem; }

  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid img { height: 160px; }

  .venue-photos img { height: 160px; }

  .countdown { gap: 0; }
  .countdown-item { min-width: 70px; padding: 0 0.8rem; }
  .countdown-item span { font-size: 2.4rem; }
  .countdown-sep { font-size: 2rem; }

  .form-row { grid-template-columns: 1fr; }

  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

  .modal { max-width: 95vw; border-radius: var(--radius); }

  .toast-container { right: 1rem; left: 1rem; bottom: 1.5rem; }
  .toast { width: 100%; max-width: none; }

  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-buttons .btn { width: 220px; }

  .page-container { padding-top: 4rem; }

  .floating-nav-btn { top: 0.9rem; right: 1rem; }
}

@media (max-width: 480px) {
  .hero { min-height: 80vh; }
  .hero-name { font-size: 2.8rem; }
  .hero-amp { font-size: 1.7rem; }
  .hero-date { font-size: 0.95rem; }

  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid img { height: 160px; }

  .countdown-item span { font-size: 2rem; }
  .countdown-item { min-width: 56px; padding: 0 0.5rem; }
  .countdown-sep { font-size: 1.6rem; }
}
