/* Wedding invite — sand / beach palette, iOS-style modals, mobile tab bar */

:root {
  --bg-deep: #dccbb5;
  --bg-card: rgba(255, 251, 244, 0.92);
  --ivory: #2a231c;
  --muted: #6e6256;
  --gold: #a67c3d;
  --gold-dim: rgba(166, 124, 61, 0.38);
  --green: #5c5348;
  /* Όρια & σκιές για ανοιχτό φόντο */
  --line-faint: rgba(42, 35, 28, 0.07);
  --line-soft: rgba(42, 35, 28, 0.1);
  --line-medium: rgba(42, 35, 28, 0.14);
  --line-strong: rgba(42, 35, 28, 0.2);
  --shadow-ambient: rgba(62, 48, 36, 0.12);
  --shadow-deep: rgba(45, 36, 28, 0.18);
  --radius-lg: 1.25rem;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Outfit", system-ui, sans-serif;
  --tabbar-h: calc(4.25rem + env(safe-area-inset-bottom, 0px));
  /* Ύψος κινητής μπάρας διαχείρισης + safe area (για padding περιεχομένου από κάτω) */
  --admin-mtabbar-h: calc(4.45rem + env(safe-area-inset-bottom, 0px));
  --admin-mtabbar-content-gap: 2rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  background:
    radial-gradient(120% 90% at 50% -10%, #faf6ef 0%, #efe4d4 38%, var(--bg-deep) 72%),
    linear-gradient(180deg, #e8dcc8 0%, #d2c0a8 100%);
  color: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

body.overflow-hidden {
  overflow: hidden;
}

.font-serif {
  font-family: var(--font-serif);
}

.text-ivory {
  color: var(--ivory) !important;
}

.text-muted-custom {
  color: var(--muted) !important;
}

.text-gold {
  color: var(--gold) !important;
}

.letter-space-sm {
  letter-spacing: 0.28em;
  font-size: 0.72rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--gold);
}

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

/* Φωτο-πύλη ανοιχτή: χωρίς grain (πάνω στο #e4e4e4 μοιάζει με λεπτή σκιά/ψηφιακό θόρυβο) */
body.page-invite:has(#videoGate.video-gate--photo-envelope:not(.is-hidden)) .grain {
  opacity: 0;
}

/* Φωτογραφία φόντου (public/assets/img/weddingbackground.jpg) — από πίσω, περιεχόμενο ημιδιαφανές από πάνω */
.site-wedding-bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: #c9b49a;
  background-image: url("../img/weddingbackground.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

@media (max-width: 768px) {
  .site-wedding-bg {
    background-attachment: scroll;
  }
}

.site-wedding-bg__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 95% 85% at 50% 35%, rgba(255, 248, 238, 0.55) 0%, rgba(236, 224, 206, 0.78) 55%, rgba(214, 196, 172, 0.88) 100%),
    linear-gradient(180deg, rgba(252, 247, 238, 0.35) 0%, rgba(220, 202, 178, 0.55) 100%);
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

/* Κατά το άνοιγμα της πύλης: κρύβουμε φωτό φόντο + scrim ώστε να φαίνεται η πρόσκληση (χωρίς διπλό overlay) */
body.page-invite.invite-gate-revealing .site-wedding-bg,
body.page-invite.invite-gate-revealing .site-wedding-bg__scrim {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.48s ease,
    visibility 0.48s ease;
}

body.page-invite.invite-gate-revealing .grain {
  opacity: 0;
  transition: opacity 0.45s ease;
}

body.page-invite.invite-gate-revealing {
  background-color: #e4e4e4;
  transition: background-color 0.55s ease;
}

body.page-invite.invite-gate-revealing #videoGate.video-gate--envelope-only {
  background-image: none !important;
  background-color: transparent !important;
  transition:
    background-color 0.6s ease,
    background-image 0.6s ease;
}

body.page-invite.invite-gate-revealing #videoGate.video-gate--envelope-only::before {
  opacity: 0 !important;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

body.page-invite.invite-gate-revealing .video-gate__inner--photo-envelope {
  background-color: transparent;
  transition: background-color 0.58s ease;
}

body.page-invite.invite-gate-revealing .video-gate__inner--photo-envelope .video-gate__saranya,
body.page-invite.invite-gate-revealing .video-gate__inner--photo-envelope .video-gate__envelope-overlay {
  background-color: transparent;
  transition: background-color 0.55s ease;
}

body.page-invite.invite-gate-revealing #videoGate .video-gate__intro--envelope,
body.page-invite.invite-gate-revealing #videoGate .video-gate__paper-lines {
  opacity: 0 !important;
  visibility: hidden !important;
  transition:
    opacity 0.36s ease,
    visibility 0.36s ease;
}

/*
 * Φωτο-φάκελος: κρατάμε wedding bg ορατό κατά το άνοιγμα — αλλιώς κρύβεται από το generic rule πάνω
 * και μένει μόνο το #e4e4e4 του body για όλη τη διάρκεια wings+flash (~2s).
 */
body.page-invite.invite-gate-revealing:has(#videoGate.video-gate--photo-envelope) .site-wedding-bg,
body.page-invite.invite-gate-revealing:has(#videoGate.video-gate--photo-envelope) .site-wedding-bg__scrim {
  opacity: 1 !important;
  visibility: visible !important;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

body.page-invite.invite-gate-revealing:has(#videoGate.video-gate--photo-envelope) .grain {
  transition: opacity 0.1s ease;
}

body.page-invite.invite-gate-revealing:has(#videoGate.video-gate--photo-envelope) {
  background-color: transparent !important;
  transition: background-color 0.1s ease;
}

body.page-invite.invite-gate-revealing:has(#videoGate.video-gate--photo-envelope) #videoGate.video-gate--envelope-only {
  transition:
    background-color 0.1s ease,
    background-image 0.1s ease;
}

body.page-invite.invite-gate-revealing:has(#videoGate.video-gate--photo-envelope) #videoGate.video-gate--envelope-only::before {
  transition: opacity 0.1s ease;
}

body.page-invite.invite-gate-revealing:has(#videoGate.video-gate--photo-envelope) .video-gate__inner--photo-envelope,
body.page-invite.invite-gate-revealing:has(#videoGate.video-gate--photo-envelope) .video-gate__inner--photo-envelope .video-gate__saranya,
body.page-invite.invite-gate-revealing:has(#videoGate.video-gate--photo-envelope) .video-gate__inner--photo-envelope .video-gate__envelope-overlay {
  transition: background-color 0.1s ease;
}

/* Λευκά κονφετί πίσω από το περιεχόμενο (πρόσκληση) */
.invite-confetti {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  contain: strict;
}

.invite-confetti__piece {
  --invite-confetti-drift: 0px;
  position: absolute;
  top: -24px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 1px rgba(255, 255, 255, 0.45);
  opacity: 0;
  animation-name: invite-confetti-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform, opacity;
}

@keyframes invite-confetti-fall {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0;
  }
  6% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(110vh) translateX(var(--invite-confetti-drift)) rotate(480deg);
    opacity: 0.45;
  }
}

@media (prefers-reduced-motion: reduce) {
  .invite-confetti__piece {
    animation: none;
    opacity: 0;
    visibility: hidden;
  }
}

body.page-invite,
body.page-home-landing,
body.page-admin-login {
  background: transparent;
}

.page-admin-login__main {
  position: relative;
  z-index: 2;
}

.site-logo--admin-login {
  max-height: none;
  max-width: min(88vw, var(--site-logo-max-width, 180px));
  margin-bottom: 0;
  opacity: 0.97;
  filter: drop-shadow(0 2px 12px var(--shadow-ambient));
}

.page-admin-login__card.section-card {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72) inset,
    0 2px 4px rgba(45, 36, 28, 0.06),
    0 16px 40px -8px rgba(45, 36, 28, 0.28),
    0 28px 64px -16px rgba(45, 36, 28, 0.22);
}

.page-invite main,
.page-invite .invite-header {
  position: relative;
  z-index: 2;
}

/* Να μην κόβονται τα polaroid που ξεχειλίζουν από το max-width του main */
.page-invite main.pb-tabbar {
  overflow-x: visible;
  overflow-y: visible;
  margin-top: clamp(1rem, 3vw, 1.85rem);
}

/* Κοινό πλάτος στήλης κεφαλίδας / κάρτας αρχικής · ίδιο offset με main στο desktop (sidebar) */
body.page-invite {
  --invite-sidebar-offset: 0px;
  --invite-pad-x: 1rem;
  --invite-hero-col: min(26.5rem, 100%);
}

@media (min-width: 992px) {
  body.page-invite {
    --invite-sidebar-offset: 17.5rem;
    --invite-pad-x: 1.5rem;
  }
}

/* Πάνω στη φωτογραφία φόντου: πιο διαφανείς επιφάνειες (glass) */
body.page-home-landing .home-landing__card {
  background: linear-gradient(165deg, rgba(255, 252, 246, 0.82) 0%, rgba(245, 234, 218, 0.78) 100%);
  border-color: var(--line-medium);
}

body.page-invite .invite-home-card {
  background: linear-gradient(160deg, rgba(255, 251, 244, 0.88) 0%, rgba(238, 226, 210, 0.82) 100%);
  border-color: var(--line-medium);
}

body.page-invite .countdown-pill {
  background: rgba(255, 248, 238, 0.72);
  border-color: rgba(166, 124, 61, 0.32);
}

body.page-invite .section-card {
  background: rgba(255, 250, 242, 0.78);
  border-color: var(--line-soft);
}

/* Τραπέζι δεξίωσης — Λεπτομέρειες εκδήλωσης */
body.page-invite .invite-reception-table-wrap {
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(166, 124, 61, 0.38);
  box-shadow: 0 6px 22px rgba(62, 42, 18, 0.08);
}

/* QR τραπεζιού (table_collect) — ίδια αμμώδης αισθητική με την πρόσκληση, χωρίς κεφαλίδα/tabbar */
body.page-invite.page-table-collect .page-table-collect__main {
  position: relative;
  z-index: 2;
}

body.page-invite.page-table-collect .page-table-collect__inner {
  width: 100%;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

body.page-invite.page-table-collect .page-table-collect__logo {
  max-height: 3rem;
  width: auto;
  filter: drop-shadow(0 2px 10px var(--shadow-ambient));
}

body.page-invite .invite-reception-table-notice {
  --bs-table-bg: transparent;
  --bs-table-color: inherit;
  margin-bottom: 0;
}

body.page-invite .invite-reception-table-notice > :not(caption) > * > * {
  padding: 0.75rem 1rem;
  border-color: rgba(166, 124, 61, 0.25);
}

body.page-invite .invite-reception-table-notice__head {
  background: linear-gradient(180deg, rgba(212, 184, 122, 0.28) 0%, rgba(255, 248, 236, 0.55) 100%);
  font-size: 1.05rem;
  font-weight: 600;
  color: #3d3428;
  border-bottom-color: rgba(166, 124, 61, 0.35) !important;
}

body.page-invite .invite-reception-table-notice__body {
  font-size: 0.95rem;
  line-height: 1.55;
  background: rgba(255, 252, 246, 0.92);
}

body.page-invite .invite-reception-table-notice__value {
  display: inline-block;
  margin-top: 0.2rem;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

body.page-invite .mobile-tabbar {
  background: rgba(250, 242, 230, 0.94);
  border-top-color: var(--line-medium);
  box-shadow: 0 -8px 28px var(--shadow-ambient);
}

body.page-invite .invite-desktop-nav__ambient {
  background:
    radial-gradient(ellipse 130% 65% at 0% 18%, rgba(166, 124, 61, 0.12) 0%, transparent 58%),
    radial-gradient(ellipse 90% 55% at 100% 95%, rgba(196, 168, 130, 0.28) 0%, transparent 52%),
    linear-gradient(168deg, rgba(255, 251, 244, 0.94) 0%, rgba(240, 228, 210, 0.92) 45%, rgba(228, 212, 190, 0.95) 100%);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
}

body.page-invite .invite-desktop-nav__you {
  background: rgba(166, 124, 61, 0.1);
}

/* ——— Invite header: ίδιο οριζόντιο inset με το main ώστε να ευθυγραμμίζεται με την κάρτα ——— */
.invite-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  text-align: center;
  padding-top: max(clamp(1.25rem, 4vw, 2rem), env(safe-area-inset-top, 0px));
  padding-bottom: clamp(1rem, 2.5vw, 1.5rem);
  /* Ίδιο αριστερό inset με το main (.pb-tabbar): offset sidebar + περιθώριο κειμένου */
  padding-left: max(var(--invite-sidebar-offset), var(--invite-pad-x), env(safe-area-inset-left, 0px));
  padding-right: max(var(--invite-pad-x), env(safe-area-inset-right, 0px));
  box-sizing: border-box;
  background: rgba(255, 251, 244, 0.92);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
}

.invite-header__inner {
  max-width: var(--invite-hero-col);
  margin-left: auto;
  margin-right: auto;
}

.invite-header__eyebrow {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  /* letter-spacing αφήνει κενό δεξιά — μικρή αντιστάθμιση για οπτικό κέντρο */
  padding-left: 0.28em;
  padding-right: 0.28em;
}

.invite-header__title {
  font-size: clamp(2rem, 7vw, 3.35rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.invite-header__welcome {
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: var(--invite-hero-col);
  margin-left: auto;
  margin-right: auto;
}

.invite-header__logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.65rem;
  padding: 0.45rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid var(--line-medium);
  background: rgba(255, 252, 246, 0.65);
  transition:
    color 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    transform 0.15s ease;
}

.invite-header__logout-icon {
  flex-shrink: 0;
  opacity: 0.85;
}

.invite-header__logout:hover {
  color: var(--ivory);
  border-color: rgba(166, 124, 61, 0.45);
  background: rgba(166, 124, 61, 0.12);
}

.invite-header__logout:active {
  transform: scale(0.98);
}

@media (min-width: 992px) {
  .invite-header__logout {
    display: none;
  }
}

/* Buttons */
.btn-gold {
  --bs-btn-color: #1a1f1a;
  --bs-btn-bg: var(--gold);
  --bs-btn-border-color: var(--gold);
  --bs-btn-hover-bg: #d4b56e;
  --bs-btn-hover-border-color: #d4b56e;
  --bs-btn-active-bg: #b8934f;
  --bs-btn-active-border-color: #b8934f;
  font-weight: 500;
}

.btn-outline-gold {
  --bs-btn-color: var(--gold);
  --bs-btn-border-color: var(--gold-dim);
  --bs-btn-hover-bg: rgba(166, 124, 61, 0.14);
  --bs-btn-hover-color: var(--ivory);
  --bs-btn-hover-border-color: var(--gold);
}

.btn-pill {
  border-radius: 999px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Video gate */
@keyframes video-gate-bg-shift {
  0%,
  100% {
    background-position: 0% 40%;
  }
  50% {
    background-position: 100% 60%;
  }
}

@keyframes video-gate-intro-in {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes video-gate-envelope-overlay-slide {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(calc(100% + min(12vh, 5rem)));
    opacity: 0;
  }
}

/* Saranya Mohan / CodePen OJMqBLQ — 3D flap + invitation card lift */
@keyframes video-gate-env-flap-open {
  0% {
    transform: perspective(640px) rotateX(0deg);
    z-index: 30;
  }
  99.99% {
    transform: perspective(640px) rotateX(180deg);
    z-index: 30;
  }
  100% {
    transform: perspective(640px) rotateX(180deg);
    z-index: 2;
  }
}

@keyframes video-gate-envelope-shell-in {
  from {
    opacity: 0;
    visibility: hidden;
  }
  to {
    opacity: 1;
    visibility: visible;
  }
}

@keyframes video-gate-envelope-overlay-fadeout {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes video-gate-shine {
  0% {
    transform: translateX(-120%) skewX(-18deg);
  }
  100% {
    transform: translateX(220%) skewX(-18deg);
  }
}

.video-gate {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right))
    max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
  background:
    radial-gradient(ellipse 120% 80% at 50% 20%, rgba(166, 124, 61, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 90% 60% at 80% 90%, rgba(120, 90, 50, 0.12) 0%, transparent 50%),
    linear-gradient(165deg, #2c241c 0%, #1a1511 42%, #0f0d0b 100%);
  background-size: 100% 100%, 100% 100%, 200% 200%;
  background-position: 0 0, 0 0, 0% 40%;
  transition: opacity 0.55s ease, visibility 0.55s;
}

@media (prefers-reduced-motion: no-preference) {
  .video-gate:not(.video-gate--envelope-only) {
    animation: video-gate-bg-shift 22s ease-in-out infinite;
  }
}

/*
 * Προσκλητήριο: πλήρης οθόνη, z-index 1990 — πάνω από κύριο περιεχόμενο, κάτω από #videoGate (2000).
 */
.invite-splash.invite-splash--layer {
  position: fixed;
  inset: 0;
  z-index: 1990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(0.65rem, env(safe-area-inset-top)) max(0.65rem, env(safe-area-inset-right))
    max(0.65rem, env(safe-area-inset-bottom)) max(0.65rem, env(safe-area-inset-left));
  overflow: auto;
  overscroll-behavior: contain;
  background: rgba(14, 12, 11, 0.58);
  transition: opacity 0.38s ease, visibility 0.38s ease;
}

/* Μόνο κεντράρισμα εικόνας — χωρίς σκούρο πλαίσιο / inset shadow */
.invite-splash--layer .invite-splash__dialog {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, var(--invite-splash-max-width, 420px));
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  /* κλικ «δίπλα» στην εικόνα φτάνουν στο .invite-splash--layer για dismiss */
  pointer-events: none;
}

/* Reflective S-curve gallery (Αναμνήσεις) */
.invite-gallery-curve {
  position: relative;
  margin-inline: calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
  touch-action: pan-y;
}

.invite-gallery-curve__canvas {
  display: block;
  width: 100%;
  height: auto;
  min-height: 320px;
  cursor: grab;
  border-radius: 0;
  background: transparent;
}

.invite-gallery-curve__canvas:active {
  cursor: grabbing;
}

.invite-gallery-curve__hint {
  text-align: center;
  margin-top: 0.65rem;
  padding-inline: 1rem;
}

.invite-splash--layer .invite-splash__img {
  display: block;
  width: auto;
  max-width: min(94vw, var(--invite-splash-max-width, 420px));
  height: auto;
  max-height: min(86dvh, 920px);
  margin-inline: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  box-shadow: none;
  pointer-events: auto;
}

.invite-splash--layer .invite-splash__close {
  position: fixed;
  top: max(0.55rem, env(safe-area-inset-top));
  right: max(0.55rem, env(safe-area-inset-right));
  z-index: 2;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.65rem;
  min-height: 2.65rem;
  padding: 0 0.35rem;
  border: 1px solid rgba(255, 248, 240, 0.4);
  border-radius: 999px;
  background: rgba(12, 10, 9, 0.88);
  color: #faf6f0;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.invite-splash--layer .invite-splash__close:hover {
  background: rgba(32, 28, 24, 0.95);
  border-color: rgba(255, 248, 240, 0.6);
}

.invite-splash--layer.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.page-invite.invite-splash-active {
  overflow: hidden;
}

/* Messenger / Instagram in-app browser — προτροπή για Safari ή Chrome */
.invite-meta-iab-bar:not([hidden]) {
  display: block !important;
}

.invite-meta-iab-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2600;
  padding: max(0.45rem, env(safe-area-inset-top)) max(0.65rem, env(safe-area-inset-right)) 0.55rem
    max(0.65rem, env(safe-area-inset-left));
  background: linear-gradient(180deg, #1c1917 0%, #2a2522 100%);
  color: #faf7f0;
  border-bottom: 1px solid rgba(255, 250, 245, 0.12);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
}

.invite-meta-iab-bar__inner {
  max-width: 42rem;
  margin: 0 auto;
}

.invite-meta-iab-bar__text {
  margin: 0 0 0.6rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  text-align: center;
  color: rgba(250, 247, 240, 0.92);
}

.invite-meta-iab-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  align-items: center;
}

.invite-meta-iab-bar__dismiss {
  color: rgba(250, 247, 240, 0.55) !important;
  text-decoration: none;
  border: 0 !important;
}

.invite-meta-iab-bar__dismiss:hover {
  color: rgba(250, 247, 240, 0.85) !important;
}

@media (prefers-reduced-motion: reduce) {
  .invite-splash--layer {
    transition-duration: 0.01ms;
  }
}

.video-gate.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Άνοιγμα προς τον ιστότοπο: λάμψη φωτός πάνω από τον φάκελο, το περιεχόμενο εξαφανίζεται */
@keyframes invite-gate-flash-layer {
  0% {
    opacity: 0;
    visibility: visible;
  }
  12% {
    opacity: 1;
  }
  38% {
    opacity: 0.94;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes invite-gate-inner-vanish {
  0% {
    opacity: 1;
    filter: brightness(1);
  }
  22% {
    opacity: 1;
    filter: brightness(1.06);
  }
  58% {
    opacity: 0;
    filter: brightness(1.12);
    visibility: hidden;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes invite-gate-flash-layer-reduce {
  0% {
    opacity: 0;
    visibility: visible;
  }
  45% {
    opacity: 0.55;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes invite-gate-inner-vanish-reduce {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

.video-gate--envelope-only.video-gate--close-zoom {
  pointer-events: none;
}

.video-gate--envelope-only.video-gate--close-zoom .video-gate__media-block {
  overflow: hidden;
}

.video-gate--envelope-only.video-gate--photo-envelope.video-gate--close-zoom .video-gate__media-block {
  overflow: visible !important;
}

.video-gate--envelope-only.video-gate--close-zoom .video-gate__media-stack--envelope-only {
  transform-origin: 50% 48%;
  will-change: transform;
  animation: invite-gate-close-zoom-stack 1.1s cubic-bezier(0.26, 0.88, 0.28, 1) forwards;
}

/* Φωτο-envelope: ΚΑΜΙΑ παλιά κίνηση overlay/slide ή zoom stack (νίκησε specificity του RevSlider-style CSS) */
.video-gate--envelope-only.video-gate--photo-envelope .video-gate__envelope-overlay {
  animation: none !important;
  transform: none !important;
  opacity: 1 !important;
  will-change: auto !important;
}

.video-gate--envelope-only.video-gate--photo-envelope.video-gate--close-zoom .video-gate__media-stack--envelope-only {
  animation: none !important;
  transform: none !important;
  will-change: auto !important;
}

.video-gate--envelope-only.video-gate--close-zoom .video-gate__intro--envelope {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.42s ease, transform 0.42s ease;
  pointer-events: none;
}

.video-gate--envelope-only.video-gate--close-zoom .video-gate__actions {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

/* Ήπια «άνοιγμα» καπακιού κατά το zoom (από ήδη ανοιχτή θέση) */
@keyframes invite-gate-flap-accent {
  0% {
    transform: perspective(640px) rotateX(180deg);
    z-index: 2;
  }
  45% {
    transform: perspective(640px) rotateX(198deg);
    z-index: 30;
  }
  100% {
    transform: perspective(640px) rotateX(180deg);
    z-index: 2;
  }
}

@keyframes invite-gate-close-zoom-stack {
  0% {
    transform: scale(1) translateY(0);
  }
  100% {
    transform: scale(2.12) translateY(-2.5%);
  }
}

.video-gate--envelope-only.video-gate--close-zoom .video-gate__saranya-flap {
  animation: invite-gate-flap-accent 0.58s cubic-bezier(0.38, 0.9, 0.32, 1) 0.06s both;
}

@media (prefers-reduced-motion: reduce) {
  .video-gate--envelope-only.video-gate--close-zoom .video-gate__media-stack--envelope-only {
    animation: none;
    transform: none;
  }

  .video-gate--envelope-only.video-gate--close-zoom .video-gate__saranya-flap {
    animation: none;
    transform: perspective(640px) rotateX(180deg);
    z-index: 2;
  }

  .video-gate--envelope-only.video-gate--close-zoom .video-gate__intro--envelope {
    opacity: 0;
    transform: none;
  }

  .video-gate--envelope-only.video-gate--close-zoom .video-gate__paper-lines {
    transform: none;
  }

  .video-gate--envelope-only.video-gate--close-zoom .video-gate__saranya-stage--photo-wings .video-gate__envelope-wing {
    transform: none;
    transition: none;
  }
}

.video-gate--envelope-only.video-gate--flash-reveal {
  pointer-events: none;
}

.video-gate--envelope-only.video-gate--flash-reveal .video-gate__inner {
  animation: invite-gate-inner-vanish 0.88s cubic-bezier(0.32, 0.72, 0.28, 1) forwards;
  will-change: opacity, filter;
}

.video-gate--envelope-only.video-gate--flash-reveal::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  background: radial-gradient(ellipse 120% 90% at 50% 42%, #ffffff 0%, #fffaf4 42%, rgba(255, 244, 232, 0.92) 100%);
  opacity: 0;
  visibility: hidden;
  animation: invite-gate-flash-layer 0.88s cubic-bezier(0.22, 0.85, 0.36, 1) forwards;
  will-change: opacity;
}

/* Φωτο-φάκελος: flash + εξαφάνιση inner στο ~JS 400+380ms — όχι 0.88s×2 */
.video-gate--envelope-only.video-gate--photo-envelope.video-gate--flash-reveal .video-gate__inner {
  animation: invite-gate-inner-vanish 0.38s cubic-bezier(0.32, 0.72, 0.28, 1) forwards;
}

.video-gate--envelope-only.video-gate--photo-envelope.video-gate--flash-reveal::after {
  animation: invite-gate-flash-layer 0.38s cubic-bezier(0.22, 0.85, 0.36, 1) forwards;
}

@media (max-width: 767.98px) {
  .video-gate--envelope-only.video-gate--photo-envelope.video-gate--flash-reveal .video-gate__inner {
    animation-duration: 0.56s;
  }

  .video-gate--envelope-only.video-gate--photo-envelope.video-gate--flash-reveal::after {
    animation-duration: 0.56s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-gate--envelope-only.video-gate--flash-reveal .video-gate__inner {
    animation: invite-gate-inner-vanish-reduce 0.32s ease-out forwards;
    filter: none;
  }

  .video-gate--envelope-only.video-gate--flash-reveal::after {
    animation: invite-gate-flash-layer-reduce 0.32s ease-out forwards;
    will-change: opacity;
  }
}

/* Μόνο φάκελος: ίδιο φόντο με .site-wedding-bg (invite.php) + ίδιο scrim με .site-wedding-bg__scrim */
.video-gate--envelope-only {
  padding: 0;
  align-content: stretch;
  background-color: #c9b49a;
  background-image: url("../img/weddingbackground.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  animation: none;
}

@media (max-width: 768px) {
  .video-gate--envelope-only {
    background-attachment: scroll;
  }
}

/* Φωτο-φάκελος: πλήρης οθόνη + γκρι φόντο #e4e4e4 — γεμίζει κενά· εξαφανίζεται με fade όταν ανοίγουν τα φτερά */
.video-gate.video-gate--envelope-only.video-gate--photo-envelope {
  place-items: stretch stretch;
  background-color: #e4e4e4;
  background-image: none;
  transition:
    background-color 0.22s ease,
    background-image 0.22s ease;
}

.video-gate.video-gate--envelope-only.video-gate--photo-envelope::before {
  opacity: 0;
  pointer-events: none;
}

.video-gate--envelope-only.video-gate--photo-envelope > .video-gate__inner.video-gate__inner--photo-envelope {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  gap: 0;
  width: 100%;
  min-height: 100%;
  height: 100%;
  max-height: none;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  align-content: stretch;
  justify-items: stretch;
  align-items: stretch;
  overflow: visible;
  background-color: #e4e4e4;
  transition: background-color 0.22s ease;
}

/* Χωρίς τις δύο χρυσές διαγώνιες γραμμές (SVG paper-lines) */
.video-gate__inner--photo-envelope .video-gate__paper-lines {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.video-gate__inner--photo-envelope .video-gate__media-block {
  grid-column: 1;
  grid-row: 1;
  align-self: stretch;
  justify-self: stretch;
  width: 100%;
  min-height: 0;
  height: 100%;
  max-height: none;
  padding-bottom: 0 !important;
  flex: none;
  justify-content: stretch;
}

/* Φωτο-φάκελος: όχι τίτλους στο gate — το intro έμενε κάτω από το media-block (z-index:1) και φαινόταν πίσω από τα φτερά */
.video-gate__inner--photo-envelope .video-gate__intro--envelope {
  display: none !important;
}

.video-gate__inner--photo-envelope .video-gate__actions {
  display: none !important;
}

.video-gate__inner--photo-envelope .video-gate__stage {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  align-self: stretch;
  /* Κεντράρισμα κάθετου: άφηνε μόνο «μία ζώνη» στη μέση — γέμισμα πλήρους ύψους */
  justify-content: flex-start;
  align-items: stretch;
}

.video-gate__inner--photo-envelope .video-gate__stage .video-gate__media-stack--envelope-only.video-gate__media-stack--photo-wings {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: 100%;
  max-height: none;
}

.video-gate__inner--photo-envelope .video-gate__media-stack--envelope-only.video-gate__media-stack--photo-wings > .video-gate__envelope-shell {
  height: 100%;
  min-height: 100%;
  max-height: none;
  width: 100%;
  max-width: 100%;
  filter: none !important;
  box-shadow: none !important;
}

.video-gate__inner--photo-envelope .video-gate__envelope-overlay,
.video-gate__inner--photo-envelope .video-gate__saranya {
  min-height: 100%;
  height: 100%;
  background-color: #e4e4e4;
  transition: background-color 0.65s ease;
}

.video-gate__inner--photo-envelope .video-gate__saranya-stage--photo-wings .video-gate__envelope-wing-img {
  min-height: 100%;
}

.video-gate--envelope-only::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.09) 0%, transparent 45%),
    radial-gradient(circle at 82% 78%, rgba(255, 255, 255, 0.06) 0%, transparent 40%),
    radial-gradient(ellipse 95% 85% at 50% 35%, rgba(255, 248, 238, 0.55) 0%, rgba(236, 224, 206, 0.78) 55%, rgba(214, 196, 172, 0.88) 100%),
    linear-gradient(180deg, rgba(252, 247, 238, 0.42) 0%, rgba(220, 202, 178, 0.58) 100%);
}

/* Γραμμές «πίσω φακέλου» + χαρτί (ίδιο *είδος* effect με line-art templates — χωρίς RevSlider) */
.video-gate--envelope-only .video-gate__paper-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.88;
  transition:
    opacity 0.55s ease,
    transform 0.75s cubic-bezier(0.28, 0.85, 0.32, 1);
}

.video-gate--envelope-only .video-gate__paper-lines-svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.35));
}

.video-gate--envelope-only .video-gate__media-block {
  position: relative;
  z-index: 1;
}

.video-gate--envelope-only .video-gate__intro--envelope {
  position: relative;
  z-index: 2;
}

.video-gate--envelope-only.video-gate--close-zoom .video-gate__paper-lines {
  opacity: 0;
  transform: scale(1.14);
}

.video-gate--envelope-only .video-gate__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  min-height: 100svh;
  padding: max(0.75rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
    max(0.75rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  box-sizing: border-box;
  justify-content: safe center;
  align-items: center;
  gap: clamp(0.75rem, 2.2vh, 1.5rem);
}

.video-gate--envelope-only .video-gate__intro--envelope .video-gate__eyebrow {
  color: var(--gold, #a67c3d);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.video-gate--envelope-only .video-gate__intro--envelope .video-gate__couple {
  color: var(--ivory, #2a231c);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

@media (min-width: 768px) {
  .video-gate--envelope-only .video-gate__inner {
    padding: max(1.1rem, env(safe-area-inset-top)) max(1.5rem, env(safe-area-inset-right))
      max(1.1rem, env(safe-area-inset-bottom)) max(1.5rem, env(safe-area-inset-left));
    gap: clamp(1rem, 2.8vh, 1.85rem);
  }
}

.video-gate__intro--envelope {
  max-width: 38rem;
  padding-inline: 0.35rem;
}

@media (max-width: 767.98px) {
  .video-gate__intro--envelope .video-gate__eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    margin-bottom: 0.3rem;
  }

  .video-gate__intro--envelope .video-gate__couple {
    font-size: clamp(1.2rem, 5.5vw, 1.82rem);
    line-height: 1.2;
  }
}

@media (min-width: 768px) {
  .video-gate__intro--envelope .video-gate__couple {
    font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  }
}

.video-gate__inner {
  width: min(96vw, 920px);
  padding: 0.5rem 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.65rem, 2.5vw, 1.1rem);
}

.video-gate__intro {
  text-align: center;
  max-width: 42rem;
  animation: video-gate-intro-in 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .video-gate__intro {
    animation: none;
    opacity: 1;
  }
}

.video-gate__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--gold, #c9a66b);
  text-shadow: 0 0 28px rgba(201, 166, 107, 0.35);
}

.video-gate__couple {
  margin: 0;
  font-size: clamp(1.5rem, 5vw, 2.35rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #f7f0e6;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 36px rgba(0, 0, 0, 0.45);
}

/* Χώρος κάτω για «Συνέχεια» */
.video-gate__media-block {
  position: relative;
  width: 100%;
  padding-bottom: 6.5rem;
}

.video-gate--envelope-only .video-gate__media-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  width: 100%;
  padding-bottom: max(5.25rem, calc(4.5rem + env(safe-area-inset-bottom)));
}

@media (max-width: 480px) {
  .video-gate__media-block {
    padding-bottom: 7.25rem;
  }

  .video-gate--envelope-only .video-gate__media-block {
    padding-bottom: max(5.5rem, calc(4.75rem + env(safe-area-inset-bottom)));
  }
}

/* Έναρξη όπως στο diseno1: μεγάλο play πάνω από τη σφραγίδα (RevSlider-style affordance) */
@keyframes invite-gate-play-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 2px rgba(255, 255, 255, 0.5),
      0 12px 40px rgba(0, 0, 0, 0.22);
  }
  50% {
    box-shadow:
      0 0 0 10px rgba(255, 255, 255, 0.08),
      0 18px 52px rgba(0, 0, 0, 0.3);
  }
}

.video-gate__play-hit {
  display: none;
}

/* Άνοιγμα: μόνο το λογότυπο (όχι play / χάπι / παλμός) */
.video-gate--envelope-only .video-gate__play-hit.video-gate__play-hit--logo {
  display: flex;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 36;
  width: auto;
  height: auto;
  min-width: min(88vw, 18rem);
  min-height: clamp(2.75rem, 14vw, 4.5rem);
  margin: 0;
  padding: clamp(0.2rem, 1.2vw, 0.45rem);
  border: none;
  border-radius: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition:
    transform 0.22s ease,
    opacity 0.28s ease,
    visibility 0.28s ease;
  animation: none;
}

.video-gate--envelope-only .video-gate__play-hit.video-gate__play-hit--logo:hover {
  transform: translate(-50%, -50%) scale(1.05);
}

.video-gate--envelope-only .video-gate__play-hit.video-gate__play-hit--logo:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 6px;
  border-radius: 0.35rem;
}

.video-gate--envelope-only .video-gate__play-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: min(78vw, var(--site-logo-max-width, 180px));
  max-width: min(78vw, var(--site-logo-max-width, 180px));
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.2)) drop-shadow(0 0 1px rgba(255, 255, 255, 0.6));
}

.video-gate--envelope-only.video-gate--photo-envelope .video-gate__play-logo {
  filter: none;
}

.video-gate--envelope-only.video-gate--close-zoom .video-gate__play-hit,
.video-gate--envelope-only.video-gate--flash-reveal .video-gate__play-hit {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .video-gate--envelope-only .video-gate__play-hit {
    animation: none;
  }
}

.video-gate__stage {
  width: 100%;
  overflow: visible;
}

.video-gate--envelope-only .video-gate__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: none;
}

/* Βίντεο + φάκελος μπροστά — grid ώστε overlay = ίδιο μέγεθος με το πλαίσιο βίντεο */
.video-gate__media-stack {
  --vg-env-shell-in-delay: 3.12s;
  /* Flap / letter after shell visible; slide after open motion */
  --vg-env-slide-delay: 5.55s;
  --vg-env-flap-delay: 3.38s;
  --vg-env-letter-delay: calc(3.38s + 0.5s);
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: 52rem;
  margin-inline: auto;
  min-height: min(58vh, 480px);
}

/* Μόνο φάκελος: σφραγίδα (settle → σχίσιμο) → καπάκι + σώμα· slide καθυστερεί για zoom/flash */
.video-gate__media-stack--envelope-only {
  --vg-env-shell-in-delay: 0.28s;
  --vg-env-seal-settle-start: calc(var(--vg-env-shell-in-delay) + 0.12s);
  --vg-env-seal-open-start: calc(var(--vg-env-seal-settle-start) + 0.52s + 0.1s);
  --vg-env-flap-delay: calc(var(--vg-env-seal-open-start) + 0.54s + 0.12s);
  --vg-env-slide-delay: 12s;
  position: relative;
  z-index: 0;
  display: grid;
  place-items: center;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  min-height: clamp(220px, 42vh, 420px);
}

@media (min-width: 768px) {
  .video-gate__media-stack--envelope-only {
    min-height: clamp(280px, min(48vh, calc(100svh - 20rem)), 520px);
  }
}

.video-gate__media-stack--envelope-only > .video-gate__envelope-shell {
  grid-area: 1 / 1;
  align-self: center;
  justify-self: center;
  width: min(100%, 400px);
  max-width: 100%;
  aspect-ratio: 5 / 3;
  min-height: 0;
  height: auto;
  max-height: min(42vh, 360px);
  min-width: 0;
  filter:
    drop-shadow(0 22px 48px rgba(0, 0, 0, 0.42))
    drop-shadow(0 10px 28px rgba(0, 0, 0, 0.28));
}

@media (min-width: 768px) {
  .video-gate__media-stack--envelope-only > .video-gate__envelope-shell {
    width: min(100%, 480px);
    max-height: min(46vh, 420px);
  }
}

/* Φωτο-envelope: μεγάλο κελί + κέλυφος πλήρους πλάτους/ύψους (όπως WID: αριστερά/δεξιά 100% height + cover) */
.video-gate__media-stack--envelope-only.video-gate__media-stack--photo-wings {
  place-items: stretch;
  min-height: clamp(300px, min(56svh, calc(100svh - 14rem)), 640px);
}

@media (min-width: 768px) {
  .video-gate__media-stack--envelope-only.video-gate__media-stack--photo-wings {
    min-height: clamp(340px, min(58svh, calc(100svh - 16rem)), 700px);
  }
}

.video-gate__media-stack--envelope-only.video-gate__media-stack--photo-wings > .video-gate__envelope-shell {
  width: 100%;
  max-width: 100%;
  aspect-ratio: unset;
  align-self: stretch;
  justify-self: stretch;
  height: min(70svh, 760px);
  min-height: min(50svh, 540px);
  max-height: min(80svh, 840px);
  filter: none !important;
  box-shadow: none !important;
}

@media (min-width: 768px) {
  .video-gate__media-stack--envelope-only.video-gate__media-stack--photo-wings > .video-gate__envelope-shell {
    height: min(66svh, 820px);
    min-height: min(46svh, 580px);
    max-height: min(76svh, 900px);
  }
}

.video-gate__media-stack > .video-gate__frame {
  grid-area: 1 / 1;
}

.video-gate__media-stack > .video-gate__media-veil {
  grid-area: 1 / 1;
}

.video-gate__media-stack > .video-gate__envelope-shell {
  grid-area: 1 / 1;
}

.video-gate__media-stack > .video-gate__material-prelude {
  grid-area: 1 / 1;
}

/* Καλύπτει πλήρως το βίντεο· από κάτω φαίνεται μόνο μετά το slide του φακέλου */
.video-gate__media-veil {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  pointer-events: none;
  border-radius: clamp(0.85rem, 2.2vw, 1.2rem);
  background: linear-gradient(168deg, #ffffff 0%, #f6f6f7 45%, #ececee 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  animation: video-gate-envelope-overlay-slide 0.95s cubic-bezier(0.45, 0, 0.2, 1) var(--vg-env-slide-delay) forwards;
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
  .video-gate__media-stack {
    --vg-env-slide-delay: 2s;
    --vg-env-flap-delay: 0s;
    --vg-env-letter-delay: 0s;
    --vg-env-shell-in-delay: 0s;
  }

  .video-gate__media-stack--envelope-only {
    --vg-env-slide-delay: 12s;
    --vg-env-shell-in-delay: 0s;
    --vg-env-seal-settle-start: 0.08s;
    --vg-env-seal-open-start: calc(var(--vg-env-seal-settle-start) + 0.38s);
    --vg-env-flap-delay: calc(var(--vg-env-seal-open-start) + 0.08s);
  }
}

/* Κρυφό μέχρι το τέλος του prelude — μόνο η μπάλα φαίνεται από πάνω */
.video-gate__envelope-shell {
  position: relative;
  z-index: 5;
  align-self: stretch;
  justify-self: stretch;
  width: 100%;
  min-height: 100%;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  animation: video-gate-envelope-shell-in 0.4s ease-out var(--vg-env-shell-in-delay) forwards;
}

/* Πάνω στο veil· ο φάκελος είναι το Saranya Mohan design (CodePen OJMqBLQ) */
.video-gate__envelope-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  border-radius: clamp(0.85rem, 2.2vw, 1.2rem);
  border: none;
  background: transparent;
  box-shadow: none;
  animation: video-gate-envelope-overlay-slide 0.95s cubic-bezier(0.45, 0, 0.2, 1) var(--vg-env-slide-delay) forwards;
  will-change: transform, opacity;
}

.video-gate--envelope-only .video-gate__envelope-overlay {
  border-radius: clamp(0.55rem, 2vw, 1rem);
}

@media (min-width: 768px) {
  .video-gate--envelope-only .video-gate__envelope-overlay {
    border-radius: clamp(0.45rem, 1.4vw, 0.9rem);
  }
}

/* Λευκός φάκελος + κάρτα (παλέτα από το CodePen, χρώματα neutral) */
.video-gate__saranya {
  --saranya-base: #e0e0e5;
  --saranya-base-light: #f4f4f6;
  --saranya-base-dark: #cfcfd6;
  --saranya-shadow: #b4b4bd;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: min(960px, 140vw);
}

.video-gate__saranya-shadow {
  position: absolute;
  left: 50%;
  bottom: 14%;
  transform: translateX(-50%);
  width: min(48%, 180px);
  height: 1px;
  background: transparent;
  border-radius: 30%;
  box-shadow: 0 min(16vw, 64px) min(10px, 2vw) min(4px, 1vw) rgba(45, 45, 55, 0.22);
  z-index: 0;
  animation: video-gate-saranya-shadow 0.7s cubic-bezier(0.175, 0.89, 0.32, 1.15) calc(var(--vg-env-letter-delay) + 0.85s) both;
}

.video-gate__media-stack--envelope-only .video-gate__saranya-shadow {
  animation: video-gate-saranya-shadow 0.7s cubic-bezier(0.175, 0.89, 0.32, 1.15) calc(var(--vg-env-flap-delay) + 0.38s) both;
}

@keyframes video-gate-saranya-shadow {
  from {
    width: min(40%, 150px);
    filter: opacity(0.75);
  }
  to {
    width: min(68%, 240px);
    filter: opacity(1);
    box-shadow: 0 min(20vw, 80px) min(12px, 2.5vw) min(5px, 1.2vw) rgba(40, 40, 50, 0.2);
  }
}

/* Σφραγίδα: εμφάνιση → δύο μισά ανοίγουν σαν κερί (3D) */
@keyframes invite-env-seal-settle {
  from {
    opacity: 0;
    transform: scale(0.86);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes invite-env-seal-half-left {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(-78deg);
  }
}

@keyframes invite-env-seal-half-right {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(78deg);
  }
}

@keyframes invite-env-envelope-open {
  from {
    transform: rotateX(8deg);
  }
  to {
    transform: rotateX(0deg);
  }
}

/* Πλήρες μέγεθος πάνω στο πλαίσιο βίντεο (ίδιο bounding box με 16:9) */
.video-gate__saranya-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  flex-shrink: 0;
  z-index: 2;
}

.video-gate--envelope-only .video-gate__saranya-stage {
  transform-style: preserve-3d;
}

/* Φωτογραφικά πλαϊνά: envelope1 μεγαλύτερο + πιο αριστερά, envelope2 λίγο δεξιά + μεγαλύτερο */
.video-gate--envelope-only .video-gate__saranya-stage--photo-wings {
  --vg-wing-in-l: min(5vw, 1.85rem);
  --vg-wing-in-r: min(4vw, 1.45rem);
  --vg-wing-out: min(72vw, 31rem);
  --vg-wing-shift-r: min(2.25vw, 0.9rem);
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  flex: 1 1 auto;
  align-self: stretch;
  overflow: hidden;
}

.video-gate--envelope-only .video-gate__saranya-stage--photo-wings .video-gate__envelope-wing {
  position: absolute;
  top: 0;
  bottom: 0;
  height: auto;
  min-height: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  transition: transform 0.55s cubic-bezier(0.26, 0.88, 0.28, 1);
  will-change: transform;
}

@media (max-width: 767.98px) {
  .video-gate--envelope-only .video-gate__saranya-stage--photo-wings .video-gate__envelope-wing {
    transition-duration: 1.18s;
    transition-timing-function: cubic-bezier(0.22, 0.82, 0.24, 1);
  }
}

/* envelope1: μεγαλύτερο, τραβάει αριστερά να καλύψει το κενό στο bezel */
.video-gate--envelope-only .video-gate__saranya-stage--photo-wings .video-gate__envelope-wing--left {
  left: min(-4vw, -16px);
  width: 82%;
  justify-content: flex-start;
  z-index: 2;
  transform: translateX(var(--vg-wing-in-l));
}

/* envelope2: λίγο πιο δεξιά + ελαφρώς μεγαλύτερο, πάνω από το 1 */
.video-gate--envelope-only .video-gate__saranya-stage--photo-wings .video-gate__envelope-wing--right {
  right: min(-2.5vw, -12px);
  width: 77%;
  justify-content: flex-end;
  z-index: 5;
  transform: translateX(calc(var(--vg-wing-shift-r) - var(--vg-wing-in-r)));
}

.video-gate--envelope-only.video-gate--close-zoom .video-gate__saranya-stage--photo-wings .video-gate__envelope-wing--left {
  transform: translateX(calc(var(--vg-wing-in-l) - var(--vg-wing-out)));
}

.video-gate--envelope-only.video-gate--close-zoom .video-gate__saranya-stage--photo-wings .video-gate__envelope-wing--right {
  transform: translateX(calc(var(--vg-wing-shift-r) - var(--vg-wing-in-r) + var(--vg-wing-out)));
}

.video-gate--envelope-only .video-gate__envelope-wing-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: bottom center;
  pointer-events: none;
  user-select: none;
}

.video-gate--envelope-only .video-gate__saranya-stage--photo-wings .video-gate__envelope-wing-img {
  flex: 1 0 auto;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

/* Άκρο προς το κέντρο + ελαφρύ scale ανά πλευρά */
.video-gate--envelope-only .video-gate__saranya-stage--photo-wings .video-gate__envelope-wing--left .video-gate__envelope-wing-img {
  object-position: right center;
  transform: scale(1.07);
  transform-origin: right center;
  margin-right: -1px;
}

.video-gate--envelope-only .video-gate__saranya-stage--photo-wings .video-gate__envelope-wing--right .video-gate__envelope-wing-img {
  object-position: left center;
  transform: scale(1.04);
  transform-origin: left center;
  margin-left: -1px;
}

.video-gate--envelope-only .video-gate__envelope-wing-center {
  flex: 0 0 auto;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 8;
  width: clamp(4.5rem, 24vw, 7.5rem);
  min-width: min(28vw, 7rem);
  max-width: 34%;
}

.video-gate--envelope-only .video-gate__saranya-stage--photo-wings .video-gate__envelope-wing-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 12;
  width: clamp(5.25rem, 32vw, 9rem);
  min-width: min(36vw, 8.5rem);
  max-width: 44%;
  height: auto;
  align-self: auto;
  flex: none;
  pointer-events: none;
}

.video-gate--envelope-only .video-gate__saranya-stage--photo-wings .video-gate__envelope-wing-center .video-gate__envelope-seal {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  margin: 0;
}

.video-gate--envelope-only .video-gate__saranya-stage--photo-wings .video-gate__envelope-seal {
  width: clamp(3.35rem, 18vw, 6.75rem);
  height: clamp(3.35rem, 18vw, 6.75rem);
  padding: clamp(0.3rem, 1.8vw, 0.55rem);
}

/* Φωτο-envelope: κεντρικό hit = λογότυπο κουμπιού — κρύβουμε τη σφραγίδα ώστε να μην φαίνεται δεύτερο play/λογότυπο */
.video-gate--envelope-only.video-gate--photo-envelope .video-gate__saranya-stage--photo-wings .video-gate__envelope-seal {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Φωτο-envelope: χωρίς «σκιά πάτωμα» κάτω από τον φάκελο (Saranya shadow) */
.video-gate--envelope-only.video-gate--photo-envelope .video-gate__saranya-shadow {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  box-shadow: none !important;
  animation: none !important;
}

.video-gate--envelope-only .video-gate__saranya {
  perspective: min(720px, 110vw);
}

/* Φωτο-envelope: τα φτερά είναι absolute → το stage είχε ύψος ~0 με align-items:center. Γέμισμα πλήρους κελυφών. */
.video-gate--envelope-only.video-gate--photo-envelope .video-gate__saranya {
  align-items: stretch;
  justify-content: stretch;
}

.video-gate--envelope-only.video-gate--photo-envelope .video-gate__saranya-stage {
  flex: 1 1 auto;
  align-self: stretch;
  width: 100%;
  min-height: 100%;
}

/* Σώμα + διαγώνια «τσέπες» (::after του pen) */
.video-gate__saranya-envelope {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: linear-gradient(#d5d5da 0.5px, var(--saranya-base-light) 0.5px);
  pointer-events: none;
}

.video-gate--envelope-only .video-gate__saranya-envelope {
  transform-origin: 50% 92%;
  animation: invite-env-envelope-open 0.7s cubic-bezier(0.3, 1.02, 0.32, 1) var(--vg-env-flap-delay) both;
}

.video-gate__saranya-envelope::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 25;
  pointer-events: none;
  background:
    linear-gradient(30deg, var(--saranya-base-dark) 47%, var(--saranya-shadow) 50%, var(--saranya-base) 50%) 100% 100% / 50% 50% no-repeat,
    linear-gradient(31deg, var(--saranya-base) 49%, var(--saranya-shadow) 50%, transparent 50%) 0 0 / 50.67% 50% no-repeat,
    linear-gradient(150deg, var(--saranya-base) 50%, var(--saranya-shadow) 50%, var(--saranya-base-dark) 53%) 0 100% / 50.33% 50% no-repeat,
    linear-gradient(148.7deg, transparent 50%, var(--saranya-shadow) 50%, var(--saranya-base) 51%) 100% 0 / 50% 50% no-repeat;
}

/* Τρίγωνο καπάκι (::before του pen) — 3D άνοιγμα */
.video-gate__saranya-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 63.889%;
  z-index: 30;
  transform-origin: 50% 0;
  transform: perspective(640px) rotateX(0deg);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: linear-gradient(168deg, #ffffff 0%, var(--saranya-base-light) 45%, #dcdce2 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  animation: video-gate-env-flap-open 0.5s cubic-bezier(0.45, 0, 0.2, 1) var(--vg-env-flap-delay) forwards;
}

/* Μόνο-φάκελος: πιο αργό, πιο «ανοιχτό» καπάκι πριν το slide */
.video-gate--envelope-only .video-gate__saranya-flap {
  animation: video-gate-env-flap-open 0.64s cubic-bezier(0.32, 1.02, 0.28, 1) var(--vg-env-flap-delay) forwards;
}

.video-gate__saranya .video-gate__envelope-seal {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(2.25rem, 32%, 3.5rem);
  height: clamp(2.25rem, 32%, 3.5rem);
  margin: 0;
  padding: clamp(0.2rem, 1.2vw, 0.35rem);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 1);
  border: 1px solid rgba(55, 55, 65, 0.1);
}

.video-gate--envelope-only .video-gate__saranya-stage > .video-gate__envelope-seal {
  position: absolute;
  left: 50%;
  top: 57%;
  z-index: 28;
  transform: translate(-50%, -50%);
  width: clamp(3.25rem, 36%, 5.5rem);
  height: clamp(3.25rem, 36%, 5.5rem);
  padding: clamp(0.28rem, 1.6vw, 0.5rem);
  margin: 0;
  overflow: visible;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #f4f1ec 55%, #e8e4de 100%);
  border: 2px solid rgba(166, 124, 61, 0.35);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.5),
    0 3px 0 rgba(166, 124, 61, 0.12),
    0 12px 28px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.video-gate--envelope-only .video-gate__envelope-seal__hinge {
  display: flex;
  width: 100%;
  height: 100%;
  perspective: min(220px, 55vw);
  transform-style: preserve-3d;
  animation: invite-env-seal-settle 0.52s cubic-bezier(0.22, 1, 0.36, 1) var(--vg-env-seal-settle-start) both;
  will-change: transform, opacity;
}

.video-gate__envelope-seal__half {
  position: relative;
  flex: 1 1 50%;
  height: 100%;
  overflow: hidden;
  transform-style: preserve-3d;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.video-gate__envelope-seal__half--left {
  border-radius: 50% 0 0 50%;
  transform-origin: right center;
  animation: invite-env-seal-half-left 0.54s cubic-bezier(0.34, 1.05, 0.32, 1) var(--vg-env-seal-open-start) forwards;
}

.video-gate__envelope-seal__half--right {
  border-radius: 0 50% 50% 0;
  transform-origin: left center;
  animation: invite-env-seal-half-right 0.54s cubic-bezier(0.34, 1.05, 0.32, 1) var(--vg-env-seal-open-start) forwards;
}

.video-gate__envelope-seal__half .video-gate__envelope-logo {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
}

.video-gate__envelope-seal__half--right .video-gate__envelope-logo {
  left: -100%;
}

.video-gate__envelope-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.video-gate__saranya .video-gate__envelope-label {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  text-align: center;
  font-size: clamp(0.78rem, 3.8vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3a3840;
  text-shadow: none;
}

/* Material-style prelude (Mestika / CodePen KVXVWE) — bouncing orb only */
@keyframes video-gate-mat-init {
  0% {
    width: 0;
    height: 0;
  }
  100% {
    width: 56px;
    height: 56px;
    margin-top: 0;
    opacity: 1;
  }
}

@keyframes video-gate-mat-move-down {
  0% {
    top: 50%;
  }
  50% {
    top: 40%;
  }
  100% {
    top: 100%;
  }
}

@keyframes video-gate-mat-move-up {
  0% {
    background: var(--vg-mat-orb, #c9a66b);
    top: 100%;
  }
  50% {
    top: 40%;
  }
  100% {
    top: 50%;
    background: #c4b8a8;
  }
}

@keyframes video-gate-mat-prelude-out {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

.video-gate__material-prelude {
  --vg-mat-orb: #c9a66b;
  position: absolute;
  inset: 0;
  z-index: 6;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  border-radius: clamp(0.85rem, 2.2vw, 1.2rem);
  /* Σκοτεινό «σκηνικό»· μόνο η μπάλα — χωρίς puff / materia που κάλυπταν ολόκληρη την περιοχή */
  background: linear-gradient(165deg, #221c18 0%, #161311 48%, #0f0d0b 100%);
  /* Μετά το bounce της μπάλας (~2.8s) · fade πριν εμφανιστεί ο φάκελος */
  animation: video-gate-mat-prelude-out 0.32s ease-out 2.88s forwards;
}

.video-gate__material-puff {
  display: none;
}

.video-gate__material-orb {
  background: var(--vg-mat-orb);
  width: 56px;
  height: 56px;
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  overflow: hidden;
  opacity: 0;
  margin-top: min(70px, 12vh);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2), 0 3px 12px rgba(0, 0, 0, 0.18);
  animation:
    video-gate-mat-init 0.5s 0.2s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards,
    video-gate-mat-move-down 1s 0.8s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards,
    video-gate-mat-move-up 1s 1.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@media (prefers-reduced-motion: reduce) {
  .video-gate__material-prelude {
    display: none !important;
  }

  .video-gate__media-veil {
    animation: video-gate-envelope-overlay-fadeout 0.65s ease-out 2s forwards;
    transform: none;
    will-change: opacity;
  }

  .video-gate__envelope-shell {
    animation: none;
    opacity: 1;
    visibility: visible;
  }

  .video-gate__envelope-overlay {
    animation: video-gate-envelope-overlay-fadeout 0.65s ease-out 2s forwards;
    transform: none;
    will-change: opacity;
  }

  .video-gate--envelope-only.video-gate--photo-envelope .video-gate__envelope-overlay {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    will-change: auto !important;
  }

  .video-gate__saranya-flap {
    animation: none;
    transform: perspective(640px) rotateX(180deg);
    z-index: 2;
  }

  .video-gate--envelope-only .video-gate__saranya-flap {
    animation: none;
    transform: perspective(640px) rotateX(180deg);
    z-index: 2;
  }

  .video-gate--envelope-only .video-gate__saranya-stage > .video-gate__envelope-seal {
    opacity: 1;
    transform: translate(-50%, -50%);
  }

  .video-gate--envelope-only .video-gate__envelope-seal__hinge {
    animation: none;
    opacity: 1;
    transform: scale(1);
  }

  .video-gate__envelope-seal__half--left {
    animation: none;
    transform: rotateY(-78deg);
  }

  .video-gate__envelope-seal__half--right {
    animation: none;
    transform: rotateY(78deg);
  }

  .video-gate--envelope-only .video-gate__saranya-envelope {
    animation: none;
    transform: none;
  }

  .video-gate__saranya-shadow {
    animation: none;
    width: min(68%, 240px);
    filter: none;
  }
}

.video-gate__frame {
  position: relative;
  z-index: 0;
  border-radius: clamp(0.85rem, 2.2vw, 1.2rem);
  padding: 3px;
  background: linear-gradient(
    145deg,
    rgba(214, 184, 130, 0.95) 0%,
    rgba(166, 124, 61, 0.75) 35%,
    rgba(90, 70, 45, 0.9) 70%,
    rgba(201, 166, 107, 0.55) 100%
  );
  box-shadow:
    0 0 0 1px rgba(255, 248, 238, 0.08),
    0 8px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.video-gate__shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.video-gate__shine::after {
  content: "";
  position: absolute;
  top: -20%;
  left: 0;
  width: 45%;
  height: 140%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.07) 45%, transparent 70%);
  animation: video-gate-shine 4.5s ease-in-out 1.2s infinite;
}

@media (prefers-reduced-motion: reduce) {
  .video-gate__shine::after {
    animation: none;
    opacity: 0;
  }
}

.video-gate__video {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 200px;
  border-radius: calc(clamp(0.85rem, 2.2vw, 1.2rem) - 3px);
  max-height: min(58vh, 460px);
  object-fit: cover;
  background: #1a1511;
}

.video-gate__actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  justify-content: flex-end;
  padding-bottom: 0.15rem;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.video-gate__actions.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .video-gate__actions {
    transition: opacity 0.25s ease;
    transform: none;
  }
}

.video-gate__continue {
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35);
}

.video-gate--envelope-only .video-gate__actions {
  padding-bottom: max(0.35rem, env(safe-area-inset-bottom));
  padding-inline: max(0.75rem, env(safe-area-inset-left), env(safe-area-inset-right));
}

.video-gate--envelope-only .video-gate__continue {
  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.video-gate__hint {
  max-width: 22rem;
  text-align: center;
  line-height: 1.4;
}

.video-gate--envelope-only .video-gate__hint {
  color: rgba(42, 35, 28, 0.72) !important;
}

/* Φόρμες: εικονίδιο + πεδίο (πρόσκληση & διαχείριση καλεσμένου) */
.form-input-group-icon .input-group-text {
  background: rgba(32, 30, 26, 0.92);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--gold, #c9a66b);
  padding: 0.5rem 0.7rem;
}

.form-input-group-icon:focus-within .input-group-text {
  border-color: rgba(166, 124, 61, 0.45);
}

.form-field-icon-svg {
  display: block;
  flex-shrink: 0;
}

body.page-invite .invite-rsvp-form-stack .invite-rsvp-section {
  scroll-margin-top: 1rem;
}

body.page-invite .invite-rsvp-section--submit {
  border-style: dashed;
  border-color: rgba(166, 124, 61, 0.25);
}

/* Έμφαση στην απάντηση RSVP όσο είναι «Επιλέξτε» (pending) */
@keyframes invite-rsvp-attention-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgba(166, 124, 61, 0),
      0 4px 24px var(--shadow-ambient);
    border-color: rgba(166, 124, 61, 0.2);
  }

  50% {
    box-shadow:
      0 0 0 3px rgba(166, 124, 61, 0.22),
      0 0 28px rgba(166, 124, 61, 0.18);
    border-color: rgba(166, 124, 61, 0.48);
  }
}

body.page-invite .invite-rsvp-section--attention.section-card {
  animation: invite-rsvp-attention-pulse 2.1s ease-in-out infinite;
  border-color: rgba(166, 124, 61, 0.32);
}

@media (prefers-reduced-motion: reduce) {
  body.page-invite .invite-rsvp-section--attention.section-card {
    animation: none;
    border-color: rgba(166, 124, 61, 0.42) !important;
    box-shadow: 0 0 0 2px rgba(166, 124, 61, 0.28);
  }
}

body.page-invite .invite-rsvp-regret-note {
  background: rgba(166, 124, 61, 0.06);
}

.admin-guest-form-stack .section-card h2.font-serif {
  margin-top: 0;
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ——— Αρχική πρόσκληση: ισορροπία & κάρτα hero ——— */
.invite-panel--home {
  min-height: calc(100dvh - var(--tabbar-h) - 9.5rem);
  min-height: calc(100svh - var(--tabbar-h) - 9.5rem);
  overflow-x: visible;
  overflow-y: visible;
}

@media (min-width: 992px) {
  .invite-panel--home {
    min-height: calc(100dvh - 8.5rem);
  }
}

/* Hero scroll space (desktop: extra ύψος για Motion scroll + absolute polaroids) */
.hero-scroll-space {
  position: relative;
  min-height: max(calc(100dvh - var(--tabbar-h) - 7.5rem), 118vh);
  padding-top: clamp(1.25rem, 7vmin, 3.5rem);
  padding-bottom: 2.5rem;
  overflow: visible;
}

@media (min-width: 992px) {
  .hero-scroll-space {
    min-height: max(calc(100dvh - 6.5rem), 112vh);
    padding-top: clamp(0.75rem, 4vmin, 2.5rem);
  }
}

.hero-sticky {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: center;
  width: 100%;
  padding-top: 0;
  padding-bottom: clamp(2rem, 5vh, 3.5rem);
  will-change: transform, opacity;
}

/* Κινητό / tablet: polaroid πίσω από την κάρτα (όπως desktop), όχι κάτω σε σειρά — το overflow-x:hidden έκοβε τα πλαίσια */
@media (max-width: 991.98px) {
  .invite-panel--home {
    min-height: 0;
    overflow-x: visible;
    overflow-y: visible;
  }

  .hero-scroll-space {
    display: block;
    position: relative;
    min-height: max(calc(100dvh - var(--tabbar-h) - 6.25rem), 32rem);
    min-height: max(calc(100svh - var(--tabbar-h) - 6.25rem), 32rem);
    padding-top: clamp(0.35rem, 2vmin, 1rem);
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
  }

  .invite-polaroids {
    position: absolute;
    top: 0;
    right: clamp(-1.25rem, -6vw, -0.5rem);
    bottom: 0;
    left: clamp(-1.25rem, -6vw, -0.5rem);
    z-index: 0;
    width: auto;
    max-width: none;
    margin: 0;
    display: block;
    padding: 0;
    opacity: 0.9;
    overflow: visible;
    pointer-events: none;
  }

  .hero-sticky {
    position: relative;
    top: auto;
    z-index: 2;
    padding-bottom: clamp(0.75rem, 2.5vh, 1.75rem);
    will-change: auto;
  }

  .invite-polaroid {
    width: clamp(5.5rem, 26vw, 8rem);
    padding: 0.36rem 0.36rem 0.92rem 0.36rem;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.55) inset,
      0 2px 8px var(--shadow-ambient),
      0 10px 24px var(--shadow-deep);
  }
}

@media (max-width: 575.98px) {
  .invite-polaroid {
    width: clamp(5.4rem, 36vw, 7.35rem);
    padding: 0.32rem 0.32rem 0.85rem 0.32rem;
  }

  .invite-polaroid--5,
  .invite-polaroid--6 {
    display: none;
  }
}

/* Φωτογραφίες πολαρόιντ πίσω από την κάρτα countdown */
/* Όχι overflow:hidden — κόβει τις γωνίες των περιστρεφόμενων πολαρόιντ.
   Επέκταση αριστερά/δεξιά ώστε να χωράνε πίσω από το max-width του main. */
.invite-polaroids {
  position: absolute;
  top: 0;
  bottom: 0;
  left: clamp(-1rem, -5vw, -0.35rem);
  right: clamp(-1rem, -5vw, -0.35rem);
  z-index: 0;
  pointer-events: none;
  overflow: visible;
  opacity: 0.94;
}

@media (min-width: 992px) {
  .invite-polaroids {
    left: clamp(-2.25rem, -6vw, -1rem);
    right: clamp(-2.25rem, -5vw, -1rem);
  }
}

.invite-polaroid {
  position: absolute;
  margin: 0;
  padding: 0.55rem 0.55rem 1.35rem 0.55rem;
  width: clamp(6.75rem, 28vw, 10.5rem);
  background: linear-gradient(168deg, #faf7f0 0%, #e8e2d6 55%, #dcd4c8 100%);
  border-radius: 2px;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.65) inset,
    0 3px 10px var(--shadow-ambient),
    0 16px 36px var(--shadow-deep);
  transform: rotate(var(--pol-rot, 0deg));
  animation: invite-polaroid-float var(--pol-dur, 9s) ease-in-out infinite;
  animation-delay: var(--pol-delay, 0s);
}

.invite-polaroid__inner {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 1px;
  background: linear-gradient(140deg, rgba(200, 182, 158, 0.5) 0%, rgba(160, 142, 118, 0.45) 100%);
}

.invite-polaroid__inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
}

.invite-polaroid--empty .invite-polaroid__inner {
  background:
    radial-gradient(ellipse 80% 60% at 40% 35%, rgba(166, 124, 61, 0.18), transparent 55%),
    linear-gradient(155deg, rgba(255, 252, 247, 0.9) 0%, rgba(210, 192, 168, 0.45) 100%);
}

.invite-polaroid--1 {
  top: 5%;
  left: max(0%, env(safe-area-inset-left, 0px));
  --pol-rot: -14deg;
  --pol-dur: 8.5s;
  --pol-delay: -0.5s;
  --pol-dx: 5px;
  --pol-dy: -12px;
}

.invite-polaroid--2 {
  top: 8%;
  right: max(0%, env(safe-area-inset-right, 0px));
  --pol-rot: 10deg;
  --pol-dur: 9.5s;
  --pol-delay: -2s;
  --pol-dx: -4px;
  --pol-dy: -9px;
}

.invite-polaroid--3 {
  bottom: 18%;
  left: max(-2%, env(safe-area-inset-left, 0px));
  --pol-rot: 7deg;
  --pol-dur: 10s;
  --pol-delay: -3.5s;
  --pol-dx: 6px;
  --pol-dy: 10px;
}

.invite-polaroid--4 {
  bottom: 12%;
  right: max(0%, env(safe-area-inset-right, 0px));
  --pol-rot: -9deg;
  --pol-dur: 8s;
  --pol-delay: -1.2s;
  --pol-dx: -5px;
  --pol-dy: 8px;
}

.invite-polaroid--5 {
  top: 38%;
  left: max(-4%, env(safe-area-inset-left, 0px));
  --pol-rot: -5deg;
  --pol-dur: 11s;
  --pol-delay: -4s;
  --pol-dx: 3px;
  --pol-dy: -14px;
}

.invite-polaroid--6 {
  top: 42%;
  right: max(-3%, env(safe-area-inset-right, 0px));
  --pol-rot: 12deg;
  --pol-dur: 9s;
  --pol-delay: -2.8s;
  --pol-dx: -6px;
  --pol-dy: -6px;
}

@keyframes invite-polaroid-float {
  0%,
  100% {
    transform: translate(0, 0) rotate(var(--pol-rot, 0deg));
  }
  50% {
    transform: translate(var(--pol-dx, 0), var(--pol-dy, -10px)) rotate(calc(var(--pol-rot, 0deg) + 1.5deg));
  }
}

@media (min-width: 992px) {
  .invite-polaroid {
    width: clamp(9rem, 17vw, 14rem);
    padding: 0.65rem 0.65rem 1.5rem 0.65rem;
  }

  .invite-polaroid--1 {
    left: 2%;
    top: 3%;
  }

  .invite-polaroid--2 {
    right: 2%;
    top: 5%;
  }

  .invite-polaroid--3 {
    left: 3%;
    bottom: 14%;
  }

  .invite-polaroid--4 {
    right: 3%;
    bottom: 10%;
  }

  .invite-polaroid--5 {
    left: 1%;
    top: 36%;
  }

  .invite-polaroid--6 {
    right: 1%;
    top: 40%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .invite-polaroid {
    animation: none;
  }
}

.invite-home-card {
  width: 100%;
  max-width: var(--invite-hero-col);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  padding: clamp(1.65rem, 4.5vw, 2.35rem) clamp(1.2rem, 4vw, 1.85rem);
  text-align: center;
  background: linear-gradient(160deg, rgba(255, 251, 244, 0.95) 0%, rgba(236, 224, 206, 0.9) 100%);
  border: 1px solid var(--line-soft);
  border-radius: 1.4rem;
  box-shadow:
    0 8px 40px var(--shadow-deep),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.invite-home-card__eyebrow {
  letter-spacing: 0.22em;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0.22em;
  padding-right: 0.22em;
}

.invite-home-card__rule {
  width: 2.75rem;
  height: 1px;
  margin: 0 auto 1.1rem;
  background: linear-gradient(90deg, transparent, rgba(166, 124, 61, 0.55), transparent);
}

.invite-home-card__title {
  font-size: clamp(1.4rem, 4.2vw, 2.2rem);
  font-weight: 600;
  line-height: 1.24;
  margin: 0;
  letter-spacing: -0.02em;
  text-wrap: balance;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.invite-home-card__sub {
  max-width: 20rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.invite-home-card__countdown-thanks {
  font-size: clamp(1.2rem, 3.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
  text-wrap: balance;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* Πρόσκληση — δώρα & IBAN */
.invite-gifts-bank {
  background: linear-gradient(158deg, rgba(255, 252, 246, 0.96) 0%, rgba(236, 224, 206, 0.92) 100%);
  border-color: rgba(166, 124, 61, 0.28) !important;
}

.invite-gifts-iban-block {
  background: rgba(32, 28, 22, 0.06);
  border: 1px solid rgba(166, 124, 61, 0.2);
}

.invite-gifts-iban-code {
  font-size: clamp(0.95rem, 3.2vw, 1.1rem);
  letter-spacing: 0.04em;
  word-break: break-all;
  line-height: 1.45;
}

.invite-gifts-registry {
  background: linear-gradient(165deg, rgba(255, 251, 244, 0.94) 0%, rgba(245, 232, 214, 0.88) 100%);
}

.invite-gifts-item {
  border-color: rgba(166, 124, 61, 0.22) !important;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.invite-gifts-item:hover {
  box-shadow: 0 10px 32px rgba(60, 48, 36, 0.12);
  border-color: rgba(166, 124, 61, 0.38) !important;
}

.countdown-pill {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 0.65rem 0;
  padding: 1.1rem 0.85rem;
  border-radius: 1.1rem;
  background: rgba(255, 248, 238, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(166, 124, 61, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  max-width: 100%;
}

.cd-unit {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1 1 22%;
  min-width: 3.5rem;
  padding: 0.2rem 0.35rem;
}

@media (min-width: 380px) {
  .cd-unit:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: var(--line-soft);
  }
}

.cd-num {
  font-size: clamp(1.2rem, 3.8vw, 1.5rem);
  font-weight: 600;
  color: var(--ivory);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.cd-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* Οικογένειες / κουμπάροι κάτω από countdown — δίστηλο «πεταλούδα» */
.invite-honor-stack {
  width: 100%;
  max-width: 26rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.invite-honor-block + .invite-honor-block {
  margin-top: 1.65rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(166, 124, 61, 0.2);
}

.invite-honor-block__title {
  font-size: clamp(1.05rem, 3.2vw, 1.35rem);
  font-weight: 600;
  margin: 0 0 0.75rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.invite-honor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(0.75rem, 3vw, 1.35rem);
  row-gap: 0.3rem;
  align-items: baseline;
  text-align: initial;
}

.invite-honor-cell {
  font-family: var(--font-serif);
  font-size: clamp(0.86rem, 2.4vw, 1.02rem);
  line-height: 1.42;
  color: var(--ivory);
  text-wrap: balance;
}

.invite-honor-cell--left {
  text-align: right;
}

.invite-honor-cell--right {
  text-align: left;
}

.section-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line-faint);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
}

@media (min-width: 768px) {
  .section-card {
    padding: 2rem 1.75rem;
  }
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.75rem;
  align-items: start;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-faint);
}

.timeline-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.timeline-time {
  font-weight: 600;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.map-frame iframe {
  filter: grayscale(0.2) contrast(1.05);
}

/* Chat */
.chat-thread {
  max-height: 42vh;
  overflow-y: auto;
  padding: 0.5rem;
  border-radius: 1rem;
  background: rgba(245, 234, 218, 0.55);
  border: 1px solid var(--line-faint);
}

.chat-bubble {
  max-width: 88%;
  padding: 0.65rem 0.9rem;
  border-radius: 1rem;
  margin-bottom: 0.5rem;
  line-height: 1.45;
  font-size: 0.95rem;
  white-space: pre-wrap;
}

.chat-bubble.from-guest {
  margin-left: auto;
  background: rgba(166, 124, 61, 0.2);
  border: 1px solid var(--gold-dim);
}

.chat-bubble.from-couple {
  margin-right: auto;
  background: rgba(255, 252, 247, 0.95);
  border: 1px solid var(--line-faint);
}

.gallery-thumb img {
  display: block;
  cursor: zoom-in;
}

/* Mobile tab bar — dock style */
.pb-tabbar {
  padding-bottom: calc(var(--tabbar-h) + 0.75rem);
  padding-left: max(var(--invite-pad-x), env(safe-area-inset-left, 0px)) !important;
  padding-right: max(var(--invite-pad-x), env(safe-area-inset-right, 0px)) !important;
}

@media (min-width: 992px) {
  .pb-tabbar {
    padding-bottom: 2rem;
    padding-left: max(var(--invite-sidebar-offset), var(--invite-pad-x), env(safe-area-inset-left, 0px)) !important;
    padding-right: max(var(--invite-pad-x), env(safe-area-inset-right, 0px)) !important;
  }
}

/* Must stay viewport-fixed; below Bootstrap modal (1055).
   --invite-vv-bottom-inset: JS (visualViewport) ώστε η μπάρα να μην κόβεται όταν αλλάζει το ύψος του Safari (κορυφή σελίδας). */
.mobile-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--invite-vv-bottom-inset, 0px);
  width: 100%;
  max-width: 100%;
  z-index: 1030;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  gap: 0.25rem;
  padding: 0.35rem 0.5rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
  padding-left: max(0.5rem, env(safe-area-inset-left, 0px));
  padding-right: max(0.5rem, env(safe-area-inset-right, 0px));
  background: rgba(250, 242, 230, 0.96);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-top: 1px solid var(--line-soft);
  box-shadow: 0 -8px 28px var(--shadow-ambient);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  flex-wrap: nowrap;
}

.tabbar-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  border: 0;
  border-radius: 0.85rem;
  background: transparent;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.4rem 0.12rem;
  min-height: 3.35rem;
  transition: color 0.2s, background 0.2s, transform 0.2s;
}

.tabbar-btn .nav-icon {
  opacity: 0.88;
  flex-shrink: 0;
}

.tabbar-btn.is-active {
  color: var(--gold);
  background: rgba(166, 124, 61, 0.14);
}

.tabbar-btn.is-active .nav-icon {
  opacity: 1;
  color: var(--gold);
}

.tabbar-btn:active {
  transform: scale(0.96);
}

.mobile-tabbar--dense .tabbar-btn {
  font-size: 0.58rem;
  letter-spacing: 0.01em;
  padding-left: 0.06rem;
  padding-right: 0.06rem;
  gap: 0.15rem;
}

.mobile-tabbar--dense .tabbar-btn .nav-icon {
  width: 20px;
  height: 20px;
}

/* Desktop — πλοήγηση ξεχωριστή από το κινητό (συντακτική στήλη) */
.invite-desktop-nav {
  --invite-nav-w: 17.5rem;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--invite-nav-w);
  z-index: 1030;
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  pointer-events: none;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.invite-desktop-nav__ambient {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 130% 65% at 0% 18%, rgba(166, 124, 61, 0.16) 0%, transparent 58%),
    radial-gradient(ellipse 90% 55% at 100% 95%, rgba(212, 188, 152, 0.45) 0%, transparent 52%),
    linear-gradient(168deg, #faf6ef 0%, #f0e6d6 45%, #e8dcc8 100%);
  border-right: 1px solid rgba(166, 124, 61, 0.22);
  box-shadow: 16px 0 40px var(--shadow-ambient);
}

.invite-desktop-nav__inner {
  position: relative;
  z-index: 1;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 1.65rem 1.15rem 1.25rem;
  padding-top: max(1.65rem, env(safe-area-inset-top, 0px));
}

.invite-desktop-nav__masthead {
  flex-shrink: 0;
  margin-bottom: 1.35rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line-soft);
}

.invite-desktop-nav__rule {
  display: block;
  width: 2.75rem;
  height: 2px;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 1px;
}

.invite-desktop-nav__pretitle {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.45rem;
  opacity: 0.92;
}

.invite-desktop-nav__couple {
  font-size: clamp(1.1rem, 1.35vw, 1.4rem);
  font-weight: 600;
  line-height: 1.18;
  color: var(--ivory);
  margin: 0 0 0.4rem;
  text-wrap: balance;
  letter-spacing: -0.02em;
}

.invite-desktop-nav__phase {
  font-size: 0.72rem;
  margin: 0 0 0.85rem;
  letter-spacing: 0.05em;
}

.invite-desktop-nav__you {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  background: rgba(255, 252, 246, 0.75);
  border: 1px solid rgba(166, 124, 61, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.invite-desktop-nav__you-label {
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(166, 124, 61, 0.75);
}

.invite-desktop-nav__you-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ivory);
  line-height: 1.25;
  text-wrap: balance;
}

.invite-desktop-nav__list {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 0;
  overflow-y: auto;
  padding: 0.2rem 0.1rem 0.25rem 0;
  margin-right: -0.15rem;
  padding-right: 0.35rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(166, 124, 61, 0.35) transparent;
}

.invite-desktop-nav__item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 0.85rem;
  padding: 0.72rem 0.6rem 0.72rem 0.72rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition:
    background 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.28s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
}

.invite-desktop-nav__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 0;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #e4c678, var(--gold) 45%, #8a6f3a);
  opacity: 0;
  transform: translateY(-50%);
  transition:
    height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.3s ease;
}

.invite-desktop-nav__item:hover {
  color: var(--ivory);
  background: rgba(166, 124, 61, 0.1);
  transform: translateX(5px);
}

.invite-desktop-nav__item.is-active {
  color: var(--ivory);
  background: linear-gradient(100deg, rgba(166, 124, 61, 0.2) 0%, rgba(166, 124, 61, 0.06) 55%, transparent 100%);
  box-shadow:
    inset 0 0 0 1px rgba(166, 124, 61, 0.22),
    0 6px 20px var(--shadow-ambient);
}

.invite-desktop-nav__item.is-active::before {
  height: 2.35rem;
  opacity: 1;
}

.invite-desktop-nav__idx {
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
  color: rgba(166, 124, 61, 0.4);
  padding-top: 0.38rem;
  width: 1.4rem;
  transition: color 0.28s ease;
}

.invite-desktop-nav__item.is-active .invite-desktop-nav__idx {
  color: var(--gold);
}

.invite-desktop-nav__body {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}

.invite-desktop-nav__title {
  font-size: 1.14rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.018em;
}

.invite-desktop-nav__subtitle {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(110, 98, 86, 0.78);
  line-height: 1.35;
}

.invite-desktop-nav__item.is-active .invite-desktop-nav__subtitle {
  color: rgba(42, 35, 28, 0.55);
}

.invite-desktop-nav__foot {
  flex-shrink: 0;
  margin-top: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-faint);
}

.invite-desktop-nav__exit-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 0.9rem;
  text-decoration: none;
  color: rgba(232, 210, 210, 0.95);
  background: rgba(90, 42, 42, 0.22);
  border: 1px solid rgba(200, 100, 100, 0.28);
  box-shadow: 0 4px 18px var(--shadow-ambient);
  transition:
    color 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    transform 0.15s ease,
    box-shadow 0.22s ease;
  overflow: hidden;
}

.invite-desktop-nav__exit-btn-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 120% at 20% 50%, rgba(220, 120, 120, 0.12), transparent 65%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.invite-desktop-nav__exit-btn:hover {
  color: #fde8e8;
  border-color: rgba(232, 160, 160, 0.45);
  background: rgba(110, 48, 48, 0.32);
  box-shadow: 0 6px 24px var(--shadow-deep);
}

.invite-desktop-nav__exit-btn:hover .invite-desktop-nav__exit-btn-glow {
  opacity: 1;
}

.invite-desktop-nav__exit-btn:active {
  transform: scale(0.98);
}

.invite-desktop-nav__exit-icon {
  flex-shrink: 0;
  opacity: 0.92;
}

.invite-desktop-nav__exit-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  text-align: left;
}

.invite-desktop-nav__exit-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.invite-desktop-nav__exit-sub {
  font-size: 0.62rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Πρώτη επίσκεψη — υπενθύμιση RSVP */
.invite-onboarding-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, rgba(166, 124, 61, 0.14), rgba(166, 124, 61, 0.05));
  border: 1px solid rgba(166, 124, 61, 0.35);
  box-shadow: 0 4px 24px var(--shadow-ambient);
}

.invite-onboarding-bar__text {
  flex: 1 1 12rem;
  max-width: 100%;
}

/* iOS-style modal (rppld-inspired): blur sheet */
.ios-modal .modal-content {
  background: rgba(255, 251, 244, 0.96);
  backdrop-filter: blur(24px) saturate(1.3);
  border: 1px solid var(--line-medium);
  border-radius: 1.35rem;
  overflow: hidden;
  transform: scale(0.96);
  opacity: 0;
  transition:
    transform 0.35s cubic-bezier(0.32, 0.72, 0, 1),
    opacity 0.3s ease;
  box-shadow: 0 24px 64px var(--shadow-deep);
}

.ios-modal.show .modal-content {
  transform: scale(1);
  opacity: 1;
}

.ios-modal .modal-dialog {
  transform: none;
}

.ios-modal .btn-close {
  filter: none;
  opacity: 0.55;
}

/* Success sheet after RSVP save (CodePen rppld / dynamics spring feel, CSS-only) */
.invite-saved-modal-dialog {
  max-width: 22rem;
}

.ios-modal-success .modal-content {
  transform: scale(0.82) translateY(1.25rem);
  transition:
    transform 0.55s cubic-bezier(0.28, 1.35, 0.48, 1),
    opacity 0.38s ease;
}

.ios-modal-success.show .modal-content {
  transform: scale(1) translateY(0);
}

.invite-saved-modal-body {
  color: var(--ivory);
}

.invite-saved-modal-icon {
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 auto 1.35rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background: rgba(166, 124, 61, 0.12);
  box-shadow: 0 0 0 2px rgba(166, 124, 61, 0.65);
}

.invite-saved-modal-dismiss {
  font-size: 1.05rem;
  font-weight: 700;
  background: rgba(255, 252, 246, 0.95);
  color: var(--ivory);
  border: none;
  padding: 0.55rem 1.4rem;
  border-radius: 0.35rem;
  box-shadow: inset 0 0 0 2px rgba(166, 124, 61, 0.35);
  cursor: pointer;
  transition: background 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}

.invite-saved-modal-dismiss:hover,
.invite-saved-modal-dismiss:focus-visible {
  background: rgba(166, 124, 61, 0.16);
  color: var(--ivory);
  box-shadow: inset 0 0 0 2px rgba(166, 124, 61, 0.5);
}

.invite-saved-modal-dismiss:active {
  background: rgba(166, 124, 61, 0.24);
}

@media (prefers-reduced-motion: reduce) {
  .ios-modal-success .modal-content {
    transform: none;
    transition: opacity 0.2s ease;
  }

  .ios-modal-success.show .modal-content {
    transform: none;
  }
}

.modal-backdrop.show {
  opacity: 0.72;
  backdrop-filter: blur(6px);
}

.invite-panel:focus {
  outline: none;
}

.page-landing .landing-hero {
  position: relative;
  z-index: 2;
}

/* ——— Αρχική σελίδα (public/index.php) — κεντρική πρόσκληση χωρίς έντονο κουμπί διαχείρισης ——— */
.page-home-landing {
  min-height: 100dvh;
  min-height: 100svh;
  background: transparent;
}

/* Φόντο: μαλακά χρώματα + χρυσαφί λάμψη (χωρίς εικόνα — μόνο CSS) */
.home-landing__backdrop {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.home-landing__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.85;
  will-change: transform;
}

.home-landing__blob--1 {
  width: min(120vw, 52rem);
  height: min(120vw, 52rem);
  top: -18%;
  left: -25%;
  background: radial-gradient(circle at 35% 35%, rgba(166, 124, 61, 0.2) 0%, rgba(212, 188, 152, 0.35) 45%, transparent 70%);
  animation: home-landing-drift-a 22s ease-in-out infinite alternate;
}

.home-landing__blob--2 {
  width: min(100vw, 44rem);
  height: min(100vw, 44rem);
  bottom: -12%;
  right: -20%;
  background: radial-gradient(circle at 60% 40%, rgba(220, 198, 168, 0.65) 0%, rgba(188, 162, 128, 0.3) 50%, transparent 72%);
  animation: home-landing-drift-b 26s ease-in-out infinite alternate;
}

.home-landing__blob--3 {
  width: min(85vw, 36rem);
  height: min(85vw, 36rem);
  top: 38%;
  right: -12%;
  background: radial-gradient(circle at 50% 50%, rgba(166, 124, 61, 0.12) 0%, rgba(200, 176, 142, 0.28) 55%, transparent 75%);
  animation: home-landing-drift-c 19s ease-in-out infinite alternate;
}

.home-landing__glow-arc {
  position: absolute;
  inset: -30% -10%;
  background: radial-gradient(ellipse 55% 40% at 50% 0%, rgba(166, 124, 61, 0.14) 0%, transparent 62%);
  opacity: 0.9;
  animation: home-landing-glow-pulse 14s ease-in-out infinite alternate;
}

.home-landing__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 85% 75% at 50% 45%, transparent 0%, rgba(120, 98, 72, 0.18) 100%);
  opacity: 0.85;
}

@keyframes home-landing-drift-a {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(4%, 3%) scale(1.06);
  }
}

@keyframes home-landing-drift-b {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-3%, -4%) scale(1.05);
  }
}

@keyframes home-landing-drift-c {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-5%, 2%) scale(1.08);
  }
}

@keyframes home-landing-glow-pulse {
  0% {
    opacity: 0.65;
  }
  100% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-landing__blob--1,
  .home-landing__blob--2,
  .home-landing__blob--3,
  .home-landing__glow-arc {
    animation: none;
  }
}

.home-landing {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2rem);
  padding-bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

.home-landing__inner {
  width: 100%;
  max-width: 26rem;
  margin: 0 auto;
  flex: 0 1 auto;
}

.home-landing__masthead {
  margin-bottom: clamp(1.75rem, 5vw, 2.5rem);
}

.home-landing__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  margin-bottom: 1rem;
  opacity: 0.92;
}

.home-landing__ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.home-landing__ornament-line {
  width: min(3.5rem, 14vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(166, 124, 61, 0.45), transparent);
}

.home-landing__ornament-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(166, 124, 61, 0.65);
  box-shadow: 0 0 12px rgba(166, 124, 61, 0.35);
}

.home-landing__title {
  font-size: clamp(2.15rem, 9vw, 3.4rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
  text-shadow: 0 2px 24px rgba(166, 124, 61, 0.2);
}

.home-landing__subtitle {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.home-landing__card {
  text-align: center;
  padding: clamp(1.35rem, 4vw, 1.85rem) clamp(1.2rem, 4vw, 1.65rem);
  border-radius: 1.35rem;
  background: linear-gradient(165deg, rgba(255, 252, 246, 0.92) 0%, rgba(236, 224, 206, 0.88) 100%);
  border: 1px solid var(--line-soft);
  box-shadow:
    0 12px 48px var(--shadow-deep),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.home-landing__card-title {
  font-size: clamp(1.15rem, 3.5vw, 1.45rem);
  font-weight: 600;
  margin: 0 0 0.85rem;
  letter-spacing: 0.02em;
}

.home-landing__card-lead {
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0 0 1rem;
}

.home-landing__card-hint {
  line-height: 1.5;
  opacity: 0.88;
}

/* Διαχείριση: όχι στο κέντρο — διακριτικά κάτω δεξιά */
.home-landing__foot {
  position: fixed;
  z-index: 4;
  bottom: 0;
  right: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: max(0.65rem, env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-right, 0px))
    max(0.85rem, env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
  pointer-events: none;
}

.home-landing__foot-spacer {
  flex: 1;
  min-width: 0;
  pointer-events: none;
}

.home-landing__admin-link {
  pointer-events: auto;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(110, 98, 86, 0.45);
  padding: 0.35rem 0.5rem;
  border-radius: 0.4rem;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.home-landing__admin-link:hover {
  color: rgba(166, 124, 61, 0.85);
  background: rgba(255, 255, 255, 0.04);
}

.home-landing__admin-link:focus-visible {
  outline: 2px solid rgba(166, 124, 61, 0.5);
  outline-offset: 2px;
  color: rgba(166, 124, 61, 0.95);
}

/* Λογότυπο + κουμπί «πάνω» */
.site-logo {
  display: block;
  width: auto;
  max-width: min(88vw, var(--site-logo-max-width, 180px));
  height: auto;
  object-fit: contain;
  margin-left: auto;
  margin-right: auto;
}

.site-logo--hero {
  max-width: min(88vw, var(--site-logo-max-width, 180px));
  max-height: none;
  margin-bottom: 0.5rem;
  opacity: 0.96;
  filter: drop-shadow(0 2px 14px var(--shadow-ambient));
}

@media (min-width: 992px) {
  .site-logo--hero {
    margin-bottom: 0.75rem;
    max-width: min(16rem, var(--site-logo-max-width, 180px));
  }
}

.site-logo--invite-header {
  max-width: min(88vw, var(--site-logo-max-width, 180px));
  max-height: none;
  width: auto;
  height: auto;
  margin-bottom: 0.45rem;
}

@media (min-width: 992px) {
  .site-logo--invite-header {
    display: none;
  }
}

.site-logo--invite-sidebar {
  display: none;
  max-width: min(100%, var(--site-logo-max-width, 180px));
  max-height: none;
  width: auto;
  height: auto;
  margin-bottom: 0.65rem;
  opacity: 0.94;
  filter: drop-shadow(0 2px 10px var(--shadow-ambient));
}

@media (min-width: 992px) {
  .site-logo--invite-sidebar {
    display: block;
  }
}

.site-scroll-top {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.5rem 0.3rem 0.38rem;
  border: 1px solid var(--line-medium);
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.88);
  color: var(--muted);
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.15s ease;
}

.site-scroll-top:hover {
  color: var(--ivory);
  border-color: rgba(166, 124, 61, 0.4);
  background: rgba(166, 124, 61, 0.12);
}

.site-scroll-top:focus-visible {
  outline: 2px solid rgba(166, 124, 61, 0.55);
  outline-offset: 2px;
}

.site-scroll-top:active {
  transform: scale(0.97);
}

.site-scroll-top__logo {
  display: block;
  width: auto;
  height: auto;
  max-height: clamp(1.15rem, calc(var(--site-logo-max-width, 180px) * 0.2), 2.75rem);
  max-width: min(7.5rem, calc(var(--site-logo-max-width, 180px) * 0.55));
  object-fit: contain;
}

.site-scroll-top__chevron {
  flex-shrink: 0;
  opacity: 0.82;
}

.site-scroll-top--floating {
  position: fixed;
  z-index: 1025;
  bottom: calc(var(--tabbar-h) + 0.55rem + var(--invite-vv-bottom-inset, 0px));
  right: max(0.6rem, env(safe-area-inset-right, 0px));
  box-shadow: 0 6px 22px var(--shadow-ambient);
}

.site-scroll-top--floating .site-scroll-top__logo {
  max-height: clamp(1.05rem, calc(var(--site-logo-max-width, 180px) * 0.18), 2.4rem);
  max-width: min(6.5rem, calc(var(--site-logo-max-width, 180px) * 0.5));
}

.site-scroll-top--floating .site-scroll-top__chevron {
  width: 15px;
  height: 15px;
}

.invite-desktop-nav__foot-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.65rem;
}

.site-scroll-top--sidebar .site-scroll-top__logo {
  max-height: clamp(1.2rem, calc(var(--site-logo-max-width, 180px) * 0.2), 2.6rem);
  max-width: min(7rem, calc(var(--site-logo-max-width, 180px) * 0.55));
}

@media (max-width: 480px) {
  .home-landing__admin-link {
    font-size: 0.6rem;
    max-width: 42%;
    text-align: left;
    line-height: 1.35;
  }

  .site-scroll-top__logo {
    max-height: clamp(1rem, calc(var(--site-logo-max-width, 180px) * 0.16), 2rem);
    max-width: min(5.5rem, calc(var(--site-logo-max-width, 180px) * 0.45));
  }

  .site-scroll-top__chevron {
    width: 15px;
    height: 15px;
  }

  .site-logo--hero {
    max-width: min(72vw, var(--site-logo-max-width, 180px));
  }
}

.object-fit-cover {
  object-fit: cover;
}

.form-msg.text-success {
  color: #8fd4a2 !important;
}

.form-msg.text-danger {
  color: #f0a8a8 !important;
}

/* Admin — guest cards */
.guest-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.guest-card:hover {
  border-color: rgba(166, 124, 61, 0.25);
  box-shadow: 0 12px 40px var(--shadow-deep);
}

.guest-card__head {
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line-faint);
}

.guest-card__title {
  letter-spacing: 0.02em;
}

.guest-unread-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(220, 90, 90, 0.2);
  color: #f0b4b4;
  border: 1px solid rgba(220, 90, 90, 0.45);
}

.invite-nav-trigger[data-panel="chat"].has-chat-unread {
  position: relative;
}

.invite-nav-trigger[data-panel="chat"].has-chat-unread::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e07070;
  box-shadow: 0 0 0 2px rgba(255, 252, 246, 0.95);
  top: 0.35rem;
  right: 0.5rem;
}

.invite-desktop-nav__item.invite-nav-trigger[data-panel="chat"].has-chat-unread::after {
  top: 0.85rem;
  right: 0.55rem;
}

.guest-card__body {
  flex: 1;
}

.guest-card__row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line-faint);
}

.guest-card__row:last-of-type {
  border-bottom: 0;
}

.guest-card__foot {
  margin-top: 0.85rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line-faint);
}

/* Κάρτα καλεσμένου: ξεκάθαρα «όχι» (δεν έρχεται) */
.guest-card--rsvp-no {
  border-color: rgba(90, 110, 130, 0.45);
  background: linear-gradient(180deg, rgba(90, 110, 130, 0.07) 0%, var(--bg-card) 38%);
  opacity: 0.96;
}

.guest-card--rsvp-no .guest-card__title {
  text-decoration: line-through;
  text-decoration-color: rgba(110, 98, 86, 0.45);
  text-underline-offset: 0.12em;
}

.guest-rsvp-no-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  color: #3d4a58;
  background: rgba(70, 95, 120, 0.18);
  border: 1px solid rgba(55, 75, 95, 0.4);
}

.guest-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.guest-badge--bride {
  background: rgba(180, 70, 110, 0.16);
  color: #6b1a3d;
  border: 1px solid rgba(120, 35, 65, 0.35);
}

.guest-badge--groom {
  background: rgba(55, 110, 185, 0.14);
  color: #0c3a5e;
  border: 1px solid rgba(25, 85, 145, 0.38);
}

.guest-badge--both {
  background: rgba(166, 124, 61, 0.2);
  color: #5a3f14;
  border: 1px solid rgba(120, 85, 40, 0.35);
}

.guest-badge--koumparoi {
  background: rgba(90, 120, 70, 0.16);
  color: #2f4518;
  border: 1px solid rgba(70, 100, 45, 0.35);
}

.guest-badge--unknown {
  background: rgba(42, 35, 28, 0.06);
  color: var(--muted);
  border: 1px solid var(--line-medium);
}

/* Σύνδεσμοι πάνω σε ανοιχτές κάρτες / κρεμ φόντο — όχι .link-light (λευκό, αόρατο) */
a.link-on-light {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(166, 124, 61, 0.55);
  text-underline-offset: 0.2em;
}

a.link-on-light:hover {
  color: var(--ivory);
  text-decoration-color: rgba(42, 35, 28, 0.45);
}

.admin-guest-form-page .form-label {
  font-size: 0.875rem;
}

.admin-guest-invite-sent-banner {
  background: rgba(201, 166, 107, 0.12);
  border: 1px solid rgba(201, 166, 107, 0.28);
}

/* ——— Admin — σελίδα μηνυμάτων (inbox) ——— */
.admin-messages-page {
  --admin-msg-sidebar-w: 320px;
}

.admin-msg-container {
  width: 100%;
}

.admin-msg-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 992px) {
  .admin-msg-layout {
    grid-template-columns: var(--admin-msg-sidebar-w) minmax(0, 1fr);
    gap: 1.5rem;
  }
}

.admin-msg-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-msg-sidebar__card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.15rem;
  box-shadow: 0 8px 32px var(--shadow-ambient);
}

.admin-msg-sidebar__title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--ivory);
  margin: 0 0 0.85rem;
  letter-spacing: 0.02em;
}

/* Λίστα καλεσμένων: σταθερό ύψος + scroll (πολλοί καλεσμένοι) */
.admin-msg-guest-list-wrap {
  max-height: min(32vh, 16rem);
  border-radius: 0.65rem;
  border: 1px solid var(--line-soft);
  background: rgba(255, 252, 246, 0.75);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (min-width: 992px) {
  .admin-msg-guest-list-wrap {
    max-height: min(58vh, 26rem);
  }
}

.admin-msg-guest-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 0.4rem 0.45rem;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(166, 124, 61, 0.4) transparent;
}

.admin-msg-guest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.65rem;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid transparent;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.admin-msg-guest-row:hover {
  background: rgba(166, 124, 61, 0.08);
  color: var(--ivory);
}

.admin-msg-guest-row.is-active {
  background: linear-gradient(135deg, rgba(166, 124, 61, 0.18), rgba(166, 124, 61, 0.05));
  border-color: rgba(166, 124, 61, 0.35);
  color: var(--ivory);
}

.admin-msg-guest-row__name {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.3;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-msg-guest-row__meta {
  flex-shrink: 0;
}

.admin-msg-broadcast {
  background: linear-gradient(160deg, rgba(255, 248, 236, 0.95) 0%, rgba(236, 220, 198, 0.9) 100%);
  border-color: rgba(166, 124, 61, 0.22);
}

.admin-msg-broadcast__hint {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 0 0 1rem;
}

.admin-msg-main {
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  min-height: min(70vh, 640px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 12px 48px var(--shadow-ambient);
}

.admin-msg-thread-head {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 252, 246, 0.65);
}

.admin-msg-thread-head__name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.admin-msg-thread-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-msg-chat-scroll {
  flex: 1 1 auto;
  min-height: 200px;
  max-height: min(52vh, 480px);
  overflow-y: auto;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: rgba(245, 234, 218, 0.45);
  scrollbar-width: thin;
  scrollbar-color: rgba(166, 124, 61, 0.35) transparent;
}

.admin-msg-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 100%;
}

.admin-msg-wrap--out {
  align-items: flex-end;
  align-self: flex-end;
}

.admin-msg-wrap--in {
  align-self: flex-start;
}

.admin-msg-wrap__label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(110, 98, 86, 0.82);
  margin-bottom: 0.25rem;
  padding-left: 0.15rem;
  padding-right: 0.15rem;
}

.admin-msg-wrap--out .admin-msg-wrap__label {
  text-align: right;
  width: 100%;
}

.admin-messages-page .admin-msg-chat-scroll .chat-bubble {
  max-width: min(92%, 34rem);
  margin-bottom: 0;
  font-size: 0.92rem;
  box-shadow: 0 2px 12px var(--shadow-ambient);
  white-space: normal;
}

/* Στο admin: εισερχόμενα από καλεσμένο αριστερά, δικά μας δεξιά */
.admin-messages-page .admin-msg-chat-scroll .chat-bubble.from-guest {
  margin-left: 0;
  margin-right: auto;
  border-radius: 0.35rem 1rem 1rem 1rem;
}

.admin-messages-page .admin-msg-chat-scroll .chat-bubble.from-couple {
  margin-right: 0;
  margin-left: auto;
  border-radius: 1rem 0.35rem 1rem 1rem;
  background: linear-gradient(145deg, rgba(166, 124, 61, 0.22), rgba(166, 124, 61, 0.08));
  border: 1px solid rgba(166, 124, 61, 0.28);
}

.admin-msg-time {
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 0.35rem;
  font-variant-numeric: tabular-nums;
}

.admin-msg-wrap--out .admin-msg-time {
  text-align: right;
}

.admin-msg-sms-meta {
  font-size: 0.65rem;
  line-height: 1.4;
  color: rgba(110, 98, 86, 0.88);
  margin-top: 0.45rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--line-soft);
}

.admin-msg-wrap--out .admin-msg-sms-meta {
  text-align: right;
}

.admin-msg-composer {
  flex-shrink: 0;
  padding: 1rem 1.25rem 1.2rem;
  border-top: 1px solid var(--line-soft);
  background: rgba(255, 252, 246, 0.88);
}

.admin-msg-composer__label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.admin-msg-composer .form-control {
  border-radius: 0.75rem;
  resize: vertical;
  min-height: 5rem;
}

.admin-msg-composer__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.admin-msg-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--muted);
}

.admin-msg-empty__icon {
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1rem;
  opacity: 0.45;
  color: var(--gold);
}

.admin-msg-empty__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--ivory);
  margin: 0 0 0.5rem;
}

.admin-msg-empty__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 22rem;
}

.admin-msg-thread-empty {
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--line-faint);
}

/* ——— Admin — ενιαίο πλάτος σελίδων (ίδιο με guests: container-fluid + max 1400px) ——— */
.admin-page-shell {
  box-sizing: border-box;
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* Τραπέζια δεξίωσης — πίνακας πάνω σε ανοιχτή κάρτα (όχι table-dark: το --ivory είναι σκούρο κείμενο) */
.admin-reception-tables-grid {
  --bs-table-color: var(--ivory);
  --bs-table-bg: transparent;
  --bs-table-border-color: var(--line-soft);
  color: var(--ivory);
}

.admin-reception-tables-grid > :not(caption) > * > * {
  padding: 0.55rem 0.65rem;
  border-bottom-color: var(--line-soft);
  vertical-align: middle;
}

.admin-reception-tables-grid thead th {
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: rgba(166, 124, 61, 0.1);
  border-bottom: 1px solid var(--line-medium);
}

.admin-reception-tables-grid tbody tr:nth-child(even) {
  background: rgba(255, 252, 246, 0.55);
}

.admin-reception-tables-grid tbody tr:hover {
  background: rgba(166, 124, 61, 0.08);
}

.admin-reception-tables-grid__name {
  font-weight: 600;
  color: var(--ivory) !important;
}

.admin-reception-tables-grid__input {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ivory);
  border-color: var(--line-medium);
}

.admin-reception-tables-grid__input::placeholder {
  color: var(--muted);
  opacity: 0.85;
}

/* Αναζήτηση στη σελίδα τραπεζιών δεξίωσης — πάνελ δεμένο με τον πίνακα */
.admin-reception-search {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(255, 252, 246, 0.98) 0%, rgba(250, 244, 234, 0.94) 48%, rgba(245, 236, 222, 0.92) 100%);
  border: 1px solid rgba(166, 124, 61, 0.22);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 10px 36px -12px rgba(62, 48, 36, 0.12);
  overflow: hidden;
}

.admin-reception-search__accent {
  height: 3px;
  background: linear-gradient(90deg, rgba(166, 124, 61, 0.15) 0%, rgba(212, 184, 122, 0.85) 35%, var(--gold) 50%, rgba(212, 184, 122, 0.85) 65%, rgba(166, 124, 61, 0.15) 100%);
}

.admin-reception-search__body {
  padding: 1rem 1.15rem 1.1rem;
}

@media (min-width: 768px) {
  .admin-reception-search__body {
    padding: 1.15rem 1.35rem 1.25rem;
  }
}

.admin-reception-search__eyebrow {
  font-weight: 600;
  letter-spacing: 0.22em;
}

.admin-reception-search__igroup {
  border-radius: 0.85rem;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
}

.admin-reception-search__addon {
  background: rgba(255, 251, 244, 0.95) !important;
  border-color: var(--line-medium) !important;
  color: var(--gold);
  padding-left: 1rem;
  padding-right: 0.85rem;
}

.admin-reception-search__ico {
  display: block;
  opacity: 0.92;
}

.admin-reception-search__field {
  min-height: 2.75rem;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.97) !important;
  color: var(--ivory) !important;
  border-color: var(--line-medium) !important;
}

.admin-reception-search__field::placeholder {
  color: var(--muted);
  opacity: 0.88;
}

.admin-reception-search__field:focus {
  border-color: rgba(166, 124, 61, 0.45) !important;
  box-shadow: 0 0 0 0.2rem rgba(166, 124, 61, 0.18);
}

.admin-reception-search__clear {
  flex-shrink: 0;
  border-radius: 0 0.85rem 0.85rem 0 !important;
  border-left: 0 !important;
  font-size: 1.15rem;
  line-height: 1;
  padding-left: 0.9rem;
  padding-right: 0.9rem;
}

.admin-reception-search__igroup > .admin-reception-search__addon {
  border-top-left-radius: 0.85rem;
  border-bottom-left-radius: 0.85rem;
}

.admin-reception-search__pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  background: rgba(166, 124, 61, 0.12);
  color: var(--gold);
  border: 1px solid rgba(166, 124, 61, 0.32);
  white-space: nowrap;
}

/* ——— Γκαλερί admin ——— */
.admin-gallery-panel {
  padding: 1rem 1.1rem;
}

@media (min-width: 768px) {
  .admin-gallery-panel {
    padding: 1.25rem 1.5rem;
  }
}

.admin-gallery-pill-tabs .nav-link {
  color: var(--muted);
  background: rgba(255, 252, 246, 0.65);
  border: 1px solid var(--line-faint);
  font-size: 0.88rem;
  padding: 0.45rem 1rem;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.admin-gallery-pill-tabs .nav-link:hover {
  color: var(--ivory);
  border-color: var(--line-soft);
  background: rgba(166, 124, 61, 0.08);
}

.admin-gallery-pill-tabs .nav-link.active {
  color: var(--ivory);
  font-weight: 600;
  background: rgba(166, 124, 61, 0.18);
  border-color: rgba(166, 124, 61, 0.42);
}

.admin-gallery-tab-content {
  padding-top: 0.25rem;
}

.admin-gallery-pane-head {
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line-faint);
}

.admin-gallery-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 7.5rem;
  padding: 1.25rem 1rem;
  margin: 0;
  border-radius: var(--radius-lg);
  border: 2px dashed rgba(166, 124, 61, 0.38);
  background: rgba(255, 252, 246, 0.72);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.admin-gallery-dropzone:hover,
.admin-gallery-dropzone:focus-within {
  border-color: rgba(166, 124, 61, 0.62);
  background: rgba(166, 124, 61, 0.07);
}

.admin-gallery-dropzone__title {
  font-family: var(--font-serif, "Cormorant Garamond", Georgia, serif);
  font-size: 1.1rem;
  font-weight: 600;
}

.admin-gallery-dropzone__hint {
  font-size: 0.82rem;
  max-width: 28rem;
  line-height: 1.4;
}

.admin-gallery-upload-tags {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-faint);
  background: rgba(255, 252, 246, 0.55);
}

.admin-gallery-tag-picker--block {
  padding: 0.5rem 0 0;
}

.admin-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.admin-gallery-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  min-width: 0;
}

.admin-gallery-card.section-card {
  padding: 0;
}

.admin-gallery-card__thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: rgba(42, 35, 28, 0.06);
  overflow: hidden;
}

.admin-gallery-card__media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-gallery-card__thumb video.admin-gallery-card__media {
  object-fit: contain;
  background: rgba(22, 18, 14, 0.85);
}

.admin-gallery-card__kind {
  position: absolute;
  right: 0.5rem;
  top: 0.5rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(22, 18, 14, 0.72);
  color: rgba(255, 252, 246, 0.92);
}

.admin-gallery-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.75rem 0.85rem 0.9rem;
}

.admin-gallery-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.admin-gallery-chip {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(42, 35, 28, 0.08);
  color: var(--muted);
  border: 1px solid var(--line-faint);
}

.admin-gallery-chip--live {
  background: rgba(34, 120, 72, 0.12);
  color: #1f6b42;
  border-color: rgba(34, 120, 72, 0.28);
}

.admin-gallery-chip--muted {
  background: rgba(166, 124, 61, 0.1);
  color: var(--gold);
  border-color: rgba(166, 124, 61, 0.25);
}

.admin-gallery-card__guest-line {
  margin: 0;
  line-height: 1.35;
  color: var(--ivory);
}

.admin-gallery-card__guest-line strong {
  font-weight: 600;
}

.admin-gallery-card__caption {
  margin: 0;
}

.admin-gallery-card__caption-row {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.admin-gallery-card__caption-row .form-control {
  min-width: 0;
  flex: 1;
}

.admin-gallery-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-top: 0.15rem;
}

.admin-gallery-card__reorder {
  display: inline-flex;
  gap: 0.2rem;
}

.admin-gallery-card__actions .btn {
  font-size: 0.78rem;
  padding: 0.28rem 0.65rem;
}

.admin-gallery-pick-card {
  padding: 0;
  overflow: hidden;
}

.admin-gallery-pick-card.section-card {
  padding: 0;
}

.admin-gallery-pick-card__ratio {
  background: rgba(42, 35, 28, 0.06);
}

.admin-gallery-pick-card__foot {
  border-top: 1px solid var(--line-faint);
}

.admin-gallery-pagination .page-link {
  color: var(--ivory);
  border-color: var(--line-soft);
  background: rgba(255, 252, 246, 0.65);
}

.admin-gallery-pagination .page-item.active .page-link {
  background: rgba(166, 124, 61, 0.22);
  border-color: rgba(166, 124, 61, 0.45);
  color: var(--ivory);
}

.admin-gallery-modal.modal-content {
  border: 1px solid var(--line-soft);
}

.admin-gallery-modal .modal-header,
.admin-gallery-modal .modal-body,
.admin-gallery-modal .modal-footer {
  background: transparent;
}

/* Ίδιο πλάτος με dashboard: το shell (1400px) είναι το μόνο όριο */
.admin-page-inner--920,
.admin-page-inner--720,
.admin-page-inner--520,
.admin-page-inner--wide,
.admin-page-inner {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.admin-settings-layout {
  display: grid;
  gap: 1.25rem 1.75rem;
  align-items: start;
}

@media (min-width: 992px) {
  .admin-settings-layout {
    grid-template-columns: 11.5rem minmax(0, 1fr);
  }
}

.admin-settings-toc {
  display: none;
}

@media (min-width: 992px) {
  .admin-settings-toc {
    display: block;
    position: sticky;
    top: 1rem;
    padding: 0.85rem 0.9rem;
    border: 1px solid var(--line-faint);
    border-radius: var(--radius-lg);
    background: rgba(18, 16, 14, 0.35);
    backdrop-filter: blur(10px);
  }
}

.admin-settings-toc__title {
  margin: 0 0 0.65rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.admin-settings-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.admin-settings-toc__list a {
  display: block;
  padding: 0.28rem 0.4rem;
  border-radius: 0.4rem;
  color: rgba(255, 252, 246, 0.72);
  text-decoration: none;
  font-size: 0.86rem;
  line-height: 1.3;
  transition: color 0.15s ease, background 0.15s ease;
}

.admin-settings-toc__list a:hover,
.admin-settings-toc__list a:focus-visible {
  color: var(--ivory);
  background: rgba(166, 124, 61, 0.14);
  outline: none;
}

.admin-settings-toc__list a.is-active {
  color: var(--ivory);
  background: rgba(166, 124, 61, 0.22);
}

.admin-settings-main {
  min-width: 0;
}

.admin-settings-shortcuts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .admin-settings-shortcuts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.admin-settings-shortcut {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-faint);
  background: rgba(18, 16, 14, 0.32);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.admin-settings-shortcut:hover,
.admin-settings-shortcut:focus-visible {
  border-color: rgba(166, 124, 61, 0.45);
  background: rgba(166, 124, 61, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.admin-settings-shortcut__label {
  color: var(--gold);
  font-family: var(--font-serif, "Cormorant Garamond", Georgia, serif);
  font-size: 1.05rem;
  font-weight: 600;
}

.admin-settings-shortcut__hint {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.admin-settings-panel {
  scroll-margin-top: 1rem;
}

.admin-settings-panel__head {
  margin-bottom: 1.15rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line-faint);
}

.admin-settings-panel__eyebrow {
  margin: 0 0 0.3rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.admin-settings-panel__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif, "Cormorant Garamond", Georgia, serif);
  font-size: 1.35rem;
  color: var(--ivory);
  font-weight: 600;
  line-height: 1.25;
}

.admin-settings-panel__sub {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif, "Cormorant Garamond", Georgia, serif);
  font-size: 1.1rem;
  color: var(--gold);
  font-weight: 600;
}

.admin-settings-panel__lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  max-width: 42rem;
}

.admin-settings-brand-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .admin-settings-brand-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.admin-settings-brand-col {
  padding: 1rem;
  border-radius: calc(var(--radius-lg) - 4px);
  border: 1px solid rgba(255, 252, 246, 0.08);
  background: rgba(0, 0, 0, 0.16);
}

.admin-settings-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5.5rem;
  padding: 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 252, 246, 0.1);
  background: rgba(0, 0, 0, 0.22);
}

.admin-settings-preview--splash {
  min-height: 8rem;
}

.admin-settings-divider {
  margin: 0.25rem 0;
  border: 0;
  border-top: 1px solid var(--line-faint);
  opacity: 1;
}

.admin-settings-schedule-row {
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 252, 246, 0.1);
  background: rgba(0, 0, 0, 0.18);
}

.admin-settings-savebar {
  position: sticky;
  bottom: 0.75rem;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(166, 124, 61, 0.35);
  background: rgba(22, 18, 14, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.admin-settings-savebar__hint {
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 991.98px) {
  .admin-settings-page.admin-has-mtabbar .admin-settings-savebar {
    bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
  }
}

/* Γκαλερί — ετικέτες: πολυεπιλογή λίστας (πολλοί καλεσμένοι χωρίς checkboxes) */
.admin-gallery-tag-picker .admin-gallery-guest-multiselect {
  width: 100%;
  max-width: 28rem;
  min-height: 12.5rem;
  max-height: min(50vh, 22rem);
  padding: 0.35rem 0.5rem;
  line-height: 1.35;
}

#galleryTagsModal .admin-gallery-tag-picker .admin-gallery-guest-multiselect {
  max-width: none;
  max-height: min(42vh, 16rem);
}

/* ——— Admin — πίνακας (index) ——— */
.admin-dash-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line-soft);
  overflow: visible;
}

/* Χώρος δίπλα στο nav· min-width ώστε το flex να μην «σπρώχνει» τίτλο+λογότυπο σε στήλη */
.admin-dash-head__intro {
  flex: 1 1 14rem;
  min-width: 0;
}

.admin-dash-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.68rem;
  color: var(--gold);
  margin: 0 0 0.4rem;
}

.admin-dash-title-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-bottom: 0.35rem;
}

.admin-dash-logo {
  height: clamp(2.35rem, 5.5vw, 3rem);
  width: auto;
  max-width: min(9rem, 38vw);
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.admin-dash-title {
  font-size: clamp(1.75rem, 4vw, 2.15rem);
  margin: 0;
  letter-spacing: 0.02em;
  flex: 0 1 auto;
  min-width: 0;
}

.admin-dash-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 26rem;
  line-height: 1.45;
}

.admin-dash-head__top {
  margin-bottom: 0.35rem;
}

.admin-dash-head__top p {
  margin-bottom: 0;
}

.admin-dash-head__tools {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  flex: 1 1 280px;
  min-width: 0;
  overflow: visible;
}

.admin-dash-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.admin-dash-head__actions--after-nav {
  width: 100%;
  margin-top: 0.15rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--line-faint);
}

@media (max-width: 991.98px) {
  /* Desktop nav είναι κρυφό· χωρίς γραμμή πάνω από το κουμπί */
  .admin-dash-head__actions--after-nav {
    border-top: none;
    padding-top: 0;
    margin-top: 0.35rem;
    justify-content: stretch;
  }

  .admin-dash-head__actions--after-nav > .btn {
    width: 100%;
    justify-content: center;
  }
}

.admin-dash-nav-badge {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1.15rem;
  text-align: center;
  border-radius: 999px;
  background: #c45c5c;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(255, 252, 246, 0.98);
}

/* ——— Admin — desktop nav (segmented cluster + «Περισσότερα») ——— */
.admin-nav-desktop {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.admin-nav-desktop__bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.65rem 1rem;
  justify-content: flex-end;
  max-width: 100%;
  min-width: 0;
}

.admin-dash-head__tools .admin-dash-head__nav.admin-nav-desktop {
  justify-content: flex-end;
  width: 100%;
}

@media (min-width: 992px) {
  .admin-dash-head__tools .admin-nav-desktop {
    align-self: stretch;
  }
}

.admin-nav-desktop__cluster {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.12rem;
  padding: 0.22rem;
  background: rgba(255, 252, 246, 0.85);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 4px 20px var(--shadow-ambient);
  max-width: 100%;
  min-width: 0;
}

.admin-nav-desktop__cluster--primary {
  flex-wrap: nowrap;
  flex: 0 1 auto;
  overflow: hidden;
}

.admin-nav-desktop__cluster--primary .admin-nav-desktop__item {
  flex: 0 1 auto;
  min-width: 0;
}

.admin-nav-desktop__cluster--primary .admin-nav-desktop__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 8.5rem;
}

.admin-nav-desktop__more-wrap {
  position: relative;
  flex-shrink: 0;
}

.admin-nav-desktop__more-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.44rem 0.92rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  border: 1px solid var(--line-medium);
  background: rgba(255, 250, 242, 0.9);
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.admin-nav-desktop__more-btn:hover {
  color: var(--ivory);
  background: rgba(166, 124, 61, 0.12);
  border-color: rgba(166, 124, 61, 0.28);
}

.admin-nav-desktop__more-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.admin-nav-desktop__more-btn.is-active {
  color: #161b16;
  background: linear-gradient(160deg, #e0c88c 0%, var(--gold) 42%, #9e7328 100%);
  border-color: rgba(166, 124, 61, 0.45);
  box-shadow:
    0 3px 16px rgba(166, 124, 61, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.admin-nav-desktop__more-btn--badged {
  padding-right: 1.05rem;
}

.admin-nav-desktop__more-dot {
  position: absolute;
  top: 0.28rem;
  right: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f0e6a8 0%, var(--gold) 55%, #8a6a2a 100%);
  box-shadow: 0 0 0 2px rgba(255, 252, 246, 0.95);
  pointer-events: none;
}

.admin-nav-desktop__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  z-index: 1080;
  min-width: min(17.5rem, calc(100vw - 2rem));
  max-width: min(20rem, calc(100vw - 2rem));
  padding: 0.4rem;
  border-radius: 1rem;
  border: 1px solid rgba(166, 124, 61, 0.28);
  background: linear-gradient(175deg, #fffdf9 0%, #f5ebe0 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 18px 48px var(--shadow-deep);
}

.admin-nav-desktop__panel-inner {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-height: min(70vh, 22rem);
  overflow-y: auto;
}

.admin-nav-desktop__panel-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.62rem 0.75rem;
  border-radius: 0.75rem;
  text-decoration: none;
  color: var(--ivory);
  font-size: 0.875rem;
  font-weight: 600;
  background: rgba(255, 252, 246, 0.95);
  border: 1px solid var(--line-faint);
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.admin-nav-desktop__panel-link:hover {
  background: rgba(166, 124, 61, 0.12);
  border-color: rgba(166, 124, 61, 0.25);
}

.admin-nav-desktop__panel-link.is-active {
  border-color: rgba(166, 124, 61, 0.45);
  background: rgba(166, 124, 61, 0.14);
}

.admin-nav-desktop__panel-link-label {
  flex: 1 1 auto;
  text-align: left;
  min-width: 0;
}

.admin-nav-desktop__panel-link-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: flex-end;
  flex-shrink: 0;
}

.admin-nav-desktop__panel-badge {
  font-size: 0.58rem;
  font-weight: 800;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
}

.admin-nav-desktop__panel-badge--messages {
  background: linear-gradient(180deg, #d06060 0%, #a83838 100%);
  color: #fff;
}

.admin-nav-desktop__panel-badge--rsvp {
  background: linear-gradient(180deg, #3d8f68 0%, #256348 100%);
  color: #f0fff4;
}

.admin-nav-desktop__panel-logout {
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.58rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff8f7 !important;
  background: linear-gradient(175deg, #9a3d3d 0%, #6e2525 100%);
  border: 1px solid rgba(40, 18, 18, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.admin-nav-desktop__panel-logout:hover {
  background: linear-gradient(175deg, #a84848 0%, #7a2c2c 100%);
  border-color: rgba(40, 18, 18, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.admin-nav-desktop__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.44rem 0.92rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-decoration: none;
  line-height: 1.2;
  border: 1px solid transparent;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.admin-nav-desktop__item:hover {
  color: var(--ivory);
  background: rgba(166, 124, 61, 0.1);
  border-color: rgba(166, 124, 61, 0.2);
}

.admin-nav-desktop__item:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.admin-nav-desktop__item.is-active {
  color: #161b16;
  background: linear-gradient(160deg, #e0c88c 0%, var(--gold) 42%, #9e7328 100%);
  border-color: rgba(166, 124, 61, 0.45);
  box-shadow:
    0 3px 16px rgba(166, 124, 61, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.admin-nav-desktop__item.is-active .admin-nav-desktop__label {
  font-weight: 700;
}

.admin-nav-desktop__item--badged {
  padding-right: 1.1rem;
}

.admin-nav-desktop__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.08rem;
  height: 1.08rem;
  padding: 0 0.3rem;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1;
  border-radius: 999px;
  flex-shrink: 0;
}

.admin-nav-desktop__badge--messages {
  background: #e11d48;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(255, 252, 246, 0.95);
  font-weight: 700;
  min-width: 1.15rem;
  padding: 0.12rem 0.38rem;
}

.admin-nav-desktop__item--folder {
  gap: 0.35rem;
}

.admin-nav-desktop__folder-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.admin-nav-desktop__item.is-active .admin-nav-desktop__badge--messages {
  box-shadow: 0 0 0 2px rgba(255, 235, 190, 0.95);
}

.admin-nav-desktop__badge--rsvp {
  background: linear-gradient(135deg, #2d6b4f 0%, #1a4030 100%);
  color: #d4f5e2;
  box-shadow: 0 0 0 2px rgba(255, 252, 246, 0.95);
}

.admin-nav-desktop__item.is-active .admin-nav-desktop__badge--rsvp {
  background: linear-gradient(135deg, #f0fff4 0%, #a8dfc0 100%);
  color: #0d2818;
  box-shadow: 0 0 0 2px rgba(255, 235, 190, 0.95);
}

.admin-nav-desktop__logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.44rem 0.92rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: #4a2222;
  text-decoration: none;
  border: 1px solid rgba(130, 65, 65, 0.42);
  background: rgba(255, 246, 244, 0.98);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.admin-nav-desktop__logout:hover {
  color: #2a0f0f;
  background: rgba(255, 228, 224, 0.98);
  border-color: rgba(110, 48, 48, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 2px 10px rgba(90, 40, 40, 0.12);
}

.admin-nav-desktop__logout:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.admin-dash-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .admin-dash-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.admin-dash-stat {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.1rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 28px var(--shadow-ambient);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.admin-dash-stat:hover {
  border-color: rgba(166, 124, 61, 0.22);
  transform: translateY(-1px);
}

.admin-dash-stat__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  color: var(--gold);
  background: rgba(166, 124, 61, 0.12);
}

.admin-dash-stat--yes .admin-dash-stat__icon {
  color: #9fd4a8;
  background: rgba(120, 200, 140, 0.12);
}

.admin-dash-stat--pending .admin-dash-stat__icon {
  color: #e8c87a;
  background: rgba(232, 200, 122, 0.12);
}

.admin-dash-stat--news .admin-dash-stat__icon {
  color: #a8c4e8;
  background: rgba(120, 160, 220, 0.12);
}

.admin-dash-stat__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.admin-dash-stat__value {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--ivory);
  font-variant-numeric: tabular-nums;
}

.admin-dash-stat__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  line-height: 1.3;
}

.admin-dash-meta-line {
  margin-top: -0.25rem;
}

.admin-dash-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

@media (min-width: 992px) {
  .admin-dash-grid {
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
  }
}

.admin-dash-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
  box-shadow: 0 10px 40px var(--shadow-ambient);
}

.admin-dash-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line-faint);
}

.admin-dash-card__title {
  font-size: 1.2rem;
  color: var(--ivory);
  letter-spacing: 0.02em;
}

.admin-dash-quick > .admin-dash-card__title {
  margin-bottom: 1rem;
}

.admin-dash-quick__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-dash-quick__link {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  text-decoration: none;
  border: 1px solid var(--line-faint);
  background: rgba(255, 252, 246, 0.75);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.admin-dash-quick__link:hover {
  background: rgba(166, 124, 61, 0.1);
  border-color: rgba(166, 124, 61, 0.25);
}

.admin-dash-quick__link-title {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ivory);
  margin-bottom: 0.2rem;
}

.admin-dash-quick__link-desc {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

.admin-dash-rsvp-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: min(55vh, 28rem);
  overflow-y: auto;
  margin: 0 -0.35rem;
  padding: 0 0.35rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(166, 124, 61, 0.35) transparent;
}

.admin-dash-rsvp-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line-faint);
}

.admin-dash-rsvp-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.admin-dash-rsvp-row__main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  min-width: 0;
}

.admin-dash-rsvp-row__name {
  font-weight: 500;
  color: var(--ivory);
  font-size: 0.92rem;
}

.admin-dash-pill {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}

.admin-dash-pill--yes {
  background: rgba(130, 200, 150, 0.2);
  color: #b8e6c4;
}

.admin-dash-pill--no {
  background: rgba(200, 120, 120, 0.2);
  color: #e8b0b0;
}

.admin-dash-pill--maybe {
  background: rgba(200, 180, 100, 0.18);
  color: #e8d898;
}

.admin-dash-pill--pending {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.admin-dash-rsvp-row__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.admin-dash-rsvp-row__party {
  font-variant-numeric: tabular-nums;
}

.admin-dash-rsvp-row__invite {
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.admin-dash-rsvp-row__invite--seen {
  color: rgba(180, 210, 195, 0.95);
}

.admin-dash-rsvp-row__invite--not {
  color: var(--muted);
  font-weight: 500;
  opacity: 0.85;
}

.admin-dash-rsvp-row__time {
  font-variant-numeric: tabular-nums;
  opacity: 0.9;
}

.admin-dash-empty {
  padding: 1rem 0;
}

/* ——— Admin — διακριτικό footer (myPA) ——— */
.admin-footer-credit-wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding: 0.35rem 1rem 0.75rem;
}

.admin-footer-credit {
  margin: 0;
}

.admin-footer-credit__text {
  margin: 0;
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  opacity: 0.72;
}

.admin-footer-credit__heart {
  font-style: normal;
}

.admin-footer-credit__link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(110, 98, 86, 0.4);
  text-underline-offset: 0.15em;
}

.admin-footer-credit__link:hover {
  color: var(--gold);
  opacity: 1;
  text-decoration-color: rgba(166, 124, 61, 0.55);
}

@media (max-width: 991.98px) {
  .admin-footer-credit-wrap {
    padding-bottom: 0.25rem;
  }
}

/* ——— Admin — κινητή κάτω μπάρα πλοήγησης ——— */
@media (max-width: 991.98px) {
  .admin-has-mtabbar > .container,
  .admin-has-mtabbar > .container-fluid {
    padding-bottom: calc(var(--admin-mtabbar-h) + var(--admin-mtabbar-content-gap)) !important;
  }

  /* Όταν το κύριο wrap δεν είναι άμεσο παιδί του body (μελλοντική διάταξη) */
  body.admin-has-mtabbar .admin-page-shell {
    padding-bottom: calc(var(--admin-mtabbar-h) + var(--admin-mtabbar-content-gap)) !important;
  }

  /* Κύλιση/anchor: να μην κρύβεται το στοιχείο πίσω από τη μπάρα */
  html:has(body.admin-has-mtabbar) {
    scroll-padding-bottom: calc(var(--admin-mtabbar-h) + var(--admin-mtabbar-content-gap));
  }
}

body.admin-mtabbar-lock {
  overflow: hidden;
  touch-action: none;
}

@media (min-width: 992px) {
  body.admin-mtabbar-lock {
    overflow: unset;
    touch-action: unset;
  }
}

.admin-mtabbar-stack {
  position: relative;
}

/* Πάνω από Bootstrap modal backdrop (1050) / dialog (1055) ώστε η μπάρα & το φύλλο «Περισσότερα» να δέχονται πάντα αφή. */
.admin-mtabbar__backdrop {
  position: fixed;
  inset: 0;
  z-index: 1058;
  background: rgba(42, 35, 28, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease;
}

.admin-mtabbar-stack.is-more-open .admin-mtabbar__backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.admin-mtabbar__sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--admin-mtabbar-h);
  z-index: 1059;
  display: flex;
  flex-direction: column;
  max-height: min(72vh, 28rem);
  border-radius: 1.2rem 1.2rem 0 0;
  border: 1px solid rgba(166, 124, 61, 0.32);
  border-bottom: 0;
  background: linear-gradient(175deg, #fffdf9 0%, #f5ebe0 100%);
  box-shadow:
    0 -1px 0 rgba(255, 255, 255, 0.85) inset,
    0 -24px 64px var(--shadow-deep);
  transform: translate3d(0, 105%, 0);
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.32s cubic-bezier(0.32, 0.72, 0, 1),
    visibility 0.32s ease;
}

.admin-mtabbar-stack.is-more-open .admin-mtabbar__sheet {
  transform: translate3d(0, 0, 0);
  visibility: visible;
  pointer-events: auto;
}

.admin-mtabbar__sheet-inner {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: inherit;
}

.admin-mtabbar__sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem 0.5rem;
  border-bottom: 1px solid var(--line-faint);
  flex-shrink: 0;
}

.admin-mtabbar__sheet-title {
  margin: 0;
  font-size: 1.1rem;
  color: var(--ivory);
  letter-spacing: 0.03em;
}

.admin-mtabbar__sheet-close {
  font-size: 1.75rem !important;
  line-height: 1 !important;
  min-width: 2.25rem;
  text-decoration: none !important;
}

.admin-mtabbar__sheet-body {
  padding: 0.35rem 0.65rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-mtabbar__sheet-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.admin-mtabbar__sheet-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.9rem;
  text-decoration: none;
  color: var(--ivory);
  background: rgba(255, 252, 246, 0.92);
  border: 1px solid var(--line-faint);
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.admin-mtabbar__sheet-link:hover {
  background: rgba(166, 124, 61, 0.1);
  border-color: rgba(166, 124, 61, 0.22);
}

.admin-mtabbar__sheet-link.is-active {
  border-color: rgba(166, 124, 61, 0.45);
  background: rgba(166, 124, 61, 0.12);
}

.admin-mtabbar__sheet-ico {
  display: flex;
  color: var(--gold);
  flex-shrink: 0;
}

.admin-mtabbar__sheet-label {
  flex: 1 1 auto;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: left;
}

.admin-mtabbar__sheet-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
  flex-shrink: 0;
}

.admin-mtabbar__sheet-badge {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
}

.admin-mtabbar__sheet-badge--messages {
  background: linear-gradient(180deg, #d06060 0%, #a83838 100%);
  color: #fff;
}

.admin-mtabbar__sheet-badge--rsvp {
  background: linear-gradient(180deg, #3d8f68 0%, #256348 100%);
  color: #f0fff4;
}

.admin-mtabbar__sheet-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.65rem;
  padding: 0.7rem 1rem;
  border-radius: 0.9rem;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  color: rgba(240, 200, 200, 0.95) !important;
  background: rgba(90, 38, 38, 0.35);
  border: 1px solid rgba(200, 120, 120, 0.35);
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.admin-mtabbar__sheet-logout:hover {
  background: rgba(120, 50, 50, 0.45);
  border-color: rgba(230, 150, 150, 0.45);
}

.admin-mtabbar__sheet-logout-ico {
  flex-shrink: 0;
  opacity: 0.9;
}

@media (prefers-reduced-motion: reduce) {
  .admin-mtabbar__sheet,
  .admin-mtabbar__backdrop {
    transition: none;
  }
}

.admin-mtabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1060;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  gap: 0.2rem;
  padding: 0.4rem 0.4rem calc(0.4rem + env(safe-area-inset-bottom, 0px));
  padding-left: max(0.45rem, env(safe-area-inset-left, 0px));
  padding-right: max(0.45rem, env(safe-area-inset-right, 0px));
  background: rgba(252, 246, 236, 0.97);
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  border-top: 1px solid rgba(166, 124, 61, 0.22);
  box-shadow: 0 -10px 36px var(--shadow-ambient);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.admin-mtabbar--glass {
  border-radius: 1.1rem 1.1rem 0 0;
  border-top: 1px solid rgba(166, 124, 61, 0.32);
  background: linear-gradient(180deg, #fffdf9 0%, #efe4d4 100%);
  box-shadow:
    0 -1px 0 rgba(255, 255, 255, 0.75) inset,
    0 -12px 40px var(--shadow-deep);
}

.admin-mtabbar--five .admin-mtabbar__btn,
.admin-mtabbar--five .admin-mtabbar__spacer {
  flex: 1 1 0;
  min-width: 0;
}

.admin-mtabbar__spacer {
  pointer-events: none;
  min-height: 3.15rem;
}

.admin-mtabbar__btn {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  min-width: 0;
  min-height: 3.15rem;
  padding: 0.38rem 0.12rem;
  border: 0;
  border-radius: 0.85rem;
  background: transparent;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  line-height: 1.15;
  transition: color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.admin-mtabbar__btn:active {
  transform: scale(0.96);
}

.admin-mtabbar__btn--more {
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.admin-mtabbar-stack.is-more-open .admin-mtabbar__btn--more {
  color: var(--gold);
  background: rgba(166, 124, 61, 0.2);
  box-shadow: inset 0 0 0 1px rgba(166, 124, 61, 0.28);
}

.admin-mtabbar__btn.is-active {
  color: var(--gold);
  background: rgba(166, 124, 61, 0.16);
  box-shadow: inset 0 0 0 1px rgba(166, 124, 61, 0.22);
}

.admin-mtabbar__btn.is-active .admin-mtabbar__icon {
  color: var(--gold);
  filter: drop-shadow(0 0 10px rgba(166, 124, 61, 0.35));
}

.admin-mtabbar__icon {
  flex-shrink: 0;
  opacity: 0.9;
}

.admin-mtabbar__btn--logout {
  color: rgba(180, 150, 150, 0.95);
}

.admin-mtabbar__btn--logout.is-active,
.admin-mtabbar__btn--logout:active {
  color: #e8a8a8;
}

.admin-mtabbar__btn--badged {
  padding-top: 0.48rem;
}

.admin-checkin-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.admin-checkin-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: rgba(255, 252, 246, 0.95);
  border: 1px solid var(--line-faint);
}

.admin-checkin-row--done {
  border-color: rgba(80, 160, 120, 0.35);
  background: rgba(80, 160, 120, 0.08);
}

.admin-checkin-row__main {
  flex: 1 1 200px;
  min-width: 0;
}

.admin-checkin-row__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin-bottom: 0.25rem;
}

.admin-checkin-row__title .guest-badge {
  font-size: 0.6rem;
}

.admin-checkin-row__meta {
  margin-bottom: 0.15rem;
}

.admin-checkin-row__notes {
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--line-faint);
}

.admin-checkin-row__action {
  flex-shrink: 0;
}

.admin-checkin-row__action .btn {
  min-width: 5.5rem;
}

.invite-checkin-qr img,
.invite-checkin-qr canvas,
.admin-guest-checkin-qr img,
.admin-guest-checkin-qr canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

.admin-checkin-qr-reader {
  min-height: 260px;
  max-width: 100%;
}

.admin-checkin-qr-reader video {
  width: 100% !important;
  border-radius: 0.5rem;
}

.admin-checkin-camera-modal .modal-body {
  overflow: hidden;
}

.admin-mtabbar__badge {
  position: absolute;
  top: 0.2rem;
  left: 50%;
  transform: translateX(calc(-50% + 0.62rem));
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.25rem;
  font-size: 0.55rem;
  font-weight: 700;
  line-height: 1rem;
  text-align: center;
  border-radius: 999px;
  background: #c45c5c;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(255, 252, 246, 0.95);
  pointer-events: none;
}

.admin-mtabbar__badge--messages {
  background: linear-gradient(180deg, #d06060 0%, #a83838 100%);
}

.admin-mtabbar__badge--rsvp {
  background: linear-gradient(180deg, #3d8f68 0%, #256348 100%);
  color: #f0fff4;
}

.admin-mtabbar__badge--dot {
  top: 0.28rem;
  min-width: 0.45rem;
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  line-height: 0;
  font-size: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f0e6a8 0%, var(--gold) 55%, #8a6a2a 100%);
  box-shadow: 0 0 0 2px rgba(255, 252, 246, 0.95);
}

/* Admin — polaroids page */
.admin-polaroids-page .admin-page-inner--wide {
  max-width: none;
}

.admin-polaroid-stage-wrap {
  overflow: hidden;
}

.admin-polaroid-stage {
  position: relative;
  min-height: clamp(18rem, 48vw, 26rem);
  border-radius: calc(var(--radius-lg) - 2px);
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(166, 124, 61, 0.12), transparent 62%),
    linear-gradient(165deg, rgba(42, 35, 28, 0.06) 0%, rgba(42, 35, 28, 0.14) 100%);
  border: 1px solid rgba(42, 35, 28, 0.1);
  overflow: hidden;
}

.admin-polaroid-stage__center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: min(42%, 14rem);
  padding: 1.1rem 1rem;
  text-align: center;
  border-radius: 1rem;
  background: rgba(255, 252, 246, 0.92);
  border: 1px solid rgba(42, 35, 28, 0.1);
  box-shadow: 0 12px 28px rgba(42, 35, 28, 0.12);
}

.admin-polaroid-stage__center-eyebrow {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.admin-polaroid-stage__center-title {
  display: block;
  font-family: var(--font-serif, "Cormorant Garamond", Georgia, serif);
  color: #2a231c;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.25;
}

.admin-polaroid-stage__frame {
  position: absolute;
  z-index: 1;
  margin: 0;
  width: clamp(4.6rem, 14vw, 7.25rem);
  padding: 0.35rem 0.35rem 0.85rem;
  background: linear-gradient(168deg, #faf7f0 0%, #e8e2d6 55%, #dcd4c8 100%);
  border-radius: 2px;
  box-shadow: 0 8px 20px rgba(42, 35, 28, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease, outline-color 0.2s ease;
}

.admin-polaroid-stage__frame.is-next,
.admin-polaroid-stage__frame.is-previewing {
  outline: 2px solid rgba(166, 124, 61, 0.85);
  outline-offset: 3px;
  z-index: 3;
  box-shadow: 0 12px 28px rgba(166, 124, 61, 0.28);
}

.admin-polaroid-stage__badge {
  position: absolute;
  top: -0.55rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: #fff;
  background: rgba(42, 35, 28, 0.82);
}

.admin-polaroid-stage__frame--left .admin-polaroid-stage__badge {
  background: rgba(90, 122, 90, 0.92);
}

.admin-polaroid-stage__frame--right .admin-polaroid-stage__badge {
  background: rgba(166, 124, 61, 0.95);
}

.admin-polaroid-stage__inner {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 1px;
  background: linear-gradient(140deg, rgba(200, 182, 158, 0.45), rgba(160, 142, 118, 0.4));
}

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

.admin-polaroid-stage__inner img.admin-polaroid-stage__ghost {
  opacity: 0.92;
}

.admin-polaroid-stage__next-label {
  display: grid;
  place-items: center;
  height: 100%;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(42, 35, 28, 0.55);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-polaroid-stage__frame--1 { top: 6%; left: 3%; transform: rotate(-12deg); }
.admin-polaroid-stage__frame--2 { top: 7%; right: 3%; transform: rotate(9deg); }
.admin-polaroid-stage__frame--3 { bottom: 10%; left: 4%; transform: rotate(6deg); }
.admin-polaroid-stage__frame--4 { bottom: 8%; right: 4%; transform: rotate(-8deg); }
.admin-polaroid-stage__frame--5 { top: 38%; left: 1.5%; transform: rotate(-4deg); }
.admin-polaroid-stage__frame--6 { top: 40%; right: 1.5%; transform: rotate(11deg); }

.admin-polaroid-stage__frame.is-empty {
  opacity: 0.72;
}

.admin-polaroid-upload__layout {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .admin-polaroid-upload__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: stretch;
  }

  .admin-polaroid-upload__layout:has(#polaroidUploadPreview:not([hidden])) {
    grid-template-columns: 1fr;
  }
}

.admin-polaroid-dropzone[hidden] {
  display: none !important;
}

.admin-polaroid-upload-preview {
  padding: 1rem 1.1rem;
  border-radius: calc(var(--radius-lg) - 2px);
  background: rgba(42, 35, 28, 0.045);
  border: 1px dashed rgba(166, 124, 61, 0.45);
}

.admin-polaroid-upload-preview__eyebrow {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.admin-polaroid-upload-preview__row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 1.35rem;
  align-items: center;
}

.admin-polaroid-upload-preview__card {
  width: 7.5rem;
  padding: 0.45rem 0.45rem 1rem;
  background: linear-gradient(168deg, #faf7f0 0%, #e8e2d6 55%, #dcd4c8 100%);
  border-radius: 2px;
  box-shadow: 0 10px 24px rgba(42, 35, 28, 0.16);
  transform: rotate(var(--pol-rot, -6deg));
}

.admin-polaroid-upload-preview__photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #ddd;
}

.admin-polaroid-upload-preview__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-polaroid-upload-preview__meta {
  flex: 1 1 12rem;
  min-width: 0;
}

.admin-polaroid-upload-preview__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.admin-polaroid-status__slot--left.is-filled {
  background: rgba(90, 122, 90, 0.55);
  border-color: rgba(90, 122, 90, 0.35);
}

.admin-polaroid-status__slot--right.is-filled {
  background: rgba(166, 124, 61, 0.55);
  border-color: rgba(166, 124, 61, 0.35);
}

.admin-polaroid-tile__side {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  color: #fff;
  background: rgba(42, 35, 28, 0.7);
}

.admin-polaroid-tile__side--left {
  background: rgba(90, 122, 90, 0.92);
}

.admin-polaroid-tile__side--right {
  background: rgba(166, 124, 61, 0.95);
}

.admin-polaroid-tile__placement {
  font-size: 0.75rem;
  color: rgba(42, 35, 28, 0.62);
  line-height: 1.3;
}

.admin-polaroid-panel-head {
  margin-bottom: 1.15rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line-faint);
}

.admin-polaroid-panel-head__eyebrow {
  margin: 0 0 0.3rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.admin-polaroid-panel-head__title {
  margin: 0 0 0.3rem;
  font-family: var(--font-serif, "Cormorant Garamond", Georgia, serif);
  font-size: 1.35rem;
  color: var(--ivory);
  font-weight: 600;
  line-height: 1.25;
}

.admin-polaroid-panel-head__lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.admin-polaroid-status__eyebrow {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.admin-polaroid-status__count {
  font-family: var(--font-serif, "Cormorant Garamond", Georgia, serif);
  font-size: 1.85rem;
  line-height: 1;
  font-weight: 600;
}

.admin-polaroid-status__bar {
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(42, 35, 28, 0.1);
  overflow: hidden;
  margin: 0.85rem 0 0.75rem;
}

.admin-polaroid-status__bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(166, 124, 61, 0.75), rgba(166, 124, 61, 1));
  transition: width 0.25s ease;
}

.admin-polaroid-status__slots {
  display: flex;
  gap: 0.4rem;
}

.admin-polaroid-status__slot {
  flex: 1 1 0;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(42, 35, 28, 0.1);
  border: 1px solid rgba(42, 35, 28, 0.08);
}

.admin-polaroid-status__slot.is-filled {
  background: rgba(166, 124, 61, 0.55);
  border-color: rgba(166, 124, 61, 0.35);
}

.admin-polaroid-dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 10.5rem;
  padding: 1.5rem 1.25rem;
  border-radius: calc(var(--radius-lg) - 2px);
  border: 1px dashed rgba(166, 124, 61, 0.45);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(166, 124, 61, 0.12), transparent 55%),
    rgba(0, 0, 0, 0.14);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.admin-polaroid-dropzone:hover,
.admin-polaroid-dropzone:focus-within,
.admin-polaroid-dropzone.is-dragover {
  border-color: rgba(166, 124, 61, 0.85);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(166, 124, 61, 0.18), transparent 55%),
    rgba(166, 124, 61, 0.08);
  outline: none;
}

.admin-polaroid-dropzone__frame {
  width: 3.25rem;
  height: 3.9rem;
  margin-bottom: 0.35rem;
  border-radius: 0.2rem;
  border: 2px solid rgba(255, 252, 246, 0.88);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.92) 0 72%, rgba(255, 252, 246, 0.98) 72% 100%);
  transform: rotate(-4deg);
}

.admin-polaroid-dropzone__title {
  color: var(--ivory);
  font-family: var(--font-serif, "Cormorant Garamond", Georgia, serif);
  font-size: 1.15rem;
  font-weight: 600;
}

.admin-polaroid-dropzone__hint {
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-polaroid-upload__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-top: 1rem;
}

.admin-polaroid-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 0.85rem;
}

@media (min-width: 768px) {
  .admin-polaroid-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem 1rem;
  }
}

@media (min-width: 1100px) {
  .admin-polaroid-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem 1.15rem;
  }
}

.admin-polaroid-sort-item {
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

.admin-polaroid-sort-item:active {
  cursor: grabbing;
}

.admin-polaroid-sort-item.dragging {
  opacity: 0.5;
  transform: scale(0.98);
}

.admin-polaroid-sort-item[draggable="false"] {
  cursor: default;
}

.admin-polaroid-tile__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.7rem 0.7rem 0.75rem;
  border-radius: 0.35rem;
  background: linear-gradient(180deg, #fffdf8 0%, #f4efe6 100%);
  border: 1px solid rgba(42, 35, 28, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 10px 24px rgba(0, 0, 0, 0.16);
  transform: rotate(var(--pol-rot, 0deg));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-polaroid-sort-item:hover .admin-polaroid-tile__card,
.admin-polaroid-sort-item:focus-within .admin-polaroid-tile__card {
  transform: rotate(0deg) translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 14px 28px rgba(0, 0, 0, 0.2);
}

.admin-polaroid-tile__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
}

.admin-polaroid-tile__meta .admin-polaroid-sort-hint {
  margin-left: auto;
}

.admin-polaroid-tile__pos,
.polaroid-pos-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.55rem;
  height: 1.55rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #5a3f14;
  background: rgba(166, 124, 61, 0.22);
  border: 1px solid rgba(120, 85, 40, 0.28);
}

.admin-polaroid-sort-hint {
  font-size: 1rem;
  line-height: 1;
  letter-spacing: -0.05em;
  color: rgba(42, 35, 28, 0.45);
}

.admin-polaroid-tile__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #1a1714;
  border: 1px solid rgba(42, 35, 28, 0.12);
}

.admin-polaroid-tile__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.admin-polaroid-tile__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.admin-polaroid-tile__actions .btn {
  flex: 1 1 auto;
}

.admin-polaroid-tile--empty {
  pointer-events: none;
  opacity: 0.55;
}

.admin-polaroid-tile--empty .admin-polaroid-tile__card {
  background: transparent;
  border: 1px dashed rgba(166, 124, 61, 0.35);
  box-shadow: none;
  transform: none;
}

.admin-polaroid-tile__photo--empty {
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(166, 124, 61, 0.06),
      rgba(166, 124, 61, 0.06) 6px,
      transparent 6px,
      transparent 12px
    );
  border-style: dashed;
}

.admin-polaroid-tile__empty-label {
  margin: 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}

.admin-polaroid-empty {
  text-align: center;
  padding: 1.75rem 1rem 1.25rem;
}

.admin-polaroid-empty__stack {
  position: relative;
  width: 4.5rem;
  height: 5.25rem;
  margin: 0 auto 1rem;
}

.admin-polaroid-empty__stack span {
  position: absolute;
  inset: 0;
  border-radius: 0.2rem;
  border: 1px solid rgba(255, 252, 246, 0.35);
  background: rgba(255, 252, 246, 0.08);
}

.admin-polaroid-empty__stack span:nth-child(1) { transform: rotate(-8deg) translateX(-0.35rem); }
.admin-polaroid-empty__stack span:nth-child(2) { transform: rotate(4deg) translateX(0.25rem); }
.admin-polaroid-empty__stack span:nth-child(3) { transform: rotate(-1deg); background: rgba(166, 124, 61, 0.12); }

/* Bootstrap `bg-dark` στα PHP — ανοιχτή άμμος ώστε να ταιριάζει με την παλέτα */
.form-control.bg-dark,
.form-select.bg-dark {
  background-color: rgba(255, 252, 246, 0.98) !important;
  color: var(--ivory) !important;
  border-color: rgba(42, 35, 28, 0.16) !important;
}

.form-control.bg-dark:focus,
.form-select.bg-dark:focus {
  border-color: rgba(166, 124, 61, 0.45) !important;
  box-shadow: 0 0 0 0.2rem rgba(166, 124, 61, 0.18);
}

.card.bg-dark {
  background-color: rgba(255, 251, 244, 0.94) !important;
  color: var(--ivory) !important;
}

.modal-content.bg-dark {
  background: linear-gradient(175deg, #fffdf9 0%, #f5ebe0 100%) !important;
  color: var(--ivory) !important;
}

.modal-content.bg-dark .btn-close {
  filter: none;
  opacity: 0.5;
}

/* —— Demo mode banner —— */
.demo-mode-banner {
  position: sticky;
  top: 0;
  z-index: 1080;
  padding: 0.55rem 1rem;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.4;
  background: linear-gradient(90deg, #3d2a22, #5a3a2e);
  color: #f7efe6;
  border-bottom: 1px solid rgba(212, 184, 122, 0.35);
}
.demo-mode-banner strong { color: #f0d78c; font-weight: 650; }
.demo-mode-banner a { color: #f0d78c; font-weight: 600; text-underline-offset: 0.15em; }
.demo-mode-banner code {
  font-size: 0.78em;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.08rem 0.35rem;
  border-radius: 5px;
}
.demo-mode-banner--admin {
  background: linear-gradient(90deg, #2a3140, #3d4658);
}
.page-invite--demo { padding-top: 0; }
