/* ===============================================
   CONSOLIDATED STYLES
   =============================================== */

/* VARIABLES */
:root{
  --pink-500: #ff6fbf;
  --purple-500: #7c49ff;
  --white: #ffffff;
  --dark-text: #241332;
  --dark-title: #3b1b4a;
  --dark-light: #4b3550;
  --neutral-text: #5d4860;
  --muted-text: #6b536b;
  --subtle-text: #8b748a;
  --subtle-gray: #999;
  
  --bg: linear-gradient(135deg, rgba(255,111,191,0.12), rgba(124,73,255,0.08));
  --glass: rgba(255,255,255,0.6);
  --card-shadow: 0 8px 24px rgba(33,20,60,0.12);
  --radius-lg: 16px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }

/* BASE */
html, body, #root { height: 100%; }

html, body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: radial-gradient(circle at 10% 10%, rgba(124,73,255,0.06), transparent 10%),
              radial-gradient(circle at 90% 90%, rgba(255,111,191,0.06), transparent 12%),
              #fff;
  color: var(--dark-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.4;
  padding: 24px;
}

/* ===============================
   LIGHTBOX LAYOUT (imagen arriba, info abajo)
   =============================== */

.lightbox{
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10,6,12,0.86);

  /* 👇 si hay mucha info, scrollea TODO el overlay */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;

  padding: 18px 12px;
}

.lightbox.hidden{ display:none; }

/* el figure ahora es columna */
.lightbox-figure{
  margin: 0 auto;
  width: min(980px, 96vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;

  /* para que nunca se corte por arriba en móviles */
  min-height: calc(100dvh - 36px);
  justify-content: center;
}

/* wrapper para la imagen (necesario para los botones) */
.lb-img-wrapper{
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* imagen centrada y RESPONSIVE */
#lightbox-img{
  width: auto;
  max-width: 96vw;
  max-height: 68dvh;   /* 👈 clave: deja espacio para la info abajo */
  height: auto;
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.55);
  object-fit: contain;
  background: rgba(255,255,255,0.03);
}

/* panel de info abajo */
#lightbox-cap.lb-panel{
  width: min(720px, 92vw);
  padding: 14px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  text-align: center;

  /* 👇 NUNCA se sale el texto */
  overflow: hidden;
}

.lightbox-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
  align-items:center;
  margin-bottom: 10px;
}

.lightbox-title{
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: .2px;
  width: 100%;
}

.lightbox-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(124,73,255,0.22);
  border: 1px solid rgba(124,73,255,0.35);
  font-weight: 700;
}

.lightbox-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
}

/* texto del mensajito */
.lightbox-text{
  font-size: 0.98rem;
  line-height: 1.35;
  opacity: .95;

  /* 👇 evita que palabras largas rompan */
  overflow-wrap: anywhere;
  word-break: break-word;

  /* clamp bonito (y luego "ver más" expande) */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.lightbox-text.expanded{
  -webkit-line-clamp: unset;
}

/* botón ver más */
.lb-more{
  margin-top: 10px;
  display: inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  color:#fff;
  padding: 8px 12px;
  cursor: pointer;
}

/* ===== botones editar/eliminar ENCIMA de la foto ===== */
.lb-admin-overlay{
  position:absolute;
  top: 10px;
  left: 10px;
  display:flex;
  gap:10px;
  z-index: 3;
}

.lb-fab{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.40);
  color: #fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition: transform .15s ease, background .15s ease;
}
.lb-fab:hover{ transform: translateY(-1px); background: rgba(0,0,0,0.55); }

.lb-fab.danger{
  background: rgba(255,60,120,0.32);
  border-color: rgba(255,60,120,0.42);
}
.lb-fab.danger:hover{ background: rgba(255,60,120,0.45); }

/* Botones X / nav siempre visibles */
.lightbox-close{
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(124,73,255,0.18);
  background: #ffffff; /* ✅ blanco visible sobre la imagen */
  color: #2c1437;
  box-shadow: 0 14px 40px rgba(0,0,0,0.20);
  display: grid;
  place-items: center;
}

.lightbox-nav.prev,
.lightbox-nav.next{
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10001;
}

/* Acciones (editar/eliminar) dentro de la card de info */
#lightbox-cap{
  position: relative;
}

/* ✅ X dentro del cuadro de la imagen (wrapper), arriba a la derecha */
.lb-img-wrapper{ position: relative; }
.lb-img-wrapper .lightbox-close{
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
}

/* ✅ Regla final: fuerza la X dentro del cuadro de la imagen */
.lb-img-wrapper > .lightbox-close{
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
}

.lb-cap-actions{
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

.lb-cap-btn{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.25);
  color: #ffffff;
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .15s ease, background .15s ease;
}
.lb-cap-btn:hover{ transform: translateY(-1px); background: rgba(0,0,0,0.40); }
.lb-cap-btn.danger{
  background: rgba(255,60,120,0.28);
  border-color: rgba(255,60,120,0.38);
}
.lb-cap-btn.danger:hover{ background: rgba(255,60,120,0.42); }

/* Extra: en pantallas bajitas, baja un poco max-height de la imagen */
@media (max-height: 720px){
  #lightbox-img{ max-height: 58dvh; }
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.btn {
  background: linear-gradient(90deg, var(--pink-500), var(--purple-500));
  color: var(--white);
  border: none;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(124,73,255,0.12);
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn:hover { transform: translateY(-3px); }
.btn.small { padding: 6px 10px; border-radius: 10px; font-size: 0.95rem; }
.btn.outline {
  background: transparent;
  border: 1px solid rgba(124,73,255,0.12);
  color: var(--dark-title);
  box-shadow: none;
}
.btn.outline:hover { background: rgba(124,73,255,0.06); }

.select, .input, .textarea {
  border: 1px solid rgba(124,73,255,0.16);
  border-radius: 12px;
  padding: 10px 12px;
  font-family: inherit;
  outline: none;
  background: rgba(255,255,255,0.8);
  transition: box-shadow .2s ease, transform .15s ease, border-color .2s ease;
}

.select.small, .input.small {
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 0.95rem;
}

.select:focus, .input:focus, .textarea:focus {
  border-color: rgba(124,73,255,0.36);
  box-shadow: 0 0 0 4px rgba(124,73,255,0.12);
}

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

.footer {
  text-align: center;
  color: var(--muted-text);
  font-size: 0.9rem;
  padding: 14px;
  border-radius: 10px;
  background: transparent;
}

/* HERO SECTION */
.hero {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.75));
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(124,73,255,0.07);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle at 30% 30%, var(--pink-500), transparent 30%),
              radial-gradient(circle at 70% 70%, var(--purple-500), transparent 30%);
  opacity: 0.06;
  transform: rotate(20deg);
  pointer-events: none;
}

.hero-content {
  flex: 1;
  min-width: 260px;
}

.title {
  font-family: "Sacramento", "Poppins", sans-serif;
  font-weight: 400;
  font-size: 48px;
  margin: 0 0 8px 0;
  color: var(--dark-title);
}

.subtitle {
  margin: 0 0 16px 0;
  color: var(--dark-light);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-photo {
  width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.hero-photo img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 20px;
  border: 6px solid rgba(255,255,255,0.6);
  box-shadow: 0 10px 30px rgba(36,19,50,0.12);
}

.photo-caption {
  font-size: 0.9rem;
  text-align: center;
  color: var(--muted-text);
}

/* MESSAGES/CARDS */
.cards-section {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 18px;
}

@media (max-width: 1000px) {
  .cards-section { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 700px) {
  .cards-section { grid-template-columns: 1fr !important; }
}

/* (old) auth-box styles removed: login moved to global auth modal */

/* Upload: fila de botón + contador */
.upload-file-row{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:6px;
  margin-bottom:6px;
}

/* Carrusel de previews */
.upload-preview{
  display:flex;
  gap:12px;
  margin-top:8px;
  padding:4px 2px 4px 0;
  overflow-x:auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(124,73,255,0.35) transparent;
}

.upload-preview-card{
  position:relative;
  flex:0 0 140px;
  height:140px;
  border-radius:16px;
  overflow:hidden;
  border: 1px solid rgba(124,73,255,0.16);
  background: rgba(124,73,255,0.06);
  box-shadow: 0 10px 26px rgba(36,19,50,0.10);
}
.upload-preview-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.upload-preview-remove{
  position:absolute;
  top:6px;
  right:6px;
  width:26px;
  height:26px;
  border-radius:999px;
  border:0;
  background: rgba(10,6,12,0.70);
  color:#fff;
  font-size:14px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* Lightbox admin + edit UI */
.lb-top{ display:flex; flex-wrap:wrap; gap:8px; justify-content:center; margin-bottom:10px; }
.lb-text{ color: rgba(255,255,255,0.92); line-height:1.45; margin-bottom:12px; text-align:center; }

.lb-admin{
  display:flex;
  gap:10px;
  justify-content:center;
  margin-top:10px;
}
.lb-icon{
  width:44px; height:44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.10);
  color:#fff;
  cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  font-size: 18px;
  transition: transform .12s ease, background .2s ease;
}
.lb-icon:hover{ transform: scale(1.06); background: rgba(255,255,255,0.16); }
.lb-icon.danger{ border-color: rgba(255,60,120,0.35); background: rgba(255,60,120,0.18); }
.lb-icon.danger:hover{ background: rgba(255,60,120,0.28); }

.lb-edit{ margin-top:14px; width:min(820px, 92vw); margin-left:auto; margin-right:auto; }
.lb-edit.hidden{ display:none; }
.lb-edit .row{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
@media (max-width:650px){ .lb-edit .row{ grid-template-columns:1fr; } }
.lb-edit-actions{ display:flex; justify-content:flex-end; gap:10px; margin-top:10px; }

/* Lightbox edit card */
.lb-edit{ margin-top:14px; display:flex; justify-content:center; }
.lb-edit.hidden{ display:none; }

.lb-edit-card{
  width: min(720px, 92vw);
  background: rgba(20,14,26,0.78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 18px 70px rgba(0,0,0,0.55);
}

.lb-edit-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 10px;
}
.lb-edit-title{ color:#fff; font-weight:700; letter-spacing:.2px; }
.lb-x{
  width:38px; height:38px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.10);
  color:#fff;
  cursor:pointer;
}

.lb-edit-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
@media (max-width:650px){ .lb-edit-grid{ grid-template-columns:1fr; } }

.lb-field{ display:flex; flex-direction:column; gap:6px; }
.lb-field span{ color: rgba(255,255,255,0.85); font-size: 0.85rem; font-weight:600; }
.lb-span-2{ grid-column: 1 / -1; }

.lb-edit .input, .lb-edit .textarea{
  width:100%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);
  color:#fff;
}
.lb-edit .input::placeholder, .lb-edit .textarea::placeholder{ color: rgba(255,255,255,0.55); }

.lb-edit-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top: 12px;
}

/* --- EDIT CARD: centrado real --- */
.lb-edit{
  width: 100%;
  display:flex;
  justify-content:center;
  align-items:center;
  margin: 14px auto 0 auto;
  padding: 0 10px;
  box-sizing: border-box;
}

.lb-edit-card{
  width: min(720px, 92vw);
  margin: 0 auto;
}

/* EDIT OVERLAY (encima de la foto) */
.lb-edit{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 6, 12, 0.45);
  backdrop-filter: blur(6px);
  z-index: 10050;
  padding: 18px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-edit.hidden{ display:none; }

/* Card */
.lb-edit-card{
  width: min(760px, 94vw);
  max-height: min(78vh, 680px);
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 18px;
  padding: 14px;
  background: rgba(20,14,26,0.85);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 18px 70px rgba(0,0,0,0.55);
  flex-shrink: 0;
}

/* Header sticky para que el X siempre se vea */
.lb-edit-head{
  position: sticky;
  top: 0;
  background: rgba(20,14,26,0.92);
  backdrop-filter: blur(8px);
  padding-bottom: 10px;
  margin-bottom: 10px;
  z-index: 2;
}

/* Footer sticky para que Guardar/Cancelar nunca se pierdan */
.lb-edit-actions{
  position: sticky;
  bottom: 0;
  background: rgba(20,14,26,0.92);
  backdrop-filter: blur(8px);
  padding-top: 10px;
  margin-top: 12px;
  display:flex;
  justify-content:flex-end;
  gap:10px;
  z-index: 2;
}

/* En móvil, más compacto */
@media (max-width: 650px){
  .lb-edit{ padding: 12px; }
  .lb-edit-card{ max-height: 82vh; }
}

.card {
  background: var(--bg);
  border-radius: 12px;
  padding: 16px;
  min-height: 180px;
  box-shadow: 0 8px 20px rgba(36,19,50,0.06);
  border: 1px solid rgba(124,73,255,0.04);
}

.card h2 {
  margin: 0 0 8px 0;
  color: var(--dark-title);
  font-size: 1.1rem;
}

.card .desc {
  margin: 0 0 12px 0;
  color: var(--neutral-text);
  font-size: 0.95rem;
}

.message-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 320px;
  overflow: auto;
  padding-right: 6px;
}

.msg {
  background: linear-gradient(90deg, rgba(255,255,255,0.8), rgba(255,255,255,0.7));
  border-radius: 10px;
  padding: 10px;
  font-size: 0.95rem;
  border: 1px solid rgba(124,73,255,0.05);
  position: relative;
}

.msg .actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.small-action {
  padding: 6px 8px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(124,73,255,0.08);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all .2s ease;
}

.small-action:hover {
  background: rgba(124,73,255,0.08);
  border-color: rgba(124,73,255,0.16);
}

.extras {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.extra-card {
  flex: 1;
  min-width: 300px;
  background: rgba(255,255,255,0.75);
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(124,73,255,0.04);
  box-shadow: 0 6px 18px rgba(36,19,50,0.04);
}

.extra-card h3 {
  margin: 0 0 8px 0;
  color: var(--dark-title);
  font-size: 1.1rem;
}

.extra-card p {
  margin: 0 0 12px 0;
  color: var(--neutral-text);
  font-size: 0.95rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0;
}

.field span {
  display: block;
  font-weight: 700;
  color: rgba(44,20,55,0.74);
  margin: 10px 0 6px;
}

.field input[type="url"] {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(124,73,255,0.08);
}

/* CALENDAR */
.calendar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 1000px;
  opacity: 1;
  transition: all 0.3s ease;
}

.calendar-wrapper.calendar-hidden {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  gap: 0;
}

#toggle-calendar {
  margin: 12px 0;
  width: fit-content;
  align-self: center;
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.95rem;
}

#toggle-calendar.active {
  background: linear-gradient(135deg, #ff6fbf, #7c49ff);
  color: white;
}

.calendar-toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
  margin-bottom: 6px;
}

.selected-date {
  display: inline-block;
  padding: 8px 10px;
  background: rgba(124,73,255,0.06);
  color: var(--dark-title);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

#unlock-all {
  margin-left: 6px;
  background: transparent;
  border: 1px solid rgba(124,73,255,0.14);
  color: #7c49ff;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.95rem;
  display: inline-flex;
}

#unlock-all.active {
  background: linear-gradient(135deg, #ff6fbf, #7c49ff);
  color: white;
  border-color: transparent;
}

.month-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.current-month {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark-title);
  min-width: 150px;
  text-align: center;
}

.month-btn {
  padding: 8px 14px;
  font-size: 0.9rem;
  display: inline-flex;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(124,73,255,0.05), rgba(255,111,191,0.05));
  border-radius: 12px;
}

.calendar-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  padding: 0 12px 8px 12px;
  font-weight: 600;
  font-size: 0.85rem;
  color: #7c49ff;
  text-align: center;
}

.calendar-header-day {
  padding: 8px 0;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  font-size: 0.9rem;
}

.calendar-day.available {
  background: linear-gradient(135deg, rgba(124,73,255,0.1), rgba(255,111,191,0.1));
  border-color: rgba(124,73,255,0.2);
  color: var(--dark-title);
}

.calendar-day.available:hover {
  background: linear-gradient(135deg, rgba(124,73,255,0.2), rgba(255,111,191,0.2));
  border-color: #7c49ff;
  transform: scale(1.05);
}

.calendar-day.available.today {
  background: linear-gradient(135deg, #7c49ff, #ff6fbf);
  color: white;
  border-color: #7c49ff;
  box-shadow: 0 4px 12px rgba(124,73,255,0.3);
}

.calendar-day.locked {
  background: rgba(200,200,200,0.1);
  color: var(--subtle-gray);
  cursor: not-allowed;
  border-color: rgba(200,200,200,0.2);
  font-size: 1.2rem;
  position: relative;
}

.calendar-day.locked::after {
  content: attr(data-day);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.65rem;
  color: rgba(100, 100, 100, 0.6);
  font-weight: 700;
  pointer-events: none;
}

.calendar-day.locked:hover {
  transform: none;
}

.message-display {
  min-height: 200px;
  background: linear-gradient(135deg, rgba(124,73,255,0.1), rgba(255,111,191,0.1));
  border-radius: 12px;
  padding: 20px;
  border-left: 4px solid #7c49ff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--dark-title);
  font-size: 1.05rem;
  line-height: 1.6;
}

.special-message-banner {
  margin: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,111,191,0.15), rgba(124,73,255,0.10));
  border: 1px solid rgba(124,73,255,0.25);
  padding: 16px;
  color: #2c1437;
  box-shadow: 0 10px 32px rgba(0,0,0,0.06);
  font-size: 0.95rem;
  line-height: 1.45;
  text-align: left;
  font-weight: 500;
}

.special-message-banner p {
  margin: 0 0 8px;
}

.message-display.empty {
  color: var(--subtle-gray);
  font-style: italic;
}

/* GALLERY */
.print-gallery {
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.photo-frame {
  width: 220px;
  height: 220px;
  border-radius: 16px;
  border: 6px solid rgba(255,255,255,0.6);
  box-shadow: 0 10px 30px rgba(36,19,50,0.12);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: #f3eef8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .45s ease;
  position: absolute;
  inset: 0;
}

.photo-frame img.hidden {
  opacity: 0;
  pointer-events: none;
}

.gallery-controls {
  display: flex;
  gap: 8px;
}

.gallery-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.gallery-upload-label.btn.small {
  padding: 6px 10px;
  border-radius: 10px;
}

.gallery-upload-label.btn.small:hover {
  transform: none;
}

.photo-expand-btn {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.45);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 6;
  font-size: 16px;
  transition: all .2s ease;
}

.photo-expand-btn:hover {
  background: rgba(0,0,0,0.6);
  transform: translateY(-2px);
}

.photo-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,6,12,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.photo-overlay img {
  max-width: 92%;
  max-height: 92%;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.photo-overlay .close-btn {
  position: absolute;
  right: 18px;
  top: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s ease;
}

.photo-overlay .close-btn:hover {
  background: rgba(255,255,255,0.12);
}

.photo-overlay .nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.04);
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s ease;
}

.photo-overlay .nav-btn:hover {
  background: rgba(255,255,255,0.12);
}

.photo-overlay .nav-btn.prev {
  left: 18px;
}

.photo-overlay .nav-btn.next {
  right: 18px;
}

/* SUPER GALLERY */
.super-gallery.full-bleed {
  width: auto;
  margin-left: calc(50% - 50vw);
  padding: 34px 18px 36px;
  position: relative;
  overflow: visible;

  background:
    radial-gradient(900px 420px at 10% 15%, rgba(255,111,191,0.20), transparent 60%),
    radial-gradient(820px 420px at 90% 20%, rgba(124,73,255,0.20), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.95));
  border-top: 1px solid rgba(124,73,255,0.08);
  border-bottom: 1px solid rgba(124,73,255,0.08);
}

.super-gallery.full-bleed::after {
  content: "";
  position: absolute;
  inset: -40px;
  background: radial-gradient(600px 240px at 50% 0%, rgba(255,255,255,0.65), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  opacity: 0.7;
}

.super-gallery-inner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  z-index: 1;
}

.super-gallery-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  margin-bottom: 14px;
  padding: 14px 16px 12px;
  border-radius: 28px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255,132,193,0.14), transparent 54%),
    radial-gradient(120% 140% at 100% 0%, rgba(141,86,255,0.16), transparent 58%),
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,247,251,0.84));
  border: 1px solid rgba(124,73,255,0.12);
  box-shadow: 0 18px 44px rgba(36,19,50,0.10);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.super-gallery-head h4 {
  margin: 0;
  font-size: 1.55rem;
  letter-spacing: 0.2px;
  color: #2c1437;
  font-family: Sacramento, Poppins, serif;
}

.super-gallery-head .muted {
  margin: 0 auto;
  max-width: 52ch;
  color: rgba(44,20,55,0.68);
  font-size: 0.98rem;
}

.super-gallery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-top: 6px;

  position: static;
  top: auto;
  z-index: 100;

  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(124,73,255,0.18);
  box-shadow: 0 8px 20px rgba(36,19,50,0.12);
  backdrop-filter: blur(10px);
}

.super-gallery-actions .btn,
.super-gallery-actions .select,
.super-gallery-actions .input {
  min-height: 44px;
}

.super-gallery-actions .btn {
  font-weight: 600;
  letter-spacing: 0.03em;
}

.super-gallery-actions .select,
.super-gallery-actions .input {
  border: 1px solid rgba(124,73,255,0.18);
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
}

.super-gallery-actions .select {
  min-width: 200px;
  max-width: 280px;
}

.super-gallery-actions .input {
  flex: 1;
  min-width: 220px;
}

.super-gallery-actions .input::placeholder {
  color: rgba(84,58,108,0.58);
}

.super-gallery-grid {
  width: 100%;
  column-width: 260px;
  column-gap: 12px;
  margin-top: 16px;
}

.super-gallery-grid.is-filtered-view{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  align-items: start;
}

.super-gallery-grid.is-filtered-view.is-sparse-results{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.super-gallery-grid.is-filtered-view .sg-item{
  width: 100%;
  margin: 0;
  break-inside: auto;
}

.super-gallery-grid.is-filtered-view .sg-item img{
  width: 100%;
  height: auto;
}

.super-gallery-grid.is-grouped-view{
  display: block;
  column-width: 220px;
  column-gap: 12px;
}

.super-gallery-grid.is-grouped-view.is-compact-group{
  display: block;
  column-width: 220px;
  column-gap: 12px;
}

.super-gallery-grid.is-grouped-view .sg-item{
  display: inline-block;
  width: 100%;
  margin: 0 0 12px;
  break-inside: avoid;
  height: auto;
}

.super-gallery-grid.is-grouped-view.is-compact-group .sg-item{
  margin: 0 0 12px;
  width: 100%;
}

.super-gallery-grid.is-grouped-view .sg-item img{
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
}

/* make gallery narrower on small screens */
@media (max-width: 720px) {
  .super-gallery-grid {
    column-count: 2 !important;
    column-width: 0 !important;
    column-gap: 8px !important;
  }

  .super-gallery-grid.is-grouped-view{
    display: block !important;
    column-count: 2 !important;
    column-width: 0 !important;
    column-gap: 8px !important;
  }

  .super-gallery-grid.is-filtered-view{
    display: block;
    column-count: 2 !important;
    column-width: 0 !important;
    column-gap: 8px !important;
  }

  .super-gallery-grid.is-filtered-view.is-sparse-results{
    display: block;
    column-count: 2 !important;
    column-width: 0 !important;
    column-gap: 8px !important;
  }

  .super-gallery-grid.is-filtered-view .sg-item{
    display: inline-block;
    width: 100%;
    margin: 0 0 8px;
    break-inside: avoid;
  }

  .super-gallery-grid.is-grouped-view.is-compact-group{
    display: block;
    column-width: 160px;
    column-gap: 8px;
  }

  .super-gallery-grid.is-grouped-view.is-compact-group .sg-item{
    width: 100%;
    margin: 0 0 8px;
  }

  .super-gallery-head{
    top: 8px;
    padding: 14px 12px 12px;
    border-radius: 24px;
  }

  .super-gallery-grid.is-grouped-view.is-sparse-results{
    display: block !important;
    column-count: 2 !important;
    column-width: 0 !important;
    column-gap: 8px !important;
  }

  .super-gallery-grid.is-grouped-view.is-sparse-results .sg-item{
    display: inline-block !important;
    width: 100% !important;
    margin: 0 0 8px !important;
    break-inside: avoid !important;
  }
}

.super-gallery-grid.is-empty-state{
  display: block;
  column-width: auto;
  min-height: 180px;
}

.gallery-empty-state-card{
  width: min(100%, 540px);
  margin: 8px auto 0;
  padding: 22px 24px;
  border-radius: 22px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(247,240,255,0.92));
  border: 1px solid rgba(124,73,255,0.12);
  box-shadow: 0 18px 40px rgba(36,19,50,0.08);
  color: rgba(59,27,74,0.82);
  line-height: 1.55;
}

.gallery-empty-state-card strong{
  display: block;
  margin-bottom: 6px;
  color: #3b1b4a;
  font-size: 1.06rem;
}


.sg-item {
  display: inline-block;
  width: 100%;
  margin: 0 0 12px;
  break-inside: avoid;
  aspect-ratio: auto;

  position: relative;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(124,73,255,0.10);
  box-shadow: 0 18px 60px rgba(36,19,50,0.10);
  background: rgba(124,73,255,0.06);

  transform: translateZ(0);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.sg-item img {
  width: 100%;
  height: auto;
  min-height: 120px;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform .35s ease;
  filter: saturate(1.02) contrast(1.03);
}

.sg-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 180px at 50% 0%, rgba(255,255,255,0.35), transparent 60%);
  opacity: 0.65;
  pointer-events: none;
}

.sg-group-btn{
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(16, 10, 22, 0.48);
  color: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.18);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.sg-group-btn:hover{
  transform: translateY(-1px) scale(1.03);
  background: rgba(76, 42, 116, 0.62);
  box-shadow: 0 18px 34px rgba(76,42,116,0.24);
}

.sg-group-icon{
  font-size: 0.9rem;
  line-height: 1;
}

.sg-group-count{
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.sg-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255,111,191,0.20);
  box-shadow: 0 26px 80px rgba(36,19,50,0.18);
}

.sg-item:hover img {
  transform: scale(1.07);
}

.sg-meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 12px 12px 12px;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.62));
  color: #fff;
}

.sg-meta .top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-weight: 700;
  font-size: 0.86rem;
}

.sg-meta .cap {
  margin-top: 6px;
  font-weight: 500;
  font-size: 0.90rem;
  opacity: 0.96;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sg-pill {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
}

@media (max-width: 720px) {
  .sg-group-btn{
    top: 10px;
    right: 10px;
    padding: 6px 9px;
    gap: 6px;
  }

  .sg-group-count{
    font-size: 0.74rem;
  }

  .sg-meta {
    padding: 10px 9px 10px;
    background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.44));
  }

  .sg-meta .top {
    display: flex;
    justify-content: flex-start;
    gap: 0;
  }

  .sg-pill {
    min-width: 0;
    max-width: 100%;
    padding: 5px 8px;
    gap: 5px;
    font-size: 0.76rem;
    line-height: 1.18;
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    align-items: flex-start;
    border-radius: 22px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(4px);
  }

  .sg-meta .top .sg-pill:last-child,
  .sg-meta .cap {
    display: none;
  }

  .sg-meta .cap {
    margin-top: 0;
    font-size: 0.82rem;
    line-height: 1.32;
    -webkit-line-clamp: 3;
  }
}

.super-gallery-grid .msg {
  grid-column: 1/-1;
  text-align: center;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(124,73,255,0.10);
  box-shadow: 0 14px 40px rgba(36,19,50,0.08);
}

.gallery-loading-intro{
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.super-gallery-grid.is-loading-gallery{
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.gallery-loading-grid-shell{
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 16px;
  align-items: start;
}

.gallery-loading-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(184,147,226,0.24);
  color: rgba(112, 70, 145, 0.82);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-loading-copy{
  color: rgba(76,51,88,0.68);
  line-height: 1.55;
}

.gallery-skeleton{
  position: relative;
  display: block;
  width: 100%;
  min-height: 220px;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.78), rgba(243,233,255,0.82)),
    rgba(139,92,246,0.05);
  border: 1px solid rgba(124,73,255,0.12);
  box-shadow: 0 18px 44px rgba(36,19,50,0.08);
}

.gallery-skeleton-2{ height: 290px; }
.gallery-skeleton-3{ height: 250px; }

.gallery-skeleton-shine{
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.18) 35%, rgba(255,255,255,0.56) 50%, rgba(255,255,255,0.18) 65%, transparent 100%);
  transform: translateX(-100%);
  animation: galleryShine 1.4s ease-in-out infinite;
}

.gallery-skeleton-meta{
  position: absolute;
  inset: auto 0 0 0;
  padding: 12px;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.52));
  display: grid;
  gap: 10px;
}

.gallery-skeleton-pill{
  width: 42%;
  height: 38px;
  border-radius: 999px;
  background: rgba(255,255,255,0.24);
  border: 1px solid rgba(255,255,255,0.24);
}

.gallery-skeleton-line{
  width: 78%;
  height: 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.24);
}

@keyframes galleryShine{
  to{ transform: translateX(100%); }
}

@media (max-width: 720px){
  .gallery-loading-grid-shell{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .gallery-skeleton{
    border-radius: 18px;
  }

  .gallery-skeleton-meta{
    padding: 10px;
    gap: 8px;
  }

  .gallery-skeleton-pill{
    height: 32px;
    width: 52%;
  }

  .gallery-skeleton-line{
    width: 86%;
    height: 14px;
  }
}

@media (max-width: 520px){
  .gallery-loading-grid-shell{
    grid-template-columns: 1fr;
  }
}

/* MODALS */
.popup-modal {
  position: fixed;
  inset: 0;
  background: rgba(10,6,12,0.70);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity .2s ease;
}

.popup-modal.show {
  opacity: 1;
}

.popup-content {
  width: min(760px, 92vw);
  background:
    radial-gradient(900px 320px at 20% 0%, rgba(255,111,191,0.16), transparent 60%),
    radial-gradient(900px 320px at 80% 0%, rgba(124,73,255,0.16), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.97), rgba(255,255,255,0.92));
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 30px 120px rgba(0,0,0,0.35);
  border: 1px solid rgba(124,73,255,0.14);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.popup-content h2,
.popup-content h3 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  color: #2c1437;
}

.popup-content p {
  margin: 8px 0;
  line-height: 1.6;
  color: var(--dark-text);
}

.close-popup {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 28px;
  color: #7c49ff;
  cursor: pointer;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease;
}

.close-popup:hover {
  transform: scale(1.15);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(10,6,12,0.70);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal.hidden {
  display: none;
}

.modal-card {
  width: min(760px, 92vw);
  background:
    radial-gradient(900px 320px at 20% 0%, rgba(255,111,191,0.16), transparent 60%),
    radial-gradient(900px 320px at 80% 0%, rgba(124,73,255,0.16), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.97), rgba(255,255,255,0.92));
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 30px 120px rgba(0,0,0,0.35);
  border: 1px solid rgba(124,73,255,0.14);
}

.modal-card h3 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  color: #2c1437;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 650px) {
  .row { grid-template-columns: 1fr; }
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: radial-gradient(800px 420px at 50% 10%, rgba(124,73,255,0.20), transparent 60%),
              rgba(10,6,12,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.lightbox.hidden {
  display: none;
}

.lightbox-figure {
  margin: 0;
  width: min(980px, 92vw);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-height: 90vh;
  overflow-y: auto;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 18px;
  box-shadow: 0 28px 120px rgba(0,0,0,0.65);
  border: 1px solid rgba(255,255,255,0.10);
}

/* adapt image size on small viewports */
@media (max-width:720px) {
  .lightbox-figure img {
    max-height: 60vh;
  }
  #lightbox-cap { font-size: 0.9rem; }
}


#lightbox-cap {
  color: rgba(255,255,255,0.92);
  font-size: 0.98rem;
  line-height: 1.4;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  max-width: 600px;
  max-height: 40vh;
  overflow-y: auto;
}

/* ensure text inside scrolls without pushing nav/buttons */
.lightbox-text {
  max-height: 20vh;
  overflow-y: auto;
}


.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255,255,255,0.10);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease;
}

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

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14);
  cursor: pointer;
  background: rgba(255,255,255,0.10);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease, background .2s ease;
}

.lightbox-nav:hover {
  transform: translateY(-50%) scale(1.05);
  background: rgba(255,255,255,0.14);
}

.lightbox-nav.prev {
  left: 18px;
}

.lightbox-nav.next {
  right: 18px;
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
  margin-top: 16px;
  max-height: 60vh;
  overflow-y: auto;
}

.reason-item {
  padding: 12px;
  background: rgba(124,73,255,0.06);
  border-radius: 10px;
  border: 1px solid rgba(124,73,255,0.08);
}

.reason-number {
  font-weight: 700;
  color: #7c49ff;
}

.reason-item p {
  margin: 6px 0 0 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

.certificate-full {
  width: auto;
  margin-left: calc(50% - 50vw);
  margin-top: 20px;
  margin-bottom: 20px;
  background: transparent;
  display: flex;
  justify-content: center;
}

.certificate-full img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.memory-carousel.full-bleed{
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    align-self: stretch;
  }

.memory-carousel-inner{
  width: 100%;
  margin: 0 auto;
  padding: 22px 18px 22px;
  border-radius: 34px;
  border: 1px solid rgba(212, 181, 255, 0.45);
  background:
    radial-gradient(320px 150px at 12% 0%, rgba(255, 145, 204, 0.12), transparent 60%),
    radial-gradient(280px 160px at 88% 8%, rgba(141, 86, 255, 0.09), transparent 56%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,241,255,0.93));
  box-shadow:
    0 14px 28px rgba(111, 74, 176, 0.09),
    inset 0 1px 0 rgba(255,255,255,0.85);
}

.memory-carousel-head{
  text-align: center;
  margin-bottom: 22px;
  padding: 0 12px;
}

.memory-carousel-eyebrow{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(206, 181, 245, 0.6);
  background: rgba(255,255,255,0.75);
  color: #8f67c7;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.memory-carousel-head h4{
  margin: 10px 0 10px;
  font-family: "Playfair Display", "Poppins", serif;
  font-size: clamp(1.38rem, 2.75vw, 2.18rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #47205e;
  position: relative;
}

.memory-carousel-head h4::after{
  content: "";
  display: block;
  width: min(220px, 54vw);
  height: 3px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,120,190,0), rgba(255,120,190,0.9), rgba(141,86,255,0.95), rgba(141,86,255,0));
}

.memory-carousel-head .muted{
  max-width: 44ch;
  margin: 0 auto;
  color: #8c74ab;
  font-size: 1rem;
  line-height: 1.48;
}

.memory-carousel-shell{
  position: relative;
  padding: 0;
  width: 100%;
  --memory-shell-image: none;
  --memory-nav-top: 320px;
}

.memory-carousel-shell::before{
  content: "";
  position: absolute;
  inset: 6px 14px 14px;
  border-radius: 36px;
  background-image: var(--memory-shell-image);
  background-size: cover;
  background-position: center center;
  filter: blur(48px) saturate(1.12) brightness(0.42);
  opacity: 0.44;
  transform: scale(1.04);
  pointer-events: none;
  z-index: 0;
}

.memory-carousel-viewport{
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
  border-radius: 34px;
  position: relative;
  z-index: 1;
}

.memory-carousel-track{
  position: relative;
  min-height: 100%;
}

.memory-carousel-slide{
  width: 100%;
  padding: 0 0 4px;
  box-sizing: border-box;
}

.memory-carousel-slide.is-current{
  position: relative;
  z-index: 1;
}

.memory-carousel-slide.is-ghost{
  position: absolute;
  inset: 0;
  z-index: 2;
}

.memory-carousel-card{
  width: 100%;
  display: grid;
  gap: 0;
  padding: 10px;
  border-radius: 36px;
  border: 1px solid rgba(214, 191, 244, 0.48);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,241,255,0.92));
  box-shadow:
    0 28px 70px rgba(139,92,246,0.16),
    inset 0 1px 0 rgba(255,255,255,0.84);
  position: relative;
  overflow: hidden;
}

.memory-carousel-card::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.45);
}

.memory-carousel-media{
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: min(66vh, 700px);
  padding: 0;
  border-radius: 26px 26px 0 0;
  border: 1px solid rgba(139,92,246,0.10);
  border-bottom: 0;
  background:
    radial-gradient(320px 200px at 50% 42%, rgba(255, 221, 174, 0.18), transparent 68%),
    linear-gradient(180deg, rgba(36,24,46,0.98), rgba(29,18,40,0.98));
  box-shadow:
    0 20px 60px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.84);
  cursor: pointer;
}

.memory-carousel-media::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--memory-image);
  background-size: cover;
  background-position: center center;
  filter: blur(34px) saturate(1.02);
  transform: scale(1.12);
  opacity: 0.56;
  pointer-events: none;
}

.memory-carousel-media::after{
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(29,18,40,0.48) 0%, rgba(29,18,40,0.28) 8%, rgba(29,18,40,0.08) 18%, rgba(29,18,40,0.02) 28%, rgba(29,18,40,0.02) 72%, rgba(29,18,40,0.08) 82%, rgba(29,18,40,0.28) 92%, rgba(29,18,40,0.48) 100%),
    linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0) 40%, rgba(21,10,34,0.12) 68%, rgba(21,10,34,0.64) 100%);
  pointer-events: none;
}

.memory-carousel-card--photo .memory-carousel-media{
  height: min(64vh, 680px);
}

.memory-carousel-card--wide .memory-carousel-media{
  height: min(52vh, 520px);
}

.memory-carousel-media img{
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
  border-radius: 26px 26px 0 0;
  transition: transform 350ms ease, opacity 350ms ease;
}

.memory-carousel-card.is-landscape .memory-carousel-media img{
  object-fit: cover;
}

.memory-carousel-card.is-square .memory-carousel-media img{
  width: auto;
  max-width: min(100%, 90%);
  height: 100%;
}

.memory-carousel-card.is-portrait .memory-carousel-media img{
  width: auto;
  max-width: min(100%, 76%);
  height: 100%;
}

.memory-carousel-card--wide .memory-carousel-media img{
  object-fit: contain;
  padding: 14px;
}

.memory-carousel-progress{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  overflow: hidden;
  z-index: 2;
}

.memory-carousel-progress-fill{
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255,120,190,0.95), rgba(141,86,255,0.95));
  animation: memoryCarouselProgress 6000ms linear forwards;
}

.memory-carousel-shell.is-paused .memory-carousel-progress-fill{
  animation-play-state: paused;
}

.memory-carousel-copy{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 18px 24px 16px;
  border-radius: 0 0 26px 26px;
  background:
    radial-gradient(180px 90px at 12% 0%, rgba(255, 145, 204, 0.08), transparent 70%),
    radial-gradient(180px 100px at 88% 12%, rgba(141, 86, 255, 0.08), transparent 70%),
    linear-gradient(180deg, rgba(251,246,255,0.96), rgba(244,235,255,0.92));
  border: 1px solid rgba(220, 200, 248, 0.4);
  border-top: 0;
  box-shadow:
    0 18px 34px rgba(123, 78, 190, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.62);
}

.memory-carousel-copy-head{
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px 16px;
}

.memory-carousel-copy-mainmeta{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.memory-carousel-tag{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.30);
  color: #7f42e5;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.memory-carousel-count{
  color: #7f42e5;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.memory-carousel-group-count{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8d74ab;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.memory-carousel-group-icon{
  font-size: 1.02rem;
  line-height: 1;
}

.memory-carousel-meta{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.memory-carousel-meta-item{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8d74ab;
  font-size: 0.8rem;
  font-weight: 700;
}

.memory-carousel-meta-sep{
  color: rgba(141, 116, 171, 0.72);
  font-size: 0.8rem;
}

.memory-carousel-copy strong{
  color: #43205b;
  font-size: clamp(1.58rem, 2.35vw, 2.18rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-family: "Playfair Display", "Poppins", serif;
  font-style: italic;
}

.memory-carousel-when{
  color: #9a7fbe;
  font-size: 0.84rem;
  line-height: 1.2;
  font-style: italic;
  font-weight: 600;
  white-space: nowrap;
}

.memory-carousel-copy-text{
  color: #6d5a87;
  line-height: 1.56;
  font-size: 1.08rem;
  font-style: normal;
  text-wrap: pretty;
  max-width: 78ch;
}

.memory-carousel-copy-text.is-placeholder{
  font-size: 1.2rem;
}

.memory-carousel-copy-text.is-collapsed{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.memory-carousel-copy-actions{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.memory-carousel-more,
.memory-carousel-link{
  appearance: none;
  border: 0;
  background: none;
  color: #8d56ff;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
}

.memory-carousel-link{
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(139,92,246,0.08);
  border: 1px solid rgba(139,92,246,0.16);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.memory-carousel-link:hover{
  background: #8d56ff;
  color: #fff;
  border-color: #8d56ff;
  transform: translateY(-1px);
}

.memory-carousel-nav{
  position: absolute;
  top: var(--memory-nav-top);
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(35,16,64,0.22);
  color: #fff;
  font-size: 1.14rem;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease, background 180ms ease, border-color 180ms ease;
  padding: 0;
  z-index: 2;
  opacity: 0.46;
}

.memory-carousel-nav--prev{
  left: 28px;
}

.memory-carousel-nav--next{
  right: 28px;
}

.memory-carousel-nav-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  line-height: 1;
  transform: none;
  font-size: 1.28rem;
  text-align: center;
}

.memory-carousel-nav:hover{
  transform: translateY(calc(-50% - 2px)) scale(1.1);
  box-shadow: 0 26px 40px rgba(141,86,255,0.28);
  background: linear-gradient(135deg, #ff78be, #8d56ff);
  border-color: rgba(255,255,255,0.14);
  opacity: 1;
}

.memory-carousel-nav:active{
  transform: translateY(-50%);
}

.memory-carousel-nav:disabled{
  opacity: 0.38;
  cursor: default;
  box-shadow: 0 10px 22px rgba(141,86,255,0.14);
}

.memory-carousel-nav:disabled:hover,
.memory-carousel-nav:disabled:active{
  transform: translateY(-50%);
}

.memory-carousel-shell:hover .memory-carousel-nav{
  opacity: 1;
}

.memory-carousel-dots{
  display: none !important;
}

@keyframes memoryCarouselProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes memoryCarouselEnterNext {
  from {
    opacity: 0;
    transform: translateX(3%) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes memoryCarouselExitNext {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(-2%) scale(0.996);
  }
}

@keyframes memoryCarouselEnterPrev {
  from {
    opacity: 0;
    transform: translateX(-3%) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes memoryCarouselExitPrev {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(2%) scale(0.996);
  }
}

.memory-carousel-slide.enter-next{
  animation: memoryCarouselEnterNext 350ms cubic-bezier(.22,.61,.36,1) forwards;
}

.memory-carousel-slide.exit-next{
  animation: memoryCarouselExitNext 350ms cubic-bezier(.22,.61,.36,1) forwards;
}

.memory-carousel-slide.enter-prev{
  animation: memoryCarouselEnterPrev 350ms cubic-bezier(.22,.61,.36,1) forwards;
}

.memory-carousel-slide.exit-prev{
  animation: memoryCarouselExitPrev 350ms cubic-bezier(.22,.61,.36,1) forwards;
}

@media (max-width: 760px){
  .memory-carousel.full-bleed{
      width: 100%;
      max-width: 100%;
      margin: 0;
      padding: 0;
    }

  .memory-carousel-inner{
    width: min(100vw, 100%);
    padding: 16px 12px 18px;
    border-radius: 24px;
  }

  .memory-carousel-head{
    margin-bottom: 14px;
    padding: 0 6px;
  }

  .memory-carousel-head h4::after{
    margin-top: 10px;
  }

  .memory-carousel-shell{
    padding: 0;
  }

  .memory-carousel-shell::before{
    inset: 6px 2px 12px;
    border-radius: 24px;
    opacity: 0.34;
  }

  .memory-carousel-viewport{
    border-radius: 22px;
  }

  .memory-carousel-nav{
    width: 46px;
    height: 46px;
    font-size: 0.98rem;
    top: var(--memory-nav-top);
    opacity: 0.88;
  }

  .memory-carousel-nav--prev{
    left: 10px;
  }

  .memory-carousel-nav--next{
    right: 10px;
  }

  .memory-carousel-card,
  .memory-carousel-card--wide{
    gap: 14px;
    padding: 6px;
    border-radius: 22px;
    width: 100%;
  }

  .memory-carousel-media,
  .memory-carousel-card--photo .memory-carousel-media,
  .memory-carousel-card--wide .memory-carousel-media{
    height: min(62vh, 500px);
    border-radius: 18px 18px 0 0;
  }

  .memory-carousel-card--wide .memory-carousel-media img{
    padding: 8px;
  }

  .memory-carousel-copy{
    width: 100%;
    margin: 0;
    padding: 14px 14px 14px;
    gap: 8px;
    border-radius: 0 0 16px 16px;
  }

  .memory-carousel-copy-head{
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .memory-carousel-meta{
    justify-content: flex-start;
  }

  .memory-carousel-copy strong{
    font-size: 1.08rem;
  }

  .memory-carousel-copy-text{
    font-size: 0.94rem;
    line-height: 1.48;
  }
}

.memory-carousel-eyebrow{
  transition: transform 180ms ease, color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.memory-carousel-eyebrow:hover{
  color: #7137d7;
  background: rgba(255,255,255,0.92);
  border-color: rgba(141,86,255,0.28);
  box-shadow: 0 10px 24px rgba(141,86,255,0.10);
  transform: translateY(-1px);
}

.memory-carousel-head .muted{
  font-style: italic;
}

.memory-carousel-title--special{
  color: #5a2b8a;
}

/* ==========================================================
   FINAL MEMORY CAROUSEL + MAP POLISH
   ========================================================== */

.memory-map .leaflet-popup-content-wrapper{
  border-radius: 20px !important;
  background:
    linear-gradient(180deg, rgba(28,18,39,0.92), rgba(41,24,58,0.94)) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  box-shadow:
    0 26px 50px rgba(20,10,30,0.30),
    inset 0 1px 0 rgba(255,255,255,0.10) !important;
  backdrop-filter: blur(16px) saturate(1.08) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.08) !important;
}

.memory-map .leaflet-popup-content{
  margin: 14px 16px !important;
  color: rgba(255,255,255,0.78) !important;
  line-height: 1.35 !important;
}

.memory-map .leaflet-popup-content strong{
  color: #fff !important;
  font-size: 1rem !important;
  margin-bottom: 4px !important;
}

.memory-map .leaflet-popup-tip{
  background: rgba(41,24,58,0.94) !important;
  box-shadow: 0 12px 24px rgba(20,10,30,0.18) !important;
}

.map-placeholder-copy{
  background:
    linear-gradient(180deg, rgba(44,26,62,0.54), rgba(29,17,42,0.58)),
    radial-gradient(circle at top, rgba(255,255,255,0.16), transparent 48%) !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  box-shadow:
    0 20px 48px rgba(18,8,27,0.24),
    inset 0 1px 0 rgba(255,255,255,0.10) !important;
  backdrop-filter: blur(18px) saturate(1.08) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.08) !important;
}

.map-photo-pocket{
  overflow: hidden !important;
  border-radius: 30px !important;
}

.print-gallery--embedded{
  border-radius: 28px !important;
}

.print-gallery--embedded .photo-frame,
.print-gallery--embedded .photo-frame img{
  border-radius: 24px !important;
}

@media (max-width: 560px){
  .map-photo-pocket{
    border-radius: 22px !important;
  }

  .print-gallery--embedded .photo-frame,
  .print-gallery--embedded .photo-frame img{
    border-radius: 18px !important;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Que el contenedor ocupe TODO el ancho */
.super-gallery.full-bleed{
  width: auto;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 24px !important;
  padding: 30px 0 22px;
  clear: both;
  z-index: 0;
  overflow: visible;
}

.super-gallery.full-bleed .super-gallery-inner{
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 14px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

/* RESPONSIVE */
@media (max-width: 1000px) {
  body { padding: 18px; }
  .cards-section { grid-template-columns: repeat(2, 1fr); }
  .extras { flex-direction: column; }
  .extra-card { min-width: unset; }
  .hero { flex-direction: column; align-items: flex-start; }
  .hero-photo { width: 100%; display: flex; justify-content: center; }
}

@media (max-width: 700px) {
  body { padding: 14px; }
  .cards-section { grid-template-columns: 1fr; }
  .extra-card { padding: 12px; }
  .hero { padding: 18px; }
  .title { font-size: 36px; }
  .hero-photo img { width: 180px; height: 180px; }
}

/* =========================
   LOVE COUNTER
   ========================= */

.love-counter{
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 11880;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  pointer-events: none;
  animation: loveCounterSlideIn 700ms cubic-bezier(.22,1,.36,1) both;
}

.love-counter-toggle{
  display: none;
  pointer-events: auto;
}

.love-counter-panel{
  position: relative;
  width: 60px;
  padding: 14px 10px 14px 12px;
  border-radius: 20px 0 0 20px;
  border: 1px solid rgba(219, 194, 255, 0.88);
  background:
    radial-gradient(140px 90px at 50% 0%, rgba(255, 203, 228, 0.18), transparent 72%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,242,255,0.98));
  box-shadow:
    -4px 0 20px rgba(139,92,246,0.15),
    -16px 24px 48px rgba(88,47,124,0.12),
    inset 0 1px 0 rgba(255,255,255,0.82);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: hidden;
  pointer-events: auto;
  transition:
    width 280ms ease,
    background-color 220ms ease,
    transform 220ms ease,
    box-shadow 220ms ease;
}

.love-counter:hover .love-counter-panel,
.love-counter-panel:hover{
  width: 176px;
  box-shadow:
    -6px 0 26px rgba(139,92,246,0.20),
    -18px 28px 60px rgba(88,47,124,0.16),
    inset 0 1px 0 rgba(255,255,255,0.48);
}

.love-counter-accent{
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff81c8, #8d56ff);
  box-shadow: 0 0 18px rgba(141,86,255,0.38);
}

.love-counter-panel::after{
  content: attr(data-start-label);
  position: absolute;
  top: 12px;
  right: calc(100% + 10px);
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(38,19,54,0.88);
  color: rgba(255,255,255,0.96);
  font-size: 0.78rem;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  box-shadow: 0 16px 30px rgba(23,10,32,0.24);
  transition: opacity 220ms ease, transform 220ms ease;
}

.love-counter:hover .love-counter-panel::after,
.love-counter-panel:hover::after{
  opacity: 1;
  transform: translateX(0);
}

.love-counter-hovercopy{
  position: absolute;
  left: 18px;
  right: 18px;
  text-align: center;
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(79,45,111,0.72);
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
}

.love-counter-hovercopy--top{ top: 10px; }
.love-counter-hovercopy--bottom{ bottom: 10px; }

.love-counter:hover .love-counter-hovercopy,
.love-counter-panel:hover .love-counter-hovercopy{
  opacity: 1;
  transform: translateX(0);
}

.love-counter-stack{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  transition: padding 220ms ease;
}

.love-counter:hover .love-counter-stack,
.love-counter-panel:hover .love-counter-stack{
  padding-top: 22px;
  padding-bottom: 22px;
}

.love-counter-top-icon,
.love-counter-bottom-icon{
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  font-size: 1.08rem;
  flex: 0 0 auto;
}

.love-counter-top-icon{
  animation: loveCounterPulse 1.5s ease-in-out infinite;
}

.love-counter-bottom-icon{
  color: rgba(255,184,224,0.95);
  animation: loveCounterSparkle 2.6s ease-in-out infinite;
}

.love-counter:hover .love-counter-top-icon,
.love-counter-panel:hover .love-counter-top-icon{
  transform: translateY(2px);
}

.love-counter:hover .love-counter-bottom-icon,
.love-counter-panel:hover .love-counter-bottom-icon{
  transform: translateY(-2px);
}

.love-counter-unit{
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-height: 44px;
}

.love-counter-value{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  font-size: 1.36rem;
  font-weight: 800;
  line-height: 1;
  color: #5d2db8;
  text-shadow: 0 1px 0 rgba(255,255,255,0.35);
  transition: color 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.love-counter-value.is-ticking{
  animation: loveCounterFlip 420ms ease;
}

.love-counter-label{
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(89,62,118,0.68);
  text-align: center;
}

.love-counter-unit--years .love-counter-value{ color: #6b3ce1; }
.love-counter-unit--months .love-counter-value{ color: #7c49ff; }
.love-counter-unit--days .love-counter-value{ color: #ff69b5; }
.love-counter-unit--hours .love-counter-value{ color: #6a3bbb; }
.love-counter-unit--minutes .love-counter-value{ color: #7e4dcc; }
.love-counter-unit--seconds .love-counter-value{ color: #ff4fa8; }

.love-counter-separator{
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, rgba(139,92,246,0), rgba(139,92,246,0.28), rgba(255,111,191,0.24), rgba(139,92,246,0));
  flex: 0 0 auto;
}

#love-counter-years-unit.hidden,
#love-counter-years-unit.hidden + .love-counter-separator{
  display: none;
}

.love-counter-modal{
  position: fixed;
  inset: 0;
  z-index: 12550;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(19,10,28,0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.love-counter-modal.hidden{
  display: none;
}

.love-counter-modal-card{
  position: relative;
  width: min(420px, calc(100vw - 28px));
  padding: 24px 22px 22px;
  border-radius: 24px;
  border: 1px solid rgba(212,181,255,0.42);
  background:
    radial-gradient(220px 100px at 12% 0%, rgba(255,145,204,0.16), transparent 68%),
    radial-gradient(240px 120px at 88% 10%, rgba(141,86,255,0.14), transparent 72%),
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,241,255,0.93));
  box-shadow: 0 28px 70px rgba(52,24,78,0.18);
}

.love-counter-modal-close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #5b2fa2;
  background: rgba(255,255,255,0.84);
  box-shadow: 0 10px 24px rgba(120,78,176,0.14);
}

.love-counter-modal-eyebrow{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #8a62c4;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(212,181,255,0.52);
}

.love-counter-modal-title{
  margin: 0 0 10px;
  font-family: "Playfair Display", "Poppins", serif;
  font-size: clamp(1.52rem, 3vw, 2rem);
  line-height: 1.04;
  color: #3f1d57;
}

.love-counter-modal-text{
  margin: 0;
  color: rgba(67,44,88,0.86);
  font-size: 1rem;
  line-height: 1.62;
}

body.lightbox-open .love-counter{
  opacity: 0;
  pointer-events: none;
}

@keyframes loveCounterSlideIn{
  from{ opacity: 0; transform: translateY(-50%) translateX(28px); }
  to{ opacity: 1; transform: translateY(-50%) translateX(0); }
}

@keyframes loveCounterPulse{
  0%, 100%{ transform: scale(1); }
  50%{ transform: scale(1.12); }
}

@keyframes loveCounterSparkle{
  0%, 100%{ transform: translateY(0) rotate(0deg); opacity: 0.7; }
  50%{ transform: translateY(-2px) rotate(8deg); opacity: 1; }
}

@keyframes loveCounterFlip{
  0%{ opacity: 0.15; transform: translateY(8px) scale(0.92); }
  55%{ opacity: 1; transform: translateY(-2px) scale(1.08); }
  100%{ opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 820px){
  .love-counter{
    right: 8px;
    z-index: 12080;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 10px;
    isolation: isolate;
  }

  .love-counter-toggle{
    display: grid;
    place-items: center;
    position: relative;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,0.36);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(246,238,255,0.9));
    box-shadow: -10px 14px 32px rgba(86,47,124,0.18);
    color: #7b44ea;
    pointer-events: auto;
    cursor: pointer;
    transform: translateX(2px);
  }

  .love-counter-toggle-heart{
    font-size: 1rem;
    animation: loveCounterPulse 1.5s ease-in-out infinite;
  }

  .love-counter-panel{
    position: relative;
    z-index: 3;
    width: 132px;
    padding: 14px 12px 16px 14px;
    border-radius: 18px 0 0 18px;
    transform: translateX(calc(100% + 12px));
    opacity: 0;
    pointer-events: none;
    background: #ffffff !important;
    border: 1px solid rgba(214,185,255,0.88);
    box-shadow:
      -14px 18px 34px rgba(86,47,124,0.20),
      inset 0 1px 0 rgba(255,255,255,0.94);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .love-counter.is-open .love-counter-panel{
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .love-counter:hover .love-counter-panel,
  .love-counter-panel:hover{
    width: 132px;
  }

  .love-counter-hovercopy,
  .love-counter-panel::after{
    display: none !important;
  }

  .love-counter-top-icon{
    display: none !important;
  }

  .love-counter-stack{
    gap: 8px;
    padding-top: 4px;
  }

  .love-counter-value{
    font-size: 1.18rem;
  }

  .love-counter-label{
    font-size: 0.46rem;
    letter-spacing: 0.16em;
  }

  .love-counter-bottom-icon{
    margin-top: 2px;
  }
}

/* ===== NOTAS (3 cuadernos) ===== */
/* =========================
   NOTAS PRO (premium UI)
   ========================= */

.notes-fab{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  z-index: 12000;
  background: radial-gradient(120% 120% at 30% 20%, #ff8fd6 0%, #ff4db8 35%, #7c49ff 100%);
  color: #fff;
  font-size: 22px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:
    0 18px 60px rgba(124,73,255,0.22),
    0 12px 32px rgba(255,77,184,0.18);
  transition: transform .18s ease, filter .18s ease;
}
.notes-fab.hidden{ display: none !important; }
.notes-fab:hover{ transform: translateY(-2px) scale(1.02); filter: brightness(1.03); }
.notes-fab:active{ transform: translateY(0) scale(0.99); }

.notes-login-row {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 12000;
}

#btn-open-login-footer {
  width: 54px;
  height: 54px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(124,73,255,0.18);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,239,255,0.96));
  color: #4e2b76;
  font-size: 1.15rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow:
    0 18px 34px rgba(36,19,50,0.18),
    0 10px 22px rgba(124,73,255,0.10);
  transition: all .18s ease;
}

#btn-open-login-footer:hover {
  transform: translateY(-1px);
  background: #f8f2ff;
}

#btn-push-settings{
  width: 54px;
  height: 54px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(124,73,255,0.18);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,239,255,0.96));
  color: #4e2b76;
  font-size: 1.15rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow:
    0 18px 34px rgba(36,19,50,0.18),
    0 10px 22px rgba(124,73,255,0.10);
  transition: all .18s ease;
}

#btn-push-settings:hover{
  transform: translateY(-1px);
  background: #f8f2ff;
}

.notes-fab{
  position: static;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0;
}

.notes-modal{
  position: fixed;
  inset: 0;
  z-index: 12001;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 18px;
  background: rgba(10,6,12,0.55);
  backdrop-filter: blur(10px);
}
.notes-modal.hidden{ display:none; }

.notes-card{
  width: min(980px, 96vw);
  max-height: 84vh;
  overflow: auto;
  border-radius: 28px;
  padding: 22px 18px 20px;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(255,132,193,0.14), transparent 54%),
    radial-gradient(120% 120% at 100% 0%, rgba(141,86,255,0.14), transparent 56%),
    linear-gradient(180deg, #fdfcff, #f5f0ff);
  border: 1px solid rgba(124,73,255,0.14);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.25),
    0 25px 60px rgba(124,58,237,0.12),
    0 14px 36px rgba(124,73,255,0.12);
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: #a855f7 transparent;
  scrollbar-gutter: stable;
}

.notes-card::-webkit-scrollbar{
  width: 8px;
}

.notes-card::-webkit-scrollbar-track{
  background: transparent;
  border-radius: 99px;
}

.notes-card::-webkit-scrollbar-thumb{
  background: linear-gradient(to bottom, #c084fc, #7c3aed);
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

/* header glass sticky */
.notes-head{
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 0 56px 16px 0;
  margin-bottom: 18px;
  background: linear-gradient(180deg, rgba(253,252,255,0.98), rgba(245,240,255,0.88));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(124,73,255,0.10);
  border-radius: 22px;
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:start;
  gap: 12px;
}

.notes-headcopy{
  grid-column: 2;
  text-align: center;
}

.notes-eyebrow{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  margin: 0 auto 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(112, 70, 145, 0.82);
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(184,147,226,0.24);
}

.notes-head h3{
  margin: 0;
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  color: #2b1636;
  letter-spacing: .2px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 800;
}
.notes-subcopy{
  margin: 10px 0 0 !important;
  color: rgba(76,51,88,0.68) !important;
  line-height: 1.5;
}

.notes-x{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1.5px solid rgba(139, 92, 246, 0.32);
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(245,236,255,0.94));
  color: #4b335f;
  box-shadow: 0 14px 28px rgba(36,19,50,0.12);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 1.28rem;
  font-weight: 800;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.notes-x:hover{
  transform: scale(1.03);
  background: linear-gradient(180deg, rgba(250,246,255,1), rgba(240,231,255,0.98));
  box-shadow: 0 18px 34px rgba(36,19,50,0.16);
}

/* tabs */
.notes-tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin: 4px 0 18px;
  justify-content: center;
  width: 100%;
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.notes-tab{
  border: 1.5px solid rgba(139,92,246,0.20);
  background: rgba(255,255,255,0.62);
  padding: 12px 18px;
  border-radius: 999px;
  cursor:pointer;
  font-weight: 700;
  color: rgba(43,22,54,0.92);
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  box-shadow: 0 6px 16px rgba(124,73,255,0.04);
}
.notes-tab:hover{ transform: translateY(-1px); background: rgba(124,73,255,0.10); }

.notes-tab-label{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.notes-tab-count{
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.6);
  font-size: 0.76rem;
  line-height: 1;
  margin-left: 2px;
  flex: 0 0 auto;
}

.notes-tab[data-cat="general"].active{
  background: linear-gradient(135deg, rgba(164,104,255,0.24), rgba(124,73,255,0.14));
  border-color: rgba(124,73,255,0.30);
  box-shadow: 0 4px 12px rgba(139,92,246,0.30);
}

.notes-tab[data-cat="geral"].active{
  background: linear-gradient(135deg, rgba(255,118,190,0.26), rgba(219,112,255,0.14));
  border-color: rgba(255,111,191,0.26);
  box-shadow: 0 4px 12px rgba(255,111,191,0.26);
}

.notes-tab[data-cat="zamir"].active{
  background: linear-gradient(135deg, rgba(140,41,74,0.24), rgba(64,22,37,0.16));
  border-color: rgba(140,41,74,0.24);
  box-shadow: 0 4px 12px rgba(87,28,54,0.26);
}

/* compose: 2-column layout on desktop */
.notes-compose{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items:end;
  margin-bottom: 16px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255,255,255,0.48);
  border: 1px solid rgba(124,73,255,0.12);
  box-shadow: 0 14px 32px rgba(124,73,255,0.08);
}

#notes-input{
  width: 100%;
  min-height: 140px;
  resize: vertical;
  border-radius: 14px;
  border: 1.5px solid rgba(139,92,246,0.20);
  background: rgba(139,92,246,0.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.86);
  padding: 14px 16px;
}

#notes-input::placeholder{
  color: rgba(125,99,141,0.66);
  font-style: italic;
}

#notes-input:focus{
  border-color: rgba(231,122,180,0.48);
  box-shadow:
    0 0 0 5px rgba(255,111,191,0.10),
    0 12px 30px rgba(180,125,255,0.12);
}

.notes-actions{
  display:flex;
  flex-direction:row;
  flex-wrap: wrap;
  gap: 10px;
  align-items:center;
  justify-content:flex-end;
  min-width: 0;
  width: 100%;
}

.notes-actions .btn.small{
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
}
.notes-actions .btn.small.outline{
  color: #4a315f;
  background: linear-gradient(180deg, rgba(255,255,255,0.90), rgba(245,234,255,0.88));
  border: 1.5px solid #ddd;
  box-shadow:
    0 10px 22px rgba(124,73,255,0.08),
    inset 0 1px 0 rgba(255,255,255,0.92);
}

#notes-add{
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, opacity .18s ease;
}

#notes-add:not(.is-ready){
  opacity: 0.5;
  filter: saturate(0.82);
  cursor: not-allowed;
  pointer-events: none;
}

#notes-add.is-ready{
  box-shadow:
    0 14px 30px rgba(141,86,255,0.24),
    0 6px 16px rgba(255,120,190,0.20);
}

#notes-status{
  order: 1;
  margin-right: 0;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  text-align: right;
  width: 100%;
}

/* list */
.notes-list{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
  animation: notesListFade .22s ease;
}

.notes-divider{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0 16px;
}

.notes-divider::before{
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,111,191,0), rgba(255,111,191,0.20), rgba(124,73,255,0.20), rgba(124,73,255,0));
}

.notes-divider span{
  position: relative;
  z-index: 1;
  padding: 0 12px;
  background: linear-gradient(180deg, #fdfcff, #f7f1ff);
  color: rgba(76,51,88,0.62);
  font-size: 11px;
  opacity: 1;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.note-item{
  border-radius: 18px;
  padding: 16px 16px 14px;
  background: rgba(139,92,246,0.03);
  border: 1px solid rgba(124,73,255,0.12);
  box-shadow: 0 14px 40px rgba(36,19,50,0.10);
  transition: transform .16s ease, box-shadow .16s ease, opacity .28s ease;
  animation: noteFadeUp .28s ease both;
}
.note-item:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 55px rgba(36,19,50,0.16);
}

.note-item-general{ border-left: 4px solid #8b5cf6; }
.note-item-geral{ border-left: 4px solid #ff6fbf; }
.note-item-zamir{ border-left: 4px solid #8b294a; }

.note-text{
  color: rgba(43,22,54,0.95);
  font-weight: 600;
  line-height: 1.55;
  word-break: break-word;
}

.note-meta{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
  margin-top: 10px;
}

.note-time{
  font-size: 0.82rem;
  color: rgba(0,0,0,0.40);
  font-weight: 600;
  display:flex;
  align-items:center;
  gap: 8px;
  flex-wrap: wrap;
}

.note-author-pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.note-author-pill.is-you{
  background: rgba(124,73,255,0.10);
  color: #6a46a1;
  border: 1px solid rgba(124,73,255,0.16);
}

.note-author-pill.is-other{
  background: rgba(255,111,191,0.10);
  color: #c3488a;
  border: 1px solid rgba(255,111,191,0.16);
}

.note-btns{ display:flex; gap:10px; }

.note-btn{
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(124,73,255,0.18);
  background: rgba(255,255,255,0.52);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.note-btn:hover{
  transform: scale(1.04);
  background: rgba(255,255,255,0.88);
  box-shadow: 0 12px 24px rgba(124,73,255,0.12);
}

@media (hover:hover){
  .note-btns{
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .18s ease, transform .18s ease;
  }

  .note-item:hover .note-btns{
    opacity: 1;
    transform: translateY(0);
  }
}

.note-btn.danger{
  border-color: rgba(255,60,120,0.22);
  background: rgba(255,60,120,0.10);
}
.note-btn.danger:hover{ background: rgba(255,60,120,0.14); }

.note-empty{
  padding: 42px 22px;
  border-radius: 24px;
  text-align: center;
  background: rgba(139,92,246,0.03);
  border: 1px solid rgba(139,92,246,0.08);
  box-shadow: 0 14px 32px rgba(124,73,255,0.08);
}

.note-empty-icon{
  width: 78px;
  height: 78px;
  margin: 0 auto 18px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(245,236,255,0.96));
  box-shadow: 0 14px 28px rgba(124,73,255,0.10);
}

.note-empty-title{
  color: #2e1d36;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.45;
}

.note-empty-copy{
  margin-top: 14px;
  color: rgba(76,51,88,0.68);
  line-height: 1.55;
}

.notes-loading{
  padding: 16px 6px 8px;
  display: grid;
  gap: 18px;
}

.notes-loading-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.notes-loading-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(184,147,226,0.24);
  color: rgba(112, 70, 145, 0.82);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notes-loading-dots{
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.notes-loading-dots span{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff78be, #8d56ff);
  animation: notesPulse 1s ease-in-out infinite;
}

.notes-loading-dots span:nth-child(2){ animation-delay: .12s; }
.notes-loading-dots span:nth-child(3){ animation-delay: .24s; }

.notes-loading-copy{
  color: rgba(76,51,88,0.68);
  line-height: 1.55;
}

.notes-loading-list{
  display: grid;
  gap: 16px;
}

.notes-loading-card{
  height: 108px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.78), rgba(243,233,255,0.82)),
    rgba(139,92,246,0.05);
  border: 1px solid rgba(124,73,255,0.12);
  box-shadow: 0 14px 32px rgba(124,73,255,0.08);
  position: relative;
  overflow: hidden;
}

.notes-loading-card.short{
  height: 78px;
}

.notes-loading-card::before,
.notes-loading-card::after{
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.62);
}

.notes-loading-card::before{
  top: 22px;
  height: 16px;
}

.notes-loading-card::after{
  top: 50px;
  width: 56%;
  height: 12px;
}

.notes-loading-card.short::after{
  width: 40%;
}

.notes-loading-card > *{
  position: relative;
  z-index: 1;
}

.notes-loading-card{
  animation: noteFadeUp .28s ease both;
}

.notes-loading-card::selection{
  background: transparent;
}

.notes-loading-card::marker{
  content: none;
}

.notes-loading-card .notes-loading-shine{
  display: none;
}

.notes-loading-card::before,
.notes-loading-card::after{
  z-index: 1;
}

.notes-loading-card{
  isolation: isolate;
}

.notes-loading-card::after{
  box-shadow: 0 28px 0 0 rgba(255,255,255,0.42);
}

@keyframes notesPulse{
  0%, 100%{ transform: scale(.82); opacity: .46; }
  50%{ transform: scale(1); opacity: 1; }
}

@keyframes noteFadeUp{
  from{
    opacity: 0;
    transform: translateY(10px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes notesListFade{
  from{
    opacity: 0;
    transform: translateY(6px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

/* LIGHTBOX PREMIUM DISPLAY */
.lightbox-title{
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.lightbox-meta{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.lightbox-pill{
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.92);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
}

.lightbox-badge{
  background: linear-gradient(135deg, #ff6fbf, #7c49ff);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
}

.lightbox-text{
  color: rgba(255,255,255,0.92);
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 16px;
}

.lightbox-btn{
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease;
}
.lightbox-btn:hover{
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.5);
}

/* mobile */
@media (max-width: 720px){
  .notes-card{ padding: 14px; border-radius: 22px; }
  .notes-head{
    grid-template-columns: 1fr auto;
    padding-right: 52px;
  }
  .notes-headcopy{
    grid-column: 1 / span 2;
  }
  .notes-compose{ grid-template-columns: 1fr; }
  .notes-actions{
    justify-content: flex-end;
  }
}

/* =========================
   AUTH FAB + MODAL
   ========================= */

.auth-fab.hidden,
.auth-modal.hidden { display: none !important; }

.auth-fab{
  position: fixed;
  right: 18px;
  bottom: 88px; /* encima del botón de notas (18 + 58 + 12) */
  width: 54px;
  height: 54px;
  padding: 0;
  border-radius: 999px; /* circulito */
  border: 1px solid rgba(124,73,255,0.18);
  background: #ffffff; /* ✅ blanco sólido */
  color: #7c49ff;
  cursor: pointer;
  z-index: 12002; /* por encima del botón de notas */
  box-shadow:
    0 18px 60px rgba(36,19,50,0.18),
    0 10px 28px rgba(124,73,255,0.16);
  display: grid;
  place-items: center;
  font-size: 20px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.auth-fab:hover{
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow:
    0 22px 70px rgba(36,19,50,0.22),
    0 14px 34px rgba(255,77,184,0.14);
}
.auth-fab:active{ transform: translateY(0px); }

.auth-fab-icon{
  display: block;
}

.auth-fab-text{
  display: none;
}

.auth-modal{
  position: fixed;
  inset: 0;
  z-index: 13000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(10,6,12,0.58);
  backdrop-filter: blur(10px);
}

.auth-card{
  width: min(520px, 100%);
  border-radius: 18px;
  background: #ffffff; /* ✅ blanco sólido */
  border: 1px solid rgba(124,73,255,0.14);
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
  overflow: hidden;
}

.auth-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  background: linear-gradient(180deg, rgba(124,73,255,0.08), rgba(255,111,191,0.06));
  border-bottom: 1px solid rgba(124,73,255,0.10);
}

.auth-head h3{
  margin:0;
  font-size: 1.15rem;
  color: #2c1437;
  letter-spacing: .2px;
}

.auth-body{ padding: 14px 16px 16px; }

.auth-x{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(124,73,255,0.16);
  background: rgba(124,73,255,0.08);
  color: #2c1437;
  cursor: pointer;
}
.auth-x:hover{ background: rgba(124,73,255,0.12); }

/* Texto secundario dentro del auth modal (p.muted) en oscuro */
.auth-modal .muted{
  color: rgba(44,20,55,0.70);
}

/* Inputs del auth modal más legibles */
.auth-modal .input{
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(124,73,255,0.18);
  color: #2c1437;
}
.auth-modal .input::placeholder{
  color: rgba(44,20,55,0.45);
}

.auth-actions{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.auth-actions .muted{
  flex: 1;
  min-width: 180px;
}

@media (max-width: 520px){
  .auth-fab{
    right: 14px;
    bottom: 82px; /* 14 + 58 + 10 aprox */
    width: 54px;
    height: 54px;
  }
}
  .notes-actions{ flex-direction: row; min-width: 0; justify-content:flex-end; }
  
  .lightbox-title{ font-size: 1.3rem; }
  .lightbox-meta{ gap: 10px; }
}

/* ===========================
   LIGHTBOX (SUPER GALERÍA)
   Fix: sin scroll + caption overlay
   =========================== */

.lightbox{
  padding: 16px;
}

/* El figure ahora será el contenedor “pantalla completa” */
.lightbox-figure{
  margin: 0;
  width: min(980px, 96vw);
  height: min(92vh, 920px);
  position: relative;
  display: grid;
  place-items: center;
}

/* Wrapper relativo para imagen + botones admin */
.lb-img-wrapper{
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

/* Imagen: nunca empuja el layout */
.lb-img-wrapper img{
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: 18px;
  box-shadow: 0 22px 70px rgba(0,0,0,0.60);
  object-fit: contain;
  display: block;
}

/* Botones editar/eliminar flotando arriba a la derecha */
.lb-admin-overlay{
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 10px;
  z-index: 5;
}

.lb-fab{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(20,14,24,0.55);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(10px);
  transition: transform .15s ease, background .15s ease;
}
.lb-fab:hover{ transform: translateY(-1px); background: rgba(20,14,24,0.70); }
.lb-fab.danger{ background: rgba(255,60,120,0.35); border-color: rgba(255,60,120,0.35); }
.lb-fab.danger:hover{ background: rgba(255,60,120,0.50); }

/* ✅ La info ahora es overlay abajo (no ocupa altura) */
#lightbox-cap{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 14px;
  width: min(740px, calc(100% - 24px));
  z-index: 4;

  background: rgba(18, 12, 22, 0.55);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  padding: 12px 12px 10px;
  color: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 55px rgba(0,0,0,0.45);

  /* evita “desbordes raros” */
  overflow: hidden;
}

/* Fila de pills/badges: siempre envuelve */
.lightbox-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
}

.lightbox-pill, .lightbox-badge{
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.95rem;
  line-height: 1;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  white-space: nowrap;
}

/* Título grande para foto individual (1 sola) */
.lightbox-title{
  width: 100%;
  text-align: center;
  font-weight: 800;
  letter-spacing: .2px;
  font-size: 1.15rem;
  margin-bottom: 4px;

  /* evita que se salga */
  overflow-wrap: anywhere;
}

/* Texto: que no se salga; por defecto clampa (sin scroll) */
.lightbox-text{
  text-align: center;
  font-size: 0.98rem;
  line-height: 1.35;
  opacity: .95;

  overflow-wrap: anywhere;
  word-break: break-word;

  display: -webkit-box;
  -webkit-line-clamp: 3;  /* ✅ sin scroll */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Cuando está expandido, se ve completo */
.lightbox-text.expanded{
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

/* Botón “ver más” */
.lb-more{
  margin: 8px auto 0;
  display: none; /* se activa por JS si hace falta */
  border: 1px solid rgba(255,255,255,0.20);
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: .92rem;
}

/* Mobile */
@media (max-width: 520px){
  .lightbox-figure{
    height: 92vh;
  }
  #lightbox-cap{
    bottom: 10px;
    padding: 10px;
    border-radius: 16px;
  }
  .lightbox-pill, .lightbox-badge{
    font-size: 0.90rem;
    padding: 6px 9px;
  }
}

/* =========================
   LIGHTBOX: layout + info abajo
   ========================= */

#lightbox {
  /* asegúrate que tu overlay ya es fixed + inset:0 */
  /* permitir que el overlay se desplaze verticalmente cuando el contenido es muy largo */
  overflow-y: auto;
}

.lightbox-stage {
  position: relative;
  width: min(980px, 94vw);
  /* sin límite de altura: si la descripción es muy larga la etapa se expande
     y el overlay (#lightbox) se desplazará gracias a su overflow-y: auto */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* default; veremos en JS si debe centrarse */
  gap: 14px;
  margin: 0 auto;
}

/* centrar verticalmente la etapa cuando el contenido cabe en pantalla */
.lightbox-stage.centered {
  justify-content: center;
}

/* Imagen */
.lb-img-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

#lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.45);
}

/* Botones editar/eliminar sobre la foto */
.lb-admin-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 10px;
  z-index: 5;
}

.lb-fab {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(20,14,24,0.55);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(10px);
  transition: transform .15s ease, background .15s ease;
}

.lb-fab:hover { transform: translateY(-1px); background: rgba(20,14,24,0.68); }
.lb-fab.danger { background: rgba(255,60,120,0.25); border-color: rgba(255,60,120,0.35); }
.lb-fab.danger:hover { background: rgba(255,60,120,0.34); }

/* Panel de info: pegado abajo, centrado */
#lightbox-cap.lb-panel {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: min(560px, calc(100% - 24px));
  padding: 14px 14px 12px;
  border-radius: 18px;
  background: rgba(20,14,24,0.50);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
  color: #fff;
  z-index: 4;
}

/* Meta badges */
.lightbox-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
}

.lightbox-title {
  width: 100%;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .2px;
  margin-bottom: 6px;
}

.lightbox-badge,
.lightbox-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 13px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
}

/* Texto: SIN SCROLL, se corta con ... */
.lightbox-text {
  text-align: center;
  font-size: 14px;
  line-height: 1.35;
  opacity: .95;

  display: -webkit-box;
  -webkit-line-clamp: 3; /* máximo 3 líneas */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Si quieres poder expandir (opcional) */
.lightbox-text.expanded {
  -webkit-line-clamp: initial;
  overflow: visible;
}

/* En móvil: reducimos panel y dejamos más espacio a la foto */
@media (max-width: 640px) {
  .lightbox-stage {
    width: 96vw;
    height: 92vh;
  }
  #lightbox-cap.lb-panel {
    bottom: 10px;
    padding: 12px 12px 10px;
  }
  .lightbox-title { font-size: 16px; }
  .lb-fab { width: 42px; height: 42px; }
}

/* =========================
   LIGHTBOX LAYOUT FIX
   - Caption abajo, centrado
   - Sin scroll interno
   - Responsive sin salirse
   ========================= */

.lightbox{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(10,6,12,0.78);
}

/* ===========================
   LIGHTBOX: imagen centrada + info abajo (sin recortes)
   =========================== */

.lightbox{
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow-y: auto;          /* 👈 el scroll es del lightbox */
  -webkit-overflow-scrolling: touch;
  padding: 18px 12px 36px;   /* 👈 espacio abajo para que no corte texto */
}

.lightbox-figure{
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;    /* 👈 imagen arriba, info abajo */
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  overflow: visible !important; /* 👈 evita recortes */
}

.lb-img-wrapper{
  width: min(92vw, 520px);
  position: relative;
  overflow: visible;
}

#lightbox-img{
  width: 100%;
  height: auto;
  max-height: 70vh;          /* 👈 evita que la imagen se salga por arriba */
  object-fit: contain;
  border-radius: 18px;
  display: block;
}

/* panel de info abajo */
#lightbox-cap.lb-panel,
#lightbox-cap{
  width: min(92vw, 560px);
  margin: 0 auto;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(20, 12, 26, 0.55);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: visible !important; /* 👈 clave: que no recorte el texto */
}

.lightbox-text{
  margin-top: 10px;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;   /* 👈 palabras largas no rompen el layout */
  word-break: break-word;
}

/* si quieres que el conjunto quepa y quede centrado cuando cabe */
.lightbox-figure{ min-height: calc(100vh - 54px); }

/* Desktop: dar un poco más de espacio abajo para poder bajar la card ligeramente */
@media (min-width: 900px) {
  .lightbox {
    padding-top: 96px;
    padding-bottom: 96px; /* aumenta el 'respiro' arriba y abajo */
  }
  .lightbox-figure {
    min-height: calc(100vh - 192px);
  }
}

.lightbox.hidden{ display:none; }

/* El figure manda: columna (foto arriba, caption abajo) */
.lightbox-figure{
  width: min(980px, 96vw);
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  /* clave: que TODO quepa en pantalla */
  max-height: calc(100vh - 36px);
}

/* La imagen NUNCA debe exceder el alto disponible */
#lightbox-img{
  width: 100%;
  height: auto;
  max-height: calc(100vh - 230px); /* reserva espacio para caption + botones */
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.45);
  display: block;
}

/* Caption siempre abajo, centrado, sin “salirse” */
#lightbox-cap{
  /* reset earlier absolute positioning */
  position: static !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;

  width: min(760px, 92vw);
  text-align: center;
  padding: 14px 14px;
  border-radius: 18px;
  background: rgba(25, 18, 30, 0.55);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 14px 50px rgba(0,0,0,0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  /* evita que el texto se salga */
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Pills / badges dentro del caption: que envuelvan bonito */
#lightbox-cap .lightbox-meta{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

#lightbox-cap .lightbox-pill,
#lightbox-cap .lightbox-badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  line-height: 1;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
}

#lightbox-cap .lightbox-title{
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 6px;
}

#lightbox-cap .lightbox-text{
  font-size: 1rem;
  line-height: 1.25rem;
  opacity: 0.95;
}

/* ============ ADMIN (editar/eliminar) SOBRE LA FOTO ============ */
.lb-img-wrapper{
  /* volvemos a flujo normal; el centrado se hace por la clase
     `.centered` en el contenedor cuando no hay overflow */
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.lb-admin-overlay{
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 10px;
  z-index: 4;
}

.lb-fab{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(20, 16, 25, 0.50);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .15s ease, background .15s ease;
}

.lb-fab:hover{ transform: translateY(-2px); background: rgba(20,16,25,0.65); }
.lb-fab.danger{ background: rgba(255,60,120,0.25); border-color: rgba(255,60,120,0.35); }

/* ============ Responsive: celulares muy pequeños ============ */
@media (max-width: 520px){
  .lightbox{ padding: 12px; }

  #lightbox-img{
    max-height: calc(100vh - 260px); /* más espacio para caption en móvil */
    border-radius: 16px;
  }

  #lightbox-cap{
    width: 94vw;
    padding: 12px;
    border-radius: 16px;
  }

  #lightbox-cap .lightbox-title{ font-size: 1.15rem; }
  #lightbox-cap .lightbox-pill,
  #lightbox-cap .lightbox-badge{ font-size: 0.88rem; padding: 7px 10px; }

  .lb-fab{ width: 42px; height: 42px; }
}
.lb-fab{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(10,6,12,0.35);
  color: #fff;
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  backdrop-filter: blur(10px);
  transition: transform .15s ease, background .15s ease;
}
.lb-fab:hover{ transform: scale(1.05); background: rgba(10,6,12,0.50); }
.lb-fab:active{ transform: scale(0.98); }

.lb-fab.danger{
  border-color: rgba(255,60,120,0.30);
  background: rgba(255,60,120,0.22);
}
.lb-fab.danger:hover{
  background: rgba(255,60,120,0.30);
}

/* En móvil baja un poco el tamaño */
@media (max-width: 520px){
  .lb-fab{ width: 38px; height: 38px; }
  .lb-admin-overlay{ top: 8px; left: 8px; gap: 8px; }
}

/* ============================
   EDIT CARD: overlay centered above everything
   ============================ */

/* Cuando se muestra, la card de edición aparece encima de todo y centrada */
.lb-edit{
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 10002;
  background: rgba(0,0,0,0.35); /* ligero dim para destacar la card */
  box-sizing: border-box;
}

.lb-edit.hidden{ display: none; }

.lb-edit-card{
  width: min(760px, 92vw);
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 520px){
  .lb-edit{ padding: 12px; }
  .lb-edit-card{ width: 100%; }
}

/* ===============================================
   AJUSTES FINALES SUPER GALERÍA / LIGHTBOX
   - Mejor scroll en fotos largas
   - Fondo de edición más limpio
   - Botón "Cancelar" en blanco
   =============================================== */

/* La imagen nunca ocupa más del 60% del alto de la ventana,
   así el texto de abajo no se esconde detrás del viewport */
#lightbox-img{
  max-height: 60vh;
}

/* Aseguramos que la figura pueda crecer y hacer scroll
   dentro del overlay sin recortar el caption */
.lightbox{
  overflow-y: auto;
}

.lightbox-figure{
  max-height: none;
}

/* Edit card: sin fondo oscuro de lado a lado;
   solo la tarjeta se ve encima */
.lb-edit{
  background: transparent;
}

/* Dentro del editor, los botones outline usan texto blanco */
.lb-edit .btn.outline{
  color: #ffffff;
  border-color: rgba(255,255,255,0.6);
  background: transparent;
}

/* ==========================================================
   MINIMAL POLISH (no rompe funcionalidad)
   - overrides al final para un look más pro y limpio
   ========================================================== */

:root{
  --ink: #241332;
  --ink-2: rgba(36,19,50,0.76);
  --ink-3: rgba(36,19,50,0.56);
  --surface: #ffffff;
  --surface-2: rgba(255,255,255,0.82);
  --border: rgba(124,73,255,0.14);
  --shadow-1: 0 10px 30px rgba(36,19,50,0.10);
  --shadow-2: 0 18px 70px rgba(36,19,50,0.16);
  --radius-xl: 22px;
}

body{
  color: var(--ink);
  line-height: 1.55;
  background:
    radial-gradient(800px 420px at 12% 10%, rgba(255,111,191,0.14), transparent 55%),
    radial-gradient(900px 520px at 88% 22%, rgba(124,73,255,0.14), transparent 58%),
    #fff;
}

.page{ gap: 22px; }

/* Tipografía más “premium” */
.title{
  letter-spacing: .2px;
  text-rendering: geometricPrecision;
}
.subtitle{ color: var(--ink-2); }

/* Botones: más minimal */
.btn{
  border-radius: 14px;
  box-shadow: var(--shadow-1);
}
.btn:hover{ box-shadow: var(--shadow-2); }
.btn.outline{
  border-color: var(--border);
  color: var(--ink);
}

/* Inputs: más limpios */
.select, .input, .textarea{
  border-color: var(--border);
  background: rgba(255,255,255,0.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
}

/* Cards: vidrio sutil + borde */
.hero,
.card,
.extra-card{
  border-radius: var(--radius-xl);
  border: 1px solid rgba(124,73,255,0.10);
  box-shadow: var(--shadow-1);
}
.card{
  background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(255,255,255,0.74));
}
.extra-card{
  background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(255,255,255,0.76));
}

/* Listas: scroll más bonito */
.message-list{
  scrollbar-width: thin;
  scrollbar-color: rgba(124,73,255,0.35) transparent;
}

/* SUPER GALERÍA: un poquito más “gallery app” */
.super-gallery-actions{
  border-radius: 18px;
  border-color: rgba(124,73,255,0.12);
  box-shadow: var(--shadow-1);
}
.sg-item{
  border-radius: 20px;
  box-shadow: var(--shadow-1);
}

/* LIGHTBOX: overlay más limpio */
.lightbox{
  background: rgba(10,6,12,0.78);
}

/* Caption/card: más sólido y legible */
#lightbox-cap,
#lightbox-cap.lb-panel{
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);
}

/* Edit overlay: elegante, sin “tira” infinita */
.lb-edit{
  background: rgba(10,6,12,0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lb-edit-card{
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(124,73,255,0.14);
}
.lb-edit .lb-edit-title{ color: var(--ink); }
.lb-edit .lb-field span{ color: rgba(36,19,50,0.74); }
.lb-edit .input, .lb-edit .textarea{
  background: rgba(255,255,255,0.96);
  color: var(--ink);
  border-color: rgba(124,73,255,0.18);
}
.lb-edit .btn.outline{
  color: var(--ink);
  background: rgba(124,73,255,0.06);
  border-color: rgba(124,73,255,0.18);
}

/* Modales (upload/auth): consistencia */
.modal-card,
/* auth modal usa .auth-card */
.popup-content{
  border-radius: 20px;
  box-shadow: var(--shadow-2);
}

/* ==========================================================
   LIGHTBOX FIX FINAL
   - X dentro de la foto
   - Editar/Borrar dentro de la foto
   - Texto debajo de la imagen
   ========================================================== */

#lightbox{
  position: fixed;
  inset: 0;
  z-index: 9999;
  padding: 24px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  background:
    radial-gradient(ellipse at center, rgba(139,92,246,0.08) 0%, transparent 70%),
    rgba(15, 5, 30, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

#lightbox .lightbox-photo-bg{
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: blur(52px) brightness(0.20) saturate(1.7);
  transform: scale(1.08);
  opacity: 0.88;
  pointer-events: none;
  z-index: 0;
}

#lightbox::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(124,58,237,0.14), transparent 58%),
    linear-gradient(180deg, rgba(15,5,24,0.36), rgba(15,5,24,0.58));
  pointer-events: none;
  z-index: 0;
}

#lightbox.hidden{
  display: none;
}

#lightbox .lightbox-figure{
  position: relative;
  z-index: 1;
  width: min(1120px, 96vw);
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-height: none;
  overflow: visible;
  animation: lightboxCardIn .3s ease-out;
}

#lightbox .lb-img-wrapper{
  position: relative;
  width: min(92vw, 860px);
  max-width: min(92vw, 860px);
  margin: 0 auto;
  align-self: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: none;
}

#lightbox .lb-media-frame{
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  line-height: 0;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
}

#lightbox .lb-frame-top{
  position: fixed;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 10020;
  pointer-events: none;
}

#lightbox .lb-frame-left,
#lightbox .lb-frame-center,
#lightbox .lb-frame-right{
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

#lightbox .lb-frame-center{
  justify-content: center;
  flex: 1;
}

#lightbox #lightbox-img{
  display: block;
  width: 100%;
  max-width: 100%;
  height: min(65vh, 760px);
  max-height: min(65vh, 760px);
  border-radius: 24px 24px 0 0;
  object-fit: cover;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  background: rgba(10,8,16,0.42);
  animation: lightboxImageIn .3s ease-out;
}

#lightbox .lb-admin-overlay{
  display: flex;
  gap: 10px;
}

#lightbox > .lightbox-close{
  display: none !important;
}

#lightbox .lb-fab{
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.22);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease;
}

#lightbox .lb-fab:hover{
  transform: scale(1.05);
  box-shadow: 0 16px 34px rgba(0,0,0,0.28);
}

@media (hover: hover) {
  #lightbox .lb-admin-overlay,
  #lightbox .lb-fab-close,
  #lightbox .lightbox-counter{
    opacity: 0;
    transition: opacity .22s ease, transform .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease;
  }

  #lightbox .lb-media-frame:hover .lb-admin-overlay,
  #lightbox .lb-media-frame:hover .lb-fab-close,
  #lightbox .lb-media-frame:hover .lightbox-counter{
    opacity: 1;
  }
}

#lightbox .lb-fab.is-disabled{
  opacity: 0.72;
}

#lightbox .lb-fab.danger{
  background: rgba(239,68,68,0.3);
  border-color: rgba(239,68,68,0.34);
}

#lightbox .lb-fab-close{
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.22);
  font-size: 1.2rem;
  font-weight: 700;
}

#lightbox .lb-fab-close:hover{
  background: rgba(239,68,68,0.4);
}

#lightbox #btn-edit-photo{
  background: rgba(139,92,246,0.3);
  border-color: rgba(139,92,246,0.38);
}

#lightbox #btn-edit-photo:hover{
  background: rgba(139,92,246,0.42);
}

#lightbox #lightbox-cap,
#lightbox #lightbox-cap.lb-panel{
  position: static !important;
  inset: auto !important;
  transform: none !important;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 22px 28px 24px;
  border-radius: 0 0 24px 24px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-top: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.92);
  text-align: left;
  box-shadow: 0 18px 50px rgba(0,0,0,0.28);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-sizing: border-box;
  display: block;
}

#lightbox .lightbox-counter{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 7px 12px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(20,18,28,0.82), rgba(38,32,52,0.72));
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.92);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow:
    0 14px 28px rgba(0,0,0,0.30),
    0 4px 12px rgba(124,73,255,0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: none;
  position: relative;
}

#lightbox .lightbox-counter::before{
  content: none;
}

#lightbox .lightbox-counter::after{
  content: none;
}

#lightbox .lightbox-meta-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

#lightbox .lightbox-meta{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}

#lightbox .lightbox-meta-item,
#lightbox .lightbox-date-pill{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.92);
  font-size: 0.98rem;
  line-height: 1.2;
}

#lightbox .lightbox-date-pill{
  color: rgba(255,255,255,0.58);
}

#lightbox .lightbox-meta-sep{
  color: rgba(255,255,255,0.32);
  font-size: 0.95rem;
}

#lightbox .lightbox-panel-tools{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}

#lightbox .lightbox-panel-tools .btn.outline{
  margin-right: auto;
  margin-left: auto;
  max-width: 100%;
}

#lightbox .lb-panel-tool{
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.88);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}

#lightbox .lb-panel-tool:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.28);
  box-shadow: 0 8px 18px rgba(255,255,255,0.08);
}

#lightbox .lb-panel-tool.danger:hover{
  background: rgba(239,68,68,0.24);
  border-color: rgba(239,68,68,0.32);
  box-shadow: 0 8px 18px rgba(239,68,68,0.10);
}

#lightbox .lb-panel-tool.is-disabled{
  opacity: 0.55;
}

#lightbox .lightbox-text{
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.10);
  text-align: left;
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: rgba(255,255,255,0.85);
  font-style: italic;
  font-size: 1.02rem;
}

#lightbox .lightbox-info-bottom{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
}

#lightbox .lightbox-info-actions{
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  width: 100%;
  margin-left: 0;
}

#lightbox .lightbox-info-actions .btn.outline{
  color: rgba(255,255,255,0.92);
  background: rgba(124,58,237,0.16);
  border: 1px solid rgba(139,92,246,0.38);
  box-shadow: none;
}

#lightbox .lightbox-info-actions .btn.outline:hover{
  background: rgba(124,58,237,0.34);
}

#lightbox .lb-more{
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.78);
  padding: 8px 12px;
}

#lightbox .lightbox-dots{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#lightbox .lightbox-dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.24);
  transition: transform .18s ease, background .18s ease;
}

#lightbox .lightbox-dot.is-active{
  background: rgba(139,92,246,0.95);
  transform: scale(1.15);
}

#lightbox .lightbox-nav.prev,
#lightbox .lightbox-nav.next{
  position: fixed;
  transform: translateY(-50%);
  z-index: 8;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.92);
  box-shadow: 0 14px 28px rgba(0,0,0,0.18);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

#lightbox .lightbox-nav.prev:hover,
#lightbox .lightbox-nav.next:hover{
  transform: translateY(-50%) scale(1.1);
  background: rgba(124,58,237,0.28);
  border-color: rgba(139,92,246,0.38);
}

#lightbox .lb-edit{
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  transform: none !important;
  margin: 0 !important;
  z-index: 10030 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 16, 24, 0.58) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: lbEditFadeIn .28s cubic-bezier(.2,.9,.2,1);
}

#lightbox .lb-edit.hidden{
  display: none !important;
}

#lightbox .lb-edit-card{
  width: min(780px, 92vw);
  max-height: 75vh;
  margin: 0;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  transform: none !important;
  border-radius: 28px;
  isolation: isolate;
  background:
    radial-gradient(140% 120% at 0% 0%, rgba(255,255,255,0.95), transparent 48%),
    radial-gradient(120% 120% at 100% 0%, rgba(232,220,255,0.45), transparent 42%),
    linear-gradient(180deg, #fffdf9 0%, #fbf3ff 52%, #fff9f4 100%);
  border: 1px solid rgba(124,73,255,0.14);
  box-shadow:
    0 25px 60px rgba(124, 58, 237, 0.15),
    0 22px 48px rgba(0,0,0,0.26),
    0 10px 28px rgba(124,73,255,0.10),
    inset 0 1px 0 rgba(255,255,255,0.9);
  animation: lbEditCardIn .32s cubic-bezier(.2,.9,.2,1);
}

#lightbox .lb-edit-shell{
  width: min(780px, 92vw);
  max-height: 75vh;
  margin: auto;
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 30px 70px rgba(124, 58, 237, 0.18),
    0 20px 48px rgba(0,0,0,0.28);
}

#lightbox .lb-edit-head,
#lightbox .lb-edit-actions{
  background: transparent;
}

#lightbox .lb-edit-head{
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 12px;
  padding: 28px 28px 18px;
  margin: 0;
  text-align: center;
}

#lightbox .lb-edit-head::after{
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,73,255,0.20), transparent);
}

#lightbox .lb-edit-headcopy{
  grid-column: 2;
  max-width: 460px;
}

#lightbox .lb-edit-eyebrow{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  margin-bottom: 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #8b678f;
  background: rgba(255,255,255,0.52);
  border: 1px solid rgba(176,140,199,0.18);
  box-shadow: 0 6px 18px rgba(124,73,255,0.06);
}

#lightbox .lb-edit-title{
  margin: 0;
  color: #2e1d36;
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  font-family: "Playfair Display", Georgia, serif;
}

#lightbox .lb-edit-title::after{
  content: "";
  display: block;
  width: 96px;
  height: 1px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, rgba(255,111,191,0), rgba(255,111,191,0.75), rgba(124,73,255,0.75), rgba(124,73,255,0));
}

#lightbox .lb-edit-subtitle{
  margin-top: 10px;
  color: rgba(76,51,88,0.68);
  font-size: 0.97rem;
  line-height: 1.5;
  text-align: center;
}

#lightbox .lb-x{
  grid-column: 3;
  justify-self: end;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1.5px solid rgba(139, 92, 246, 0.30);
  background: linear-gradient(180deg, rgba(238,230,255,0.96), rgba(228,214,255,0.92));
  color: #49315e;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 14px 30px rgba(36,19,50,0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

#lightbox .lb-x:hover{
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 18px 34px rgba(36,19,50,0.20);
  background: linear-gradient(180deg, rgba(232,219,255,1), rgba(222,202,255,0.96));
}

#lightbox .lb-edit-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 18px 28px 0;
}

#lightbox .lb-field{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#lightbox .lb-field span{
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(84,63,95,0.76);
  letter-spacing: 0.01em;
}

#lightbox .lb-span-2{
  grid-column: 1 / -1;
}

#lightbox .lb-suggest,
#upload-modal .lb-suggest{
  position: relative;
  overflow: visible;
  z-index: 30;
}

#lightbox .lb-edit .input,
#lightbox .lb-edit .textarea{
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(167,133,194,0.28);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(248,241,255,0.92));
  color: #241332;
  padding: 14px 16px;
  font-size: 1rem;
  line-height: 1.4;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.95),
    0 10px 24px rgba(124,73,255,0.06);
}

#lightbox .lb-edit select.input{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(84,63,95,0.72) 50%),
    linear-gradient(135deg, rgba(84,63,95,0.72) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

#lightbox .lb-edit .textarea{
  min-height: 168px;
  resize: vertical;
}

#lightbox .lb-edit .input:focus,
#lightbox .lb-edit .textarea:focus{
  border-color: rgba(231,122,180,0.48);
  box-shadow:
    0 0 0 5px rgba(255,111,191,0.10),
    0 12px 30px rgba(180,125,255,0.12);
}

#lightbox .lb-edit .input::placeholder,
#lightbox .lb-edit .textarea::placeholder{
  color: rgba(125,99,141,0.66);
  font-style: italic;
}

#lightbox .lb-suggestions,
#upload-modal .lb-suggestions{
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(167,133,194,0.20);
  box-shadow:
    0 18px 36px rgba(124,73,255,0.10),
    0 12px 26px rgba(0,0,0,0.10);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 80;
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(124,73,255,0.55) transparent;
}

#lightbox .lb-suggestions::-webkit-scrollbar,
#upload-modal .lb-suggestions::-webkit-scrollbar{
  width: 6px;
}

#lightbox .lb-suggestions::-webkit-scrollbar-track,
#upload-modal .lb-suggestions::-webkit-scrollbar-track{
  background: transparent;
}

#lightbox .lb-suggestions::-webkit-scrollbar-thumb,
#upload-modal .lb-suggestions::-webkit-scrollbar-thumb{
  background: linear-gradient(180deg, rgba(255,111,191,0.7), rgba(124,73,255,0.78));
  border-radius: 999px;
}

#upload-modal .row,
#upload-modal .field,
#upload-modal .upload-card,
#upload-modal .modal-shell{
  overflow: visible;
}

#lightbox .lb-suggestions.hidden,
#upload-modal .lb-suggestions.hidden{
  display: none;
}

#lightbox .lb-suggestion-item,
#upload-modal .lb-suggestion-item{
  width: 100%;
  border: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(248,241,255,0.9));
  color: #362247;
  cursor: pointer;
  text-align: left;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}

#lightbox .lb-suggestion-item:hover,
#upload-modal .lb-suggestion-item:hover{
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(250,244,255,1), rgba(241,230,255,0.96));
  box-shadow: 0 10px 20px rgba(124,73,255,0.08);
}

#lightbox .lb-suggestion-icon,
#upload-modal .lb-suggestion-icon{
  font-size: 0.95rem;
}

#lightbox .lb-suggestion-text,
#upload-modal .lb-suggestion-text{
  font-size: 0.96rem;
  font-weight: 600;
}

#lightbox .lb-edit-actions{
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 28px 22px;
  margin: 16px 0 0;
  border-top: 1px solid rgba(124,73,255,0.10);
}

#lightbox .lb-edit .btn{
  min-width: 118px;
  min-height: 48px;
  border-radius: 16px;
  font-size: 0.98rem;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(124,73,255,0.16);
}

#lightbox .lb-edit .btn.outline{
  color: #4a315f;
  background: linear-gradient(180deg, rgba(255,255,255,0.90), rgba(245,234,255,0.88));
  border: 1.5px solid #ddd;
  box-shadow:
    0 10px 22px rgba(124,73,255,0.08),
    inset 0 1px 0 rgba(255,255,255,0.92);
}

#lightbox .lb-edit .btn.outline:hover{
  background: linear-gradient(180deg, rgba(251,247,255,0.96), rgba(240,229,255,0.96));
  border-color: rgba(166,127,199,0.46);
}

#lightbox .lb-edit #btn-save-edit{
  background: linear-gradient(135deg, #ff78be, #8d56ff);
  box-shadow:
    0 14px 30px rgba(141,86,255,0.24),
    0 6px 16px rgba(255,120,190,0.20);
}

#lightbox #lb-edit-status{
  padding: 0 28px 24px;
  margin-top: -8px !important;
  color: rgba(44,20,55,0.58);
  text-align: right;
}

#lightbox .lb-edit-card::after{
  content: "";
  display: block;
  height: 28px;
}

#lightbox .lb-edit-card::-webkit-scrollbar{
  width: 5px;
}

#lightbox .lb-edit-card::-webkit-scrollbar-track{
  background: transparent;
}

#lightbox .lb-edit-card::-webkit-scrollbar-thumb{
  background: linear-gradient(to bottom, #c084fc, #a855f7);
  border-radius: 99px;
}

#lightbox .lb-edit-card{
  scrollbar-width: thin;
  scrollbar-color: #a855f7 transparent;
}

@keyframes lbEditFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes lightboxImageIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes lightboxCardIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes lbEditCardIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 640px){
  #lightbox{
    padding: 14px 10px 22px;
  }

  #lightbox .lb-img-wrapper,
  #lightbox .lb-media-frame,
  #lightbox #lightbox-cap,
  #lightbox #lightbox-cap.lb-panel{
    width: 94vw;
  }

  #lightbox #lightbox-img{
    width: 100% !important;
    max-width: 100% !important;
    height: 58vh;
    max-height: 58vh;
    border-radius: 20px 20px 0 0;
  }

  #lightbox .lb-admin-overlay{
    gap: 8px;
  }

  #lightbox .lb-frame-top{
    z-index: 10020;
  }

  #lightbox .lb-fab{
    width: 40px;
    height: 40px;
  }

  #lightbox #lightbox-cap,
  #lightbox #lightbox-cap.lb-panel{
    padding: 14px;
    border-radius: 0 0 20px 20px;
  }

  #lightbox .lightbox-meta{
    justify-content: flex-start;
  }

  #lightbox .lightbox-meta-sep{
    display: none;
  }

  #lightbox .lightbox-info-actions{
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-left: 0;
  }

  #lightbox .lightbox-info-bottom{
    align-items: flex-start;
    flex-direction: column;
  }

  #lightbox .lb-edit{
    padding: 14px;
  }

  #lightbox .lb-edit-card{
    width: 100%;
    border-radius: 24px;
  }

  #lightbox .lb-edit-head{
    grid-template-columns: 1fr auto;
    padding: 22px 18px 16px;
    text-align: left;
  }

  #lightbox .lb-edit-headcopy{
    grid-column: 1;
    max-width: none;
    text-align: left;
  }

  #lightbox .lb-edit-title,
  #lightbox .lb-edit-subtitle{
    text-align: left;
  }

  #lightbox .lb-x{
    grid-column: 2;
  }

  #lightbox .lb-edit-head::after{
    left: 18px;
    right: 18px;
  }

  #lightbox .lb-edit-grid{
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 18px 0;
  }

  #lightbox .lb-span-2{
    grid-column: auto;
  }

  #lightbox .lb-edit-actions{
    padding: 16px 18px 18px;
    flex-direction: column-reverse;
  }

  #lightbox .lb-edit .btn{
    width: 100%;
  }

  #lightbox #lb-edit-status{
    padding: 0 18px 18px;
    text-align: left;
  }
}





/* ==========================================================
   LIGHTBOX FINAL OVERRIDES
   - imagen + panel unidos
   - controles visibles
   - datos en una sola fila
   ========================================================== */

#lightbox .lightbox-figure{
  gap: 0 !important;
  min-height: auto !important;
  justify-content: flex-start !important;
}

#lightbox .lb-media-frame{
  border-radius: 24px 24px 0 0 !important;
  margin-bottom: 0 !important;
  display: block !important;
}

#lightbox #lightbox-img{
  border-radius: 24px 24px 0 0 !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: min(65vh, 760px) !important;
  max-height: min(65vh, 760px) !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: rgba(8,8,12,0.92) !important;
}

#lightbox #lightbox-cap,
#lightbox #lightbox-cap.lb-panel{
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  margin-top: 0 !important;
  padding: 22px 28px 24px !important;
  border-radius: 0 0 30px 30px !important;
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,0.05) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-sizing: border-box !important;
}

#lightbox .lightbox-dots,
#lightbox .lightbox-info-topline{
  display: none !important;
}

#lightbox .lb-frame-top,
#lightbox .lb-admin-overlay,
#lightbox .lb-fab-close,
#lightbox .lightbox-counter{
  opacity: 1 !important;
}

#lightbox .lb-fab,
#lightbox .lb-fab-close{
  width: 42px !important;
  height: 42px !important;
  background: rgba(255,255,255,0.12) !important;
  border: 1px solid rgba(255,255,255,0.22) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

#lightbox #btn-edit-photo{
  background: rgba(139,92,246,0.30) !important;
  border-color: rgba(139,92,246,0.40) !important;
}

#lightbox #btn-delete-photo{
  background: rgba(239,68,68,0.28) !important;
  border-color: rgba(239,68,68,0.34) !important;
}

#lightbox .lightbox-meta{
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  overflow-x: auto;
  scrollbar-width: none;
}

#lightbox .lightbox-meta::-webkit-scrollbar{
  display: none;
}

#lightbox .lightbox-meta-item,
#lightbox .lightbox-date-pill{
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  white-space: nowrap;
}

#lightbox .lightbox-meta-sep{
  display: inline-block !important;
  font-size: 0.72rem !important;
  color: rgba(255,255,255,0.30) !important;
}

#lightbox .lightbox-text{
  border-top: 1px solid rgba(255,255,255,0.10) !important;
  padding-top: 20px !important;
  margin-top: 18px !important;
  padding-bottom: 12px;
}

#lightbox .lightbox-info-bottom{
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  margin-top: 14px !important;
}

#lightbox .lightbox-info-actions{
  width: 100%;
  margin-left: 0 !important;
  justify-content: center;
}

#lightbox .lightbox-info-actions .btn.outline{
  border: 1px solid rgba(139,92,246,0.40) !important;
  background: rgba(124,58,237,0.16) !important;
  white-space: nowrap;
  padding-inline: 16px !important;
}

@media (max-width: 640px){
  #lightbox .lightbox-meta{
    flex-wrap: wrap !important;
  }

  #lightbox .lightbox-info-actions{
    margin-left: 0 !important;
    flex-wrap: wrap;
  }
}

/* ==========================================================
   LIGHTBOX FINAL POLISH
   - contador dentro de la foto
   - boton ver todas abajo
   - imagen llena el ancho
   ========================================================== */

#lightbox #lightbox-img{
  width: 100% !important;
  max-width: 100% !important;
  height: min(65vh, 760px) !important;
  max-height: min(65vh, 760px) !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: rgba(8,8,12,0.92) !important;
}

#lightbox #lightbox-cap,
#lightbox #lightbox-cap.lb-panel{
  padding: 26px 30px 28px !important;
}

#lightbox .lightbox-counter{
  margin-top: 16px !important;
  min-width: 66px !important;
  padding: 8px 13px !important;
  background: rgba(10,10,14,0.72) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  color: rgba(255,255,255,0.96) !important;
  box-shadow:
    0 10px 26px rgba(0,0,0,0.30),
    0 2px 10px rgba(0,0,0,0.18) !important;
}

#lightbox .lightbox-info-bottom{
  align-items: center !important;
  gap: 14px !important;
  margin-top: 16px !important;
}

#lightbox .lightbox-info-actions{
  flex: 1 1 auto !important;
  width: auto !important;
  justify-content: flex-start !important;
}

#lightbox .lightbox-info-actions .btn.outline{
  margin-inline: auto !important;
}

#lightbox .lightbox-author-wrap{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  min-width: 0;
  margin-left: auto;
}

#lightbox .lightbox-author-chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.92);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

#lightbox .lightbox-author-wrap[hidden],
#lightbox .lightbox-author-chip[hidden]{
  display: none !important;
}

#lightbox .lb-panel-tool{
  transition:
    transform .16s ease,
    background .16s ease,
    border-color .16s ease,
    color .16s ease,
    box-shadow .16s ease !important;
}

#lightbox .lb-panel-tool:hover{
  background: rgba(255,255,255,0.22) !important;
  border-color: rgba(255,255,255,0.34) !important;
  box-shadow: 0 10px 22px rgba(255,255,255,0.12) !important;
}

#lightbox .lb-panel-tool.danger:hover{
  background: rgba(239,68,68,0.28) !important;
  border-color: rgba(239,68,68,0.38) !important;
  box-shadow: 0 10px 22px rgba(239,68,68,0.14) !important;
}

#lightbox .nav{
  width: 40px !important;
  height: 40px !important;
  background: rgba(255,255,255,0.12) !important;
  border: 1px solid rgba(255,255,255,0.20) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

/* ==========================================================
   LIGHTBOX DELETE MODAL
   ========================================================== */

#lightbox .lb-delete{
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(10, 6, 12, 0.54);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: lbEditFadeIn .18s ease;
}

#lightbox .lb-delete.hidden{
  display: none;
}

#lightbox .lb-delete-shell{
  width: min(560px, 92vw);
  margin: auto;
}

#lightbox .lb-delete-card{
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 32px 28px 26px;
  text-align: center;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(255, 126, 182, 0.18), transparent 52%),
    radial-gradient(120% 120% at 100% 0%, rgba(151, 96, 255, 0.16), transparent 56%),
    linear-gradient(180deg, rgba(255,248,251,0.98), rgba(249,240,255,0.95));
  border: 1px solid rgba(182, 133, 210, 0.24);
  box-shadow:
    0 34px 90px rgba(0,0,0,0.26),
    0 18px 40px rgba(124,73,255,0.14);
}

#lightbox .lb-delete-x{
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(137, 102, 179, 0.20);
  background: rgba(255,255,255,0.72);
  color: #5a3c70;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

#lightbox .lb-delete-x:hover{
  transform: translateY(-1px) scale(1.03);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 14px 28px rgba(90,60,112,0.14);
}

#lightbox .lb-delete-icon{
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-size: 1.85rem;
  background: linear-gradient(180deg, rgba(255, 235, 242, 0.96), rgba(255, 220, 232, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.95),
    0 18px 34px rgba(239,68,68,0.14);
}

#lightbox .lb-delete-eyebrow{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(128, 69, 98, 0.82);
  background: rgba(255,255,255,0.58);
  border: 1px solid rgba(214, 168, 193, 0.34);
}

#lightbox .lb-delete-title{
  margin: 0;
  color: #2e1d36;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.08;
  font-weight: 800;
}

#lightbox .lb-delete-copy{
  margin: 12px auto 0;
  max-width: 40ch;
  color: rgba(76,51,88,0.74);
  line-height: 1.6;
  font-size: 0.98rem;
}

#lightbox .lb-delete-preview{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

#lightbox .lb-delete-chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #5c456f;
  background: rgba(255,255,255,0.74);
  border: 1px solid rgba(188, 160, 220, 0.28);
  font-size: 0.9rem;
  white-space: nowrap;
}

#lightbox .lb-delete-message{
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.58);
  border: 1px solid rgba(197, 176, 219, 0.22);
  color: rgba(62, 40, 78, 0.84);
  line-height: 1.6;
  font-style: italic;
}

#lightbox .lb-delete-actions{
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

#lightbox .danger-solid{
  min-width: 132px;
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(220, 72, 120, 0.22);
  color: #fff;
  background: linear-gradient(135deg, #ff6b8a, #e23d67);
  box-shadow:
    0 16px 30px rgba(226, 61, 103, 0.24),
    0 8px 18px rgba(255, 107, 138, 0.18);
}

#lightbox .danger-solid:hover{
  transform: translateY(-1px);
  box-shadow:
    0 18px 34px rgba(226, 61, 103, 0.28),
    0 10px 20px rgba(255, 107, 138, 0.20);
}

#lightbox .danger-solid:disabled{
  opacity: 0.72;
  cursor: default;
  transform: none;
}

@media (max-width: 640px){
  #lightbox .lb-delete-card{
    padding: 28px 18px 18px;
    border-radius: 24px;
  }

  #lightbox .lb-delete-actions{
    flex-direction: column-reverse;
  }

  #lightbox .lb-delete-actions .btn{
    width: 100%;
  }
}

/* ==========================================================
   UPLOAD MODAL POLISH
   ========================================================== */

#upload-modal{
  background: rgba(10,6,12,0.52);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10040;
}

#upload-modal .upload-card{
  position: relative;
  width: min(820px, 94vw);
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 30px;
  padding: 28px 28px 24px;
  background:
    radial-gradient(110% 90% at 0% 0%, rgba(255,132,193,0.15), transparent 52%),
    radial-gradient(110% 90% at 100% 0%, rgba(141,86,255,0.16), transparent 55%),
    linear-gradient(180deg, #fdfcff, #f5f0ff);
  border: 1px solid rgba(124,73,255,0.14);
  box-shadow:
    0 34px 90px rgba(0,0,0,0.26),
    0 18px 40px rgba(124,73,255,0.12);
}

#upload-modal .upload-x{
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1.5px solid rgba(139, 92, 246, 0.24);
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(245,236,255,0.94));
  color: #4b335f;
  box-shadow: 0 14px 28px rgba(36,19,50,0.12);
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

#upload-modal .upload-x:hover{
  transform: translateY(-1px) scale(1.03);
  background: linear-gradient(180deg, rgba(250,246,255,1), rgba(240,231,255,0.98));
  box-shadow: 0 18px 34px rgba(36,19,50,0.16);
}

#upload-modal .upload-eyebrow{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  margin: 0 auto 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(112, 70, 145, 0.82);
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(184,147,226,0.24);
}

#upload-modal .upload-title{
  margin: 0;
  text-align: center;
  color: #2e1d36;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.6rem, 2.8vw, 2rem);
  line-height: 1.08;
}

#upload-modal .upload-title::after{
  content: "";
  display: block;
  width: 96px;
  height: 1px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, rgba(255,111,191,0), rgba(255,111,191,0.75), rgba(124,73,255,0.75), rgba(124,73,255,0));
}

#upload-modal .upload-subtitle{
  margin: 12px auto 22px;
  max-width: 44ch;
  text-align: center;
  color: rgba(76,51,88,0.68);
  line-height: 1.55;
}

#upload-modal .auth-box{
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,248,251,0.84), rgba(246,238,255,0.82));
  border: 1px solid rgba(193,167,221,0.22);
  box-shadow: 0 14px 28px rgba(124,73,255,0.08);
  transition: opacity .18s ease, max-height .22s ease, margin .22s ease, padding .22s ease;
}

#upload-modal .upload-auth-summary{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

#upload-modal .auth-box .muted{
  color: rgba(93,66,115,0.82);
  font-weight: 600;
}

#upload-modal .auth-box.is-authed{
  display: none;
}

#upload-modal .field{
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

#upload-modal .field span{
  color: rgba(68,47,84,0.82);
  font-size: 0.95rem;
  font-weight: 700;
}

.map-location-tools{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.lb-suggest{
  position: relative;
  z-index: 8;
}

.map-location-tools .muted{
  font-size: 0.82rem;
  color: rgba(92,70,113,0.70);
}

.map-location-display{
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.90), rgba(248,241,255,0.94));
  border: 1px solid rgba(167,133,194,0.20);
  box-shadow: 0 12px 28px rgba(124,73,255,0.08);
  color: #3d274f;
  font-weight: 600;
  line-height: 1.45;
}

.map-location-display.empty{
  color: rgba(92,70,113,0.64);
  font-weight: 500;
}

#upload-modal .input,
#upload-modal .textarea{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(167,133,194,0.28);
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(248,241,255,0.88));
  color: #241332;
  padding: 14px 16px;
  box-sizing: border-box;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.86);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

#upload-modal .input:focus,
#upload-modal .textarea:focus{
  border-color: rgba(231,122,180,0.48);
  box-shadow:
    0 0 0 5px rgba(255,111,191,0.10),
    0 12px 30px rgba(180,125,255,0.12);
}

#upload-modal .input::placeholder,
#upload-modal .textarea::placeholder{
  color: rgba(125,99,141,0.66);
  font-style: italic;
}

#upload-modal .textarea{
  min-height: 128px;
  resize: vertical;
}

#upload-modal .row{
  margin-top: 2px;
}

#upload-modal .upload-input-native{
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

#upload-modal .upload-dropzone{
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 176px;
  padding: 22px;
  text-align: center;
  border-radius: 24px;
  border: 2px dashed rgba(139,92,246,0.30);
  background: rgba(139,92,246,0.04);
  color: #5a3c70;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

#upload-modal .upload-dropzone:hover,
#upload-modal .upload-dropzone.is-dragover{
  border-color: rgba(139,92,246,0.56);
  background: rgba(139,92,246,0.08);
  box-shadow: 0 18px 36px rgba(124,73,255,0.10);
  transform: translateY(-1px);
}

#upload-modal .upload-dropzone.has-files{
  min-height: 120px;
}

#upload-modal .upload-dropzone-icon{
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font-size: 1.55rem;
  background: rgba(255,255,255,0.74);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

#upload-modal .upload-dropzone-title{
  font-size: 1.08rem;
  font-weight: 700;
  color: #4a315f;
}

#upload-modal .upload-dropzone-copy{
  color: rgba(88,67,105,0.70);
  font-style: italic;
}

#upload-modal .upload-preview{
  display: flex;
  gap: 12px;
  margin-top: 14px;
  padding: 4px 0 2px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(124,73,255,0.35) transparent;
}

#upload-modal .upload-preview::-webkit-scrollbar{
  height: 5px;
}

#upload-modal .upload-preview::-webkit-scrollbar-track{
  background: transparent;
}

#upload-modal .upload-preview::-webkit-scrollbar-thumb{
  background: linear-gradient(to right, #c084fc, #a855f7);
  border-radius: 99px;
}

#upload-modal .upload-preview-card{
  position: relative;
  flex: 0 0 138px;
  height: 150px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(124,73,255,0.16);
  background: rgba(124,73,255,0.06);
  box-shadow: 0 12px 28px rgba(36,19,50,0.10);
}

#upload-modal .upload-preview-card.is-broken-preview{
  background:
    linear-gradient(180deg, rgba(255,247,249,0.98), rgba(255,238,244,0.96)),
    radial-gradient(circle at top left, rgba(255, 134, 171, 0.14), transparent 56%);
  border-color: rgba(226, 61, 103, 0.22);
}

#upload-modal .upload-preview-remove{
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(10,6,12,0.68);
  color: rgba(255,255,255,0.96);
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}

#upload-modal .upload-preview-remove:hover{
  transform: scale(1.06);
  background: rgba(226, 61, 103, 0.86);
  box-shadow: 0 10px 18px rgba(226, 61, 103, 0.20);
}

#upload-modal .upload-preview-card img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#upload-modal .upload-preview-card.is-broken-preview img{
  opacity: 0.18;
}

#upload-modal .upload-preview-card span{
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(10,6,12,0.52);
  color: rgba(255,255,255,0.92);
  font-size: 0.78rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#upload-modal .upload-inline-alert{
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(139,92,246,0.16);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(247,239,255,0.92)),
    radial-gradient(circle at top left, rgba(255,192,223,0.16), transparent 54%);
  color: #674b83;
  font-size: 0.92rem;
  line-height: 1.45;
  box-shadow:
    0 14px 26px rgba(124,73,255,0.08),
    inset 0 1px 0 rgba(255,255,255,0.88);
}

#upload-modal .upload-inline-alert.hidden{
  display: none;
}

#upload-modal .upload-inline-alert[data-tone="success"]{
  border-color: rgba(61, 180, 124, 0.24);
  background:
    linear-gradient(180deg, rgba(245,255,250,0.96), rgba(236,250,244,0.94)),
    radial-gradient(circle at top left, rgba(88, 228, 168, 0.12), transparent 58%);
  color: #2c7753;
}

#upload-modal .upload-inline-alert[data-tone="warning"]{
  border-color: rgba(244, 167, 61, 0.28);
  background:
    linear-gradient(180deg, rgba(255,251,242,0.98), rgba(255,245,225,0.96)),
    radial-gradient(circle at top left, rgba(255, 204, 102, 0.14), transparent 58%);
  color: #8a5c1e;
}

#upload-modal .upload-inline-alert[data-tone="error"]{
  border-color: rgba(232, 87, 126, 0.24);
  background:
    linear-gradient(180deg, rgba(255,247,249,0.98), rgba(255,236,242,0.96)),
    radial-gradient(circle at top left, rgba(255, 127, 160, 0.14), transparent 58%);
  color: #96415c;
}

#upload-modal .modal-actions{
  margin-top: 20px;
}

#upload-modal .btn.outline{
  color: #4a315f;
  background: linear-gradient(180deg, rgba(255,255,255,0.90), rgba(245,234,255,0.88));
  border: 1.5px solid #ddd;
  box-shadow:
    0 10px 22px rgba(124,73,255,0.08),
    inset 0 1px 0 rgba(255,255,255,0.92);
}

#upload-modal #btn-do-upload{
  background: linear-gradient(135deg, #ff78be, #8d56ff);
  box-shadow:
    0 14px 30px rgba(141,86,255,0.24),
    0 6px 16px rgba(255,120,190,0.20);
}

#upload-modal #upload-status{
  margin-top: 12px !important;
  text-align: right;
  color: rgba(76,51,88,0.70);
}

.upload-auth-modal{
  position: fixed;
  inset: 0;
  z-index: 10080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(10,6,12,0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.upload-auth-modal.hidden{
  display: none;
}

.upload-auth-card{
  position: relative;
  width: min(440px, 92%);
  padding: 28px 24px 22px;
  border-radius: 26px;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(255,132,193,0.14), transparent 56%),
    radial-gradient(120% 100% at 100% 0%, rgba(141,86,255,0.14), transparent 58%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,241,255,0.96));
  border: 1px solid rgba(124,73,255,0.14);
  box-shadow:
    0 28px 70px rgba(0,0,0,0.24),
    0 14px 30px rgba(124,73,255,0.12);
  text-align: center;
}

.upload-auth-x{
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(139,92,246,0.18);
  background: rgba(255,255,255,0.78);
  color: #4b335f;
  cursor: pointer;
}

.upload-auth-eyebrow{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  margin-bottom: 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(112, 70, 145, 0.82);
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(184,147,226,0.24);
}

.upload-auth-title{
  color: #2e1d36;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.08;
}

.upload-auth-copy{
  margin: 12px auto 18px;
  max-width: 34ch;
  color: rgba(76,51,88,0.70);
  line-height: 1.55;
}

.upload-auth-fields{
  display: grid;
  gap: 12px;
}

.upload-auth-actions{
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.upload-auth-actions .btn{
  min-width: 160px;
}

.upload-auth-view.hidden{
  display: none;
}

.upload-auth-active-pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(124,73,255,0.10);
  border: 1px solid rgba(124,73,255,0.16);
  color: #6a46a1;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.upload-auth-active-email{
  margin-top: 14px;
  color: #2e1d36;
  font-weight: 600;
  word-break: break-word;
}

.upload-auth-display-name{
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.upload-auth-display-name.hidden{
  display: none;
}

.upload-auth-modal .input{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(167,133,194,0.28);
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(248,241,255,0.88));
  color: #241332;
  padding: 14px 16px;
  box-sizing: border-box;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.86);
}

.upload-auth-modal .input::placeholder{
  color: rgba(125,99,141,0.66);
}

#btn-save-display-name{
  width: 100%;
}

#auth-modal-state{
  margin-top: 12px;
  color: rgba(76,51,88,0.70);
}

@media (max-width: 650px){
  #upload-modal .upload-card{
    width: 100%;
    max-height: 90vh;
    padding: 22px 18px 18px;
    border-radius: 24px;
  }

  #upload-modal .row{
    grid-template-columns: 1fr;
  }

  #upload-modal .upload-auth-summary,
  #upload-modal .modal-actions{
    flex-direction: column-reverse;
  }

  #upload-modal .upload-auth-summary .btn,
  #upload-modal .modal-actions .btn{
    width: 100%;
  }

  .upload-auth-card{
    width: 100%;
    padding: 24px 18px 18px;
  }

  .upload-auth-actions .btn{
    width: 100%;
  }

  .map-location-tools{
    align-items: flex-start;
  }

  .map-location-tools .btn{
    width: 100%;
  }

  .map-picker-card{
    width: 100%;
    padding: 22px 18px 18px;
    border-radius: 24px;
  }

  .map-picker-canvas{
    height: 46vh;
  }
}

/* ==========================================================
   LIGHTBOX MOBILE FIX
   ========================================================== */

@media (max-width: 640px){
  #lightbox{
    padding: 34px 8px 18px !important;
    overflow-y: auto !important;
    overflow-x: visible !important;
  }

  #lightbox .lightbox-figure{
    width: min(94vw, 420px) !important;
    max-width: min(94vw, 420px) !important;
    min-height: calc(100dvh - 52px) !important;
    max-height: none !important;
    justify-content: center !important;
    margin: auto !important;
    overflow: visible !important;
  }

  #lightbox .lb-img-wrapper{
    width: 100% !important;
    max-width: 100% !important;
    margin: auto !important;
    overflow: visible !important;
  }

  #lightbox #lightbox-img{
    height: min(48vh, 420px) !important;
    max-height: min(48vh, 420px) !important;
  }

  #lightbox #lightbox-cap,
  #lightbox #lightbox-cap.lb-panel{
    padding: 16px 14px 18px !important;
    border-radius: 0 0 22px 22px !important;
  }

  #lightbox .lightbox-meta-row{
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  #lightbox .lightbox-meta{
    flex-wrap: wrap !important;
    overflow: visible !important;
    gap: 8px !important;
  }

  #lightbox .lightbox-meta-item,
  #lightbox .lightbox-date-pill{
    white-space: normal !important;
    line-height: 1.35 !important;
  }

  #lightbox .lightbox-panel-tools{
    width: 100% !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    margin-left: 0 !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
  }

  #lightbox .lightbox-panel-tools .btn.outline{
    margin: 0 !important;
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 10px 12px !important;
    font-size: 0.92rem !important;
    line-height: 1.15 !important;
    white-space: normal !important;
    word-break: break-word !important;
    text-align: center !important;
  }

  #lightbox .lb-panel-tool{
    flex: 0 0 32px !important;
  }

  #lightbox .lightbox-nav.prev,
  #lightbox .lightbox-nav.next,
  #lightbox .nav{
    z-index: 10030 !important;
    width: 44px !important;
    height: 44px !important;
    background: rgba(255,255,255,0.14) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255,255,255,0.22) !important;
  }

  #lightbox .lightbox-text{
    margin-top: 14px !important;
    padding-top: 14px !important;
    padding-bottom: 4px !important;
    font-size: 0.98rem !important;
    line-height: 1.55 !important;
  }

  #lightbox .lightbox-info-bottom{
    margin-top: 10px !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  #lightbox .lightbox-info-actions{
    width: 100% !important;
    justify-content: center !important;
  }

  #lightbox .lightbox-author-wrap{
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }

  #lightbox .lightbox-author-chip{
    white-space: normal;
    text-align: center;
  }
}

body.lightbox-open .notes-login-row{
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(10px) !important;
}

body:not(.lightbox-open) .notes-login-row{
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

/* ==========================================================
   GALLERY / HERO POLISH PASS
   ========================================================== */

body{
  background:
    radial-gradient(900px 520px at 12% 10%, rgba(255,111,191,0.12), transparent 56%),
    radial-gradient(980px 560px at 88% 18%, rgba(124,73,255,0.12), transparent 58%),
    linear-gradient(180deg, #fdfcff 0%, #fff5f8 100%);
}

.hero{
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  gap: 30px;
  padding: 30px 32px 48px;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(255,200,220,0.3) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 30%, #ffe4f0 0%, #f0ebff 60%, #e8e0ff 100%);
  overflow: hidden;
}

.hero::before{
  content: "✦ · ✦ · ✦";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(157,127,196,0.25);
  letter-spacing: 18px;
  font-size: 0.9rem;
  pointer-events: none;
  animation: heroSparkleFloat 7s ease-in-out infinite;
}

.hero-content{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 560px;
}

.hero-actions{
  margin-top: 10px;
  margin-bottom: 32px;
  display: flex;
  width: 100%;
  justify-content: flex-start;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.hero-actions .btn{
  width: 90%;
  max-width: 560px;
  margin: 0;
  padding: 18px 32px;
  border-radius: 16px;
  font-size: 0.98rem;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  box-shadow: 0 14px 28px rgba(124,73,255,0.18);
  transition: transform 200ms ease, box-shadow 200ms ease, filter 200ms ease;
}

.hero-actions .btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(124,73,255,0.30);
}

.hero-photo{
  width: 260px;
  min-width: 260px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.hero-photo img{
  width: 100%;
  height: auto;
  min-height: 290px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  border-radius: 20px;
  outline: 2px solid rgba(236,72,153,0.15);
  outline-offset: 6px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
}

.photo-caption{
  margin-top: 20px;
  max-width: 280px;
  width: fit-content;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  font-style: italic;
  color: #9d7fc4;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-align: center;
}

.title{
  animation: heroTitleReveal .7s ease both;
}

.subtitle{
  max-width: 280px;
  margin: 0 auto 28px;
  opacity: 0.65;
  line-height: 1.6;
}

.title{
  font-size: clamp(2rem, 8vw, 3.5rem);
  animation: heroTitleReveal .6s ease both;
}

.subtitle{
  max-width: 320px;
  margin: 0 0 16px;
  opacity: 0.65;
}

.cards-section{
  gap: 20px;
}

.card{
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,249,253,0.86));
  box-shadow: 0 8px 30px rgba(139,92,246,0.08);
}

.card h2{
  font-family: "Playfair Display", "Poppins", serif;
  font-size: 1.48rem;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.message-list{
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(124,73,255,0.42) transparent;
}

.message-list::-webkit-scrollbar{
  width: 6px;
}

.message-list::-webkit-scrollbar-track{
  background: transparent;
}

.message-list::-webkit-scrollbar-thumb{
  background: linear-gradient(180deg, rgba(255,111,191,0.72), rgba(124,73,255,0.70));
  border-radius: 999px;
}

.extra-card--daily h3{
  font-family: "Playfair Display", "Poppins", serif !important;
  font-size: clamp(1.6rem, 2.2vw, 2.05rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.02em !important;
  color: #3c1f53 !important;
  font-style: italic !important;
}

.extra-card--daily > p{
  font-size: 0.85rem !important;
  line-height: 1.55 !important;
  color: rgba(74,48,95,0.60) !important;
  max-width: 62ch !important;
}

.extra-card{
  background:
    linear-gradient(180deg, rgba(255,255,255,0.93), rgba(255,249,253,0.86));
  box-shadow: 0 10px 34px rgba(139,92,246,0.08);
}

.calendar-toggle-row{
  display: flex !important;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
  margin: 0 0 12px !important;
}

#toggle-calendar,
#selected-date,
#unlock-all{
  min-height: 46px !important;
  padding: 11px 20px !important;
  border-radius: 18px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  line-height: 1.2 !important;
  border: 1.5px solid rgba(139,92,246,0.18) !important;
  box-shadow: 0 10px 24px rgba(124,73,255,0.08) !important;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease !important;
}

#toggle-calendar{
  gap: 8px !important;
  box-shadow: 0 12px 24px rgba(124,73,255,0.12) !important;
}

#toggle-calendar .calendar-btn-emoji{
  font-size: 0.85em !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  transform: translateY(1px);
}

#unlock-all{
  background: rgba(255,255,255,0.92) !important;
  color: #6d28d9 !important;
}

#unlock-all:hover{
  background: rgba(124,73,255,0.08) !important;
  border-color: rgba(139,92,246,0.26) !important;
  transform: translateY(-1px);
}

.selected-date{
  background: rgba(255,255,255,0.92) !important;
  color: #6d28d9 !important;
  min-width: 168px;
  letter-spacing: -0.01em;
}

.month-nav{
  display: grid !important;
  grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
  align-items: center !important;
  gap: 14px !important;
  width: 100% !important;
  margin: 0 0 18px !important;
  padding: 10px 14px !important;
  border-radius: 22px !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(251,244,255,0.7)) !important;
  border: 1px solid rgba(139,92,246,0.12) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.86) !important;
}

.month-nav .current-month{
  min-width: 0 !important;
  margin: 0 !important;
  font-size: clamp(1.32rem, 3vw, 1.72rem) !important;
  line-height: 1.1 !important;
  letter-spacing: -0.03em !important;
  color: #34174a !important;
  text-align: center !important;
  font-weight: 800 !important;
  text-wrap: balance;
}

.month-nav .month-btn{
  min-width: 0 !important;
  min-height: 46px !important;
  width: 100% !important;
  padding: 11px 16px !important;
  border-radius: 18px !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  box-sizing: border-box !important;
  text-align: center !important;
  white-space: normal !important;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease !important;
}

.month-nav #prev-month{
  justify-self: start !important;
  background: rgba(255,255,255,0.92) !important;
  color: #5c3a79 !important;
  border: 1.5px solid rgba(139,92,246,0.18) !important;
  box-shadow: 0 10px 22px rgba(124,73,255,0.07) !important;
}

.month-nav #next-month{
  justify-self: end !important;
  background: linear-gradient(135deg, #ff6fbf, #8d56ff) !important;
  color: #fff !important;
  border: 1.5px solid transparent !important;
  box-shadow: 0 14px 26px rgba(141,86,255,0.2) !important;
}

.month-nav #prev-month:hover,
.month-nav #next-month:hover,
#toggle-calendar:hover,
#unlock-all:hover{
  transform: translateY(-1px);
}

.month-nav #prev-month:hover{
  border-color: rgba(139,92,246,0.28) !important;
  background: rgba(248,243,255,0.98) !important;
}

.month-nav #next-month:hover{
  box-shadow: 0 16px 28px rgba(141,86,255,0.26) !important;
  filter: saturate(1.04);
}

.month-nav #prev-month:active,
.month-nav #next-month:active,
#toggle-calendar:active,
#unlock-all:active{
  transform: translateY(0);
}

.month-nav #prev-month[disabled],
.month-nav #next-month[disabled],
#toggle-calendar[disabled],
#unlock-all[disabled]{
  opacity: 0.56;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.message-display{
  position: relative;
  min-height: 164px;
  margin-top: 22px !important;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(255,111,191,0.18), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(251,239,250,0.92));
  border: 1px solid rgba(124,73,255,0.12);
  border-left: 5px solid #7c49ff;
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(139,92,246,0.10);
}

.message-display:not(.empty){
  display: grid !important;
  gap: 18px;
  align-items: start !important;
  justify-content: stretch !important;
  text-align: left !important;
  color: #4a2c62 !important;
}

.message-panel{
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,247,252,0.7));
  border: 1px solid rgba(139,92,246,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.message-panel-secondary{
  background: linear-gradient(180deg, rgba(250,243,255,0.82), rgba(255,247,252,0.76));
  border-color: rgba(139,92,246,0.16);
}

.message-day-title,
.message-month-title{
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #3f1f56;
}

.message-day-title{
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
}

.message-month-title{
  font-size: clamp(1.05rem, 2.3vw, 1.22rem);
}

.message-month-label{
  display: inline-flex;
  align-items: center;
  margin: -2px 0 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(246,236,255,0.92));
  border: 1px solid rgba(139,92,246,0.14);
  color: #6a36b0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.message-day-body{
  color: #56356f;
  font-size: 1rem;
  line-height: 1.72;
}

.message-day-body p{
  margin: 0;
}

.message-day-body p + p{
  margin-top: 14px;
}

.message-empty-copy{
  text-align: center;
  width: 100%;
  color: var(--subtle-gray);
  font-style: italic;
}

#calendar-unlock-modal{
  background: rgba(10,6,12,0.52) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  z-index: 10060 !important;
}

.calendar-unlock-card{
  position: relative !important;
  width: min(520px, 92vw) !important;
  padding: 26px 24px 22px !important;
  border-radius: 20px !important;
  background:
    radial-gradient(900px 320px at 20% 0%, rgba(255,111,191,0.16), transparent 60%),
    radial-gradient(900px 320px at 80% 0%, rgba(124,73,255,0.16), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,241,255,0.94)) !important;
  box-shadow:
    0 26px 60px rgba(36,19,50,0.22),
    0 10px 24px rgba(124,73,255,0.12) !important;
}

.calendar-unlock-card .upload-eyebrow{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 7px 12px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,0.76) !important;
  border: 1px solid rgba(124,73,255,0.16) !important;
  color: #7a56b3 !important;
  font-weight: 700 !important;
}

.calendar-unlock-card .upload-title{
  margin-top: 14px !important;
  text-align: center !important;
}

.calendar-unlock-card .upload-subtitle{
  margin: 12px auto 18px !important;
  max-width: 34ch !important;
  text-align: center !important;
  color: rgba(76,51,88,0.68) !important;
}

.calendar-unlock-field{
  margin-top: 0 !important;
}

.calendar-unlock-field .input{
  width: 100% !important;
  text-align: center !important;
  font-size: 1.02rem !important;
  letter-spacing: 0.08em !important;
  border-radius: 14px !important;
  border: 1px solid rgba(167,133,194,0.28) !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(248,241,255,0.88)) !important;
}

.calendar-unlock-field .input:focus{
  border-color: rgba(231,122,180,0.48) !important;
  box-shadow:
    0 0 0 5px rgba(255,111,191,0.10),
    0 12px 30px rgba(180,125,255,0.12) !important;
}

.calendar-unlock-card .modal-actions{
  margin-top: 18px !important;
}

#btn-cancel-calendar-unlock{
  color: #4a315f !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.90), rgba(245,234,255,0.88)) !important;
  border: 1.5px solid #ddd !important;
}

#btn-confirm-calendar-unlock{
  background: linear-gradient(135deg, #ff78be, #8d56ff) !important;
  box-shadow:
    0 14px 30px rgba(141,86,255,0.24),
    0 6px 16px rgba(255,120,190,0.20) !important;
}

#calendar-unlock-status{
  margin-top: 12px !important;
  min-height: 20px !important;
  text-align: center !important;
  color: #a33878 !important;
  font-weight: 600 !important;
}

.push-settings-card{
  position: relative !important;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  isolation: isolate;
  overflow: hidden;
  width: min(620px, 94vw) !important;
  min-height: auto !important;
  max-height: min(88vh, 820px);
  padding: 0 28px 22px !important;
  border-radius: 28px !important;
  border: 1px solid rgba(255,255,255,0.72);
  background:
    radial-gradient(280px 145px at 8% 0%, rgba(255,111,191,0.16), transparent 62%),
    radial-gradient(320px 155px at 92% 0%, rgba(124,73,255,0.12), transparent 58%),
    radial-gradient(230px 150px at 28% 15%, rgba(166,130,255,0.07), transparent 72%),
    linear-gradient(180deg, rgba(255,255,255,0.99), rgba(251,244,255,0.96)) !important;
  box-shadow:
    0 30px 80px rgba(47, 22, 72, 0.24),
    0 14px 34px rgba(141,86,255,0.14),
    inset 0 1px 0 rgba(255,255,255,0.88) !important;
}

.push-settings-glow{
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(16px);
  opacity: 0.65;
  z-index: 0;
}

.push-settings-glow-a{
  width: 84px;
  height: 84px;
  top: -44px;
  left: -8px;
  background: radial-gradient(circle, rgba(255,138,196,0.14), rgba(255,138,196,0));
}

.push-settings-glow-b{
  width: 92px;
  height: 92px;
  top: -50px;
  right: -10px;
  background: radial-gradient(circle, rgba(124,73,255,0.11), rgba(124,73,255,0));
}

.push-settings-card > *{
  position: relative;
  z-index: 1;
}

.push-settings-hero{
  margin: -196px 0 0;
  padding-top: 0;
  padding-right: 82px;
}

.push-settings-card .upload-eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(247,239,255,0.9));
  border: 1px solid rgba(124,73,255,0.12);
  box-shadow: 0 10px 20px rgba(124,73,255,0.07);
  margin: 0;
  color: #4b2a63;
  font-weight: 600;
}

.push-settings-card .upload-title{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px !important;
  margin-bottom: 10px !important;
  font-size: clamp(1.82rem, 3vw, 2.18rem) !important;
  line-height: 1.1 !important;
  letter-spacing: -0.03em;
  color: #2d173a !important;
  text-wrap: balance;
}

.push-title-text{
  flex: 1 1 auto;
  min-width: 0;
}

.push-title-icon{
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  line-height: 1;
  transform: translateY(1px);
}

.push-settings-card .upload-subtitle{
  margin: 0 !important;
  max-width: 460px;
  opacity: 1 !important;
  font-size: 0.95rem !important;
  line-height: 1.65 !important;
  color: rgba(76,51,88,0.9) !important;
  text-wrap: pretty;
}

.push-schedule-pill{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 9px 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(246,237,255,0.92));
  border: 1px solid rgba(124,73,255,0.13);
  box-shadow: 0 12px 24px rgba(124,73,255,0.08);
  color: #5b2bab;
  font-size: 0.83rem;
  font-weight: 700;
  line-height: 1.45;
  max-width: 100%;
}

.push-schedule-pill-icon{
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,120,190,0.18), rgba(141,86,255,0.18));
  flex: 0 0 auto;
}

.push-schedule-pill span:last-child{
  min-width: 0;
  overflow-wrap: anywhere;
}

.push-backend-state{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 11px 14px;
  border-radius: 18px;
  border: 1px solid rgba(124,73,255,0.13);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(246,239,255,0.92)),
    linear-gradient(135deg, rgba(255,255,255,0.4), rgba(255,255,255,0));
  color: #5a3a72;
  font-size: 0.84rem;
  line-height: 1.55;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
}

.push-backend-state.is-ready{
  border-color: rgba(124,73,255,0.16);
  color: #5923ab;
  box-shadow:
    0 12px 24px rgba(124,73,255,0.06),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

.push-backend-state.is-unavailable{
  color: rgba(76,51,88,0.88);
}

.push-backend-state.is-hidden{
  display: none;
}

.push-settings-x{
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  width: 46px !important;
  height: 46px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(124,73,255,0.12) !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,236,255,0.94)) !important;
  color: #6d28d9 !important;
  font-size: 1.2rem !important;
  display: grid !important;
  place-items: center !important;
  box-shadow:
    0 16px 36px rgba(36,19,50,0.14),
    inset 0 1px 0 rgba(255,255,255,0.85) !important;
}

.push-settings-x:hover{
  transform: translateY(-2px) scale(1.04) !important;
  background: linear-gradient(180deg, rgba(250,246,255,1), rgba(240,231,255,0.98)) !important;
}

.push-settings-switch{
  margin: 0;
  padding: 14px 15px;
  border-radius: 18px;
  background:
    radial-gradient(260px 120px at 0% 0%, rgba(255,120,190,0.10), transparent 65%),
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(246,238,255,0.9));
  border: 1px solid rgba(124,73,255,0.13);
  box-shadow:
    0 14px 28px rgba(124,73,255,0.07),
    inset 0 1px 0 rgba(255,255,255,0.88);
}

.push-settings-main-card{
  position: relative;
}

.push-settings-toggle{
  display: flex;
  align-items: center;
  gap: 12px;
  color: #4b2b62;
  font-weight: 600;
  cursor: pointer;
}

.push-settings-toggle input{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.push-settings-toggle-ui{
  position: relative;
  width: 58px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(227,214,246,0.9), rgba(210,198,229,0.9));
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.6);
  transition: background 180ms ease, box-shadow 180ms ease;
  flex: 0 0 auto;
}

.push-settings-toggle-ui::after{
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(247,241,255,0.96));
  box-shadow: 0 6px 16px rgba(36,19,50,0.16);
  transition: transform 180ms ease;
}

.push-settings-toggle input:checked + .push-settings-toggle-ui{
  background: linear-gradient(135deg, #ff78be, #8d56ff);
  box-shadow: 0 10px 22px rgba(141,86,255,0.22);
}

.push-settings-toggle input:checked + .push-settings-toggle-ui::after{
  transform: translateX(26px);
}

.push-settings-toggle-copy{
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.push-settings-toggle-copy strong{
  color: #432456;
  font-size: 1rem;
  line-height: 1.3;
}

.push-settings-toggle-copy small{
  color: rgba(76,51,88,0.78);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.push-settings-field{
  margin-top: 0 !important;
}

.push-settings-field.is-hidden{
  display: none !important;
}

.push-time-head{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #5a3a72;
  font-weight: 700;
  font-size: 1.08rem;
}

.push-time-head-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(245,236,255,0.92));
  border: 1px solid rgba(124,73,255,0.16);
  box-shadow: 0 10px 20px rgba(124,73,255,0.10);
}

.push-time-wrap{
  position: relative;
}

.push-time-selects{
  display: grid;
  grid-template-columns: minmax(88px, 1fr) minmax(88px, 1fr) minmax(124px, auto);
  gap: 12px;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}

.push-settings-field .push-time-select{
  text-align: center;
  min-height: 58px;
  border-radius: 18px !important;
  font-size: 1.08rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  padding: 0 14px !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(246,239,255,0.92)) !important;
  border: 1px solid rgba(124,73,255,0.18) !important;
  box-shadow: 0 10px 24px rgba(124,73,255,0.08);
  color: #4a2c62 !important;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.push-time-input::placeholder{
  color: rgba(74,44,98,0.42);
}

.push-time-input:focus{
  box-shadow: 0 0 0 4px rgba(124,73,255,0.12), 0 12px 28px rgba(124,73,255,0.12) !important;
}

.push-meridiem-toggle{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  min-height: 58px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(246,239,255,0.9));
  border: 1px solid rgba(124,73,255,0.18);
  box-shadow: 0 10px 24px rgba(124,73,255,0.08);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.push-meridiem-btn{
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: rgba(74,44,98,0.72);
  font-weight: 800;
  font-size: 0.98rem;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
  min-width: 0;
}

.push-meridiem-btn.is-active{
  background: linear-gradient(135deg, #ff78be, #8d56ff);
  color: #fff;
  box-shadow: 0 10px 20px rgba(141,86,255,0.24);
}

.push-meridiem-btn:hover{
  transform: translateY(-1px);
}

#push-settings-status{
  margin-top: 12px;
  min-height: 42px;
  text-align: center;
  color: rgba(76,51,88,0.72);
  line-height: 1.45;
}

.push-test-btn{
  color: #6d28d9 !important;
  border-color: rgba(124,73,255,0.16) !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,239,255,0.92)) !important;
  box-shadow: 0 12px 22px rgba(124,73,255,0.08) !important;
}

.push-test-btn:hover{
  background: linear-gradient(180deg, rgba(249,244,255,1), rgba(238,227,255,0.94)) !important;
  transform: translateY(-1px) !important;
}

.push-live-state{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 13px;
  border-radius: 18px;
  font-size: 0.86rem;
  line-height: 1.55;
  text-align: left;
  background: linear-gradient(180deg, rgba(255,255,255,0.76), rgba(246,239,255,0.78));
  border: 1px solid rgba(124,73,255,0.12);
  color: rgba(76,51,88,0.86);
}

.push-live-state.is-active{
  color: #5923ab;
  box-shadow: 0 10px 22px rgba(124,73,255,0.05);
}

.push-live-state.is-paused{
  color: rgba(76,51,88,0.72);
}

.push-status-icon{
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,120,190,0.18), rgba(141,86,255,0.18));
  color: #5f27b8;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  flex: 0 0 auto;
  margin-top: 1px;
}

.push-status-copy{
  min-width: 0;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
}

.push-settings-actions{
  margin-top: 4px !important;
  gap: 10px !important;
}

.push-settings-actions .btn{
  min-width: 118px;
  border-radius: 16px !important;
  min-height: 44px;
  font-weight: 700 !important;
  box-shadow: 0 10px 20px rgba(124,73,255,0.08);
}

.push-settings-actions .btn.outline{
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(246,239,255,0.9)) !important;
  border-color: rgba(124,73,255,0.12) !important;
  color: #4d2e66 !important;
}

.push-settings-actions #btn-test-push-settings{
  color: #6940aa !important;
  border-color: rgba(124,73,255,0.1) !important;
  box-shadow: none !important;
}

.push-settings-actions #btn-save-push-settings{
  box-shadow: 0 12px 24px rgba(141,86,255,0.16) !important;
}

@media (max-width: 640px){
  .push-settings-card{
    width: min(450px, 95vw) !important;
    gap: 10px;
    padding: 0 18px 18px !important;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .push-settings-hero{
    margin-top: -166px;
    padding-right: 64px;
  }

  .push-settings-card .upload-title{
    max-width: none;
    font-size: 1.8rem !important;
    align-items: flex-start;
  }

  .push-schedule-pill{
    width: 100%;
    justify-content: flex-start;
    border-radius: 18px;
  }

  .push-time-selects{
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .push-meridiem-toggle{
    grid-column: auto;
  }

  .push-settings-card .modal-actions{
    flex-wrap: wrap;
    justify-content: center;
  }

  .push-settings-card .modal-actions .btn{
    min-width: 0;
    width: 100%;
  }
}

.extra-card--daily .calendar-toggle-row{
  justify-content: center !important;
  width: 100% !important;
  margin-top: 6px !important;
  margin-bottom: 16px !important;
}

.extra-card--daily .month-nav{
  width: 100% !important;
  margin-bottom: 14px !important;
}

.extra-card--daily .calendar-wrapper,
.extra-card--daily .calendar-header,
.extra-card--daily .calendar-grid{
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.extra-card--daily .calendar-grid-animate{
  animation: calendarFadeIn 180ms ease !important;
}

.extra-card--daily .calendar-day.available{
  background: linear-gradient(135deg, rgba(139,92,246,0.11), rgba(255,111,191,0.09)) !important;
  border-color: rgba(139,92,246,0.24) !important;
}

.extra-card--daily .calendar-day.available:hover{
  background: rgba(139,92,246,0.10) !important;
  transform: scale(1.1) !important;
  box-shadow: 0 8px 18px rgba(139,92,246,0.12) !important;
}

.extra-card--daily .calendar-day.available.today{
  background: linear-gradient(135deg, rgba(126,87,255,0.18), rgba(255,124,191,0.18)) !important;
  border-color: rgba(109,40,217,0.46) !important;
  color: #4c1d95 !important;
  box-shadow:
    inset 0 0 0 1px rgba(109,40,217,0.2) !important,
    0 0 0 3px rgba(255,255,255,0.95),
    0 0 0 6px rgba(139,92,246,0.22),
    0 12px 24px rgba(139,92,246,0.18) !important;
  font-weight: 800 !important;
}

.extra-card--daily .calendar-day.available.selected{
  background: linear-gradient(135deg, rgba(245,232,255,0.98), rgba(255,236,246,0.94)) !important;
  border-color: rgba(139,92,246,0.34) !important;
  color: #6d28d9 !important;
  box-shadow: 0 4px 12px rgba(139,92,246,0.4) !important;
}

.extra-card--daily .calendar-day.available.today.selected,
.extra-card--daily .calendar-day.available.today-selected{
  background: linear-gradient(135deg, #7c49ff, #ff78be) !important;
  color: #fff !important;
  border-color: rgba(109,40,217,0.6) !important;
  box-shadow:
    0 0 0 3px rgba(255,255,255,0.96),
    0 0 0 6px rgba(139,92,246,0.26),
    0 16px 28px rgba(139,92,246,0.28) !important;
}

.extra-card--daily .calendar-day.locked{
  background: rgba(220,212,230,0.22) !important;
  border-color: rgba(200,190,214,0.2) !important;
  color: rgba(74,48,95,0.35) !important;
  font-size: 0.96rem !important;
}

.extra-card--daily .calendar-day.locked::after{
  content: none !important;
}

@keyframes calendarFadeIn{
  from{
    opacity: 0;
    transform: translateY(4px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px){
  .extra-card--daily .calendar-toggle-row{
    width: 100% !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
    margin-bottom: 16px !important;
    gap: 10px !important;
    justify-content: center !important;
  }

  .extra-card--daily .calendar-toggle-row #toggle-calendar{
    width: 100% !important;
  }

  .extra-card--daily .calendar-toggle-row #selected-date,
  .extra-card--daily .calendar-toggle-row #unlock-all{
    width: calc(50% - 5px);
    min-width: 0;
  }

  .extra-card--daily .month-nav{
    width: 100% !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-areas:
      "title title"
      "prev next" !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 18px !important;
    background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(251,244,255,0.78)) !important;
  }

  .extra-card--daily .month-nav .current-month{
    grid-area: title !important;
    min-width: 0 !important;
    font-size: 1.04rem !important;
    line-height: 1.2 !important;
    text-align: center !important;
    margin-bottom: 2px !important;
  }

  .extra-card--daily .month-nav .month-btn{
    min-width: 0 !important;
    width: 100% !important;
    padding: 10px 8px !important;
    font-size: 0.84rem !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    min-height: 44px !important;
  }

  .extra-card--daily .month-nav #prev-month{
    grid-area: prev !important;
    justify-self: start !important;
  }

  .extra-card--daily .month-nav #next-month{
    grid-area: next !important;
    justify-self: end !important;
  }

  .extra-card--daily .calendar-wrapper{
    width: 100% !important;
    overflow: hidden !important;
  }

  .extra-card--daily .calendar-header,
  .extra-card--daily .calendar-grid{
    width: 100% !important;
    overflow: hidden !important;
  }

  .extra-card--daily .calendar-header{
    gap: 8px !important;
    padding: 0 10px 10px !important;
  }

  .extra-card--daily .calendar-grid{
    gap: 8px !important;
    padding: 12px !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg, rgba(124,73,255,0.08), rgba(255,111,191,0.08)) !important;
    overflow: hidden !important;
  }

  .extra-card--daily .calendar-day{
    min-height: 0 !important;
    aspect-ratio: 1 / 1 !important;
    font-size: 0.82rem !important;
    border-radius: 12px !important;
  }
}

@media (max-width: 420px){
  .calendar-toggle-row{
    gap: 10px !important;
  }

  .extra-card--daily .calendar-toggle-row #selected-date,
  .extra-card--daily .calendar-toggle-row #unlock-all{
    width: 100%;
    min-width: 0;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .extra-card--daily .month-nav{
    padding: 0 8px !important;
    gap: 8px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .extra-card--daily .month-nav .month-btn{
    padding: 9px 6px !important;
    font-size: 0.76rem !important;
  }

  .extra-card--daily .month-nav .current-month{
    font-size: 0.94rem !important;
  }
}

.print-gallery{
  margin: 20px 0 8px;
  gap: 12px;
}

.photo-frame{
  width: min(100%, 330px);
  height: 330px;
  border-radius: 24px;
  border: 1px solid rgba(124,73,255,0.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.88), rgba(255,247,251,0.78));
  box-shadow:
    0 18px 48px rgba(139,92,246,0.12),
    inset 0 1px 0 rgba(255,255,255,0.7);
  transition: transform .35s ease, box-shadow .35s ease;
}

.photo-frame:hover{
  transform: translateY(-4px) scale(1.01);
  box-shadow:
    0 24px 56px rgba(139,92,246,0.16),
    0 8px 24px rgba(255,111,191,0.10);
}

.photo-frame img{
  transition: opacity .45s ease, transform .45s ease;
}

.photo-frame:hover img{
  transform: scale(1.035);
}

.super-gallery.full-bleed{
  width: auto;
  max-width: min(1320px, calc(100vw - 52px));
  margin: 0 auto 10px;
  padding: 26px 18px 34px;
  border-radius: 28px;
  overflow: visible;
  background:
    radial-gradient(900px 420px at 10% 15%, rgba(255,111,191,0.14), transparent 60%),
    radial-gradient(820px 420px at 90% 20%, rgba(124,73,255,0.14), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.97), rgba(255,251,253,0.94));
}

.super-gallery-inner{
  max-width: 1220px;
  margin: 0 auto;
}

.super-gallery-title-row{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.super-gallery-head{
  gap: 14px;
  margin-bottom: 18px;
}

.super-gallery-head h4{
  font-family: "Playfair Display", "Poppins", serif;
  font-size: clamp(1.9rem, 3vw, 2.45rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.super-gallery-count{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(124,73,255,0.14);
  box-shadow: 0 12px 28px rgba(124,73,255,0.10);
  color: rgba(59,27,74,0.74);
  font-size: 0.92rem;
  font-weight: 700;
}

.super-gallery-actions{
  width: min(1160px, calc(100% - 8px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(220px, 320px) minmax(230px, 1fr);
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 24px;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(255,132,193,0.10), transparent 55%),
    radial-gradient(120% 120% at 100% 0%, rgba(141,86,255,0.10), transparent 56%),
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,247,251,0.88));
  border: 1px solid rgba(124,73,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.78), 0 16px 34px rgba(124,73,255,0.10);
}

.super-gallery-actions #btn-clear-filter{
  justify-self: start;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid rgba(124,73,255,0.14);
  background: rgba(255,255,255,0.82);
  box-shadow: 0 10px 24px rgba(36,19,50,0.08);
  color: #513469;
  font-weight: 700;
}

.super-gallery-actions #btn-open-upload{
  min-height: 52px;
  padding: 0 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ff68b6 0%, #9b54ff 100%);
  border: 1px solid rgba(255,255,255,0.26);
  box-shadow: 0 18px 34px rgba(155,84,255,0.24), 0 10px 20px rgba(255,104,182,0.18);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.super-gallery-actions #btn-open-upload:hover{
  transform: translateY(-1px);
  box-shadow: 0 22px 40px rgba(155,84,255,0.28), 0 12px 24px rgba(255,104,182,0.22);
}

.super-gallery-actions #filter-place,
.super-gallery-actions #search-caption{
  width: 100%;
  min-height: 52px;
  border-radius: 18px;
  border: 1px solid rgba(124,73,255,0.14);
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,242,255,0.92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.88), 0 10px 24px rgba(36,19,50,0.06);
  color: #4a315d;
  font-weight: 600;
}

.super-gallery-actions #filter-place{
  padding-inline: 16px 40px;
}

.super-gallery-actions #search-caption{
  padding-inline: 18px;
}

.super-gallery-actions #filter-place:focus,
.super-gallery-actions #search-caption:focus{
  border-color: rgba(155,84,255,0.34);
  box-shadow: 0 0 0 4px rgba(155,84,255,0.10), 0 14px 28px rgba(124,73,255,0.10);
  outline: none;
}

.super-gallery-actions #search-caption::placeholder{
  color: rgba(84,58,108,0.58);
}

.super-gallery-head h4{
  text-wrap: balance;
}

.super-gallery-head .muted{
  font-size: 1rem;
  line-height: 1.5;
}

.super-gallery-grid{
  margin-top: 8px;
}

.sg-item{
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(139,92,246,0.10);
}

.sg-item img{
  display: block;
}

.sg-top{
  padding: 12px 12px 0;
}

.sg-count,
.sg-group-btn{
  top: 10px;
  right: 10px;
}

.sg-pill{
  box-shadow: 0 10px 22px rgba(36,19,50,0.18);
}

@media (max-width: 1024px){
  .super-gallery.full-bleed{
    max-width: calc(100vw - 28px);
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero{
    gap: 20px;
  }
}

@media (max-width: 920px){
  .hero{
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    justify-content: center !important;
    gap: 20px !important;
  }

  .hero-content{
    width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .title,
  .subtitle{
    width: 100% !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero-actions{
    display: flex !important;
    width: 100% !important;
    justify-content: center !important;
    margin: 10px auto 0 !important;
    margin-bottom: 32px !important;
    padding: 0 !important;
  }

  .hero-actions .btn{
    width: min(90%, 460px) !important;
    max-width: 100% !important;
    margin-inline: auto !important;
    min-height: 56px !important;
    padding: 14px 18px !important;
    border-radius: 18px !important;
    font-size: 0.95rem !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    box-shadow: 0 18px 36px rgba(124,73,255,0.18) !important;
  }

  .hero-photo{
    width: min(82%, 320px) !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
  }

  .hero-photo img{
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 4 / 5 !important;
    display: block !important;
    margin: 0 auto !important;
  }

  .photo-caption{
    width: min(100%, 280px) !important;
    margin: 20px auto 0 !important;
    text-align: center !important;
  }
}

@media (max-width: 768px){
  .hero{
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 22px 18px;
    gap: 18px;
  }

  .hero-content{
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .title,
  .subtitle{
    width: 100%;
    text-align: center;
  }

  .hero-actions{
    width: 100%;
    justify-content: center;
    margin-inline: auto;
  }

  .hero-actions .btn{
    max-width: min(100%, 420px);
  }

  .hero-photo{
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: center;
  }

  .hero-photo img{
    width: min(100%, 260px);
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 5;
    margin-inline: auto;
  }

  .photo-caption{
    width: min(100%, 280px);
    margin-inline: auto;
  }

  .super-gallery-title-row{
    flex-direction: column;
    gap: 10px;
  }

  .super-gallery-actions{
    width: 100%;
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .super-gallery-actions #btn-clear-filter,
  .super-gallery-actions #btn-open-upload,
  .super-gallery-actions #filter-place,
  .super-gallery-actions #search-caption{
    width: 100%;
  }

  .calendar-toggle-row{
    justify-content: center;
  }
}

@media (max-width: 560px){
  .hero{
    padding: 20px 14px;
    gap: 16px;
  }

  .title{
    font-size: clamp(2.6rem, 12vw, 3.5rem);
    line-height: 0.95;
  }

  .subtitle{
    font-size: 1rem;
    line-height: 1.6;
  }

  .hero-actions .btn{
    width: 100%;
    max-width: 100%;
    font-size: 0.88rem;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
    padding: 16px 18px;
  }

  .hero-photo img{
    width: 100%;
  }

  .photo-caption{
    width: min(100%, 260px);
    font-size: 0.95rem;
  }
}

@keyframes heroTitleReveal{
  from{
    opacity: 0;
    transform: translateY(10px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroSparkleFloat{
  0%, 100%{
    opacity: 0.22;
    transform: translateX(-50%) translateY(0);
  }
  50%{
    opacity: 0.38;
    transform: translateX(-50%) translateY(6px);
  }
}

/* ==========================================================
   STABILITY FIXES
   - evita brincos en masonry al pasar el cursor
   - mantiene suave la foto rotatoria sin escalados raros
   ========================================================== */

.sg-item::before{
  display: none !important;
}

.sg-item,
.sg-item:hover{
  transform: none !important;
}

.sg-item{
  transition: box-shadow .18s ease, border-color .18s ease !important;
  box-shadow: 0 10px 24px rgba(36,19,50,0.10) !important;
  background: rgba(255,255,255,0.96) !important;
}

.sg-item img,
.sg-item:hover img{
  transform: none !important;
}

.sg-item img{
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  transition: none !important;
}

.sg-item:hover{
  border-color: rgba(255,111,191,0.18) !important;
  box-shadow: 0 12px 28px rgba(36,19,50,0.12) !important;
}

.photo-frame,
.photo-frame:hover{
  transform: none !important;
}

.photo-frame{
  transition: box-shadow .22s ease, border-color .22s ease !important;
  box-shadow: 0 12px 28px rgba(139,92,246,0.10) !important;
}

.photo-frame img{
  transform: none !important;
  transition: opacity .55s ease !important;
  will-change: opacity;
}

.photo-frame:hover img{
  transform: none !important;
}

#photo-frame img.hidden{
  opacity: 0 !important;
}

#photo-frame img:not(.hidden){
  opacity: 1 !important;
}

/* ==========================================================
   GALLERY SAFE MODE
   - vuelve la galería a un render ligero y estable
   ========================================================== */

.super-gallery.full-bleed{
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,251,253,0.96)) !important;
}

.super-gallery-grid{
  column-gap: 14px !important;
}

.sg-item{
  border-radius: 20px !important;
  border: 1px solid rgba(124,73,255,0.10) !important;
  background: #ffffff !important;
  box-shadow: 0 8px 20px rgba(36,19,50,0.08) !important;
  contain: layout paint !important;
}

.sg-item::before{
  content: none !important;
}

.sg-item img{
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  object-fit: cover !important;
  filter: none !important;
  backface-visibility: hidden !important;
}

.sg-meta{
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.56)) !important;
}

.sg-pill,
.sg-group-btn,
.sg-count{
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 8px 18px rgba(0,0,0,0.14) !important;
}

.sg-pill{
  background: rgba(34,24,44,0.70) !important;
  border: 1px solid rgba(255,255,255,0.16) !important;
}

.sg-group-btn,
.sg-count{
  background: rgba(26,18,34,0.78) !important;
  border: 1px solid rgba(255,255,255,0.16) !important;
}

.photo-frame{
  background: #f5eff8 !important;
  box-shadow: 0 10px 24px rgba(139,92,246,0.08) !important;
}

.photo-frame img{
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  opacity: 1 !important;
  visibility: visible !important;
  transition: opacity .45s ease !important;
}

/* ==========================================================
   EXTRAS LAYOUT REWORK
   - mensaje diario full width arriba
   - mapa + recuerdos abajo en dos cuadros iguales
   ========================================================== */

.extras.extras-layout{
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 18px !important;
  align-items: stretch;
}

.extra-card--daily{
  width: 100%;
}

.extras-bottom{
  display: block;
}

.extra-card--map,
.extra-card--print{
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.extra-card--map p,
.extra-card--print p{
  margin-top: 0;
}

.extra-card--map-full{
  position: relative;
  overflow: hidden;
  border-radius: 30px !important;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(255,132,193,0.10), transparent 52%),
    radial-gradient(120% 120% at 100% 0%, rgba(141,86,255,0.12), transparent 56%),
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,242,255,0.90)) !important;
  border: 1px solid rgba(124,73,255,0.12) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.86), 0 24px 54px rgba(124,73,255,0.10) !important;
}

.extra-card--map-full h3{
  margin: 0 0 8px 0 !important;
  font-family: "Playfair Display", "Poppins", serif !important;
  font-size: clamp(1.5rem, 2vw, 1.95rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.02em !important;
  color: #35184a !important;
}

.extra-card--map-full > p strong{
  display: block;
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.35;
  color: #4b2b62;
}

.extras-note{
  font-style: italic;
  color: rgba(73,49,94,0.76);
  margin-bottom: 18px;
  max-width: 70ch;
  line-height: 1.55;
}

.map-placeholder{
  position: relative;
  flex: 1 1 auto;
  min-height: 420px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(124,73,255,0.14);
  background:
    radial-gradient(circle at 18% 18%, rgba(255,111,191,0.14), transparent 22%),
    radial-gradient(circle at 82% 18%, rgba(124,73,255,0.14), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(243,235,255,0.92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.82), 0 20px 48px rgba(139,92,246,0.12);
}

.memory-map{
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 420px;
  background: #eef2f7;
}

.memory-map.leaflet-container{
  font-family: "Poppins", sans-serif;
  outline: none;
}

.memory-map .leaflet-control-zoom a{
  color: #3b1b4a;
}

.memory-map .leaflet-control-zoom,
.memory-map .leaflet-control-attribution{
  border: 1px solid rgba(124,73,255,0.14);
  box-shadow: 0 10px 22px rgba(36,19,50,0.10);
}

.memory-map .leaflet-control-zoom a,
.memory-map .leaflet-control-attribution{
  background: rgba(255,255,255,0.92);
}

.map-picker-modal{
  position: fixed;
  inset: 0;
  z-index: 13050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(10,6,12,0.54);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.map-picker-modal.hidden{
  display: none;
}

.map-picker-card{
  position: relative;
  width: min(860px, 94vw);
  max-height: 88vh;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 30px;
  padding: 24px 24px 20px;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(255,132,193,0.14), transparent 56%),
    radial-gradient(120% 100% at 100% 0%, rgba(141,86,255,0.16), transparent 58%),
    linear-gradient(180deg, #fdfcff, #f5f0ff);
  border: 1px solid rgba(124,73,255,0.14);
  box-shadow: 0 28px 70px rgba(36,19,50,0.28);
}

.map-picker-x{
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1.5px solid rgba(139,92,246,0.26);
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(245,236,255,0.94));
  color: #4b335f;
  font-size: 1.35rem;
  font-weight: 800;
  cursor: pointer;
}

.map-picker-eyebrow{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(102,73,152,0.92);
  border: 1px solid rgba(193,167,221,0.32);
  background: rgba(255,255,255,0.62);
}

.map-picker-title{
  margin-top: 14px;
  color: #2e1d36;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 700;
}

.map-picker-copy{
  margin: 10px 0 18px;
  color: rgba(76,51,88,0.72);
  line-height: 1.55;
  max-width: 56ch;
}

.map-picker-search{
  position: relative;
  margin-bottom: 14px;
  z-index: 18;
}

.map-picker-search .input{
  width: 100%;
}

.map-picker-search-results{
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  margin-top: 10px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(124,73,255,0.14);
  box-shadow: 0 18px 36px rgba(36,19,50,0.16);
  max-height: 260px;
  overflow-y: auto;
}

.map-picker-search-results.hidden{
  display: none;
}

.map-picker-search-item{
  width: 100%;
  border: 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(248,241,255,0.92));
  color: #362247;
  cursor: pointer;
  text-align: left;
}

.map-picker-search-item:hover{
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(250,244,255,1), rgba(241,230,255,0.96));
  box-shadow: 0 10px 20px rgba(124,73,255,0.08);
}

.map-picker-search-icon{
  font-size: 1rem;
  line-height: 1.2;
}

.map-picker-search-copy{
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.map-picker-search-copy strong{
  color: #3d274f;
  font-size: 0.96rem;
}

.map-picker-search-copy small{
  color: rgba(92,70,113,0.72);
  font-size: 0.82rem;
}

.map-picker-search-results::-webkit-scrollbar{
  width: 6px;
}

.map-picker-search-results::-webkit-scrollbar-track{
  background: transparent;
}

.map-picker-search-results::-webkit-scrollbar-thumb{
  background: linear-gradient(180deg, rgba(255,111,191,0.7), rgba(124,73,255,0.78));
  border-radius: 999px;
}

.map-picker-quick{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -2px 0 14px;
}

.map-picker-quick-chip{
  border: 1px solid rgba(124,73,255,0.16);
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(246,239,255,0.90));
  color: #4b335f;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(124,73,255,0.08);
}

.map-picker-quick-chip:hover{
  transform: translateY(-1px);
  border-color: rgba(124,73,255,0.28);
  box-shadow: 0 10px 22px rgba(124,73,255,0.12);
}

.map-picker-stage{
  position: relative;
}

.map-picker-canvas{
  position: relative;
  z-index: 1;
  width: 100%;
  height: min(52vh, 460px);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(124,73,255,0.14);
  background: #eef2f7;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.82);
}

.map-picker-canvas.leaflet-container{
  font-family: "Poppins", sans-serif;
  outline: none;
}

.map-picker-center-pin{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, calc(-100% + 18px));
  z-index: 12;
  pointer-events: none;
  display: grid;
  place-items: center;
}

.map-picker-center-pin::after{
  content: "";
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(124,73,255,0.22);
  filter: blur(12px);
  transform: translateY(12px);
}

.map-picker-center-pin-dot{
  z-index: 1;
  transform: scale(1.08);
  box-shadow: 0 16px 30px rgba(124,73,255,0.22), 0 8px 18px rgba(36,19,50,0.14);
}

.map-picker-canvas .leaflet-control-zoom a,
.map-picker-canvas .leaflet-control-attribution{
  background: rgba(255,255,255,0.94);
}

.map-picker-canvas .leaflet-control-zoom,
.map-picker-canvas .leaflet-control-attribution{
  border: 1px solid rgba(124,73,255,0.16);
  box-shadow: 0 10px 22px rgba(36,19,50,0.10);
}

.memory-marker-wrap{
  background: transparent;
  border: 0;
}

.memory-marker{
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.95), rgba(242,230,255,0.90));
  border: 2px solid rgba(124,73,255,0.55);
  box-shadow: 0 14px 28px rgba(124,73,255,0.24), 0 8px 18px rgba(36,19,50,0.16);
}

.memory-marker::after{
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 14px;
  height: 14px;
  background: linear-gradient(180deg, rgba(205,177,255,0.95), rgba(124,73,255,0.98));
  transform: translateX(-50%) rotate(45deg);
  border-radius: 2px;
  z-index: -1;
}

.memory-marker-heart{
  display: inline-block;
  font-size: 1rem;
  line-height: 1;
  transform-origin: center;
}

.memory-marker-count{
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #ff78be, #8d56ff);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(141,86,255,0.22);
}

.map-picker-selected{
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.74);
  border: 1px solid rgba(193,167,221,0.22);
}

.map-picker-selected-label{
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: rgba(102,73,152,0.8);
}

.map-picker-selected-text{
  margin-top: 6px;
  color: #3d274f;
  font-weight: 600;
}

.map-picker-actions{
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.map-fallback{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  color: rgba(59,27,74,0.72);
  font-weight: 600;
}

.map-placeholder-copy{
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 4px;
  z-index: 3;
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(86,67,112,0.84), rgba(67,52,91,0.92));
  color: rgba(255,255,255,0.94);
  text-align: center;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.01em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 44px rgba(36,19,50,0.24);
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-photo-pocket{
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 3;
  width: 292px;
}

.print-gallery--embedded{
  margin: 0;
  gap: 0;
  align-items: center;
  position: relative;
  width: 100%;
  padding: 14px;
  box-sizing: border-box;
}

.print-gallery--embedded .photo-frame{
  width: 100% !important;
  height: 260px !important;
  border-radius: 24px !important;
  border: 1px solid rgba(124,73,255,0.16) !important;
  box-shadow: 0 22px 48px rgba(124,73,255,0.18), 0 12px 28px rgba(36,19,50,0.18) !important;
  position: relative;
  overflow: hidden !important;
  display: block;
  box-sizing: border-box;
  background: rgba(255,255,255,0.7);
}

.print-gallery--embedded::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(124,73,255,0.22), rgba(255,111,191,0.12)),
    radial-gradient(circle at top right, rgba(255,255,255,0.35), transparent 45%);
  z-index: -1;
  box-shadow: 0 18px 34px rgba(124,73,255,0.16);
}

.print-gallery-hint{
  margin: 0;
  text-align: center;
  font-size: 0.82rem;
  color: #8f7ea1;
}

.map-photo-place{
  margin: 10px auto 2px;
  padding: 9px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(245,238,255,0.92));
  border: 1px solid rgba(124,73,255,0.16);
  color: #583f74;
  font-size: 0.88rem;
  line-height: 1.3;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(124,73,255,0.12);
  text-align: center;
  width: fit-content;
  max-width: 100%;
}

.calendar-wrapper{
  max-width: 860px;
  margin: 0 auto;
}

.calendar-header{
  max-width: 860px;
  margin: 0 auto;
}

.calendar-grid{
  max-width: 860px;
  margin: 0 auto;
  gap: 6px;
}

.calendar-day{
  border-radius: 12px;
  font-size: 0.86rem;
}

@media (max-width: 900px){
  .map-placeholder{
    min-height: 540px;
  }

  .map-photo-pocket{
    position: absolute;
    top: 16px;
    right: 14px;
    width: min(34vw, 150px);
    padding: 0;
    display: block;
    justify-content: initial;
  }

  .print-gallery--embedded .photo-frame{
    width: 100% !important;
    height: min(34vw, 150px) !important;
  }

  .map-placeholder-copy{
    left: 14px;
    right: 14px;
    bottom: 10px;
    padding: 14px 16px;
  }
}

@media (max-width: 560px){
  .map-placeholder{
    min-height: 460px;
  }

  .map-photo-pocket{
    width: min(32vw, 124px);
    top: 12px;
    right: 12px;
  }

  .print-gallery--embedded{
    padding: 8px;
  }

  .print-gallery--embedded .photo-frame{
    height: min(32vw, 124px) !important;
    border-radius: 18px !important;
  }

  .map-photo-place{
    font-size: 0.76rem;
    padding: 7px 10px;
  }

  .map-placeholder-copy{
    max-width: calc(100% - 28px);
    font-size: 0.92rem;
    line-height: 1.4;
    bottom: 8px !important;
  }
}

/* ==========================================================
   FINAL POLISH: GALERIA + MENSAJITOS
   ========================================================== */

.super-gallery-actions{
  display: grid !important;
  grid-template-columns: minmax(240px, 320px) minmax(260px, 320px) minmax(240px, 320px);
  justify-content: center;
  align-items: start;
  gap: 14px 16px !important;
  position: relative;
  padding: 16px 18px !important;
  border-radius: 26px !important;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(255,132,193,0.10), transparent 55%),
    radial-gradient(120% 120% at 100% 0%, rgba(141,86,255,0.10), transparent 56%),
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,247,251,0.88)) !important;
  border: 1px solid rgba(124,73,255,0.12) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.78), 0 18px 36px rgba(124,73,255,0.10) !important;
}

.super-gallery-actions::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,0.18), transparent 24%, transparent 76%, rgba(255,255,255,0.18));
  opacity: 0.6;
}

.super-gallery-actions #btn-open-upload{
  grid-column: 1;
  grid-row: 1;
  position: relative;
  min-height: 54px !important;
  padding: 0 24px !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, #ff68b6 0%, #9b54ff 100%) !important;
  border: 1px solid rgba(255,255,255,0.26) !important;
  box-shadow: 0 18px 34px rgba(155,84,255,0.24), 0 12px 24px rgba(255,104,182,0.18) !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
}

.super-gallery-actions #btn-clear-filter{
  top: auto !important;
  right: auto !important;
  position: fixed !important;
  left: 50% !important;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 88px) !important;
  transform: translateX(-50%) !important;
  z-index: 1300 !important;
  width: min(240px, calc(100vw - 56px)) !important;
  min-width: 0 !important;
  margin: 0 !important;
  min-height: 54px !important;
  padding: 0 22px !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(249,243,255,0.92)) !important;
  border: 1px solid rgba(124,73,255,0.16) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.88), 0 18px 36px rgba(124,73,255,0.18) !important;
  color: #65437a !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
}

.super-gallery-actions #btn-clear-filter[style*="display: none"]{
  display: none !important;
}

.super-gallery-actions #btn-clear-filter:hover{
  transform: translateX(-50%) translateY(-1px) !important;
  border-color: rgba(155,84,255,0.28) !important;
  box-shadow: 0 22px 40px rgba(124,73,255,0.20), inset 0 1px 0 rgba(255,255,255,0.92) !important;
}

.super-gallery-actions #btn-open-upload:hover{
  transform: translateY(-1px) !important;
  box-shadow: 0 22px 40px rgba(155,84,255,0.28), 0 12px 24px rgba(255,104,182,0.22) !important;
}

.super-gallery-actions #filter-place,
.super-gallery-actions #search-caption{
  min-height: 54px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(124,73,255,0.14) !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,242,255,0.92)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.88), 0 10px 24px rgba(36,19,50,0.06) !important;
  color: #4a315d !important;
  font-weight: 600 !important;
}

.super-gallery-actions #filter-place{
  grid-column: 2;
  grid-row: 1 / span 2;
}

.super-gallery-actions #search-caption{
  grid-column: 3;
  grid-row: 1 / span 2;
}

.super-gallery-actions #filter-place:hover,
.super-gallery-actions #search-caption:hover,
.super-gallery-actions #filter-place:focus,
.super-gallery-actions #search-caption:focus{
  border-color: rgba(155,84,255,0.34) !important;
  box-shadow: 0 0 0 4px rgba(155,84,255,0.10), 0 14px 28px rgba(124,73,255,0.10) !important;
  outline: none;
}

.super-gallery-actions #search-caption::placeholder{
  color: rgba(84,58,108,0.58) !important;
}

.sg-item{
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease !important;
}

.sg-item img{
  transition: transform .28s ease, filter .28s ease !important;
}

.sg-item:hover{
  transform: translateY(-3px) !important;
  box-shadow: 0 18px 34px rgba(124,73,255,0.16) !important;
}

.sg-item:hover img{
  transform: scale(1.03) !important;
  filter: saturate(1.03) contrast(1.02) !important;
}

.super-gallery-grid.is-grouped-view{
  column-width: 280px !important;
  column-gap: 16px !important;
}

.super-gallery-grid.is-grouped-view.is-sparse-results{
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 16px !important;
  column-count: auto !important;
  column-width: auto !important;
  align-items: start;
}

.super-gallery-grid.is-grouped-view.is-sparse-results .sg-item{
  width: 100% !important;
  margin: 0 !important;
  break-inside: auto !important;
  display: block !important;
}

.super-gallery-grid.is-grouped-view.is-sparse-results .sg-item img{
  width: 100% !important;
  height: auto !important;
}

.cards-section{
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 22px !important;
}

.card{
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 20px 18px 18px !important;
  border-radius: 26px !important;
  border: 1px solid rgba(124,73,255,0.10) !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,249,253,0.88)) !important;
  box-shadow: 0 14px 38px rgba(139,92,246,0.10) !important;
}

.card::before{
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 88px;
  background: radial-gradient(circle at top left, rgba(255,111,191,0.12), transparent 52%);
  pointer-events: none;
}

.card h2{
  font-family: "Playfair Display", "Poppins", serif !important;
  font-size: 1.62rem !important;
  line-height: 1.05 !important;
  letter-spacing: -0.02em !important;
  color: #3b1b4a !important;
  margin-bottom: 10px !important;
}

.card .desc{
  font-size: 1rem !important;
  line-height: 1.42 !important;
  color: rgba(63,42,80,0.72) !important;
  margin-bottom: 14px !important;
}

.message-list{
  flex: 1 1 auto;
  min-height: 0;
  padding: 4px 8px 18px 0 !important;
  margin-right: -2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(124,73,255,0.42) transparent;
}

.message-list::-webkit-scrollbar{
  width: 6px;
}

.message-list::-webkit-scrollbar-track{
  background: transparent;
}

.message-list::-webkit-scrollbar-thumb{
  background: linear-gradient(180deg, rgba(255,111,191,0.72), rgba(124,73,255,0.70));
  border-radius: 999px;
}

.msg{
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(252,247,255,0.88)) !important;
  border: 1px solid rgba(124,73,255,0.08) !important;
  border-radius: 18px !important;
  padding: 14px 14px 12px !important;
  box-shadow: 0 8px 22px rgba(124,73,255,0.06) !important;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease !important;
}

.msg::before{
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 18px 0 0 18px;
  background: linear-gradient(180deg, rgba(255,111,191,0.88), rgba(124,73,255,0.90));
  opacity: 0.75;
}

.msg:hover{
  transform: translateY(-2px);
  border-color: rgba(124,73,255,0.14) !important;
  box-shadow: 0 14px 28px rgba(124,73,255,0.10) !important;
}

.msg > div:first-child{
  padding-left: 2px;
  color: #352145;
  font-size: 1rem;
  line-height: 1.45;
}

.message-list .msg:last-child{
  margin-bottom: 0 !important;
}

@media (max-width: 700px) {
  .card{
    padding: 18px 14px 16px !important;
    border-radius: 22px !important;
  }

  .card h2{
    font-size: 1.34rem !important;
  }

  .card .desc{
    font-size: 0.96rem !important;
    margin-bottom: 12px !important;
  }

  .message-list{
    padding-right: 4px !important;
    padding-bottom: 10px !important;
  }

  .msg{
    padding: 12px 12px 10px !important;
    border-radius: 16px !important;
  }

  .super-gallery-actions{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    align-items: stretch !important;
    padding: 14px !important;
  }

  .super-gallery-actions #btn-open-upload{
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 16px !important;
    font-size: 0.95rem !important;
  }

  .super-gallery-actions #btn-clear-filter{
    top: auto !important;
    right: auto !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 84px) !important;
    transform: translateX(-50%) !important;
    width: min(220px, calc(100vw - 48px)) !important;
    z-index: 1200 !important;
    min-height: 50px !important;
    padding: 0 18px !important;
    box-shadow: 0 18px 36px rgba(124,73,255,0.20) !important;
  }

  .super-gallery-actions #filter-place{
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
    padding-inline: 12px !important;
    font-size: 0.92rem !important;
  }

  .super-gallery-actions #search-caption{
    grid-column: 2 !important;
    grid-row: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
    padding-inline: 12px !important;
    font-size: 0.92rem !important;
  }

  .super-gallery-actions #search-caption::placeholder{
    font-size: 0.9rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .super-gallery-head h4{
    font-size: 1.78rem !important;
  }

  .super-gallery-count{
    font-size: 0.98rem !important;
    padding: 10px 16px !important;
  }

  .super-gallery-head .muted{
    font-size: 0.98rem !important;
    line-height: 1.4 !important;
  }
}

@media (max-width: 900px){
  .super-gallery-grid.is-grouped-view.is-sparse-results{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .map-picker-card{
    width: min(94vw, 540px);
    max-height: calc(100vh - 22px);
    padding: 20px 18px 18px;
    border-radius: 26px;
  }

  .map-picker-canvas{
    height: min(46vh, 380px);
  }
}

@media (max-width: 560px){
  .map-picker-card{
    width: min(94vw, 420px);
    max-height: calc(100vh - 16px);
    padding: 18px 14px 16px;
    border-radius: 24px;
  }

  .map-picker-copy{
    margin-bottom: 14px;
  }

  .map-picker-search-results{
    max-height: 180px;
  }

  .map-picker-canvas{
    height: min(42vh, 320px);
  }

  .map-picker-actions{
    position: sticky;
    bottom: 0;
    padding-top: 12px;
    background: linear-gradient(180deg, rgba(253,252,255,0), rgba(253,252,255,0.96) 28%);
  }

  .super-gallery-grid.is-grouped-view{
    display: block !important;
    column-count: 2 !important;
    column-width: 0 !important;
    column-gap: 8px !important;
  }

  .super-gallery-grid.is-grouped-view .sg-item{
    display: inline-block !important;
    width: 100% !important;
    margin: 0 0 8px !important;
    break-inside: avoid !important;
  }

  .super-gallery-grid.is-grouped-view .sg-item img{
    width: 100% !important;
    height: auto !important;
  }
}

/* ==========================================================
   FINAL FIXES: MAPA + EXTRAS RESPONSIVE + GITHUB PAGES
   ========================================================== */

.extras.extras-layout,
.extras-bottom,
.extra-card--daily,
.extra-card--map-full,
.map-placeholder,
.memory-map{
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
}

.extra-card--daily,
.extra-card--map-full{
  overflow: hidden;
}

.calendar-toggle-row{
  flex-wrap: wrap;
}

.map-placeholder{
  box-sizing: border-box;
}

.map-photo-pocket{
  overflow: visible;
}

.print-gallery--embedded{
  overflow: visible;
}

.print-gallery--embedded .photo-frame{
  display: block;
}

@media (max-width: 900px){
  .extras.extras-layout{
    gap: 16px !important;
  }

  .extra-card--daily,
  .extra-card--map-full{
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .map-placeholder{
    min-height: 520px !important;
    border-radius: 22px !important;
  }

  .map-photo-pocket{
    width: min(36vw, 168px) !important;
    top: 14px !important;
    right: 14px !important;
  }

  .print-gallery--embedded .photo-frame{
    height: min(36vw, 168px) !important;
  }
}

@media (max-width: 700px){
  .extra-card--daily,
  .extra-card--map-full{
    width: 100% !important;
    margin: 0 auto !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .calendar-toggle-row{
    justify-content: flex-start;
    gap: 10px;
  }

  .calendar-toggle-row > *{
    max-width: 100%;
  }

  .map-placeholder{
    min-height: 500px !important;
    margin: 0 !important;
  }

  .map-placeholder-copy{
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    max-width: none !important;
    font-size: 0.92rem !important;
    line-height: 1.35 !important;
  }
}

@media (max-width: 560px){
  body{
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .page{
    max-width: 100% !important;
    width: 100% !important;
  }

  .extras.extras-layout{
    width: 100% !important;
    max-width: 100% !important;
    gap: 14px !important;
  }

  .extra-card--daily,
  .extra-card--map-full{
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    border-radius: 22px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .extra-card--daily h3,
  .extra-card--map-full h3,
  .extra-card--daily p,
  .extra-card--map-full p,
  .extras-note{
    max-width: 100% !important;
    word-break: break-word;
  }

  .calendar-toggle-row{
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px !important;
    align-items: stretch;
  }

  .calendar-toggle-row #toggle-calendar{
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
  }

  .calendar-toggle-row #selected-date,
  .calendar-toggle-row #unlock-all{
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .map-placeholder{
    min-height: 430px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    border-radius: 20px !important;
  }

  .memory-map{
    min-height: 430px !important;
  }

  .map-photo-pocket{
    width: min(44vw, 170px) !important;
    max-width: calc(100% - 24px) !important;
    top: 12px !important;
    right: 12px !important;
  }

  .print-gallery--embedded{
    padding: 8px !important;
  }

  .print-gallery--embedded .photo-frame{
    height: min(44vw, 170px) !important;
    border-radius: 18px !important;
  }

  .map-photo-place{
    font-size: 0.76rem !important;
    line-height: 1.2 !important;
    padding: 7px 10px !important;
  }

  .map-placeholder-copy{
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important;
    padding: 12px 14px !important;
    border-radius: 18px !important;
    min-height: 64px !important;
    font-size: 0.88rem !important;
  }
}

/* ==========================================================
   FINAL MAP CARD POLISH
   ========================================================== */

.extra-card--map-full{
  border-radius: 34px !important;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(255,132,193,0.14), transparent 50%),
    radial-gradient(120% 120% at 100% 0%, rgba(141,86,255,0.16), transparent 54%),
    linear-gradient(180deg, rgba(255,255,255,0.97), rgba(248,241,255,0.92)) !important;
  border: 1px solid rgba(124,73,255,0.14) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.88), 0 28px 60px rgba(124,73,255,0.12) !important;
}

.extra-card--map-full::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.18), transparent 22%, transparent 78%, rgba(255,255,255,0.18)),
    radial-gradient(circle at top right, rgba(255,255,255,0.24), transparent 34%);
  opacity: 0.8;
}

.extra-card--map-full h3{
  margin-bottom: 10px !important;
  font-family: "Playfair Display", "Poppins", serif !important;
  font-size: clamp(1.58rem, 2vw, 2rem) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.025em !important;
  color: #35184a !important;
}

.extra-card--map-full > p strong{
  display: block;
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.35;
  color: #4b2b62;
}

.extras-note{
  color: rgba(73,49,94,0.78) !important;
  line-height: 1.58 !important;
}

.map-placeholder{
  border-radius: 30px !important;
  background:
    radial-gradient(circle at 16% 16%, rgba(255,111,191,0.14), transparent 20%),
    radial-gradient(circle at 84% 18%, rgba(124,73,255,0.14), transparent 22%),
    linear-gradient(180deg, rgba(255,255,255,0.97), rgba(242,234,253,0.94)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.84), 0 22px 52px rgba(139,92,246,0.13) !important;
  padding-bottom: 20px !important;
}

.map-photo-pocket{
  top: 16px !important;
  z-index: 5 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.print-gallery--embedded{
  padding: 16px !important;
}

.print-gallery--embedded::before{
  border-radius: 30px !important;
  background:
    linear-gradient(145deg, rgba(124,73,255,0.24), rgba(255,111,191,0.14)),
    radial-gradient(circle at top right, rgba(255,255,255,0.35), transparent 44%),
    radial-gradient(circle at bottom left, rgba(255,255,255,0.14), transparent 50%) !important;
  box-shadow: 0 22px 40px rgba(124,73,255,0.18) !important;
}

.map-photo-place{
  display: none !important;
  margin: 14px auto 0 !important;
  padding: 10px 16px !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(245,238,255,0.92)) !important;
  border: 1px solid rgba(124,73,255,0.16) !important;
  box-shadow: 0 12px 28px rgba(124,73,255,0.12) !important;
  position: relative !important;
  z-index: 6 !important;
  max-width: calc(100% - 10px) !important;
  white-space: normal !important;
  margin-bottom: 44px !important;
}

.map-placeholder-copy{
  bottom: 8px !important;
  left: 16px !important;
  right: 16px !important;
  padding: 16px 22px !important;
  border-radius: 24px !important;
  background:
    linear-gradient(180deg, rgba(96,75,126,0.86), rgba(70,55,95,0.94)),
    radial-gradient(circle at top, rgba(255,255,255,0.10), transparent 40%) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  box-shadow: 0 24px 48px rgba(36,19,50,0.26) !important;
  min-height: 68px !important;
  z-index: 3 !important;
  width: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

@media (max-width: 900px){
  .map-placeholder-copy{
    bottom: 8px !important;
  }
}

@media (max-width: 560px){
  .map-placeholder-copy{
    bottom: 8px !important;
    min-height: 68px !important;
    width: auto !important;
  }

  .map-photo-place{
    margin-bottom: 34px !important;
  }
}

/* ==========================================================
   FINAL MAP GLASS UPGRADE
   ========================================================== */

.extra-card--map-full{
  background: linear-gradient(135deg, #faf8ff 0%, #f3eeff 100%) !important;
}

.map-placeholder{
  overflow: hidden !important;
  border-radius: 24px !important;
  border: 1.5px solid rgba(139,92,246,0.25) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 4px 28px rgba(139,92,246,0.10),
    0 16px 36px rgba(124,73,255,0.08) !important;
}

.memory-map,
.memory-map.leaflet-container{
  border-radius: 24px !important;
  overflow: hidden !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.28) !important;
}

.map-placeholder::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 165px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(10,5,25,0) 0%, rgba(10,5,25,0) 55%, rgba(10,5,25,0.18) 78%, rgba(10,5,25,0.42) 100%);
}

.print-gallery--embedded{
  padding: 14px !important;
}

.print-gallery--embedded::before{
  inset: -10px !important;
  border-radius: 34px !important;
  background:
    linear-gradient(150deg, rgba(151,88,255,0.26), rgba(255,128,197,0.18)),
    radial-gradient(circle at top right, rgba(255,255,255,0.34), transparent 46%),
    radial-gradient(circle at bottom left, rgba(255,255,255,0.12), transparent 54%) !important;
  box-shadow:
    0 18px 36px rgba(124,73,255,0.20),
    0 8px 18px rgba(255,128,197,0.12) !important;
}

.print-gallery--embedded .photo-frame{
  border-radius: 28px !important;
  border: 2px solid rgba(255,255,255,0.70) !important;
  box-shadow:
    0 8px 32px rgba(0,0,0,0.40),
    0 16px 34px rgba(124,73,255,0.16) !important;
}

.print-gallery--embedded .photo-frame img{
  transition: opacity 300ms ease-out, transform 300ms ease-out !important;
  transform: scale(1);
}

.print-gallery--embedded .photo-frame img.hidden{
  transform: scale(0.96) !important;
}

.map-placeholder-copy{
  left: 20px !important;
  right: 20px !important;
  bottom: 12px !important;
  min-height: 70px !important;
  padding: 18px 24px !important;
  border-radius: 22px !important;
  background:
    linear-gradient(180deg, rgba(10,5,25,0.72), rgba(24,12,38,0.82)),
    radial-gradient(circle at top, rgba(255,255,255,0.10), transparent 42%) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  box-shadow:
    0 18px 44px rgba(18,8,27,0.30),
    inset 0 1px 0 rgba(255,255,255,0.06) !important;
  backdrop-filter: blur(12px) saturate(1.12) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.12) !important;
  color: rgba(255,255,255,0.96) !important;
  font-weight: 700 !important;
  line-height: 1.42 !important;
  letter-spacing: 0.03em !important;
}

.memory-map .leaflet-control-zoom{
  border: 1px solid rgba(124,73,255,0.18) !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  background: rgba(255,255,255,0.85) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  box-shadow: 0 12px 28px rgba(124,73,255,0.16) !important;
}

.memory-map .leaflet-control-zoom a{
  width: 40px !important;
  height: 40px !important;
  line-height: 40px !important;
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: #6b37c9 !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,242,255,0.94)) !important;
  border-bottom: 1px solid rgba(124,73,255,0.12) !important;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease !important;
}

.memory-map .leaflet-control-zoom a:hover{
  background: linear-gradient(180deg, rgba(248,234,255,0.98), rgba(241,221,255,0.96)) !important;
  color: #4d2398 !important;
  transform: translateY(-1px);
}

.memory-map .leaflet-popup-content-wrapper{
  border-radius: 12px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(249,243,255,0.96)) !important;
  border: 1px solid rgba(124,73,255,0.16) !important;
  box-shadow:
    0 18px 38px rgba(41,18,58,0.22),
    0 6px 12px rgba(124,73,255,0.10) !important;
}

.memory-map .leaflet-popup-content{
  margin: 14px 18px !important;
  font-family: "Poppins", sans-serif !important;
  color: #7c6a9e !important;
  line-height: 1.38 !important;
}

.memory-map .leaflet-popup-content strong{
  display: block;
  margin-bottom: 4px;
  color: #372149 !important;
  font-size: 1rem !important;
}

.memory-map .leaflet-popup-tip{
  background: rgba(249,243,255,0.98) !important;
  box-shadow: 0 12px 24px rgba(41,18,58,0.12) !important;
}

.memory-map .leaflet-popup-close-button{
  color: #8e74aa !important;
  font-size: 1.2rem !important;
  padding: 8px 10px 0 0 !important;
}

.memory-map .leaflet-marker-icon{
  cursor: pointer !important;
  transition: filter 180ms ease !important;
}

.memory-map .leaflet-marker-icon:hover{
  filter: drop-shadow(0 8px 16px rgba(124,73,255,0.26));
}

.memory-map .leaflet-marker-icon:hover .memory-marker-heart{
  animation: memoryMarkerHeartWiggle 720ms ease-in-out infinite;
}

@keyframes memoryMarkerHeartWiggle{
  0%, 100% { transform: rotate(0deg) scale(1); }
  20% { transform: rotate(-8deg) scale(1.04); }
  40% { transform: rotate(8deg) scale(1.06); }
  60% { transform: rotate(-6deg) scale(1.04); }
  80% { transform: rotate(6deg) scale(1.02); }
}

.extra-card--map-full h3{
  font-family: "Playfair Display", "Poppins", serif !important;
  font-style: italic !important;
  letter-spacing: -0.02em !important;
}

.extra-card--map-full > p strong{
  color: #9d7fc4 !important;
  font-weight: 400 !important;
}

.extra-card--map-full .extras-note{
  max-width: 520px !important;
  font-size: 0.85rem !important;
  opacity: 0.6 !important;
  font-style: italic !important;
  padding-top: 10px !important;
  border-top: 1px solid rgba(139,92,246,0.15) !important;
}

/* ==========================================================
   GALLERY STICKY CONTROLS ONLY
   ========================================================== */

.super-gallery-head{
  position: static !important;
  top: auto !important;
  z-index: auto !important;
  padding-bottom: 28px !important;
}

.super-gallery-head > :not(.super-gallery-actions){
  position: static !important;
  top: auto !important;
}

.super-gallery-actions{
  position: relative !important;
  z-index: 110 !important;
  margin-top: 26px !important;
  background: rgba(255,255,255,0.85) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  padding: 12px 20px !important;
  border-bottom: 1px solid rgba(139,92,246,0.12) !important;
  transition: box-shadow 180ms ease, background-color 180ms ease !important;
}

.super-gallery-actions-spacer{
  width: min(1160px, calc(100% - 8px));
  height: 0;
  margin: 0 auto;
  pointer-events: none;
}

.super-gallery-actions.is-fixed{
  position: fixed !important;
  top: 12px !important;
  z-index: 160 !important;
  margin-top: 0 !important;
}

.super-gallery-actions.is-floating{
  box-shadow: 0 18px 40px rgba(124,73,255,0.18) !important;
}

#btn-clear-filter{
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  top: auto !important;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 24px) !important;
  transform: translateX(-50%) !important;
  margin-top: 0 !important;
  justify-self: auto !important;
  z-index: 160 !important;
  display: none !important;
  width: max-content !important;
  max-width: calc(100vw - 32px) !important;
  min-height: 52px !important;
  padding: 0 20px !important;
  border-radius: 999px !important;
  box-shadow: 0 18px 34px rgba(124,73,255,0.18), inset 0 1px 0 rgba(255,255,255,0.90) !important;
}

#btn-clear-filter[hidden],
#btn-clear-filter:disabled{
  display: none !important;
}

#btn-clear-filter.is-visible{
  display: inline-flex !important;
}

@media (max-width: 700px){
  .super-gallery-actions{
    padding: 10px 14px !important;
  }

  .super-gallery-actions.is-fixed{
    top: 8px !important;
  }

  #btn-clear-filter{
    bottom: calc(env(safe-area-inset-bottom, 0px) + 18px) !important;
  }
}

@media (max-width: 560px){
  .map-placeholder{
    border-radius: 22px !important;
  }

  .memory-map,
  .memory-map.leaflet-container{
    border-radius: 22px !important;
  }

  .print-gallery--embedded{
    padding: 10px !important;
  }

  .print-gallery--embedded::before{
    inset: -6px !important;
    border-radius: 26px !important;
  }

  .print-gallery--embedded .photo-frame{
    border-radius: 22px !important;
    border-width: 2px !important;
  }

  .map-placeholder-copy{
    left: 12px !important;
    right: 12px !important;
    bottom: 10px !important;
    padding: 14px 16px !important;
    border-radius: 18px !important;
    min-height: 62px !important;
    font-size: 0.92rem !important;
  }
}

/* ==========================================================
   TRUE FINAL GALLERY OVERRIDE
   ========================================================== */

.super-gallery-head,
.super-gallery-head::before,
.super-gallery-head::after,
.super-gallery-head h4,
.super-gallery-head .super-gallery-count,
.super-gallery-head > p{
  position: static !important;
  inset: auto !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
}

.super-gallery-actions{
  position: sticky !important;
  top: 12px !important;
  z-index: 120 !important;
}

#btn-clear-filter{
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  top: auto !important;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 22px) !important;
  transform: translateX(-50%) !important;
  margin: 0 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: max-content !important;
  min-width: 0 !important;
  max-width: calc(100vw - 36px) !important;
  z-index: 2500 !important;
  min-height: 58px !important;
  padding: 0 24px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(139,92,246,0.24) !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,236,255,0.96)) !important;
  box-shadow:
    0 18px 40px rgba(124,73,255,0.22),
    inset 0 1px 0 rgba(255,255,255,0.92) !important;
  color: #5b2ba8 !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
}

#btn-clear-filter.is-visible{
  display: inline-flex !important;
}

#btn-clear-filter:hover{
  transform: translateX(-50%) translateY(-2px) !important;
  border-color: rgba(139,92,246,0.34) !important;
  box-shadow:
    0 24px 46px rgba(124,73,255,0.26),
    inset 0 1px 0 rgba(255,255,255,0.94) !important;
}

@media (max-width: 700px){
  .super-gallery-actions{
    top: 8px !important;
  }

  #btn-clear-filter{
    bottom: calc(env(safe-area-inset-bottom, 0px) + 18px) !important;
  }
}

@media (max-width: 768px){
  .map-photo-pocket{
    width: min(32vw, 118px) !important;
    top: auto !important;
    right: 14px !important;
    bottom: 92px !important;
    transform: translateY(0) !important;
    transition: transform 180ms ease !important;
  }

  .map-photo-pocket.is-caption-tall{
    transform: translateY(-35px) !important;
  }

  .print-gallery--embedded{
    padding: 6px !important;
  }

  .print-gallery--embedded::before{
    inset: -4px !important;
    border-radius: 22px !important;
  }

  .print-gallery--embedded .photo-frame{
    height: min(32vw, 118px) !important;
    border-radius: 16px !important;
  }

  .memory-map .leaflet-popup-content-wrapper{
    max-width: min(70vw, 220px) !important;
  }

  .memory-map .leaflet-popup-content{
    margin: 10px 12px !important;
    text-align: center !important;
    font-size: 0.78rem !important;
    line-height: 1.25 !important;
  }

  .memory-map .leaflet-popup-content strong{
    font-size: 0.88rem !important;
    line-height: 1.08 !important;
    margin-bottom: 3px !important;
    text-align: center !important;
  }

  .memory-map-popup{
    text-align: center !important;
  }

  .memory-map .leaflet-popup.memory-popup-mobile{
    margin-bottom: 0 !important;
  }

  .memory-map .leaflet-popup.memory-popup-mobile.memory-popup-side-left .leaflet-popup-content-wrapper{
    max-width: min(70vw, 220px) !important;
  }

  .memory-map .leaflet-popup.memory-popup-mobile.memory-popup-side-left .leaflet-popup-tip-container{
    position: absolute !important;
    top: 50% !important;
    bottom: auto !important;
    margin-top: -10px !important;
    width: 20px !important;
    height: 20px !important;
    overflow: visible !important;
  }

  .memory-map .leaflet-popup.memory-popup-mobile.memory-popup-side-left .leaflet-popup-tip{
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    box-shadow: 0 8px 18px rgba(41,18,58,0.10) !important;
  }

  .memory-map .leaflet-popup.memory-popup-side-left .leaflet-popup-tip-container{
    right: -8px !important;
    left: auto !important;
  }

  .memory-map .leaflet-popup.memory-popup-side-left .leaflet-popup-tip{
    transform: rotate(-45deg) !important;
  }

  .map-placeholder-copy{
    left: 12px !important;
    right: 12px !important;
    bottom: 10px !important;
    padding: 14px 16px !important;
    min-height: 62px !important;
  }
}

/* ==========================================================
   FINAL MESSAGE COLUMNS POLISH
   ========================================================== */

.cards-section{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 22px !important;
  align-items: stretch !important;
  grid-auto-rows: auto !important;
}

.cards-section .card{
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  height: 640px !important;
  min-height: 0 !important;
  padding: 20px 16px 16px !important;
  border: none !important;
  border-radius: 22px !important;
  background:
    radial-gradient(ellipse at top left, rgba(255, 205, 228, 0.26), transparent 48%),
    linear-gradient(180deg, rgba(255,255,255,0.90), rgba(252,247,255,0.80)) !important;
  box-shadow: 0 12px 34px rgba(139,92,246,0.08) !important;
}

.cards-section .card:not(:last-child){
  box-shadow:
    1px 0 0 rgba(139,92,246,0.10),
    0 12px 34px rgba(139,92,246,0.08) !important;
}

.cards-section .card::before{
  content: "" !important;
  position: absolute !important;
  inset: 0 0 auto 0 !important;
  height: 86px !important;
  background: radial-gradient(circle at top left, rgba(255, 182, 212, 0.22), transparent 58%) !important;
  pointer-events: none !important;
}

.cards-section .card:nth-child(2){
  background:
    radial-gradient(ellipse at top left, rgba(214, 196, 255, 0.28), transparent 50%),
    linear-gradient(180deg, rgba(247,242,255,0.98), rgba(241,232,255,0.88)) !important;
  border: 1px solid rgba(139,92,246,0.15) !important;
  box-shadow:
    0 16px 38px rgba(139,92,246,0.10),
    inset 0 1px 0 rgba(255,255,255,0.72) !important;
}

.cards-section .card h2{
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-family: "Playfair Display", "Poppins", serif !important;
  font-size: 1.5rem !important;
  line-height: 1.04 !important;
  font-weight: 700 !important;
  letter-spacing: -0.025em !important;
  color: #44205b !important;
  margin-bottom: 12px !important;
}

.cards-section .card h2::before{
  font-size: 0.85em !important;
  line-height: 1 !important;
  flex: 0 0 auto !important;
  transform: translateY(1px);
}

.cards-section .card:nth-child(2) h2{
  font-size: 1.72rem !important;
}

.cards-section .card:nth-child(1) h2::before{
  content: "💌";
}

.cards-section .card:nth-child(2) h2::before{
  content: "🌧️";
}

.cards-section .card:nth-child(3) h2::before{
  content: "🌸";
}

.cards-section .card .desc{
  max-width: 24ch !important;
  margin-bottom: 16px !important;
  color: rgba(74, 48, 95, 0.55) !important;
  font-size: 0.82rem !important;
  line-height: 1.5 !important;
}

.cards-section .message-list{
  position: relative !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: grid !important;
  gap: 12px !important;
  overflow-y: auto !important;
  padding: 4px 2px 36px 0 !important;
  margin-right: -2px !important;
  max-height: none !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(124,73,255,0.62) transparent !important;
  -ms-overflow-style: auto !important;
}

.cards-section .message-list::-webkit-scrollbar{
  display: block !important;
  width: 7px !important;
}

.cards-section .message-list::-webkit-scrollbar-track{
  background: transparent !important;
}

.cards-section .message-list::-webkit-scrollbar-thumb{
  background: linear-gradient(180deg, rgba(255,111,191,0.84), rgba(124,73,255,0.82)) !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,0.55) !important;
}

.cards-section .msg{
  position: relative !important;
  border: none !important;
  border-radius: 14px !important;
  padding: 14px 14px 13px 15px !important;
  background: rgba(255,255,255,0.65) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  box-shadow: 0 2px 12px rgba(139,92,246,0.08) !important;
  transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease !important;
}

.cards-section .msg::before{
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 3px !important;
  border-radius: 14px 0 0 14px !important;
  background: linear-gradient(to bottom, #ec4899, #8b5cf6) !important;
  opacity: 1 !important;
}

.cards-section .msg:hover{
  transform: translateX(4px) !important;
  background: rgba(255,255,255,0.90) !important;
  box-shadow: 0 10px 22px rgba(139,92,246,0.10) !important;
}

.cards-section .msg > div:first-child{
  padding-left: 3px !important;
  color: #3d2550 !important;
  font-size: 1rem !important;
  line-height: 1.65 !important;
}

.cards-section .message-list .msg:last-child{
  margin-bottom: 20px !important;
}

@media (max-width: 920px){
  .cards-section{
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .cards-section .card{
    height: auto !important;
    min-height: 0 !important;
    padding: 18px 15px !important;
    border-radius: 20px !important;
  }

  .cards-section .card:not(:last-child){
    box-shadow: 0 12px 34px rgba(139,92,246,0.08) !important;
  }

  .cards-section .card h2{
    font-size: 1.45rem !important;
  }

  .cards-section .card:nth-child(2) h2{
    font-size: 1.58rem !important;
  }

  .cards-section .message-list{
    max-height: 260px !important;
    padding-bottom: 12px !important;
  }
}

@media (max-width: 560px){
  .cards-section .card{
    height: auto !important;
    min-height: 0 !important;
    padding: 17px 14px !important;
    border-radius: 18px !important;
  }

  .cards-section .card h2{
    gap: 7px !important;
    font-size: 1.34rem !important;
    margin-bottom: 10px !important;
  }

  .cards-section .card:nth-child(2) h2{
    font-size: 1.46rem !important;
  }

  .cards-section .card .desc{
    max-width: 280px !important;
    margin-bottom: 14px !important;
  }

  .cards-section .message-list{
    max-height: 220px !important;
    padding-bottom: 10px !important;
  }

  .cards-section .msg{
    padding: 13px 13px 12px 14px !important;
  }

  .cards-section .msg > div:first-child{
    font-size: 0.98rem !important;
  }
}

