/* ═══════════════════════════════════════════════════════════
   Noémi & Dani Esküvő — Teljes Design Rendszer
   Romantic Dark Theme · Gold & Rose Palette · Glassmorphism
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,400&family=Inter:wght@300;400;500&display=swap');

/* ─── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
img, video { max-width: 100%; display: block; image-orientation: from-image; }
button { cursor: pointer; font-family: inherit; }
a { color: inherit; }

/* ─── DESIGN TOKENS ─────────────────────────────────────── */
:root {
  --bg:          #09071a;
  --bg2:         #120d28;
  --surface:     rgba(255,255,255,0.04);
  --surface-hov: rgba(255,255,255,0.07);
  --border:      rgba(255,255,255,0.08);
  --border-gold: rgba(201,168,76,0.35);

  --gold:        #C9A84C;
  --gold-lt:     #E8C96A;
  --gold-dk:     #9A7A30;
  --rose:        #D4849A;
  --rose-lt:     #F0B4C4;

  --text:        #F0E8D8;
  --text-muted:  rgba(240,232,216,0.5);
  --text-dim:    rgba(240,232,216,0.3);

  --danger:      #E85070;
  --success:     #50C878;
  --info:        #5BBFEE;

  --radius:      18px;
  --radius-sm:   10px;
  --radius-xs:   6px;

  --shadow:      0 8px 40px rgba(0,0,0,0.5);
  --shadow-gold: 0 4px 24px rgba(201,168,76,0.25);

  --ease:        cubic-bezier(0.4,0,0.2,1);
  --dur:         0.28s;
}

/* ─── BASE ──────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: radial-gradient(ellipse at 20% 10%, #1a0d30 0%, #09071a 55%, #0d0a20 100%);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Subtle grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ─── TYPOGRAPHY ────────────────────────────────────────── */
.serif { font-family: 'Cormorant Garamond', Georgia, serif; }

.couple-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.amp {
  font-style: italic;
  color: var(--rose);
}

.wedding-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ─── LAYOUT ─────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
  position: relative;
  z-index: 1;
}

/* ─── NAV ────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(9,7,26,0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-heart { color: var(--rose); font-size: 1.2rem; animation: heartbeat 2.5s ease infinite; }
.nav-title { font-size: 1.1rem; font-weight: 400; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-link {
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  font-size: 0.85rem;
  font-weight: 400;
  text-decoration: none;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
  color: var(--text-muted);
}

.nav-link:hover { background: var(--surface-hov); color: var(--text); }
.nav-link-gold  { color: var(--gold); }
.nav-link-gold:hover { background: rgba(201,168,76,0.1); }
.nav-link-muted { color: var(--text-dim); }

/* ─── CARD / GLASS ──────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  padding: 36px;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.card:hover {
  background: var(--surface-hov);
  border-color: var(--border-gold);
}

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 24px 60px;
  gap: 12px;
}

.heart-icon {
  font-size: 2.5rem;
  color: var(--rose);
  animation: float 3s ease-in-out infinite;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 420px;
  line-height: 1.7;
  margin-top: 8px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--gold);
  width: 100%;
  max-width: 280px;
  margin: 4px 0;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
}

.divider::before { background: linear-gradient(90deg, transparent, var(--gold)); }
.divider::after  { background: linear-gradient(90deg, var(--gold), transparent); }

/* ─── SECTION HEADERS ────────────────────────────────────── */
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 4px;
}

.section-sub { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 24px; }

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 40px 0 24px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: all var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  transition: opacity 0.15s;
}

.btn:hover::after { opacity: 0.06; }
.btn:active::after { opacity: 0.12; }

.btn-full { width: 100%; padding: 14px; }
.btn-sm   { padding: 8px 16px; font-size: 0.8rem; }
.btn-xs   { padding: 6px 10px; font-size: 0.75rem; border-radius: var(--radius-xs); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dk) 100%);
  color: #0a0814;
  font-weight: 600;
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-lt) 0%, var(--gold) 100%);
  box-shadow: 0 6px 32px rgba(201,168,76,0.4);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-gold);
  color: var(--gold);
}
.btn-ghost:hover { background: rgba(201,168,76,0.1); }

.btn-danger {
  background: rgba(232,80,112,0.12);
  border-color: rgba(232,80,112,0.35);
  color: var(--danger);
}
.btn-danger:hover { background: rgba(232,80,112,0.22); }

.btn-success {
  background: rgba(80,200,120,0.12);
  border-color: rgba(80,200,120,0.35);
  color: var(--success);
}
.btn-success:hover { background: rgba(80,200,120,0.22); }

.btn-info {
  background: rgba(91,191,238,0.12);
  border-color: rgba(91,191,238,0.35);
  color: var(--info);
}
.btn-info:hover { background: rgba(91,191,238,0.22); }

.btn-icon { font-size: 0.8rem; }

/* ─── INPUT ──────────────────────────────────────────────── */
.input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 15px 18px;
  color: var(--text);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: all var(--dur) var(--ease);
  outline: none;
}

.input:focus {
  border-color: var(--gold);
  background: rgba(201,168,76,0.05);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}

.input::placeholder { color: var(--text-dim); }

/* ─── ALERT ──────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-error {
  background: rgba(232,80,112,0.12);
  border: 1px solid rgba(232,80,112,0.3);
  color: #ff8fab;
}

.alert-success {
  background: rgba(80,200,120,0.12);
  border: 1px solid rgba(80,200,120,0.3);
  color: #7ded9f;
}

/* ─── BADGE ──────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.badge-gold {
  background: rgba(201,168,76,0.18);
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.28);
}

/* ─── PROGRESS ───────────────────────────────────────────── */
.progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt));
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* ─── COMPACT MOBILE UPLOAD PAGE ────────────────────────── */
.page-upload-compact {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.nav-compact {
  padding: 10px 20px;
  background: rgba(9, 7, 26, 0.85);
}

.upload-screen {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px 32px;
  position: relative;
  z-index: 1;
}

.upload-box {
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.heart-icon-wrap {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 6px;
}

.heart-icon-svg {
  width: 32px;
  height: 32px;
  color: var(--rose);
  animation: float 3s ease-in-out infinite;
}

.nav-heart-svg {
  width: 18px;
  height: 18px;
  color: var(--rose);
  animation: heartbeat 2.5s ease infinite;
}

.icon-inline {
  width: 15px;
  height: 15px;
  vertical-align: -2px;
  margin-right: 5px;
  display: inline-block;
}

.icon-btn-xs {
  width: 12px;
  height: 12px;
  vertical-align: -1px;
  margin-right: 4px;
  display: inline-block;
}

.icon-camera {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  flex-shrink: 0;
}

.icon-success-svg {
  width: 36px;
  height: 36px;
  color: var(--success);
}

.icon-error-svg {
  width: 24px;
  height: 24px;
  color: var(--danger);
  flex-shrink: 0;
}

.icon-empty-svg {
  width: 52px;
  height: 52px;
  stroke: var(--text-dim);
  margin-bottom: 12px;
}

.icon-sparkle-svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
}

.couple-names-compact {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 7vw, 3.2rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin-bottom: 4px;
}

.wedding-date-compact {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.88rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.hero-text-compact {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
  font-weight: 300;
}

.upload-action-wrap {
  margin: 20px 0 16px;
}

.upload-trigger-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.btn-upload-main {
  width: 100%;
  padding: 16px 24px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 14px;
  box-shadow: 0 6px 28px rgba(201, 168, 76, 0.35);
  animation: pulseGold 2.5s infinite;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-upload-main:active {
  transform: scale(0.98);
}

.upload-box.drag-active {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
  transform: scale(1.01);
}

@keyframes pulseGold {
  0%, 100% { box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3); transform: scale(1); }
  50% { box-shadow: 0 8px 32px rgba(201, 168, 76, 0.55); transform: scale(1.015); }
}

.btn-sparkle {
  color: #fff;
  font-size: 0.9rem;
  margin-left: 4px;
}

.dz-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.overall-compact {
  margin: 16px 0;
  text-align: left;
}

.overall-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.overall-counter {
  color: var(--gold);
  font-weight: 500;
}

.progress-bar-lg {
  height: 8px;
  border-radius: 4px;
}

.success-compact {
  flex-direction: column;
  text-align: center;
  padding: 20px 16px;
  gap: 6px;
  margin-top: 12px;
}

.success-icon {
  font-size: 2rem;
  color: var(--success);
  margin-bottom: 2px;
}

.success-text strong {
  font-size: 1.05rem;
  color: #7ded9f;
}

.success-text span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.error-compact {
  text-align: left;
  padding: 14px 16px;
  font-size: 0.84rem;
  line-height: 1.5;
  margin-top: 12px;
}

.upload-screen-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.footer-link-compact {
  font-size: 0.82rem;
  color: var(--gold);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.footer-link-compact:hover {
  color: var(--gold-lt);
}
.dz-btn { pointer-events: none; }
.dz-types { margin-top: 16px; color: var(--text-dim); font-size: 0.78rem; }

/* ─── FILE LIST ──────────────────────────────────────────── */
.file-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }

.dz-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color var(--dur) var(--ease);
}

.dz-preview.dz-success { border-color: rgba(80,200,120,0.4); }
.dz-preview.dz-error   { border-color: rgba(232,80,112,0.4); }

.dz-thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface-hov);
}

.dz-details { flex: 1; min-width: 0; }
.dz-filename { font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dz-filesize { font-size: 0.75rem; color: var(--text-muted); }

.dz-status-icon { font-size: 1.2rem; flex-shrink: 0; }
.dz-remove { color: var(--text-dim); background: none; border: none; font-size: 1.2rem; flex-shrink: 0; padding: 0 4px; transition: color var(--dur); }
.dz-remove:hover { color: var(--danger); }

.overall-wrap { margin-top: 16px; }
.overall-label { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 6px; }
.overall-counter { color: var(--gold); }

/* ─── MEDIA GRID ─────────────────────────────────────────── */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.media-card {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  position: relative;
  aspect-ratio: 1;
}

.media-card:hover {
  border-color: var(--border-gold);
  transform: scale(1.025);
  box-shadow: var(--shadow);
  z-index: 2;
}

.media-card img,
.media-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
}

.play-overlay svg { width: 44px; height: 44px; fill: white; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6)); }

.play-overlay-sm svg { width: 32px; height: 32px; }

.card-size {
  position: absolute;
  bottom: 6px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  color: rgba(255,255,255,0.7);
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
}

/* ─── FILTER PILLS ───────────────────────────────────────── */
.filter-pills { display: flex; gap: 6px; }

.pill {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}

.pill:hover { border-color: var(--border-gold); color: var(--text); }

.pill.active {
  background: rgba(201,168,76,0.15);
  border-color: var(--gold);
  color: var(--gold);
}

/* ─── EMPTY STATE ────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 24px;
}

.empty-state-sm { padding: 40px 24px; }

/* ─── LIGHTBOX ───────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,0.96);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 80px;
}

.lightbox.open { display: flex; }

.lb-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  overflow: hidden;
}

.lb-content img,
.lb-content video {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 6px;
}

.lb-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--dur) var(--ease);
}

.lb-close:hover { background: rgba(255,255,255,0.2); }

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: white;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}

.lb-nav:hover { background: rgba(255,255,255,0.18); transform: translateY(-50%) scale(1.05); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

.lb-footer {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
}

.lb-counter { color: rgba(255,255,255,0.5); font-size: 0.85rem; }

/* ─── ADMIN ──────────────────────────────────────────────── */
.admin-settings-card {
  margin-bottom: 24px;
  background: var(--surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 24px 28px;
}

.admin-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.setting-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.setting-label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.95rem;
}

.setting-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.input-select {
  background: rgba(18, 13, 40, 0.9);
  color: var(--gold-lt);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  outline: none;
}

.input-select option {
  background: #120d28;
  color: var(--text);
}

.admin-section { margin-bottom: 64px; padding-top: 20px; }

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

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

.admin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all var(--dur) var(--ease);
}

.admin-card:hover { border-color: var(--border-gold); }
.admin-card-live { border-color: rgba(80,200,120,0.2); }

.admin-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
}

.admin-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-thumb-video { position: relative; width: 100%; height: 100%; }
.admin-thumb-size { position: absolute; bottom: 6px; right: 8px; background: rgba(0,0,0,0.65); color: rgba(255,255,255,0.7); font-size: 0.68rem; padding: 2px 6px; border-radius: 4px; }

.admin-actions {
  display: flex;
  gap: 4px;
  padding: 8px;
  flex-wrap: wrap;
}

/* ─── TOAST ──────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: rgba(20,15,40,0.95);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  color: var(--text);
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 0.875rem;
  z-index: 1000;
  transition: transform 0.3s var(--ease), opacity 0.3s;
  pointer-events: none;
  opacity: 0;
  white-space: nowrap;
}

.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.toast-ok    { border-color: rgba(80,200,120,0.4); color: #7ded9f; }
.toast.toast-error { border-color: rgba(232,80,112,0.4); color: #ff8fab; }

/* ─── LOGIN PAGE ─────────────────────────────────────────── */
.page-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }

.login-wrap { width: 100%; max-width: 420px; position: relative; z-index: 1; }

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(24px);
  padding: 40px 36px;
}

.login-hero { text-align: center; margin-bottom: 24px; }

.login-title { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 400; margin-bottom: 4px; }
.login-sub   { color: var(--text-muted); font-size: 0.82rem; margin-bottom: 24px; }

.field-wrap { margin-bottom: 16px; }

.divider-line {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  margin: 16px auto 24px;
  width: fit-content;
}

.login-footer { margin-top: 20px; text-align: center; }

.back-link { color: var(--text-dim); font-size: 0.82rem; text-decoration: none; transition: color var(--dur); }
.back-link:hover { color: var(--text-muted); }

/* ─── SLIDESHOW ──────────────────────────────────────────── */
.page-slideshow { background: #000; overflow: hidden; }

.ss-stage {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ss-slot {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1.2s ease;
}

.ss-slot img,
.ss-slot video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ss-overlay {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.ss-qr-wrap { text-align: center; }

.ss-qr {
  background: white;
  padding: 8px;
  border-radius: 8px;
  display: inline-block;
}

.ss-qr-label {
  color: rgba(255,255,255,0.6);
  font-size: 0.7rem;
  margin-top: 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ss-counter {
  background: rgba(0,0,0,0.55);
  color: rgba(255,255,255,0.65);
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 16px;
}

/* Firestick-barát kilépés gomb (nagy célterület) */
.ss-exit {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 200;
  background: rgba(0,0,0,0.5);
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.15);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.25s;
}

.ss-exit:hover { background: rgba(0,0,0,0.8); color: white; border-color: rgba(255,255,255,0.4); }

/* Loading state */
.ss-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255,255,255,0.7);
  z-index: 10;
}

.ss-loading-heart { font-size: 3rem; color: var(--rose); animation: heartbeat 2s ease infinite; }
.ss-loading-text  { font-family: 'Cormorant Garamond', serif; font-size: 2.5rem; color: rgba(255,255,255,0.8); }
.ss-loading-sub   { color: rgba(255,255,255,0.4); font-size: 0.9rem; letter-spacing: 0.08em; }

/* Empty state */
.ss-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 10;
}

.ss-empty-heart { font-size: 4rem; color: var(--rose); animation: float 3s ease-in-out infinite; }
.ss-empty-title { font-family: 'Cormorant Garamond', serif; font-size: 3.5rem; color: rgba(255,255,255,0.85); }
.ss-empty-date  { font-family: 'Cormorant Garamond', serif; font-size: 1rem; letter-spacing: 0.35em; text-transform: uppercase; color: rgba(255,255,255,0.4); }
.ss-empty-sub   { color: rgba(255,255,255,0.4); font-size: 0.9rem; margin-top: 8px; }

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14%      { transform: scale(1.15); }
  28%      { transform: scale(1); }
  42%      { transform: scale(1.1); }
  56%      { transform: scale(1); }
}

@keyframes shimmer {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

.fade-up   { animation: fadeUp var(--dur) ease forwards; }
.fade-up-1 { animation-delay: 0.08s; opacity: 0; }
.fade-up-2 { animation-delay: 0.16s; opacity: 0; }
.fade-up-3 { animation-delay: 0.26s; opacity: 0; }

/* ─── SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(201,168,76,0.45); }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .media-grid  { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .admin-grid  { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .hero        { padding: 60px 16px 40px; }
  .card        { padding: 24px; }
  .nav         { padding: 12px 16px; }
  .nav-title   { display: none; }
  .lb-nav      { width: 42px; height: 42px; font-size: 1rem; }
  .lb-prev     { left: 8px; }
  .lb-next     { right: 8px; }
  .page-header { flex-direction: column; }
  .header-actions { width: 100%; justify-content: space-between; }
}

@media (max-width: 480px) {
  .container { padding: 0 14px 60px; }
  .couple-names { font-size: clamp(2.4rem, 10vw, 3.5rem); }
  .login-card { padding: 28px 22px; }
}
