.staff-only,
[data-upload-shell],
[data-category-admin],
[data-edit-image],
[data-delete-image],
[data-edit-category],
[data-delete-category],
[data-admin-only] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body[data-staff-authenticated="true"] .staff-only,
body[data-staff-authenticated="true"] [data-upload-shell],
body[data-staff-authenticated="true"] [data-category-admin],
body[data-staff-authenticated="true"] [data-edit-image],
body[data-staff-authenticated="true"] [data-delete-image],
body[data-staff-authenticated="true"] [data-edit-category],
body[data-staff-authenticated="true"] [data-delete-category],
body[data-staff-authenticated="true"] [data-admin-only] {
  visibility: visible !important;
  pointer-events: auto !important;
}

body[data-staff-authenticated="true"] [data-edit-image],
body[data-staff-authenticated="true"] [data-delete-image],
body[data-staff-authenticated="true"] [data-edit-category],
body[data-staff-authenticated="true"] [data-delete-category],
body[data-staff-authenticated="true"] [data-admin-only] {
  display: inline-flex !important;
}

body[data-staff-authenticated="true"] [data-upload-shell]:not(.hidden),
body[data-staff-authenticated="true"] [data-category-admin]:not(.hidden) {
  display: block !important;
}

[data-lightbox-prev].md\:hidden,
[data-lightbox-next].md\:hidden {
  display: none !important;
}

[data-lightbox-prev].max-md\:hidden,
[data-lightbox-next].max-md\:hidden {
  top: calc(100% + 1rem) !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 3 !important;
  display: grid !important;
  width: 3rem !important;
  height: 3rem !important;
  place-items: center !important;
  transform: none !important;
  border-radius: 999px !important;
}

[data-lightbox-prev].max-md\:hidden {
  left: calc(50% - 7rem) !important;
}

[data-lightbox-next].max-md\:hidden {
  left: calc(50% + 4rem) !important;
}

[data-lightbox-prev].max-md\:hidden > span:first-child,
[data-lightbox-next].max-md\:hidden > span:first-child {
  display: none !important;
}

[data-lightbox-prev].max-md\:hidden > .material-symbols-outlined,
[data-lightbox-next].max-md\:hidden > .material-symbols-outlined {
  font-size: 1.9rem !important;
}

.admin-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483630;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(7, 3, 14, 0.74);
  backdrop-filter: blur(14px);
}

.admin-auth-overlay[hidden] {
  display: none;
}

.admin-auth-card {
  width: min(100%, 32rem);
  padding: 1.5rem;
  border: 1px solid rgba(255, 124, 245, 0.2);
  border-radius: 1rem;
  color: #eee0ff;
  background:
    linear-gradient(180deg, rgba(46, 28, 75, 0.92), rgba(20, 7, 39, 0.96));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.admin-auth-card h2,
.admin-auth-card p,
.admin-auth-card label,
.admin-auth-card button,
.admin-auth-card input {
  font-family: "Manrope", sans-serif;
}

.admin-auth-card h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.admin-auth-kicker {
  margin-bottom: 0.7rem;
  color: #00f4fe;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.admin-auth-card p {
  margin: 0.8rem 0 0;
  color: rgba(238, 224, 255, 0.72);
  line-height: 1.6;
}

.admin-auth-form {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.3rem;
}

.admin-auth-form label {
  display: grid;
  gap: 0.45rem;
  color: #e6feff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-auth-form input {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(230, 254, 255, 0.18);
  border-radius: 0.8rem;
  color: #eee0ff;
  background: rgba(255, 255, 255, 0.04);
}

.admin-auth-form input:focus {
  outline: 2px solid rgba(255, 124, 245, 0.35);
  outline-offset: 1px;
}

.admin-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.admin-auth-button {
  border: 0;
  border-radius: 0.75rem;
  padding: 0.95rem 1.1rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-auth-button-primary {
  color: #1a0617;
  background: linear-gradient(135deg, #ff7cf5, #ffb2f7);
  box-shadow: 0 0 20px rgba(255, 124, 245, 0.35);
}

.admin-auth-button-secondary {
  color: #eee0ff;
  background: rgba(230, 254, 255, 0.08);
}

.admin-auth-message {
  min-height: 1.4rem;
  margin-top: 0.6rem;
  color: #00f4fe;
  font-size: 0.9rem;
}

.admin-auth-logout {
  border: 1px solid rgba(255, 175, 243, 0.3);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  color: #ffaff3;
  background: rgba(255, 175, 243, 0.08);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .admin-auth-overlay {
    padding: 1rem;
  }

  .admin-auth-card {
    padding: 1.15rem;
    border-radius: 1rem;
  }

  .admin-auth-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-auth-button,
  .admin-auth-logout {
    width: 100%;
    justify-content: center;
  }

  [data-lightbox-prev].max-md\:hidden,
  [data-lightbox-next].max-md\:hidden {
    width: 2.75rem !important;
    height: 2.75rem !important;
  }
}

@media (max-width: 430px) {
  .admin-auth-card h2 {
    line-height: 0.96;
  }

  .admin-auth-kicker,
  .admin-auth-form label {
    letter-spacing: 0.16em;
  }
}
