/* ═══════════════════════════════════════════════════════════════
   Hochzeit Galerie – Wedding Theme CSS
   Farben: ivory, dusty rose, deep plum
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  /* ── Theme-Overrides (gesetzt per <style> im <head>) ── */
  --color-primary:  #c084a0;
  --color-light:    #fdf2f8;
  --color-border:   #f3e0e5;
  --color-dark:     #4a2040;
  --color-muted:    #a0768a;
  --gradient-main:  linear-gradient(160deg,#fce7f3,#fbcfe8);

  --rose-50:   #fdf2f8;
  --rose-100:  #fce7f3;
  --rose-200:  #fbcfe8;
  --rose-300:  #f9a8d4;
  --rose-400:  #f472b6;
  --rose-500:  #ec4899;
  --dusty:     #d4a8b5;
  --dusty-btn:   var(--color-primary);
  --dusty-hover: color-mix(in srgb, var(--color-primary) 80%, black);
  --plum:      #4a2040;
  --plum-mid:  #6b4555;
  --plum-light:#a0768a;
  --ivory:     #fdf8f9;
  --white:     #ffffff;
  --text:      #4a2040;
  --text-mid:  #6b4555;
  --text-light:#a0768a;
  --border:    #f3e0e5;
  --shadow:    rgba(212,168,181,0.18);
  --success:   #86efac;
  --error:     #fca5a5;
  --radius:    14px;
  --radius-sm: 8px;
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--ivory);
  color: var(--text-mid);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  color: var(--plum);
  font-weight: 600;
}

a { color: var(--dusty-btn); text-decoration: none; }
a:hover { color: var(--dusty-hover); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 50px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--dusty-btn);
  color: white;
  box-shadow: 0 4px 14px rgba(192,132,160,0.35);
}
.btn-primary:hover { background: var(--dusty-hover); color: white; box-shadow: 0 6px 18px rgba(168,104,138,0.4); }
.btn-secondary {
  background: transparent;
  color: var(--dusty-btn);
  border: 2px solid var(--dusty);
}
.btn-secondary:hover { background: var(--rose-100); color: var(--dusty-hover); }
.btn-ghost {
  background: transparent;
  color: var(--plum-light);
  border: 2px solid var(--border);
}
.btn-ghost:hover { background: var(--rose-50); }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── Forms ───────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--plum-mid);
  margin-bottom: 6px;
}
.form-input, input[type="text"], input[type="email"], input[type="password"],
input[type="date"], input[type="number"], textarea, select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input:focus, input:focus, textarea:focus, select:focus {
  border-color: var(--dusty-btn);
  box-shadow: 0 0 0 3px rgba(192,132,160,0.15);
}
.input-invalid { border-color: #f87171 !important; }
.pw-wrap {
  position: relative;
}
.pw-wrap input { padding-right: 44px; }
.pw-toggle {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; padding: 4px;
  color: var(--color-muted); opacity: 0.55; transition: opacity 0.15s;
  display: flex; align-items: center;
}
.pw-toggle:hover { opacity: 1; }
.input-error { color: #ef4444; font-size: 12px; margin-top: 4px; min-height: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
textarea { resize: vertical; min-height: 80px; }

/* ── Alerts ──────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 16px;
}
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.hidden { display: none !important; }

/* ── Header ──────────────────────────────────────────────────── */
.site-header {
  position: relative;
  min-height: 140px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--rose-100) 0%, var(--rose-200) 50%, var(--rose-50) 100%);
}
.header-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(24px) brightness(0.85) saturate(1.3);
  transform: scale(1.1);
  opacity: 0.7;
}
.header-bg-default { background: linear-gradient(135deg, var(--gradient-main,#fce7f3), #fbcfe8, #fdf2f8); filter: none; }
.header-wave {
  position: absolute; bottom: 0; left: 0; right: 0;
  line-height: 0;
}
.header-wave svg { width: 100%; height: 48px; }
.header-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  padding: 20px 20px 44px;
  text-align: center;
}
.header-avatar-wrap {
  margin-bottom: 12px;
}
.header-avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: 0 8px 30px rgba(74,32,64,0.2);
}
.header-avatar-placeholder {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  border: 4px solid white;
  box-shadow: 0 8px 30px rgba(74,32,64,0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--dusty);
}
.header-greeting {
  font-size: 24px;
  color: var(--plum);
  text-shadow: 0 1px 3px rgba(255,255,255,0.5);
  margin-bottom: 4px;
}
.header-sub {
  color: var(--plum-mid);
  font-size: 14px;
  font-style: italic;
  opacity: 0.85;
}
.header-couple-name {
  font-size: 13px;
  color: white;
  font-style: normal;
  margin-top: 2px;
  background: rgba(0,0,0,0.18);
  padding: 3px 12px;
  border-radius: 50px;
  backdrop-filter: blur(4px);
}
.header-couple-name strong {
  font-weight: 700;
}
.header-nav {
  position: relative; z-index: 2;
  display: flex; gap: 4px; justify-content: center; flex-wrap: wrap;
  padding: 8px 20px 16px;
  background: var(--ivory);
}
.nav-link {
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  color: var(--plum-light);
  transition: background 0.15s, color 0.15s;
}
.nav-link:hover, .nav-link.active { background: var(--rose-100); color: var(--plum); }
.nav-logout { color: var(--text-light); }

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

/* ── Tabs ────────────────────────────────────────────────────── */
.tabs {
  display: flex; gap: 4px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border);
}
.tab-btn {
  padding: 10px 20px;
  background: none; border: none;
  font-size: 14px; font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}
.tab-btn.active { color: var(--plum); border-color: var(--dusty-btn); font-weight: 600; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── Photo Grid (Masonry) ────────────────────────────────────── */
.photo-grid {
  columns: 2;
  column-gap: 10px;
}
@media (min-width: 600px) { .photo-grid { columns: 3; } }
@media (min-width: 900px) { .photo-grid { columns: 4; } }

.photo-card {
  position: relative;
  break-inside: avoid;
  margin-bottom: 10px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.photo-card:hover { transform: scale(1.02); box-shadow: 0 6px 20px rgba(212,168,181,0.35); }
.photo-open {
  display: block; width: 100%;
  padding: 0; margin: 0; border: none; background: none;
  cursor: pointer; touch-action: manipulation;
}
.photo-thumb {
  width: 100%; display: block;
  object-fit: cover;
}
.photo-overlay {
  position: absolute; inset: 0;
  background: rgba(74,32,64,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 8px;
}
/* Hover nur auf Geräten die echten Hover unterstützen (Desktop/Maus) */
@media (hover: hover) {
  .photo-card:hover .photo-overlay { opacity: 1; pointer-events: auto; }
}
/* Manuell geöffnet (Mobile ⋯ Button) */
.photo-card.overlay-open .photo-overlay { opacity: 1; pointer-events: auto; }
/* Mobile: kleiner Menü-Button immer sichtbar */
.photo-card-menu {
  display: none;
  position: absolute; top: 6px; right: 6px; z-index: 2;
  background: rgba(255,255,255,0.85); border: none;
  border-radius: 50%; width: 30px; height: 30px;
  font-size: 16px; cursor: pointer; line-height: 1;
  align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
@media (hover: none) and (pointer: coarse) {
  .photo-card-menu { display: flex; }
}
.overlay-btn {
  background: rgba(255,255,255,0.9);
  border: none; border-radius: 50px;
  padding: 4px 10px; font-size: 12px; font-weight: 600;
  cursor: pointer; color: var(--plum);
  transition: background 0.15s;
}
.overlay-btn:hover { background: white; }
.overlay-btn.share-btn.shared { background: #86efac; }
.delete-btn:hover { background: #fecaca; color: #991b1b; }
.photo-uploader {
  position: absolute; bottom: 6px; left: 6px;
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.9);
  padding: 3px 8px 3px 3px;
  border-radius: 50px; font-size: 11px; color: var(--plum);
}
.uploader-avatar {
  width: 22px; height: 22px; border-radius: 50%; object-fit: cover;
}
.shared-badge {
  position: absolute; top: 6px; right: 6px;
  background: rgba(134,239,172,0.9);
  color: #166534; font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 50px;
}

/* ── Empty State ─────────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 48px 20px;
  color: var(--text-light);
}
.empty-icon { font-size: 48px; margin-bottom: 12px; }

/* ── FAB ─────────────────────────────────────────────────────── */
.fab-wrap {
  position: fixed; bottom: 80px; right: 20px;
  z-index: 100;
}
.fab-main {
  width: 60px; height: 60px;
  background: var(--dusty-btn);
  border: none; border-radius: 50%;
  color: white; cursor: pointer;
  box-shadow: 0 6px 20px rgba(192,132,160,0.5);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, background 0.15s;
}
.fab-main:hover { background: var(--dusty-hover); transform: scale(1.08); }
.fab-menu {
  position: absolute; bottom: 70px; right: 0;
  display: flex; flex-direction: column; gap: 8px; align-items: flex-end;
  opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s;
}
.fab-menu.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.fab-item {
  background: white; color: var(--plum);
  padding: 10px 18px; border-radius: 50px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  box-shadow: 0 4px 14px var(--shadow);
  white-space: nowrap;
  transition: background 0.15s;
}
.fab-item:hover { background: var(--rose-100); }

/* ── Upload Progress ─────────────────────────────────────────── */
.upload-progress {
  position: fixed; bottom: 16px; left: 50%;
  transform: translateX(-50%);
  background: white; border-radius: var(--radius);
  padding: 16px 24px; min-width: 260px;
  box-shadow: 0 8px 30px rgba(74,32,64,0.15);
  text-align: center; z-index: 200;
  border: 1px solid var(--border);
}
.upload-progress-bar {
  height: 4px; background: var(--rose-200);
  border-radius: 2px; margin-bottom: 8px;
  position: relative; overflow: hidden;
}
.upload-progress-bar::after {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--dusty-btn);
  animation: progress-shimmer 1.2s infinite;
}
@keyframes progress-shimmer { to { left: 100%; } }
#upload-status { font-size: 14px; color: var(--plum-mid); margin: 0; }

/* ── Lightbox ────────────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0;
  z-index: 300;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-backdrop {
  position: absolute; inset: 0;
  background: rgba(20,8,16,0.94);
}
.lightbox-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  max-width: calc(100vw - 120px);
  max-height: 100vh;
  padding: 60px 0 40px;
}
.lightbox img {
  max-width: 100%; max-height: calc(100vh - 100px);
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  display: block;
  user-select: none;
}
.lightbox-close {
  position: absolute; top: 16px; right: 20px; z-index: 2;
  background: rgba(255,255,255,0.15); border: none;
  color: white; font-size: 20px; width: 40px; height: 40px;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  background: rgba(255,255,255,0.12); border: none;
  color: white; font-size: 36px; width: 52px; height: 52px;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
  line-height: 1;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.28); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-counter {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 2;
  color: rgba(255,255,255,0.55); font-size: 13px; font-weight: 500;
  letter-spacing: 0.05em;
}
@media (max-width: 600px) {
  .lightbox-inner { max-width: 100vw; padding: 50px 0 36px; }
  .lightbox-nav { width: 42px; height: 42px; font-size: 28px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* ── Auth Pages ──────────────────────────────────────────────── */
.auth-page {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: linear-gradient(160deg, var(--rose-100), var(--ivory));
}
.auth-card {
  background: white; border-radius: 24px;
  padding: 40px 32px; width: 100%; max-width: 420px;
  box-shadow: 0 8px 40px rgba(212,168,181,0.25);
  border: 1px solid var(--border);
}
.auth-logo { font-size: 48px; text-align: center; margin-bottom: 12px; }
.auth-title { text-align: center; font-size: 28px; margin-bottom: 4px; }
.auth-sub { text-align: center; color: var(--text-light); font-size: 14px; margin-bottom: 24px; }
.auth-form { margin-top: 8px; }

/* ── Join / Onboarding ───────────────────────────────────────── */
.join-page {
  flex: 1; min-height: 100vh;
  background: linear-gradient(160deg, var(--rose-100) 0%, var(--rose-200) 40%, var(--ivory) 100%);
}
.onboarding-overlay {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(74,32,64,0.3);
  backdrop-filter: blur(6px);
  z-index: 50; padding: 20px;
}
.onboarding-card {
  background: white; border-radius: 24px;
  padding: 32px 28px; width: 100%; max-width: 420px;
  box-shadow: 0 20px 60px rgba(74,32,64,0.2);
  max-height: 90vh; overflow-y: auto;
}
.steps-indicator {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; margin-bottom: 28px;
}
.step-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border); transition: background 0.3s, transform 0.3s;
}
.step-dot.active { background: var(--dusty-btn); transform: scale(1.3); }
.step-dot.done   { background: var(--dusty); }
.step-line { flex: 1; max-width: 40px; height: 2px; background: var(--border); }
.step-panel { display: none; animation: slide-in 0.3s ease; }
.step-panel.active { display: block; }
@keyframes slide-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }
.step-icon { font-size: 48px; text-align: center; margin-bottom: 12px; }
.step-title { text-align: center; font-size: 24px; margin-bottom: 6px; }
.step-sub { text-align: center; color: var(--text-light); font-size: 14px; margin-bottom: 20px; }

/* Kamera */
.camera-preview-wrap {
  width: 100%; aspect-ratio: 1;
  max-width: 240px; margin: 0 auto 16px;
  border-radius: 50%; overflow: hidden;
  background: var(--rose-50); border: 3px solid var(--dusty);
  display: flex; align-items: center; justify-content: center;
}
.camera-video, .photo-preview { width: 100%; height: 100%; object-fit: cover; }
.camera-placeholder { color: var(--dusty); }
.camera-buttons { display: flex; flex-direction: column; gap: 8px; }

/* ── Dashboard ───────────────────────────────────────────────── */
.dashboard-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 12px; margin-bottom: 24px;
}
.section-title { font-size: 26px; margin-bottom: 2px; }
.section-sub { color: var(--text-light); font-size: 14px; }

.guest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 600px) {
  .guest-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
.guest-card {
  background: white; border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  cursor: pointer; position: relative;
  box-shadow: 0 2px 10px var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.guest-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(212,168,181,0.3);
}
.guest-card-photo {
  aspect-ratio: 1; overflow: hidden;
  background: var(--color-light);
  position: relative;
}
.guest-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.guest-avatar-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 48px; color: var(--dusty);
  background: linear-gradient(135deg, var(--color-light), var(--color-border));
}
.guest-avatar-placeholder.large { font-size: 64px; height: 100px; width: 100px; border-radius: 50%; }
.guest-card-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.68) 0%, rgba(0,0,0,0.2) 70%, transparent 100%);
  padding: 28px 10px 10px;
  display: flex; flex-direction: column; gap: 2px;
}
.guest-card-overlay-name {
  color: #fff; font-size: 14px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.guest-card-overlay-meta {
  color: rgba(255,255,255,0.78); font-size: 11px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.guest-name { font-size: 15px; color: var(--plum); margin-bottom: 2px; }
.guest-meta { font-size: 12px; color: var(--text-light); }

/* ── Couple Galerie-Detail ───────────────────────────────────── */
.breadcrumb { margin-bottom: 20px; font-size: 14px; }
.breadcrumb a { color: var(--dusty-btn); }
.guest-galerie-header {
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap; margin-bottom: 24px;
}
.guest-galerie-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  border: 3px solid var(--dusty);
}
.guest-galerie-avatar img { width: 100%; height: 100%; object-fit: cover; }
.galerie-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }

/* ── Settings Cards ──────────────────────────────────────────── */
.settings-card {
  background: white; border-radius: var(--radius);
  border: 1px solid var(--border); padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px var(--shadow);
}
.settings-card-title { font-size: 18px; margin-bottom: 16px; }
.qr-wrap { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.qr-image { width: 150px; height: 150px; border-radius: var(--radius-sm); border: 2px solid var(--border); }
.qr-url { font-size: 12px; color: var(--text-light); word-break: break-all; margin: 0 0 4px; }
.qr-expiry { font-size: 12px; color: var(--dusty-btn); }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  padding: 16px 20px;
  background: white; border-top: 1px solid var(--border);
  text-align: center;
  margin-top: auto;
}
.footer-storage {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  margin-bottom: 10px; flex-wrap: wrap;
}
.storage-label { font-size: 12px; color: var(--text-light); }
.storage-bar {
  width: 120px; height: 6px; background: var(--rose-100);
  border-radius: 3px; overflow: hidden;
}
.storage-bar-fill {
  height: 100%; background: var(--dusty-btn);
  border-radius: 3px; transition: width 0.3s;
}
.storage-text { font-size: 12px; color: var(--text-light); }
.footer-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; font-size: 13px; }
.footer-links a { color: var(--text-light); }
.footer-links a:hover { color: var(--dusty-btn); }
.footer-sep { color: var(--border); }
.footer-link-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-light); font-size: 13px; font-family: inherit;
  padding: 0;
}
.footer-link-btn:hover { color: var(--dusty-btn); }

/* ── Modals ──────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(74,32,64,0.5);
  backdrop-filter: blur(4px);
  z-index: 400;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: white; border-radius: 20px;
  padding: 32px; max-width: 480px; width: 100%;
  max-height: 80vh; overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(74,32,64,0.2);
}
.modal-box h2 { font-size: 22px; margin-bottom: 16px; }
.modal-box p { color: var(--text-mid); margin-bottom: 12px; font-size: 14px; line-height: 1.6; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: var(--rose-100); border: none; border-radius: 50%;
  width: 32px; height: 32px; cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--plum); transition: background 0.15s;
}
.modal-close:hover { background: var(--rose-200); }

/* ── Loading Spinner ─────────────────────────────────────────── */
.loading-spinner {
  width: 48px; height: 48px;
  border: 4px solid var(--rose-200);
  border-top-color: var(--dusty-btn);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 32px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Upload Hint ─────────────────────────────────────────────── */
.upload-hint {
  text-align: center; padding: 10px;
  color: var(--text-light); font-size: 14px;
  font-style: italic; margin-bottom: 16px;
}

/* ── Gallery Tabs ────────────────────────────────────────────── */
.gallery-tab-bar {
  display: flex;
  gap: 0;
  padding: 0 16px 12px;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}
.gtab-btn {
  flex: 1;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: #a0768a;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.gtab-btn.active { color: var(--color-primary,#c084a0); border-bottom-color: var(--color-primary,#c084a0); }
.gtab-badge {
  font-size: 11px;
  background: var(--gradient-main,#fce7f3);
  color: var(--color-primary,#c084a0);
  border-radius: 50px;
  padding: 1px 7px;
  font-weight: 700;
}

/* ── Share Toggle Button ─────────────────────────────────────── */
.share-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 50px;
  border: 1.5px solid #d4a8b5;
  background: transparent;
  color: #a0768a;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.share-toggle-btn.active {
  background: var(--gradient-main,#fce7f3);
  border-color: var(--color-primary,#c084a0);
  color: var(--color-primary,#c084a0);
}
.btn-download-shared {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary,#c084a0);
  background: var(--color-light,#fce7f3);
  border: 1px solid var(--color-border,#f0c0d4);
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn-download-shared:hover { opacity: 0.8; }

/* ── Vote Button ─────────────────────────────────────────────── */
.vote-btn {
  position: absolute;
  bottom: 6px;
  right: 6px;
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
  color: #a0768a;
  cursor: pointer;
  transition: all 0.15s;
  z-index: 2;
  touch-action: manipulation;
}
.vote-btn.voted { color: #e11d48; }
.vote-btn:active { transform: scale(0.92); }

/* ── Photo Uploader Label ────────────────────────────────────── */
.photo-uploader {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4px 8px;
  font-size: 11px;
  color: #fff;
  background: linear-gradient(transparent, rgba(74,32,64,0.6));
  border-radius: 0 0 8px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Lightbox Zoom ───────────────────────────────────────────── */
.lightbox-inner { overflow: hidden; }
#lightbox-img { transform-origin: center center; cursor: zoom-in; }

/* ── Lightbox Video ──────────────────────────────────────────── */
#lightbox-video {
  max-width: 100%; max-height: calc(100vh - 100px);
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  display: block; outline: none;
  background: #000;
}

/* ── Video-Thumbnail in Grid ─────────────────────────────────── */
.video-thumb-wrap {
  position: relative; display: block; width: 100%;
}
.video-thumb-wrap video {
  width: 100%; display: block;
  object-fit: cover; aspect-ratio: 4/3;
  pointer-events: none;
}
.video-play-icon {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0,0,0,0.52);
  backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  color: white; pointer-events: none;
  transition: background 0.18s, transform 0.18s;
}
.photo-open:hover .video-play-icon { background: rgba(0,0,0,0.75); transform: translate(-50%, -50%) scale(1.1); }
.video-type-badge {
  position: absolute; bottom: 5px; right: 5px;
  background: rgba(0,0,0,0.58); color: #fff;
  font-size: 10px; font-weight: 600; letter-spacing: 0.04em;
  padding: 2px 6px; border-radius: 4px; pointer-events: none;
}

/* ── Wedding Admin Cards ─────────────────────────────────────── */
.wedding-card-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wedding-card-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.wc-btn {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}
.wc-btn-pink { border: 1.5px solid #d4a8b5; color: var(--color-primary,#c084a0); }
.wc-btn-red  { border: 1.5px solid #fca5a5; color: #ef4444; }
.wc-btn-green{ border: 1.5px solid #bbf7d0; color: #166534; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 480px) {
  .auth-card { padding: 28px 16px; overflow-x: hidden; }
  .onboarding-card { padding: 24px 20px; }
  .settings-card { padding: 18px; }
  .dashboard-header { flex-direction: column; }
  .galerie-actions { width: 100%; }
  .wedding-card {
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .wedding-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .wedding-card-actions form { margin: 0; }
  .wc-btn {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
  }
}

/* ── WhatsApp Icon Button (dezent) ────────────────────────────────────────── */
.btn-icon-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  color: #25d366;
  background: transparent;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.btn-icon-wa:hover {
  background: rgba(37, 211, 102, 0.1);
  transform: scale(1.1);
}

/* ── Subtle Icon Button ──────────────────────────────────────────────────── */
.btn-icon-subtle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  color: var(--color-muted, #67818a);
  background: transparent;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.btn-icon-subtle:hover {
  background: var(--color-light, #ecfeff);
  color: var(--color-primary, #0891b2);
}

/* ── Page Content ────────────────────────────────────────────────────────── */
.page-content {
  padding: 16px;
  max-width: 900px;
  margin: 0 auto;
}
