#update-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9900;
  align-items: center;
  justify-content: center;
  direction: rtl;
  font-family: "Cairo", sans-serif;
  animation: fadeIn 0.35s ease-out; /* 👈 added line */
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#update-box {
  background: var(--light1);
  padding: 20px 25px;
  border-radius: 14px;
  width: 85%;
  max-width: 360px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

#update-box p {
  margin: 0 0 15px;
  font-size: 15px;
  color: var(--dark1);
}

#update-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

#update-actions button {
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
}

#update-refresh {
  background: var(--primary);
  color: white;
}

#update-cancel {
  background: var(--light2);
  color: var(--dark1);
}
