/* ═══════════════════════════════════════════════════════════
   Noémi & Dani Esküvő — Természetes Zsályazöld & Bézs Design Rendszer
   Eucalyptus / Sage Green · Warm Beige · Botanical Wedding Style
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Montserrat:wght@300;400;500;600&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 (Bézs & Zsályazöld paletta) ──────────── */
:root {
  /* Alapok: Meleg bézs és elefántcsont */
  --bg:            #F7F4EE;
  --bg-gradient:   radial-gradient(ellipse at 50% 10%, #FAF8F4 0%, #F5F1E8 55%, #ECE5D8 100%);
  --surface:       rgba(255, 255, 255, 0.92);
  --surface-hov:   rgba(255, 255, 255, 0.98);
  --border:        rgba(110, 133, 110, 0.2);
  --border-sage:   rgba(95, 118, 95, 0.45);
  --border-light:  rgba(200, 190, 175, 0.4);

  /* Zsályazöld (Sage) árnyalatok */
  --sage:          #637A63;
  --sage-dk:       #4A5D4A;
  --sage-lt:       #869D86;
  --sage-mist:     #B7C7B5;
  --sage-wash:     #EBF1EA;

  /* Bézs és homok kiegészítők */
  --beige:         #E8DFD1;
  --beige-lt:      #F5EFEB;
  --sand:          #D8CCBC;
  --gold-warm:     #968B6A;

  /* Tipográfia színek: Sötét grafit és erdei zöld */
  --text:          #242D25;
  --text-muted:    #5E6D5F;
  --text-dim:      #8D9C8E;

  /* Rendszer visszajelzések */
  --danger:        #B34045;
  --danger-bg:     #FDF0F0;
  --success:       #3F784C;
  --success-bg:    #EEF7F0;
  --info:          #4B7996;

  /* Radii & Shadows */
  --radius:        20px;
  --radius-sm:     12px;
  --radius-xs:     8px;

  --shadow:        0 10px 32px rgba(74, 93, 74, 0.08);
  --shadow-sage:   0 6px 24px rgba(99, 122, 99, 0.28);
  --shadow-card:   0 16px 40px rgba(60, 75, 60, 0.09);

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

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

body {
  min-height: 100vh;
  background: var(--bg-gradient);
  color: var(--text);
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Finom papír/akvarell textúra hatás */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 10% 10%, rgba(134, 157, 134, 0.06) 0%, transparent 40%),
                    radial-gradient(circle at 90% 90%, rgba(183, 199, 181, 0.08) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
}

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

/* ─── TYPOGRAPHY ────────────────────────────────────────── */
.script-font {
  font-family: 'Alex Brush', cursive;
}

.serif {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.couple-names {
  font-family: 'Alex Brush', cursive;
  font-size: clamp(3.2rem, 9vw, 5.8rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
  letter-spacing: 0.02em;
}

.amp {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  color: var(--sage);
  margin: 0 4px;
}

.wedding-date {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sage-dk);
  font-weight: 500;
}

/* ─── LAYOUT ─────────────────────────────────────────────── */
.container {
  max-width: 1140px;
  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(247, 244, 238, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  gap: 16px;
}

.nav-compact {
  padding: 12px 24px;
}

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

.nav-heart-svg {
  width: 20px;
  height: 20px;
  color: var(--sage);
  animation: heartbeat 2.8s ease infinite;
}

.nav-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.03em;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-xs);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--dur) var(--ease);
  color: var(--text-muted);
  border: 1px solid transparent;
}

.nav-link:hover {
  background: var(--surface);
  color: var(--sage-dk);
  border-color: var(--border);
}

.nav-link-gold {
  color: var(--sage-dk);
  background: var(--sage-wash);
  border-color: var(--border-sage);
}

.nav-link-gold:hover {
  background: var(--sage);
  color: #fff;
}

.nav-link-muted {
  color: var(--text-dim);
}

/* ─── CARD / WHITE ENVELOPE ──────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 36px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.card:hover {
  border-color: var(--border-sage);
  box-shadow: 0 20px 48px rgba(74, 93, 74, 0.12);
}

/* ─── SECTION HEADERS ────────────────────────────────────── */
.section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

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

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 36px 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: 8px;
  padding: 11px 22px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: all var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-sizing: border-box;
}

.btn svg,
.btn .icon-camera,
.btn .icon-inline {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
  vertical-align: middle;
}

.btn-full {
  width: 100%;
  padding: 12px 20px;
  min-height: 48px;
}

.btn-sm   { padding: 7px 14px; min-height: 36px; font-size: 0.84rem; }
.btn-xs   { padding: 5px 10px; min-height: 28px; font-size: 0.78rem; border-radius: var(--radius-xs); }

/* Fő Zsályazöld Gomb (korábban btn-gold) */
.btn-gold {
  background: linear-gradient(135deg, var(--sage) 0%, var(--sage-dk) 100%);
  color: #FFFFFF;
  font-weight: 500;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sage);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--sage-lt) 0%, var(--sage) 100%);
  box-shadow: 0 8px 28px rgba(74, 93, 74, 0.35);
  transform: translateY(-1px);
}

.btn-gold:active {
  transform: translateY(0);
}

.btn-ghost {
  background: #FFFFFF;
  border-color: var(--border-sage);
  color: var(--sage-dk);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-ghost:hover {
  background: var(--sage-wash);
  border-color: var(--sage);
  color: var(--sage-dk);
}

.btn-danger {
  background: var(--danger-bg);
  border-color: rgba(179, 64, 69, 0.3);
  color: var(--danger);
}
.btn-danger:hover {
  background: #FCE6E6;
  border-color: var(--danger);
}

.btn-success {
  background: var(--success-bg);
  border-color: rgba(63, 120, 76, 0.35);
  color: var(--success);
}
.btn-success:hover {
  background: #E0F2E3;
  border-color: var(--success);
}

.btn-info {
  background: #EFF6FB;
  border-color: rgba(75, 121, 150, 0.35);
  color: var(--info);
}
.btn-info:hover {
  background: #E2EFF7;
}

/* ─── INPUT MEZŐK ────────────────────────────────────────── */
.input {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid var(--border-sage);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: all var(--dur) var(--ease);
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.input:focus {
  border-color: var(--sage);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(99, 122, 99, 0.16);
}

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

/* ─── ALERTEK ────────────────────────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
}

.alert-error {
  background: var(--danger-bg);
  border-color: rgba(179, 64, 69, 0.25);
  color: var(--danger);
}

.alert-success {
  background: var(--success-bg);
  border-color: rgba(63, 120, 76, 0.25);
  color: var(--success);
}

/* ─── BADGE ──────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-gold {
  background: var(--sage-wash);
  color: var(--sage-dk);
  border: 1px solid var(--border-sage);
}

/* ─── PROGRESS BAR ───────────────────────────────────────── */
.progress-bar {
  height: 6px;
  background: rgba(110, 133, 110, 0.15);
  border-radius: 3px;
  overflow: hidden;
}

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

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

/* ─── KOMPAKT MOBIL FELTÖLTŐ OLDAL ───────────────────────── */
.page-upload-compact {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-screen {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 18px;
  position: relative;
  z-index: 1;
}

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

/* Botanikus sarokdíszítés a kártyán */
.upload-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sage-mist), var(--sage), var(--sage-mist));
  border-radius: var(--radius) var(--radius) 0 0;
}

.hero-compact {
  margin-bottom: 14px;
}

.wedding-motif-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 6px;
}

.wedding-motif-img {
  max-width: 235px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 3px 10px rgba(99, 122, 99, 0.08));
}

.wedding-date-compact {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-dk);
  font-weight: 600;
  margin-bottom: 8px;
}

.hero-text-compact {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
  font-weight: 400;
}

.upload-action-wrap {
  margin: 14px 0 10px;
}

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

.btn-upload-main {
  width: 100%;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 12px;
  box-shadow: var(--shadow-sage);
  animation: pulseSage 2.8s 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(--sage);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px var(--sage-wash);
}

@keyframes pulseSage {
  0%, 100% { box-shadow: 0 4px 18px rgba(74, 93, 74, 0.22); transform: scale(1); }
  50% { box-shadow: 0 8px 30px rgba(74, 93, 74, 0.4); transform: scale(1.015); }
}

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

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

.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(--sage-dk);
  font-weight: 600;
}

.success-compact {
  flex-direction: column;
  text-align: center;
  padding: 22px 18px;
  gap: 8px;
  margin-top: 12px;
}

.success-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #E0F2E3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 4px;
}

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

.success-text strong {
  font-size: 1.05rem;
  color: var(--success);
  font-weight: 600;
}

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

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

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

.footer-link-compact {
  font-size: 0.84rem;
  color: var(--sage-dk);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--dur) var(--ease);
}

.footer-link-compact:hover {
  color: var(--sage);
  text-decoration: underline;
}

/* ─── MEDIA GRID (Galéria & Admin) ───────────────────────── */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.media-card {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  position: relative;
  aspect-ratio: 1;
}

.media-card:hover {
  border-color: var(--sage);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 28px rgba(74, 93, 74, 0.16);
  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(36, 45, 37, 0.35);
  transition: background var(--dur);
}

.media-card:hover .play-overlay {
  background: rgba(36, 45, 37, 0.2);
}

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

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

.card-size {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(36, 45, 37, 0.75);
  color: #FFFFFF;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

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

.pill {
  padding: 8px 18px;
  border-radius: 24px;
  border: 1px solid var(--border-sage);
  background: #FFFFFF;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}

.pill:hover {
  border-color: var(--sage);
  color: var(--sage-dk);
  background: var(--sage-wash);
}

.pill.active {
  background: var(--sage);
  border-color: var(--sage);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(99, 122, 99, 0.3);
}

/* ─── EMPTY STATE ────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px dashed var(--border-sage);
}

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

.empty-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

/* ─── LIGHTBOX ───────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(26, 33, 27, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  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: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

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

.lb-close:hover { background: rgba(255,255,255,0.3); transform: scale(1.05); }

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #FFFFFF;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  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.28); transform: translateY(-50%) scale(1.08); }
.lb-prev { left: 24px; }
.lb-next { right: 24px; }

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

.lb-counter { color: rgba(255,255,255,0.75); font-size: 0.9rem; font-weight: 500; }

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

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

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

.setting-label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.95rem;
  color: var(--text);
}

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

.input-select {
  background: #FFFFFF;
  color: var(--sage-dk);
  border: 1px solid var(--border-sage);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.92rem;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  outline: none;
}

.input-select:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(99, 122, 99, 0.16);
}

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

.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(190px, 1fr)); }

.admin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: all var(--dur) var(--ease);
}

.admin-card:hover { border-color: var(--border-sage); box-shadow: 0 8px 24px rgba(74, 93, 74, 0.12); }
.admin-card-live { border-color: rgba(63, 120, 76, 0.35); }

.admin-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--sage-wash);
}

.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(36, 45, 37, 0.75);
  color: #FFFFFF;
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 4px;
}

.admin-actions {
  display: flex;
  gap: 6px;
  padding: 10px;
  flex-wrap: wrap;
  background: #FFFFFF;
}

/* ─── TOAST ──────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #FFFFFF;
  border: 1px solid var(--border-sage);
  box-shadow: 0 12px 36px rgba(40, 50, 40, 0.16);
  color: var(--text);
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  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: var(--success); color: var(--success); }
.toast.toast-error { border-color: var(--danger); color: var(--danger); }

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

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

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(24px);
  padding: 44px 36px;
  text-align: center;
  position: relative;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sage-mist), var(--sage), var(--sage-mist));
  border-radius: var(--radius) var(--radius) 0 0;
}

.login-hero { margin-bottom: 20px; }
.login-title { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 500; margin-bottom: 4px; }
.login-sub   { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 24px; }

.divider-line {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage);
  margin: 12px auto 20px;
}

.field-wrap { margin-bottom: 18px; }
.login-footer { margin-top: 22px; }

.back-link {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 500;
  transition: color var(--dur);
}
.back-link:hover { color: var(--sage-dk); text-decoration: underline; }

/* ─── SLIDESHOW ──────────────────────────────────────────── */
.page-slideshow {
  background: #182019; /* Mély zöldes-fekete háttér a kivetítőn a legszebb kontraszthoz */
  overflow: hidden;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.ss-stage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #182019;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ss-slot {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1s ease;
  overflow: hidden;
}

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

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

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

.ss-qr {
  background: #FFFFFF;
  padding: 8px;
  border-radius: 10px;
  display: inline-block;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.ss-qr-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.72rem;
  margin-top: 6px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

.ss-counter {
  background: rgba(24, 32, 25, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  padding: 5px 14px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
}

/* ─── SLIDESHOW VEZÉRLŐK (ALSÓ SÁV, TV-BIZTOS ELHELYEZÉS) ───── */
.ss-bottom-controls {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.4s ease, visibility 0.4s;
}

.ss-control-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(24, 32, 25, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FAF8F4;
  padding: 10px 18px;
  border-radius: 24px;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  outline: none;
}

.ss-control-btn svg {
  width: 18px !important;
  height: 18px !important;
}

.ss-control-btn:hover {
  background: rgba(99, 122, 99, 0.65);
  border-color: #FFFFFF;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74, 93, 74, 0.4);
}

.ss-control-btn:focus,
.ss-control-btn:focus-visible {
  background: rgba(99, 122, 99, 0.9) !important;
  border-color: #FFFFFF !important;
  color: #FFFFFF !important;
  outline: 3px solid #FFFFFF !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.7), 0 8px 32px rgba(74, 93, 74, 0.6) !important;
  transform: scale(1.06) !important;
}

.page-slideshow.is-fullscreen .ss-bottom-controls.ss-controls-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ss-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.9);
  z-index: 10;
}

.ss-loading-text {
  font-family: 'Alex Brush', cursive;
  font-size: 3.5rem;
  color: #FFFFFF;
}

.ss-loading-sub {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

.ss-empty {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  z-index: 10;
  text-align: center;
}

.ss-empty-img {
  max-width: 360px;
  width: 80vw;
  height: auto;
  margin-bottom: 8px;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.5));
}

.ss-empty-date {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sage-mist);
  font-weight: 600;
  margin-bottom: 12px;
}

.ss-empty-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.2rem, 3.2vw, 1.8rem);
  font-weight: 500;
  color: #FFFFFF;
  text-align: center;
  margin-bottom: 6px;
  line-height: 1.4;
}

.ss-empty-sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  margin-bottom: 22px;
  text-align: center;
}

.ss-empty-qr-box {
  background: #FFFFFF;
  padding: 14px;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ss-empty-qr img,
.ss-empty-qr canvas {
  width: 260px !important;
  height: 260px !important;
  display: block;
}

/* ─── ANIMÁCIÓK ──────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@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); }
}

.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.24s; opacity: 0; }

/* ─── SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar       { width: 7px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--sage-mist); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--sage); }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .media-grid  { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .admin-grid  { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); }
  .nav         { padding: 12px 18px; }
  .nav-title   { display: none; }
  .page-header { flex-direction: column; gap: 14px; }
  .header-actions { width: 100%; justify-content: space-between; }
  .lb-nav      { width: 44px; height: 44px; }
  .lb-prev     { left: 10px; }
  .lb-next     { right: 10px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px 60px; }
  .couple-names { font-size: clamp(2.6rem, 12vw, 3.8rem); }
  .login-card { padding: 32px 22px; }
}
